joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40278e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov eax, esi
add eax, 0xc8
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov edx, eax
add edx, edi
mov eax, edx
mov ecx, dword [ebp - 4]
cdq
idiv ecx
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
jmp 0x4028f6
mov edi, dword [ebp - 8]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
add edi, eax
imul edi, dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
jne 0x402801
mov eax, dword [ebp + 0xc]
add eax, esi
mov edx, dword [ebp - 8]
mov ecx, esi
inc ecx
imul edx, ecx
imul edx, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402918
and dword [ebp - 0x10], 0
push esi
call fcn.00402129
mov dword [ebp - 0x18], eax
mov edi, eax
mov edx, dword [ebp - 0x14]
xor edx, esi
mov dword [ebp - 0x2c], edx
mov ecx, edi
mov edx, esi
sar edx, cl
mov eax, edi
sub eax, edx
mov edi, dword [ebp - 4]
mov ecx, esi
shl edi, cl
cdq
idiv edi
mov edi, dword [ebp - 0x2c]
add edi, edx
mov dword [ebp - 0x1c], edi
mov eax, edi
movzx eax, byte [ebx + eax]
or eax, esi
mov byte [ebp - 0x26], al
push esi
call fcn.00402129
add esp, 8
mov dword [ebp - 0x20], eax
mov edi, eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov ecx, esi
mov eax, dword [ebp - 0x30]
mov edx, eax
sar edx, cl
mov dword [ebp - 0x38], edx
mov ecx, edi
or cl, 1
mov edx, esi
imul edx, ecx
mov eax, edi
sub eax, edx
mov edi, dword [ebp - 0x34]
mov ecx, edi
mov edi, esi
shl edi, cl
mov edx, dword [ebp - 0x34]
mov ecx, edx
add ecx, edi
cdq
idiv ecx
mov edi, dword [ebp - 0x38]
add edi, edx
mov dword [ebp - 0x24], edi
movzx eax, byte [ebx + edi]
mov ecx, esi
inc ecx
xor edx, edx
div ecx
mov dword [ebp - 0x3c], eax
mov edi, eax
mov edx, edi
mov byte [ebp - 0x25], dl
mov eax, dword [ebp - 0x24]
movzx edx, byte [ebp - 0x26]
mov ecx, esi
dec ecx
and edx, ecx
mov byte [ebx + eax], dl
movzx edx, byte [ebp - 0x25]
mov dword [ebp - 0x44], edx
mov edi, dword [ebp - 0x1c]
mov eax, esi
mov dword [ebp - 0x40], eax
mov ecx, edx
or cl, 1
xor edx, edx
div ecx
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x44]
mov ecx, eax
add ecx, edx
mov edx, ecx
mov byte [ebx + edi], dl
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x7e8
jl 0x40280f
inc dword [ebp - 8]
or esi, esi
je 0x402906
mov eax, dword [ebp - 0xc]
mov edx, eax
add edx, eax
mov dword [ebp - 0x10], edx
jmp 0x40290c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jle 0x4027cc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x463790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x39000]
lea eax, [edi + 0x57c9c]
push dword [eax]
mov dword [eax], 0xeee10fe7
push eax
push edi
jmp 0x4637ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4637c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4637b0
mov eax, 1
add ebx, ebx
jne 0x4637d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4637e4
jne 0x463803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x463803
dec eax
add ebx, ebx
jne 0x4637f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4637c8
add ebx, ebx
jne 0x4637ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x463855
xor ecx, ecx
sub eax, 3
jb 0x46381b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46388a
sar eax, 1
mov ebp, eax
jmp 0x463826
add ebx, ebx
jne 0x463826
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4637f4
inc ecx
add ebx, ebx
jne 0x463834
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4637f4
add ebx, ebx
jne 0x463841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x463836
jne 0x463852
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x463836
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x463874
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x463866
jmp 0x4637b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x463874
add edi, ecx
jmp 0x4637b6
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x1531
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x463896
cmp byte [edi], 0x11
jne 0x463896
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46389b
lea edi, [esi + 0x61000]
mov eax, dword [edi]
or eax, eax
je 0x463913
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6a3a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6a4b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4638c8
mov ecx, edi
jns 0x4638f7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6a4c0]
or eax, eax
je 0x46390d
mov dword [ebx], eax
add ebx, 4
jmp 0x4638e5
call dword [esi + 0x6a4bc]
mov ebp, dword [esi + 0x6a4c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x463947
sub esp, 0xffffff80
jmp 0x423895
Function at 0x1000a3b5
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1000a50c
mov edx, 0x10000000
cmp eax, 0x7c
je 0x1000a50c
cmp eax, 0x29
jne 0x1000a3f2
cmp dword [esi + 0x10], 0
jne 0x1000a50c
cmp eax, eax
jne 0x1000a3f2
test dword [esi + 0x50], edx
je 0x1000a512
cmp eax, 0x2e
jne 0x1000a40d
push 5
lea ecx, [esi + 0x24]
call fcn.100031c7
mov ecx, esi
call fcn.1000a38c
jmp 0x1000a4f6
cmp eax, 0x5c
jne 0x1000a462
mov ecx, esi
call fcn.1000a38c
test byte [esi + 0x50], 0x80
je 0x1000a456
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1000a43e
push 4
lea ecx, [esi + 0x24]
call fcn.100031c7
mov ecx, esi
call fcn.1000a38c
jmp 0x1000a4fd
cmp eax, 0x42
jne 0x1000a456
push 4
lea ecx, [esi + 0x24]
call fcn.100031c7
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1000a432
mov ecx, esi
call fcn.100031c7
jmp 0x1000a4f6
cmp eax, 0x5b
jne 0x1000a482
mov ecx, esi
call fcn.1000a38c
mov ecx, esi
call fcn.1000b140
cmp dword [esi + 0x4c], 0x5d
je 0x1000a401
push 4
jmp 0x1000a514
cmp eax, 0x28
jne 0x1000a49f
mov ecx, esi
call fcn.1000a38c
mov ecx, esi
call fcn.1000b279
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x1000a512
jmp 0x1000a4eb
cmp eax, 0x5e
jne 0x1000a4a8
push 2
jmp 0x1000a42a
cmp eax, 0x24
jne 0x1000a4b4
push 3
jmp 0x1000a42a
cmp eax, 0x2a
je 0x1000a508
cmp eax, 0x2b
je 0x1000a508
cmp eax, 0x3f
je 0x1000a508
cmp eax, 0x7b
je 0x1000a508
cmp eax, 0x7d
jne 0x1000a4d2
test dword [esi + 0x50], edx
je 0x1000a504
cmp eax, 0x5d
jne 0x1000a4dc
test dword [esi + 0x50], edx
je 0x1000a47b
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.100031c7
mov bl, 1
mov ecx, esi
call fcn.1000a38c
test bl, bl
je 0x1000a4fd
mov ecx, esi
call fcn.100031c7
mov cl, 1
jmp 0x1000a3bc
push 6
jmp 0x1000a514
push 0xa
jmp 0x1000a514
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.100031c7
int3

Function at 0x1000d464
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push esi
push edi
mov edi, dword [ebp + 8]
sub ecx, edi
sar ecx, 1
push 0
pop esi
add ecx, ecx
je 0x1000d490
movzx eax, byte [esi + edi]
xor eax, edx
imul edx, eax, 0x1000193
inc esi
cmp esi, ecx
jb 0x1000d47f
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, reloc.user32.dll_MessageBoxExW
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40154d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
cmp dword [ebp + 8], ebx
je 0x4015c8
push 0x5cb598
push dword [ebp + 8]
call fcn.004724c5
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x4015c8
push esi
push 2
push ebx
push edi
call fcn.00475c57
push edi
call fcn.00475b5f
push ebx
push ebx
push edi
mov esi, eax
call fcn.00475c57
push esi
call fcn.004758f8
mov ecx, dword [ebp + 0xc]
add esp, 0x20
mov dword [ecx], eax
cmp eax, ebx
je 0x4015ae
push edi
push 1
push esi
push eax
call fcn.00475812
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov dword [eax], esi
jmp 0x4015b3
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
push edi
call fcn.004721a1
push dword [ebp + 8]
call fcn.004725bd
pop ecx
pop ecx
xor eax, eax
pop esi
jmp 0x4015cb
or eax, 0xffffffff
pop edi
pop ebx
pop ebp
ret
Function at 0x40d040
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x3750]
mov eax, 0x37d0
call fcn.00475ce0
mov eax, dword [0x5fd0b0]
xor eax, ebp
mov dword [ebp + 0x374c], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov esi, 0x2710
push dword [ebp - 0x74]
lea eax, [ebp + 0x364c]
push str..PhysicalDrive_d
push eax
call fcn.00471bce
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp + 0x364c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x40d1f8
push 0xc
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.004720b0
push esi
lea eax, [ebp + 0x76c]
push ebx
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call fcn.004720b0
add esp, 0x18
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp + 0x76c]
push eax
push 0xc
lea eax, [ebp - 0x70]
push eax
push 0x2d1400
push dword [ebp - 0x7c]
call edi
test eax, eax
je 0x40d1e4
lea eax, [ebp - 0x64]
push eax
push ebx
push dword [ebp + 0x778]
lea eax, [ebp + 0x76c]
push eax
call fcn.0040ceeb
lea eax, [ebp + 0x2e7c]
push eax
push ebx
push dword [ebp + 0x77c]
lea eax, [ebp + 0x76c]
push eax
call fcn.0040ceeb
lea eax, [ebp + 0x384]
push eax
push ebx
push dword [ebp + 0x780]
lea eax, [ebp + 0x76c]
push eax
call fcn.0040ceeb
lea eax, [ebp + 0x3264]
push eax
push ebx
push dword [ebp + 0x784]
lea eax, [ebp + 0x76c]
push eax
call fcn.0040ceeb
add esp, 0x40
cmp byte [0x60a6f0], bl
jne 0x40d1b8
movsx eax, byte [ebp + 0x3264]
push eax
call fcn.00476291
pop ecx
test eax, eax
jne 0x40d18c
movsx eax, byte [ebp + 0x3277]
push eax
call fcn.00476291
pop ecx
test eax, eax
je 0x40d1b8
lea eax, [ebp + 0x3264]
push eax
push 0x60a6f0
call fcn.00471610
lea eax, [ebp + 0x2e7c]
push eax
push 0x60ab70
call fcn.00471610
add esp, 0x10
mov dword [ebp - 0x78], 1
push esi
lea eax, [ebp + 0x76c]
push ebx
push eax
call fcn.004720b0
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp + 0x76c]
push eax
push ebx
push ebx
push 0x700a0
push dword [ebp - 0x7c]
call edi
jmp 0x40d1ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x78], ebx
jne 0x40d207
inc dword [ebp - 0x74]
cmp dword [ebp - 0x74], 0x10
jl 0x40d075
jmp 0x40d20e
or byte [0x60afac], 2
mov ecx, dword [ebp + 0x374c]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047209e
add ebp, 0x3750
leave
ret
Function at 0x40d3de
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x10
xor eax, eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push 0xc
push eax
push 0x5cb63c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40d416
push dword [ebp - 4]
push str._.8X
push dword [ebp + 8]
call fcn.00471bce
add esp, 0xc
xor eax, eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5cb630
push str.Unable_to_GetVolumeInformation_for__s__error_code:_0x_lX__n
call fcn.00471f34
add esp, 0xc
or eax, 0xffffffff
leave
ret
Function at 0x40fde5
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
call fcn.0040fd32
cmp eax, 3
je 0x40fe65
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RtlInitUnicodeString
mov ebx, str.ntdll.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [0x653b08], eax
test eax, eax
je 0x40fe80
push str.NtUnmapViewOfSection
push ebx
call esi
push eax
call edi
mov dword [0x653b04], eax
test eax, eax
je 0x40fe80
push str.NtOpenSection
push ebx
call esi
push eax
call edi
mov dword [0x653b00], eax
test eax, eax
je 0x40fe80
push str.NtMapViewOfSection
push ebx
call esi
push eax
call edi
mov dword [0x653b0c], eax
test eax, eax
je 0x40fe80
push str.RtlNtStatusToDosError
push ebx
call esi
push eax
call edi
mov dword [0x653afc], eax
jmp 0x40fe7c
push str.GetSystemFirmwareTable
push 0x5cedac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40fe84
xor al, al
jmp 0x40fe86
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x40fe8a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.0040fde5
test al, al
jne 0x40feb2
push str.Unable_to_locate_NTDLL_entry_points._n_n
call fcn.0047681a
add eax, 0x40
push eax
call fcn.00476674
pop ecx
pop ecx
xor eax, eax
leave
ret
call fcn.0040fc82
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40feae
push ebx
push esi
push edi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 8]
mov eax, ecx
xor edx, edx
div dword [ebp - 0x30]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
lea esi, [ebp - 4]
lea edi, [ebp - 0x10]
mov ebx, edx
add eax, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.0040fbf4
pop ecx
test al, al
je 0x40ff08
push dword [ebp - 4]
call fcn.004758f8
mov esi, eax
pop ecx
test esi, esi
jne 0x40ff0c
xor eax, eax
jmp 0x40ff48
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp - 8]
add eax, ebx
push eax
push esi
call fcn.004751f0
add esp, 0xc
push dword [ebp - 8]
push 0xffffffffffffffff
call dword [0x653b04]
test eax, eax
jge 0x40ff3d
push eax
push str.Unable_to_unmap_view
call fcn.0040fb90
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ff7f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x18], 0
mov eax, 0x5ceea0
jne 0x40ff92
mov eax, 0x5cee9c
push esi
push edi
mov edi, dword [ebp + 0x14]
push eax
push edi
call fcn.004724c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40ffcf
push edi
push str._s:
call fcn.0047681a
add eax, 0x40
push eax
call fcn.00476674
push str.fopen
call fcn.00478d9e
add esp, 0x10
or eax, 0xffffffff
jmp 0x410067
push 0
push dword [ebp + 8]
push esi
call fcn.00475c57
add esp, 0xc
test eax, eax
je 0x40fffc
push edi
push str._s:
call fcn.0047681a
add eax, 0x40
push eax
call fcn.00476674
push str.fseek
jmp 0x41002b
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0047237f
add esp, 0x10
cmp eax, 1
je 0x41003c
push edi
push str._s:
call fcn.0047681a
add eax, 0x40
push eax
call fcn.00476674
push str.fwrite
call fcn.00478d9e
add esp, 0x10
push esi
call fcn.004721a1
pop ecx
jmp 0x40ffc7
push esi
call fcn.004721a1
pop ecx
test eax, eax
je 0x410065
push edi
push str._s:
call fcn.0047681a
add eax, 0x40
push eax
call fcn.00476674
push str.fclose
jmp 0x40ffbf
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x410762
Capabilities:
Get system information on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
push 0x80
lea eax, [esi + 0xc]
push ebp
push eax
mov dword [esi], vtable.SystemInfo.0
mov dword [esp + 0x1c], 1
mov dword [esi + 0x14c], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
call fcn.004720b0
mov ebx, 0x9c
push ebx
lea edi, [esi + 0x8c]
push ebp
push edi
call fcn.004720b0
add esp, 0x18
mov dword [edi], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
call ebx
mov dword [esi + 0x14c], eax
cmp eax, ebp
jne 0x4107d0
push edi
mov dword [edi], 0x94
call ebx
test eax, eax
jne 0x4107d0
mov dword [esp + 0x10], ebp
push str.GetNativeSystemInfo
push 0x5cedac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x4107f6
lea ecx, [esi + 0x128]
push ecx
call eax
jmp 0x410803
lea eax, [esi + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x10], ebp
je 0x41081e
mov ecx, esi
call fcn.00410072
mov ecx, esi
call fcn.00410517
mov ecx, esi
call fcn.00410381
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x426210
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
movzx edx, cl
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0x80000000
jae 0x426261
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx ecx, ax
mov dword [ebp - 0xc], ecx
jmp 0x426281
cmp dword [ebp - 0x10], 4
jae 0x42627a
mov edx, dword [ebp - 4]
shr edx, 0x10
movzx eax, dx
and eax, 0xffff7fff
mov dword [ebp - 0xc], eax
jmp 0x426281
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 6
jb 0x426290
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
cmp dword [ebp - 0x10], 5
jne 0x4262a5
cmp dword [ebp - 8], 2
jne 0x4262a5
mov edx, dword [ebp + 0x10]
mov dword [edx], 1
cmp dword [ebp - 0x10], 5
jne 0x4262ba
cmp dword [ebp - 8], 1
jne 0x4262ba
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
cmp dword [ebp - 0x10], 5
jne 0x4262cf
cmp dword [ebp - 8], 0
jne 0x4262cf
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
cmp dword [ebp - 0x10], 4
jne 0x4262e4
cmp dword [ebp - 8], 0
jne 0x4262e4
mov edx, dword [ebp + 8]
mov dword [edx], 1
cmp dword [ebp - 0x10], 3
jne 0x4262f9
cmp dword [ebp - 8], 0
jne 0x4262f9
mov eax, dword [ebp + 8]
mov dword [eax], 1
cmp dword [ebp - 0x10], 4
jne 0x42630e
cmp dword [ebp - 8], 1
jne 0x42630e
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x43f530
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 4
call fcn.004758f8
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43f565
mov eax, dword [ebp - 4]
jmp 0x43f5a2
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call fcn.0047a248
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x43f59f
mov eax, dword [ebp - 4]
push eax
call fcn.0047252f
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4468f0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5fd0b0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [0x61068c]
push eax
call fcn.0049b97b
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
jmp 0x446922
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x446939
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x3a
je 0x446939
jmp 0x446919
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jne 0x446957
mov eax, dword [ebp - 0xc]
push eax
call fcn.0047252f
add esp, 4
or eax, 0xffffffff
jmp 0x446a3a
mov ecx, dword [ebp - 0xc]
mov byte [ecx], 0
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004794a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
push edx
call fcn.0047252f
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x44699b
or eax, 0xffffffff
jmp 0x446a3a
push 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.004720b0
add esp, 0xc
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x4469f9
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov word [ecx], 2
mov dx, word [ebp - 4]
push edx
call sub.WSOCK32.dll_htons
mov ecx, dword [ebp - 0x30]
mov word [ecx + 2], ax
push 4
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x30]
add edx, 4
push edx
call fcn.004751f0
add esp, 0xc
mov dword [ebp - 0x14], 0x10
jmp 0x4469fe
or eax, 0xffffffff
jmp 0x446a3a
push 0
push 1
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 8]
push ecx
call sub.WSOCK32.dll_socket
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x446a1d
or eax, 0xffffffff
jmp 0x446a3a
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.WSOCK32.dll_connect
test eax, eax
je 0x446a37
or eax, 0xffffffff
jmp 0x446a3a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047209e
mov esp, ebp
pop ebp
ret

Function at 0x446c50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0x446a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret

Function at 0x44c5f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x5fd0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x16164], 1
cmp dword [0x610760], 0
je 0x44c61f
xor eax, eax
jmp 0x44c645
lea ecx, [ebp - 0x198]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x44c639
or eax, 0xffffffff
jmp 0x44c645
mov dword [0x610760], 1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047209e
mov esp, ebp
pop ebp
ret