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

Disassembly:
push 0x854
mov eax, 0x4516cc
call fcn.0041c471
mov ebx, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041d9c0
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
and dword [ebp - 0x818], 0
lea eax, [ebp - 0x828]
cmp ecx, edi
lea edx, [ebp - 0x828]
push 0xa
cmova eax, dword [ebp - 0x828]
xor ecx, ecx
mov word [eax], cx
pop ecx
call fcn.0040a287
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.004091a3
pop ecx
cmp dword [eax + 0x14], edi
jbe 0x408895
mov eax, dword [eax]
push 0
push eax
call fcn.00427363
pop ecx
pop ecx
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.004025ca
test esi, esi
jne 0x4088b8
mov ecx, dword [ebp - 0x814]
jmp 0x40884c
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.004091a3
pop ecx
push eax
mov ecx, ebx
call fcn.00401b1d
lea ecx, [ebp - 0x858]
call fcn.004025ca
cmp dword [ebx + 0x14], edi
jbe 0x4088eb
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x814]
cmp eax, edi
jbe 0x40893f
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x860], ecx
cmp eax, 0x1000
jb 0x408936
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.0040257a
mov eax, dword [ebp - 0x85c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x860]
push eax
push ecx
call fcn.0041bb43
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.004025ca
mov eax, ebx
call fcn.0041c420
ret
Function at 0x408968
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x45173a
call fcn.0041c471
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x844], ebx
call fcn.0040553c
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.0040c497
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.0040a167
cmp dword [eax + 0x14], 7
jbe 0x4089b5
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.004025ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.004022c0
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.0041d9c0
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x408abf
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 0x408ab3
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004022f6
push ebx
push dword [0x499744]
mov ecx, esi
call fcn.00408e4a
mov edi, eax
cmp edi, 0xffffffff
je 0x408ab3
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x408ab3
push dword [0x499744]
call fcn.00429a0a
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 0x408a8f
sub edx, ebx
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00408edc
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041c420
ret
Function at 0x408b8f
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x870
mov eax, 0x45178a
call fcn.0041c471
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.0041d9c0
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 0x408c1e
push 0x4676f8
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.0040a287
push eax
lea edx, [ebp - 0x858]
lea ecx, [ebp - 0x870]
call fcn.004091a3
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00401b1d
lea ecx, [ebp - 0x870]
call fcn.004025ca
cmp dword [ebp - 0x814], ebx
lea ecx, [ebp - 0x828]
cmova ecx, dword [ebp - 0x828]
call fcn.004085b5
test al, al
je 0x408cef
mov ecx, dword [ebp - 0x82c]
jmp 0x408c5a
cmp dword [ebp - 0x814], ebx
lea eax, [ebp - 0x828]
cmova eax, dword [ebp - 0x828]
push eax
call fcn.00428809
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00401e45
mov eax, dword [ebp - 0x814]
cmp eax, ebx
jbe 0x408d6b
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], ecx
cmp eax, 0x1000
jb 0x408d62
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.0040257a
mov eax, dword [ebp - 0x878]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x874]
push eax
push ecx
call fcn.0041bb43
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 0x408dd4
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x878], ecx
cmp eax, 0x1000
jb 0x408dcb
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.0040257a
mov eax, dword [ebp - 0x874]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x878]
push eax
push ecx
call fcn.0041bb43
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.004025ca
mov eax, esi
call fcn.0041c420
ret
Function at 0x40a1ff
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.0040a85b
jmp 0x40a275
call fcn.0040a1e4
mov dl, al
mov byte [ebp - 4], dl
lea ecx, [edx - 0x30]
test edi, edi
jne 0x40a232
cmp cl, 9
jbe 0x40a275
test edi, edi
je 0x40a242
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x40a23c
mov eax, dword [esi]
cmp byte [edi + eax - 1], dl
je 0x40a275
test bl, bl
jne 0x40a269
cmp cl, 9
ja 0x40a24f
inc bl
jmp 0x40a269
cmp dword [esi + 0x10], 0xb0
jne 0x40a269
call fcn.00422548
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.0040a8bc
mov edi, dword [esi + 0x10]
cmp edi, 0xb1
jb 0x40a218
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40c0bf
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 0x40c0d3
mov eax, dword [eax]
push esi
push 0x467750
push eax
call fcn.00422063
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40c152
push ebx
push edi
mov ecx, esi
call fcn.00408624
mov ebx, eax
push ebx
call fcn.0041bdfa
push ebx
mov edi, eax
push 0
push edi
call fcn.0041d9c0
push esi
push 1
push ebx
push edi
call fcn.004283f4
push esi
call fcn.0042249e
mov ecx, dword [ebp - 4]
add esp, 0x24
cmp dword [ecx + 0x2c], 0
je 0x40c13a
add ecx, 0x1c
cmp dword [ecx + 0x14], 0xf
jbe 0x40c12a
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0040c77e
pop ecx
pop ecx
jmp 0x40c146
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.00402218
push edi
call fcn.0041bdf5
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40d100
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x44
mov eax, 0x451fd9
call fcn.0041c471
mov edi, ecx
xor ebx, ebx
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 4], ebx
push eax
push 0x455520
push 1
push ebx
push 0x455530
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40d1e8
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
mov edx, str.nyrRpmqOeqbTn0
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x4c], eax
call fcn.0040c497
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040a167
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
jbe 0x40d178
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040692c
mov byte [ebp - 4], 4
mov eax, dword [eax]
test eax, eax
je 0x40d18f
mov eax, dword [eax]
jmp 0x40d191
mov eax, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.0040531c
lea ecx, [ebp - 0x2c]
call fcn.004025ca
lea ecx, [ebp - 0x44]
call fcn.004022c0
test esi, esi
js 0x40d1e8
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40d1e3
mov dword [edi + 4], ebx
mov byte [ebp - 4], 7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
sete bl
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x40d1fc
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
call fcn.0041c420
ret
Function at 0x41096f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4526db
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.0041cd50
mov eax, dword [0x471080]
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.004105c8
mov ebx, 0x800
mov esi, eax
push ebx
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0041d9c0
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.0041d9c0
add esp, 0x18
lea ecx, [ebp - 0x1040]
mov edx, str.3eoB
call fcn.0040c497
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
mov edx, eax
call fcn.0040a167
lea ecx, [ebp - 0x1040]
call fcn.004022c0
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.004108cf
pop ecx
lea ecx, [ebp - 0x1028]
call fcn.004025ca
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.0041bb35
leave
ret
Function at 0x414129
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 0x4141ed
mov ecx, dword [ecx]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0041d440
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 0x414190
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 0x4141c0
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 0x4142bc
mov ebx, dword [esi + 0x74]
mov edx, dword [esi + 0x6c]
add ebx, edx
add ebx, dword [ecx]
cmp eax, edi
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
cmovbe edi, eax
test edi, edi
jne 0x41421a
xor edi, edi
jmp 0x414279
sub eax, edi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41423b
mov edx, dword [ebx]
mov ecx, dword [ebx + 0x30]
push edi
call fcn.00414b6c
pop ecx
mov ecx, dword [ebp - 8]
jmp 0x41425a
mov dword [ebp - 4], ecx
cmp eax, 2
jne 0x414260
mov edx, dword [ebx]
test edx, edx
jne 0x41424d
xor eax, eax
jmp 0x414257
mov ecx, dword [ebx + 0x30]
push edi
call fcn.00411bf6
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.0041d440
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 0x4142a2
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 0x4142bc
mov eax, dword [esi]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x414140
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417c7e
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.00408624
push 0x14
pop esi
cmp eax, esi
jb 0x417cec
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.00428e2e
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.004283f4
add esp, 0x1c
pop ebx
test eax, eax
je 0x417cec
cmp dword [ebp - 0x14], edi
jne 0x417cec
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x417ce8
push 5
pop ecx
lea esi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov al, 1
jmp 0x417cee
xor al, al
pop edi
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x471080]
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 - 0x1c], edi
test esi, esi
je 0x4181ce
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x418184
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
cmp eax, 0x3fffffff
jg 0x4181ce
add eax, eax
call fcn.0041c3e0
mov edi, esp
test edi, edi
je 0x4181cb
mov ecx, dword [ebp - 0x18]
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 - 0x1c]
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 0x41820d
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x418234
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.0041bb35
leave
ret 8
xor eax, eax
jmp 0x418220
Function at 0x418238
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x471080]
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 0x41829b
xor eax, eax
jmp 0x4182a6
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.0041bb35
leave
ret 8
Function at 0x41caeb
Capabilities:
Parse pe header

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

Function at 0x4280ff
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x428142
call fcn.00427b72
mov dword [eax], 0xf
call fcn.00427b85
mov dword [eax], 0xd
call fcn.00420e2f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bb35
leave
ret
test eax, eax
jne 0x428149
inc eax
jmp 0x428136
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x428134
xor eax, eax
cmp ecx, 1
setne al
jmp 0x428136

Function at 0x4294e6
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x457410
push esi
call fcn.0042a32a
pop ecx
pop ecx
test eax, eax
jne 0x429514
xor al, al
jmp 0x429591
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.00429227
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x42954e
push dword [ebp - 0x210]
call fcn.004224ce
xor al, al
jmp 0x42958f
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x429554
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x429574
push edx
call fcn.0042941d
pop ecx
test al, al
je 0x42953f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x429582
mov bl, 1
push dword [ebp - 0x210]
call fcn.004224ce
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041bb35
leave
ret
Function at 0x430c10
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4594d0
push 0x4594c8
push str.FlsAlloc
push 0x1f
call fcn.00430a3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430c44
push dword [ebp + 8]
mov ecx, esi
call dword [0x455440]
call esi
jmp 0x430c4a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x430c8e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4594e0
push 0x4594d8
push str.FlsGetValue
push 0x21
call fcn.00430a3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430cc5
push dword [ebp + 8]
mov ecx, esi
call dword [0x455440]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x430ccd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4594e8
push 0x4594e0
push str.FlsSetValue
push 0x22
call fcn.00430a3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x430d07
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x455440]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4328ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x476bd8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43293f
cmp byte [ebx], 0xa
jne 0x43293f
or byte [edi + eax + 0x28], 4
jmp 0x432944
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x432a43
mov dl, byte [eax]
cmp dl, 0x1a
je 0x432a26
inc eax
cmp dl, 0xd
je 0x432970
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x432996
cmp eax, ecx
jae 0x4329a4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x432958
jmp 0x432a43
push 0
lea eax, [ebp - 0x10]
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 0x432a21
cmp dword [ebp - 0x10], 0
je 0x432a21
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x476bd8]
test byte [eax + edi + 0x28], 0x48
je 0x4329fb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4329e6
mov byte [esi], dl
jmp 0x4329f7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x476bd8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x432a43
cmp byte [ebp - 1], 0xa
jne 0x432a0a
cmp esi, ebx
jne 0x432a0a
mov byte [esi], 0xa
jmp 0x432a42
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00433bee
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x432a43
mov byte [esi], 0xd
jmp 0x432a42
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x476bd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x432a40
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x432a43
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret