joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40813c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x40815f
cmp word [ecx], bx
je 0x40815f
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40815f
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x40821c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x46b030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x462430
push eax
call fcn.00406808
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4082ca
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4082ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4082ca
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4082ca
lea eax, [esi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x4082aa
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x4082a0
mov edx, dword [ebx]
xor ecx, ecx
mov dword [ebx + 0x10], eax
mov byte [edx + eax], cl
jmp 0x4082b6
sub eax, dword [ebx + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00408a3e
push ecx
mov ecx, ebx
call fcn.0040675c
push esi
push edi
call fcn.0040212a
xor ecx, ecx
inc ecx
jmp 0x4082cc
xor ecx, ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b29a
leave
ret

Function at 0x4082dd
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x44d0d0
call fcn.0041bc07
mov esi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0041b55f
pop ecx
mov edi, eax
xor eax, eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x408361
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x462338
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x408361
mov ax, word [ecx + 0xa]
mov word [esi], ax
mov ax, word [ecx + 8]
mov word [esi + 2], ax
mov ax, word [ecx + 0xe]
mov word [esi + 4], ax
mov ax, word [ecx + 0xc]
mov word [esi + 6], ax
xor esi, esi
inc esi
test edi, edi
je 0x40837a
push edi
call fcn.0041b55a
pop ecx
jmp 0x40837a
mov eax, esi
call fcn.0041bb6c
ret
Function at 0x408387
Capabilities:
Get common file path

Disassembly:
push 0x854
mov eax, 0x44d108
call fcn.0041bbd1
mov ebx, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041cfe0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00401a79
and dword [ebp - 4], 0
lea edi, [ebp - 0x828]
xor eax, eax
stosd dword es:[edi], eax
push 7
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x814], ecx
mov word [ebp - 0x828], ax
push 8
mov byte [ebp - 4], 1
pop edi
cmp ecx, edi
lea eax, [ebp - 0x828]
push 0xa
cmovae eax, dword [ebp - 0x828]
lea edx, [ebp - 0x828]
and dword [ebp - 0x818], 0
xor ecx, ecx
mov word [eax], cx
pop ecx
call fcn.00409ddd
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00408d5b
pop ecx
cmp dword [eax + 0x14], edi
jb 0x408444
mov eax, dword [eax]
push 0
push eax
call fcn.00426958
pop ecx
pop ecx
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.004024e2
test esi, esi
jne 0x408467
mov ecx, dword [ebp - 0x814]
jmp 0x4083fb
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00408d5b
pop ecx
push eax
mov ecx, ebx
call fcn.00401a42
lea ecx, [ebp - 0x858]
call fcn.004024e2
cmp dword [ebx + 0x14], edi
jb 0x40849a
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x814]
cmp eax, edi
jb 0x4084ee
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x860], ecx
cmp eax, 0x1000
jb 0x4084e5
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.00402492
mov eax, dword [ebp - 0x85c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x860]
push eax
push ecx
call fcn.0041b2a8
pop ecx
pop ecx
and dword [ebp - 0x818], 0
lea ecx, [ebp - 0x840]
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
call fcn.004024e2
mov eax, ebx
call fcn.0041bb80
ret
Function at 0x40851b
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x44d176
call fcn.0041bbd1
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x844], ebx
call fcn.00405486
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.00410125
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.00409cc9
cmp dword [eax + 0x14], 8
jb 0x408568
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x828]
call fcn.004024e2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.004021d5
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041cfe0
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x408672
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x850]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408666
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.0040220b
push ebx
push dword [0x492094]
mov ecx, esi
call fcn.00408a06
mov edi, eax
cmp edi, 0xffffffff
je 0x408666
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408666
push dword [0x492094]
call fcn.00428f4a
pop ecx
lea edx, [ebp - 0x810]
mov ecx, eax
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x84c]
jne 0x408642
sub edx, ebx
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00408a98
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041bb80
ret
Function at 0x408742
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x870
mov eax, 0x44d1c6
call fcn.0041bbd1
mov esi, ecx
mov dword [ebp - 0x874], esi
push 0x800
xor ebx, ebx
mov dword [ebp - 0x874], esi
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041cfe0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00401a79
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
mov eax, dword [ebp - 0x848]
cmovae ecx, dword [ebp - 0x858]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4087cf
push 0x462338
lea ecx, [ebp - 0x858]
call fcn.00401e25
xor eax, eax
lea edi, [ebp - 0x840]
stosd dword es:[edi], eax
push 7
pop edx
mov ecx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x82c], ecx
mov word [ebp - 0x840], ax
lea edi, [ebp - 0x828]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x814], edx
mov word [ebp - 0x828], ax
push 8
mov byte [ebp - 4], 2
pop edi
cmp ecx, edi
mov dword [ebp - 0x830], ebx
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
lea edx, [ebp - 0x840]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], edi
mov dword [ebp - 0x818], ebx
cmovae eax, dword [ebp - 0x828]
mov word [eax], cx
mov ecx, edi
call fcn.00409ddd
push eax
lea edx, [ebp - 0x858]
lea ecx, [ebp - 0x870]
call fcn.00408d5b
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00401a42
lea ecx, [ebp - 0x870]
call fcn.004024e2
cmp dword [ebp - 0x814], edi
lea ecx, [ebp - 0x828]
cmovae ecx, dword [ebp - 0x828]
call fcn.00408163
test al, al
je 0x4088a3
mov ecx, dword [ebp - 0x82c]
jmp 0x40880f
cmp dword [ebp - 0x814], edi
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.00427d61
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00401d6a
mov eax, dword [ebp - 0x814]
cmp eax, edi
jb 0x40891f
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], ecx
cmp eax, 0x1000
jb 0x408916
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.00402492
mov eax, dword [ebp - 0x878]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x874]
push eax
push ecx
call fcn.0041b2a8
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], 7
cmp eax, edi
jb 0x40898c
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x878], ecx
cmp eax, 0x1000
jb 0x408983
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.00402492
mov eax, dword [ebp - 0x874]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x878]
push eax
push ecx
call fcn.0041b2a8
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x830], ebx
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
call fcn.004024e2
mov eax, esi
call fcn.0041bb80
ret
Function at 0x409d46
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
xor bl, bl
push 0xb1
mov ecx, esi
call fcn.0040a3c6
jmp 0x409dcb
call fcn.00421b5b
push 0x24
cdq
pop ecx
idiv ecx
cmp edx, 9
ja 0x409d74
add dl, 0x30
jmp 0x409d77
add dl, 0x57
mov byte [ebp - 4], dl
lea eax, [edx - 0x30]
test edi, edi
jne 0x409d89
cmp al, 9
jbe 0x409dcb
test edi, edi
je 0x409d99
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x409d93
mov ecx, dword [esi]
cmp byte [edi + ecx - 1], dl
je 0x409dcb
test bl, bl
jne 0x409dbf
cmp al, 9
ja 0x409da5
inc bl
jmp 0x409dbf
cmp dword [esi + 0x10], 0xb0
jne 0x409dbf
call fcn.00421b5b
push 0xa
cdq
pop ecx
idiv ecx
add dl, 0x30
mov byte [ebp - 4], dl
push dword [ebp - 4]
mov ecx, esi
push 1
call fcn.0040a427
mov edi, dword [esi + 0x10]
cmp edi, 0xb1
jb 0x409d5f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40bb09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40bb1d
mov eax, dword [eax]
push esi
push 0x462388
push eax
call fcn.00421673
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40bb9c
push ebx
push edi
mov ecx, esi
call fcn.004081d2
mov ebx, eax
push ebx
call fcn.0041b55f
push ebx
mov edi, eax
push 0
push edi
call fcn.0041cfe0
push esi
push 1
push ebx
push edi
call fcn.00427955
push esi
call fcn.00421ab1
mov ecx, dword [ebp - 4]
add esp, 0x24
cmp dword [ecx + 0x2c], 0
je 0x40bb84
add ecx, 0x1c
cmp dword [ecx + 0x14], 0x10
jb 0x40bb74
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.004103dc
pop ecx
pop ecx
jmp 0x40bb90
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.0040212a
push edi
call fcn.0041b55a
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40fb76
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e011
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0041c360
mov eax, dword [0x46b030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040f7cf
mov ebx, 0x800
mov esi, eax
push ebx
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0041cfe0
xor eax, eax
push ebx
push eax
mov dword [ebp - 0x1044], eax
mov dword [ebp - 0x104c], eax
mov dword [ebp - 0x1048], eax
lea eax, [ebp - 0x810]
push eax
call fcn.0041cfe0
add esp, 0x18
lea ecx, [ebp - 0x1040]
mov edx, str.3eoB
call fcn.00410125
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
mov edx, eax
call fcn.00409cc9
lea ecx, [ebp - 0x1040]
call fcn.004021d5
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x810]
mov edx, 0x400
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push edx
push ecx
lea ecx, [ebp - 0x1048]
push ecx
lea ecx, [ebp - 0x104c]
push ecx
lea ecx, [ebp - 0x1044]
push ecx
push edx
lea ecx, [ebp - 0x1010]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1044]
mov edx, esi
push edi
call fcn.0040fad6
pop ecx
lea ecx, [ebp - 0x1028]
call fcn.004024e2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b29a
leave
ret
Function at 0x413a01
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
mov ebx, dword [edi + 0x2c]
lea edx, [edi + 0x38]
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ecx, dword [edi + 0x74]
add eax, ebx
sub ecx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], ecx
cmp dword [edi + 0x6c], eax
jb 0x413ab2
mov ecx, dword [edx]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0041ca60
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov edi, ecx
mov dword [ebp - 0xc], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
movzx ecx, bx
movzx eax, word [esi]
mov edx, eax
mov dword [ebp - 0x10], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x413a5d
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx eax, word [esi]
mov edx, eax
sub eax, dword [ebp - 0x10]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x413a8d
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
add ecx, ebx
mov esi, dword [edi]
mov eax, dword [esi + 4]
test eax, eax
je 0x413b6c
mov ebx, dword [ebp - 4]
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
add edx, dword [ebx]
mov ebx, eax
mov dword [ebp - 0x14], edx
cmp ebx, ecx
jbe 0x413ad9
mov ebx, ecx
test ebx, ebx
je 0x413b25
sub eax, ebx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x413af6
mov edx, dword [esi]
mov ecx, dword [esi + 0x30]
push ebx
call fcn.004143a6
jmp 0x413b0e
cmp eax, 2
jne 0x413b12
mov edx, dword [esi]
test edx, edx
jne 0x413b05
xor eax, eax
jmp 0x413b0f
mov ecx, dword [esi + 0x30]
push ebx
call fcn.00411546
pop ecx
mov dword [esi + 0x30], eax
push ebx
push dword [esi]
push dword [ebp - 0x14]
call fcn.0041ca60
add dword [esi], ebx
add esp, 0xc
add dword [esi + 8], ebx
add ebx, dword [edi + 0x74]
mov dword [edi + 0x74], ebx
cmp ebx, 3
jb 0x413b51
mov eax, dword [ebp - 4]
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
mov eax, dword [eax]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp ebx, 0x106
jae 0x413b6c
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x413b6c
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
jmp 0x413a18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4175a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push esi
push edi
call fcn.004081d2
push 0x14
pop esi
cmp eax, esi
jb 0x417610
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.0042836c
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x10], si
inc eax
mov byte [ebp - 0xc], bl
push eax
mov word [ebp - 0xe], ax
mov edi, 0x58453144
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push esi
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00427955
add esp, 0x1c
pop ebx
test eax, eax
je 0x417610
cmp dword [ebp - 0x14], edi
jne 0x417610
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41760c
push 5
pop ecx
lea esi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov al, 1
jmp 0x417612
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x417ac6
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46b030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], esi
test edi, edi
je 0x417b36
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x417aec
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
cmp eax, 0x3fffffff
jg 0x417b36
add eax, eax
call fcn.0041bb40
mov esi, esp
test esi, esi
je 0x417b33
mov ecx, dword [ebp - 0x1c]
push ebx
push ebx
mov byte [esi], bl
lea eax, [ecx + ecx]
push eax
push esi
push 0xffffffffffffffff
push edi
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb ebx, ebx
and ebx, esi
mov esi, dword [ebp - 0x18]
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push 0x7b
mov word [ebp - 0x14], ax
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
mov word [ebp - 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x417b76
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x417b9d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b29a
leave
ret 8
xor eax, eax
jmp 0x417b89
Function at 0x417ba1
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x46b030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push esi
push edi
mov edi, 0x3e8
mov esi, dword [ebp + 8]
div edi
xor edi, edi
mov dword [ebp - 0x110], eax
inc edi
mov eax, dword [ecx]
xor ecx, ecx
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x110]
push eax
push ecx
push ecx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], edx
push eax
push ecx
mov dword [ebp - 0x108], edi
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x417c04
xor eax, eax
jmp 0x417c0f
xor ecx, ecx
test eax, eax
mov eax, edi
setne cl
mov dword [esi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b29a
leave
ret 8
Function at 0x41c0f5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41c134
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c134
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c134
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41c134
cmp dword [ecx + 0x74], 0xe
jbe 0x41c134
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428a22
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46b030]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x453288
push esi
call fcn.0042986a
pop ecx
pop ecx
test eax, eax
jne 0x428a50
xor al, al
jmp 0x428acd
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00428765
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x428a8a
push dword [ebp - 0x210]
call fcn.00421ae1
xor al, al
jmp 0x428acb
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x428a90
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x428ab0
push edx
call fcn.00428958
pop ecx
test al, al
je 0x428a7b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x428abe
mov bl, 1
push dword [ebp - 0x210]
call fcn.00421ae1
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b29a
leave
ret
Function at 0x4303e3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x455468
push 0x455460
push str.FlsAlloc
push 0x1e
call fcn.00430210
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430417
push dword [ebp + 8]
mov ecx, esi
call dword [0x451430]
call esi
jmp 0x43041d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x430461
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x455478
push 0x455470
push str.FlsGetValue
push 0x20
call fcn.00430210
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430498
push dword [ebp + 8]
mov ecx, esi
call dword [0x451430]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43204e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x470670]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43208e
cmp byte [ebx], 0xa
jne 0x43208e
or byte [eax + edi + 0x28], 4
jmp 0x432093
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x432191
mov al, byte [edx]
cmp al, 0x1a
je 0x432173
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4320c2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4320e7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4320f1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4320a4
jmp 0x432191
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43216e
cmp dword [ebp - 0xc], 0
je 0x43216e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x470670]
test byte [eax + edi + 0x28], 0x48
je 0x432148
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x432133
mov byte [esi], dl
jmp 0x432144
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x470670]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x432191
cmp byte [ebp - 1], 0xa
jne 0x432157
cmp esi, ebx
jne 0x432157
mov byte [esi], 0xa
jmp 0x432190
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00433337
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x432191
mov byte [esi], 0xd
jmp 0x432190
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x470670]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43218d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x432191
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret