joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408825
Capabilities:
Get common file path

Disassembly:
push 0x854
mov eax, 0x4511ac
call fcn.0041c201
mov ebx, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041d5f0
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.00401b54
and dword [ebp - 4], 0
lea edi, [ebp - 0x828]
xor eax, eax
stosd dword es:[edi], eax
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
pop edi
mov ecx, edi
mov word [ebp - 0x828], ax
mov dword [ebp - 0x814], ecx
mov byte [ebp - 4], 1
cmp ecx, edi
lea eax, [ebp - 0x828]
push 0xa
cmova eax, dword [ebp - 0x828]
lea edx, [ebp - 0x828]
and dword [ebp - 0x818], 0
xor ecx, ecx
mov word [eax], cx
pop ecx
call fcn.0040a2a3
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.004091ef
pop ecx
cmp dword [eax + 0x14], edi
jbe 0x4088e1
mov eax, dword [eax]
push 0
push eax
call fcn.00426f68
pop ecx
pop ecx
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.004025cb
test esi, esi
jne 0x408904
mov ecx, dword [ebp - 0x814]
jmp 0x408898
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.004091ef
pop ecx
push eax
mov ecx, ebx
call fcn.00401b1d
lea ecx, [ebp - 0x858]
call fcn.004025cb
cmp dword [ebx + 0x14], edi
jbe 0x408937
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x814]
cmp eax, edi
jbe 0x40898b
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x860], ecx
cmp eax, 0x1000
jb 0x408982
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.0040257b
mov eax, dword [ebp - 0x85c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x860]
push eax
push ecx
call fcn.0041b8d3
pop ecx
pop ecx
and dword [ebp - 0x818], 0
lea ecx, [ebp - 0x840]
xor eax, eax
mov dword [ebp - 0x814], edi
mov word [ebp - 0x828], ax
call fcn.004025cb
mov eax, ebx
call fcn.0041c1b0
ret
Function at 0x4089b4
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x45121a
call fcn.0041c201
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x844], ebx
call fcn.00405594
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.0040c4c0
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.0040a18f
cmp dword [eax + 0x14], 7
jbe 0x408a01
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.004025cb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.004022be
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041d5f0
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x408b0b
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 0x408aff
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004022f4
push ebx
push dword [0x4996bc]
mov ecx, esi
call fcn.00408e96
mov edi, eax
cmp edi, 0xffffffff
je 0x408aff
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408aff
push dword [0x4996bc]
call fcn.0042960a
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 0x408adb
sub edx, ebx
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00408f28
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041c1b0
ret
Function at 0x408bdb
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x870
mov eax, 0x45126a
call fcn.0041c201
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.0041d5f0
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.00401b54
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x858]
mov eax, dword [ebp - 0x848]
push 7
pop ebx
cmp dword [ebp - 0x844], ebx
cmova ecx, dword [ebp - 0x858]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x408c6a
push 0x4676b8
lea ecx, [ebp - 0x858]
call fcn.00401f01
xor eax, eax
lea edi, [ebp - 0x840]
stosd dword es:[edi], eax
mov ecx, ebx
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], ebx
mov word [ebp - 0x828], ax
mov byte [ebp - 4], 2
xor edi, edi
cmp ecx, ebx
mov dword [ebp - 0x830], edi
lea eax, [ebp - 0x840]
cmova eax, dword [ebp - 0x840]
lea edx, [ebp - 0x840]
xor ecx, ecx
push 8
mov word [eax], cx
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], ebx
mov dword [ebp - 0x818], edi
cmova eax, dword [ebp - 0x828]
mov word [eax], cx
pop ecx
call fcn.0040a2a3
push eax
lea edx, [ebp - 0x858]
lea ecx, [ebp - 0x870]
call fcn.004091ef
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00401b1d
lea ecx, [ebp - 0x870]
call fcn.004025cb
cmp dword [ebp - 0x814], ebx
lea ecx, [ebp - 0x828]
cmova ecx, dword [ebp - 0x828]
call fcn.00408601
test al, al
je 0x408d3b
mov ecx, dword [ebp - 0x82c]
jmp 0x408ca6
cmp dword [ebp - 0x814], ebx
lea eax, [ebp - 0x828]
cmova eax, dword [ebp - 0x828]
push eax
call fcn.00428421
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00401e45
mov eax, dword [ebp - 0x814]
cmp eax, ebx
jbe 0x408db7
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], ecx
cmp eax, 0x1000
jb 0x408dae
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.0040257b
mov eax, dword [ebp - 0x878]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x874]
push eax
push ecx
call fcn.0041b8d3
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x818], edi
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], ebx
cmp eax, ebx
jbe 0x408e20
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x878], ecx
cmp eax, 0x1000
jb 0x408e17
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.0040257b
mov eax, dword [ebp - 0x874]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x878]
push eax
push ecx
call fcn.0041b8d3
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x830], edi
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x82c], ebx
mov word [ebp - 0x840], ax
call fcn.004025cb
mov eax, esi
call fcn.0041c1b0
ret
Function at 0x40a20c
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.0040a88c
jmp 0x40a291
call fcn.0042216b
push 0x24
cdq
pop ecx
idiv ecx
cmp edx, 9
ja 0x40a23a
add dl, 0x30
jmp 0x40a23d
add dl, 0x57
mov byte [ebp - 4], dl
lea eax, [edx - 0x30]
test edi, edi
jne 0x40a24f
cmp al, 9
jbe 0x40a291
test edi, edi
je 0x40a25f
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x40a259
mov ecx, dword [esi]
cmp byte [edi + ecx - 1], dl
je 0x40a291
test bl, bl
jne 0x40a285
cmp al, 9
ja 0x40a26b
inc bl
jmp 0x40a285
cmp dword [esi + 0x10], 0xb0
jne 0x40a285
call fcn.0042216b
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.0040a8ed
mov edi, dword [esi + 0x10]
cmp edi, 0xb1
jb 0x40a225
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40c0e8
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], 7
jbe 0x40c0fc
mov eax, dword [eax]
push esi
push 0x467710
push eax
call fcn.00421c83
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40c17b
push ebx
push edi
mov ecx, esi
call fcn.00408670
mov ebx, eax
push ebx
call fcn.0041bb8a
push ebx
mov edi, eax
push 0
push edi
call fcn.0041d5f0
push esi
push 1
push ebx
push edi
call fcn.00428015
push esi
call fcn.004220c1
mov ecx, dword [ebp - 4]
add esp, 0x24
cmp dword [ecx + 0x2c], 0
je 0x40c163
add ecx, 0x1c
cmp dword [ecx + 0x14], 0xf
jbe 0x40c153
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0040c7a7
pop ecx
pop ecx
jmp 0x40c16f
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.00402216
push edi
call fcn.0041bb85
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4109a7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4521bb
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0041c980
mov eax, dword [0x471040]
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.00410600
mov ebx, 0x800
mov esi, eax
push ebx
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0041d5f0
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.0041d5f0
add esp, 0x18
lea ecx, [ebp - 0x1040]
mov edx, str.3eoB
call fcn.0040c4c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
mov edx, eax
call fcn.0040a18f
lea ecx, [ebp - 0x1040]
call fcn.004022be
cmp dword [ebp - 0x1014], 7
lea ecx, [ebp - 0x810]
mov edx, 0x400
lea eax, [ebp - 0x1028]
cmova 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.00410907
pop ecx
lea ecx, [ebp - 0x1028]
call fcn.004025cb
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.0041b8c5
leave
ret
Function at 0x41407b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
mov ebx, dword [esi + 0x2c]
lea ecx, [esi + 0x38]
mov dword [ebp - 0x18], ebx
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x3c]
add eax, 0xfffffefa
sub edi, dword [esi + 0x74]
add eax, ebx
sub edi, dword [esi + 0x6c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
cmp dword [esi + 0x6c], eax
jb 0x41413f
mov ecx, dword [ecx]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0041d070
mov ecx, dword [esi + 0x4c]
add esp, 0xc
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
sub dword [esi + 0x5c], ebx
mov dword [ebp - 8], ecx
lea esi, [eax + ecx*2]
mov edi, dword [ebp - 8]
movzx ecx, bx
mov dword [ebp - 4], ecx
lea esi, [esi - 2]
movzx eax, word [esi]
mov edx, eax
sub eax, ecx
xor ecx, ecx
movzx eax, ax
cmp edx, ebx
cmovae ecx, eax
mov word [esi], cx
mov ecx, dword [ebp - 4]
sub edi, 1
jne 0x4140e2
mov esi, dword [ebp - 0xc]
mov edi, ebx
movzx ecx, bx
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x40]
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
movzx eax, word [esi]
mov edx, eax
sub eax, ecx
xor ecx, ecx
movzx eax, ax
cmp edx, ebx
cmovae ecx, eax
mov word [esi], cx
mov ecx, dword [ebp - 8]
sub edi, 1
jne 0x414112
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
add edi, ebx
lea ecx, [esi + 0x38]
mov dword [ebp - 8], ecx
mov ebx, dword [esi]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx + 4]
test eax, eax
je 0x41420f
mov ebx, dword [esi + 0x74]
add ebx, dword [ecx]
mov edx, dword [esi + 0x6c]
add ebx, edx
cmp eax, edi
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
cmovbe edi, eax
test edi, edi
jne 0x41416c
xor edi, edi
jmp 0x4141cb
sub eax, edi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41418d
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.00414abf
pop ecx
mov ecx, dword [ebp - 8]
jmp 0x4141ac
mov dword [ebp - 4], ecx
cmp eax, 2
jne 0x4141b2
mov edx, dword [ebx]
test edx, edx
jne 0x41419f
xor eax, eax
jmp 0x4141a9
mov ecx, dword [ebx + 0x30]
push edi
call fcn.00411c46
pop ecx
lea ecx, [esi + 0x38]
mov dword [ebp - 4], ecx
mov dword [ebx + 0x30], eax
push edi
push dword [ebx]
push dword [ebp - 0x14]
call fcn.0041d070
add dword [ebx], edi
add esp, 0xc
add dword [ebx + 8], edi
mov edx, dword [esi + 0x6c]
mov ecx, dword [ebp - 4]
add edi, dword [esi + 0x74]
mov dword [esi + 0x74], edi
cmp edi, 3
jb 0x4141f4
mov eax, dword [ecx]
mov ecx, dword [esi + 0x58]
movzx edx, byte [eax + edx]
mov dword [esi + 0x48], edx
shl edx, cl
mov ecx, dword [esi + 0x6c]
movzx eax, byte [eax + ecx + 1]
xor edx, eax
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
cmp edi, 0x106
jae 0x41420f
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x41420f
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
jmp 0x414092
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417c6f
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.00408670
push 0x14
pop esi
cmp eax, esi
jb 0x417cdd
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.00428a2c
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.00428015
add esp, 0x1c
pop ebx
test eax, eax
je 0x417cdd
cmp dword [ebp - 0x14], edi
jne 0x417cdd
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x417cd9
push 5
pop ecx
lea esi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov al, 1
jmp 0x417cdf
xor al, al
pop edi
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x18], edi
push 2
pop eax
test esi, esi
je 0x4181c5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x418178
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
cmp eax, 0x3fffffff
jg 0x4181c2
add eax, eax
call fcn.0041c170
mov edi, esp
test edi, edi
je 0x4181bf
mov ecx, dword [ebp - 0x1c]
push ebx
push ebx
mov byte [edi], bl
lea eax, [ecx + ecx]
push eax
push edi
push 0xffffffffffffffff
push esi
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb ebx, ebx
and ebx, edi
mov edi, dword [ebp - 0x18]
push 2
pop eax
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
push 0x7b
movlpd qword [ebp - 0xc], xmm0
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 0x418201
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x418228
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 [edi]
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.0041b8c5
leave
ret 8
xor eax, eax
jmp 0x418214
Function at 0x41822c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x471040]
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 0x41828f
xor eax, eax
jmp 0x41829a
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.0041b8c5
leave
ret 8
Function at 0x41c71b
Capabilities:
Parse pe header

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

Function at 0x4290e2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x457410
push esi
call fcn.00429f2a
pop ecx
pop ecx
test eax, eax
jne 0x429110
xor al, al
jmp 0x42918d
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.00428e25
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x42914a
push dword [ebp - 0x210]
call fcn.004220f1
xor al, al
jmp 0x42918b
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x429150
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x429170
push edx
call fcn.00429018
pop ecx
test al, al
je 0x42913b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x42917e
mov bl, 1
push dword [ebp - 0x210]
call fcn.004220f1
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041b8c5
leave
ret
Function at 0x430808
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x459478
push 0x459470
push str.FlsAlloc
push 0x1e
call fcn.00430635
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43083c
push dword [ebp + 8]
mov ecx, esi
call dword [0x455438]
call esi
jmp 0x430842
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x430886
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x459488
push 0x459480
push str.FlsGetValue
push 0x20
call fcn.00430635
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4308bd
push dword [ebp + 8]
mov ecx, esi
call dword [0x455438]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x432473
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 + 0x476b50]
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 0x4324b3
cmp byte [ebx], 0xa
jne 0x4324b3
or byte [eax + edi + 0x28], 4
jmp 0x4324b8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4325b6
mov al, byte [edx]
cmp al, 0x1a
je 0x432598
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4324e7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x43250c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x432516
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 0x4324c9
jmp 0x4325b6
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 0x432593
cmp dword [ebp - 0xc], 0
je 0x432593
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x476b50]
test byte [eax + edi + 0x28], 0x48
je 0x43256d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x432558
mov byte [esi], dl
jmp 0x432569
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x476b50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4325b6
cmp byte [ebp - 1], 0xa
jne 0x43257c
cmp esi, ebx
jne 0x43257c
mov byte [esi], 0xa
jmp 0x4325b5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043375c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4325b6
mov byte [esi], 0xd
jmp 0x4325b5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x476b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4325b2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4325b6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4325bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x476b50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x432602
cmp word [esi], dx
jne 0x432602
or byte [edi + eax + 0x28], 4
jmp 0x432607
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x43275a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x43273a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x432649
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43267f
cmp eax, edx
jae 0x43268b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x432621
jmp 0x43275a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432736
cmp dword [ebp - 0x14], 0
je 0x432736
mov eax, dword [ebx*4 + 0x476b50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x43270e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4326d7
mov word [esi], cx
jmp 0x43270a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x476b50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x476b50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x476b50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x43275a
pop ebx
cmp word [ebp - 4], bx
jne 0x43271f
cmp esi, dword [ebp + 0xc]
jne 0x43271f
mov word [esi], bx
jmp 0x432757
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043375c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x43275a
push 0xd
jmp 0x432753
mov ecx, dword [ebx*4 + 0x476b50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x432751
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43275a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret