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

Disassembly:
push 0x84c
mov eax, 0x497803
call fcn.004273b7
mov esi, ecx
push 0x800
xor edi, edi
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00440a80
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.00402844
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], edi
mov word [ebp - 0x828], ax
mov byte [ebp - 4], 1
push edi
lea ecx, [ebp - 0x828]
call fcn.00402478
push 0xa
lea edx, [ebp - 0x828]
pop ecx
call fcn.0040adb6
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00408907
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40c9f3
mov eax, dword [eax]
push edi
push eax
call fcn.0044c560
pop ecx
pop ecx
mov ebx, eax
lea ecx, [ebp - 0x858]
push edi
neg ebx
push 1
sbb bl, bl
call fcn.00401636
add bl, 1
jne 0x40c9b8
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00408907
pop ecx
push eax
mov ecx, esi
call fcn.0040195f
push edi
push 1
lea ecx, [ebp - 0x858]
call fcn.00401636
cmp dword [esi + 0x14], 8
jb 0x40ca4c
mov esi, dword [esi]
push edi
push 1
lea ecx, [ebp - 0x828]
call fcn.00401636
push edi
push 1
lea ecx, [ebp - 0x840]
call fcn.00401636
mov eax, esi
call fcn.00427361
ret
Function at 0x40ca70
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x840
mov eax, 0x497863
call fcn.004273b7
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x844], ebx
call fcn.00402478
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.0040cf07
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.0040ac87
cmp dword [eax + 0x14], 8
jb 0x40cab7
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]
push ebx
push 1
lea ecx, [ebp - 0x828]
call fcn.00401636
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
push ebx
push 1
call fcn.00405b74
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00440a80
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x40cbcf
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x84c]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cbc3
lea eax, [ebp - 0x810]
push eax
call fcn.0040281d
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.004027a4
mov esi, dword [0x4f4074]
push esi
call fcn.0040281d
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.004082e9
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cbc3
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40cbc3
push dword [0x4f4074]
call fcn.0044e2cb
mov esi, eax
lea eax, [ebp - 0x810]
push eax
call fcn.0040281d
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00401ba6
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00427361
ret
Function at 0x40cc3d
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x86c
mov eax, 0x4978ea
call fcn.004273b7
mov esi, ecx
mov dword [ebp - 0x874], esi
xor ebx, ebx
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
mov dword [ebp - 0x878], ebx
call fcn.00440a80
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.00402844
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x840]
cmp dword [ebp - 0x82c], 8
mov eax, dword [ebp - 0x830]
cmovae ecx, dword [ebp - 0x840]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40ccd3
mov edi, 0x4b5250
push edi
call fcn.0040281d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x840]
call fcn.00402274
xor edi, edi
inc edi
xor eax, eax
mov dword [ebp - 0x844], 7
mov dword [ebp - 0x848], ebx
mov word [ebp - 0x858], ax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
push 8
lea edx, [ebp - 0x858]
mov byte [ebp - 4], 2
pop ecx
call fcn.0040adb6
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x870]
call fcn.00408907
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.0040195f
push ebx
push edi
lea ecx, [ebp - 0x870]
call fcn.00401636
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
push ebx
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0044c560
pop ecx
pop ecx
test eax, eax
jne 0x40cd84
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401636
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401636
jmp 0x40ccd6
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0044e331
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.0040224f
push ebx
push edi
lea ecx, [ebp - 0x828]
call fcn.00401636
push ebx
push edi
lea ecx, [ebp - 0x858]
call fcn.00401636
push ebx
push edi
lea ecx, [ebp - 0x840]
call fcn.00401636
mov eax, esi
call fcn.00427361
ret
Function at 0x40d989
Capabilities:
Write file on windows

Disassembly:
push 0x450
mov eax, 0x497b14
call fcn.004273b7
mov ebx, ecx
mov esi, dword [ebp + 8]
xor eax, eax
and dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x440]
call fcn.0040c94c
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push 0x4b5268
cmovae eax, dword [ebp - 0x440]
push eax
call fcn.0044ce16
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40da47
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00440a80
add esp, 0xc
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x410]
push 0x4b55f4
push eax
call fcn.004074c4
add esp, 0xc
lea eax, [ebp - 0x410]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x45c]
push 0x4c4fd0
push eax
call fcn.004414d6
and dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x40da6e
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x428]
call fcn.004074f2
test eax, eax
je 0x40db3a
xor eax, eax
cmp dword [ebx + 0x2c], eax
je 0x40db14
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], eax
mov byte [ebp - 0x458], al
mov byte [ebp - 4], 2
lea edx, [ebp - 0x428]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebx + 0x1c]
cmovae edx, dword [ebp - 0x428]
cmp dword [ecx + 0x14], 0x10
jb 0x40dac7
mov ecx, dword [ecx]
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x418]
call fcn.0040d2d3
cmp dword [ebp - 0x444], 0x10
lea eax, [ebp - 0x458]
push edi
cmovae eax, dword [ebp - 0x458]
push 1
push dword [ebp - 0x448]
push eax
call fcn.0044ca70
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
push 0
push 1
call fcn.00405dd7
jmp 0x40db3a
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
push edi
cmovae eax, dword [ebp - 0x428]
push 1
push dword [ebp - 0x418]
push eax
call fcn.0044ca70
add esp, 0x10
push edi
call fcn.0044c6d6
pop ecx
lea ecx, [ebx + 4]
lea eax, [ebp - 0x440]
cmp ecx, eax
je 0x40db58
push 0xffffffffffffffff
push 0
push eax
call fcn.0040255c
push 0
push 1
lea ecx, [ebp - 0x428]
call fcn.00405dd7
push 0
push 1
lea ecx, [ebp - 0x440]
call fcn.00401636
call fcn.00427361
ret 4
Function at 0x40dc09
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x40dc1b
mov eax, dword [eax]
push 0x4b529c
push eax
call fcn.0044ce16
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x40dc9b
push ebx
push edi
mov ecx, eax
call fcn.0040c83a
mov ebx, eax
push ebx
call fcn.00426b37
push ebx
mov edi, eax
push 0
push edi
call fcn.00440a80
push dword [ebp - 4]
push 1
push ebx
push edi
call fcn.0044d388
push dword [ebp - 4]
call fcn.0044c6d6
add esp, 0x24
cmp dword [esi + 0x2c], 0
je 0x40dc83
lea ecx, [esi + 0x1c]
cmp dword [ecx + 0x14], 0x10
jb 0x40dc73
mov ecx, dword [ecx]
mov esi, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.0040d2d3
pop ecx
pop ecx
jmp 0x40dc8f
mov esi, dword [ebp + 8]
mov ecx, esi
push ebx
push edi
call fcn.004071cb
push edi
call fcn.00426b32
mov eax, dword [esi + 0x10]
pop ecx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x410161
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00427b00
mov eax, dword [0x4c8094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040ffba
push 0x800
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.00440a80
push 0x800
lea eax, [ebp - 0x804]
mov dword [ebp - 0x1008], ebx
push ebx
push eax
mov dword [ebp - 0x1010], ebx
mov dword [ebp - 0x100c], ebx
call fcn.00440a80
add esp, 0x18
lea eax, [ebp - 0x804]
mov ecx, 0x400
push ecx
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1008]
push eax
push ecx
lea eax, [ebp - 0x1004]
push eax
push 0x4b57f4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1008]
mov edx, esi
push edi
call fcn.004100b4
pop ecx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426855
mov esp, ebp
pop ebp
ret

Function at 0x410216
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00427b00
mov eax, dword [0x4c8094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0040ffba
mov edi, 0x800
mov esi, eax
push edi
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00440a80
xor eax, eax
push edi
push eax
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x810]
push eax
call fcn.00440a80
add esp, 0x18
lea eax, [ebp - 0x810]
mov ecx, 0x400
push ecx
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1014]
push eax
push ecx
lea eax, [ebp - 0x1010]
push eax
push 0x4b57f4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x1014]
lea edi, [ebp - 0xf]
xor eax, eax
mov byte [ebp - 0x10], 0
stosd dword es:[edi], eax
mov edx, esi
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push eax
call fcn.004100b4
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040d624
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426855
mov esp, ebp
pop ebp
ret
Function at 0x411de8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4c8094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov ebx, ecx
push edi
push eax
call fcn.00440a80
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x44b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], eax
xor eax, eax
push 7
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
lea edi, [ebp - 0x234]
pop ecx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x238], 5
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebx + 0x3c]
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [ebx + 0xb0]
cmp eax, dword [ebx + 0xb4]
je 0x411ec6
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426855
mov esp, ebp
pop ebp
ret 4

Function at 0x415a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498857
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c8094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 1
mov dword [ebp - 0x14], esi
call fcn.00463e70
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 2
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 9
call fcn.00466a10
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 0xa
call fcn.00466a10
mov byte [esi + 0x5c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419820
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498e6e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4c8094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi + 0xc], 0
call fcn.00466a10
mov dword [ebp - 4], 0
mov eax, dword [edi + 8]
mov dword [edi], vtable.CryptoPP::DL_GroupParametersImpl_class_CryptoPP::ModExpPrecomputation__class_CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer___class_CryptoPP::DL_GroupParameters_IntegerBased_.0
mov dword [edi + 4], vtable.CryptoPP::DL_GroupParametersImpl_class_CryptoPP::ModExpPrecomputation__class_CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer___class_CryptoPP::DL_GroupParameters_IntegerBased_.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 8], vtable.CryptoPP::DL_GroupParametersImpl_class_CryptoPP::ModExpPrecomputation__class_CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer___class_CryptoPP::DL_GroupParameters_IntegerBased_.2.0
mov eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], 0
mov dword [edi + 0x24], vtable.CryptoPP::ModExpPrecomputation.0
mov dword [edi + 0x28], 0
lea esi, [edi + 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CryptoPP::DL_FixedBasePrecomputationImpl_class_CryptoPP::Integer_.0
call fcn.00466a10
mov byte [ebp - 4], 2
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], 0
call fcn.00466a10
mov dword [esi + 0x30], 0
mov eax, edi
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41f1eb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, ebx
sub edx, dword [edi + 0x6c]
mov dword [ebp - 0xc], edx
cmp dword [edi + 0x6c], eax
jb 0x41f28a
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0043ecd0
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 - 8], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x41f23f
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x41f266
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
add edx, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x41f345
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x41f2b7
xor eax, eax
jmp 0x41f308
sub eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x41f2d4
mov edx, dword [esi]
push ecx
mov ecx, dword [esi + 0x30]
call fcn.0041fb92
jmp 0x41f2ec
cmp eax, 2
jne 0x41f2f0
mov edx, dword [esi]
test edx, edx
jne 0x41f2e3
xor eax, eax
jmp 0x41f2ed
push ecx
mov ecx, dword [esi + 0x30]
call fcn.0041cd9d
pop ecx
mov dword [esi + 0x30], eax
push dword [ebp - 8]
push dword [esi]
push dword [ebp - 0xc]
call fcn.0043ecd0
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [esi], eax
add dword [esi + 8], eax
add dword [edi + 0x74], eax
cmp dword [edi + 0x74], 3
jb 0x41f330
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
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 dword [edi + 0x74], 0x106
jae 0x41f345
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x41f1fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422b45
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x49946b
call fcn.004273b7
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
je 0x422b61
cmp word [eax], si
jne 0x422b6c
lea eax, [ebx + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x422b6c
mov eax, dword [eax]
push 0x4b5268
push eax
call fcn.0044ce16
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x422ba6
call fcn.0044f3fd
cmp dword [eax], esi
je 0x422ba0
call fcn.0044f3fd
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
push 0x4c4dbc
lea eax, [ebp - 0x44]
push eax
call fcn.004414d6
or dword [ebp - 0x44], 0xffffffff
jmp 0x422b92
mov esi, dword [ebx + 0x4c]
xor eax, eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
mov dword [ebp - 4], eax
cmp esi, dword [ebx + 0x50]
je 0x422be3
mov ecx, dword [esi]
cmp dword [ebx + 0x44], eax
jne 0x422bcf
push edi
call fcn.00421fa1
jmp 0x422bd8
lea eax, [ebp - 0x40]
push eax
call fcn.00421fe7
add esi, 4
push 0
pop eax
cmp esi, dword [ebx + 0x50]
jne 0x422bc0
cmp dword [ebx + 0x44], eax
je 0x422c3f
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00407ace
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00422e40
test eax, eax
je 0x422c30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
push eax
call fcn.0044ca70
add esp, 0x10
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 1
call fcn.00405dd7
jmp 0x422c41
xor esi, esi
push edi
call fcn.0044c6d6
pop ecx
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.00405b74
call fcn.00427361
ret 4
Function at 0x42369e
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c8094]
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 0x423710
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4236c4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
cmp eax, 0x3fffffff
jg 0x423710
add eax, eax
call fcn.00427320
mov esi, esp
test esi, esi
je 0x42370d
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]
mov ebx, eax
neg ebx
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 0x423750
push ebx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x423779
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.00426855
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0x423763

Function at 0x42377d
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4c8094]
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 0x4237e0
xor eax, eax
jmp 0x4237eb
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.00426855
mov esp, ebp
pop ebp
ret 8
Function at 0x423a90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x49951d
call fcn.004273ee
mov ebx, edx
push 0x801
call fcn.00426b37
xor edi, edi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [esp], 0x801
push edi
push esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0x800
call fcn.00440a80
add esp, 0xc
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], edi
je 0x423b22
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x18], 1
jne 0x423b19
push esi
call fcn.00405b11
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.00405a98
inc edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x423b2d
push esi
call fcn.00426b32
pop ecx
mov eax, edi
call fcn.0042734c
ret

Function at 0x428535
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x44d59d
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044d438

Function at 0x4575c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00457445

Function at 0x45d6b1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045d01f

Function at 0x45d6bc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045d25a

Function at 0x465700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a7d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4c8094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x24]
mov esi, eax
mov dword [ebp - 0x10], esi
push dword [ebp + 0x14]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call dword [eax + 0x28]
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x30]
call eax
mov edx, dword [esi]
mov ecx, esi
push 1
mov bl, al
call dword [edx]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10