joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50b2a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526637
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040ac70
mov dword [ebp - 4], 0
mov ecx, dword [0x53b7dc]
push ecx
push 0x54337c
lea ecx, [ebp - 0x48]
call fcn.00426430
mov dword [ebp - 0x54], eax
push 0x543484
lea ecx, [ebp - 0x4c]
call fcn.00422890
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], 0xffffffff
mov edx, dword [ebp - 0x54]
cmp edx, dword [0x53b7dc]
je 0x50b3d3
mov eax, dword [ebp - 0x54]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00422250
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x68]
call fcn.0040acf0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00424750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402c30
lea ecx, [ebp - 0x4c]
call fcn.0043e060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50b3b7
push 0x543594
lea ecx, [ebp - 0x58]
call fcn.00426460
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.004264e0
add esp, 0xc
mov dword [ebp - 0x6c], eax
push 0
mov ecx, dword [ebp - 0x6c]
call fcn.0043e060
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x5c]
call fcn.00422910
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00422910
push 0
push 0x80
push 2
push 0
push 5
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00422910
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00402c30
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret
Function at 0x50bf30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 2
mov word [ebp - 0x14], ax
xor ecx, ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
mov word [ebp - 6], cx
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.00491e40
add esp, 0xc
mov eax, 2
mov word [ebp - 0x14], ax
movzx ecx, word [ebp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov ecx, dword [ebp + 0xc]
call fcn.00402cb0
movzx edx, al
test edx, edx
je 0x50bf98
mov dword [ebp - 0x1c], 0
jmp 0x50bfaa
mov ecx, dword [ebp + 0xc]
call fcn.00402b10
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x50bfdb
mov ecx, dword [ebp + 0xc]
call fcn.00402b10
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x50bfdb
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 8]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret
Function at 0x50c010
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4074
call fcn.004a5c90
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp + 0xc]
call fcn.00402cb0
movzx eax, al
test eax, eax
je 0x50c057
mov dword [ebp - 0x4074], 0xffffffff
jmp 0x50c080
push 0
push 0x80
push 2
lea ecx, [ebp - 0x20]
push ecx
push 1
push 0xc0000000
mov ecx, dword [ebp + 0xc]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4074], eax
mov edx, dword [ebp - 0x4074]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0xc]
call fcn.00402cb0
movzx eax, al
test eax, eax
jne 0x50c0a5
cmp dword [ebp - 0x14], 0xffffffff
jne 0x50c0a5
xor al, al
jmp 0x50c178
mov ecx, dword [ebp + 8]
call fcn.0040acf0
push eax
push 0x2000
lea ecx, [ebp - 0x4070]
push ecx
call fcn.004941b2
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x68], 0x44
push 0x40
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.00491e40
add esp, 0xc
mov ecx, dword [ebp + 0xc]
call fcn.00402cb0
movzx eax, al
test eax, eax
jne 0x50c116
mov ecx, dword [ebp - 0x3c]
or ecx, 0x100
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x68]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea edx, [ebp - 0x4070]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x10], 0
je 0x50c14f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x50c15f
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0xffffffff
je 0x50c16f
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x6c], 0
setne al
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret
Function at 0x50c520
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527f4a
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x130]
push eax
call fcn.0051fed0
add esp, 4
mov dword [ebp - 4], 1
push str.FunShion.ini
lea ecx, [ebp - 0x130]
call fcn.00422200
push str.MacGuid
lea ecx, [ebp - 0x48]
call fcn.0040ac70
mov byte [ebp - 4], 2
push str.GUID
lea ecx, [ebp - 0x2c]
call fcn.0040ac70
mov byte [ebp - 4], 3
xor ecx, ecx
mov word [ebp - 0x114], cx
push 0xc6
push 0
lea edx, [ebp - 0x112]
push edx
call fcn.00491e40
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.0040acf0
push eax
push 0x64
lea eax, [ebp - 0x114]
push eax
push 0x544418
lea ecx, [ebp - 0x2c]
call fcn.0040acf0
push eax
lea ecx, [ebp - 0x48]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x114]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040ac70
mov edx, dword [ebp - 0x134]
or edx, 1
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00402c30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00402c30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret
Function at 0x50d8a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x50d8bf
or eax, 0xffffffff
jmp 0x50d8cc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x50f820
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x544728
push str.FspService
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x50f862
or eax, 0xffffffff
jmp 0x50f895
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [ebp - 4]
push edx
push 0
push 0x401
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x512810
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x54], 0
push 0x3f
push 0
lea eax, [ebp - 0x53]
push eax
call fcn.00491e40
add esp, 0xc
lea ecx, [ebp + 8]
call fcn.00402b10
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x5128c8
mov ecx, dword [ebp - 0x58]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
push 0x40
lea eax, [ebp - 0x54]
push eax
call fcn.00491940
add esp, 0x10
mov ecx, dword [ebp - 0x58]
movsx edx, word [ecx + 0xa]
cmp edx, 0x3f
jae 0x5128b3
mov eax, dword [ebp - 0x58]
movsx ecx, word [eax + 0xa]
mov dword [ebp - 0x64], ecx
jmp 0x5128ba
mov dword [ebp - 0x64], 0x3f
mov edx, dword [ebp - 0x64]
mov byte [ebp + edx - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x51c560
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526e06
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp dword [0x56a1bc], 0
je 0x51c5b5
mov ecx, dword [0x56a1bc]
mov dword [ebp - 0xe8], ecx
jmp 0x51c5bf
mov dword [ebp - 0xe8], 0x14
mov ecx, dword [ebp - 0xe8]
shl ecx, 8
shl ecx, 0xa
mov eax, dword [ebp - 0xd4]
xor edx, edx
div ecx
xor edx, edx
div dword [ebp + 8]
mov dword [ebp - 0xc0], eax
push 0x14
call dword [sym.imp.Dump.dll_if_dump]
add esp, 4
test eax, eax
je 0x51c659
push str.DynamicGetThreshold_num_allow_1_num_now_2_
lea ecx, [ebp - 0xbc]
call fcn.0040e500
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xe4]
add eax, 0x10
push eax
lea ecx, [ebp - 0xc0]
push ecx
mov ecx, dword [ebp - 0xf0]
call fcn.0040e7c0
mov ecx, eax
call fcn.0040e800
push eax
push 0x14
call dword [sym.imp.Dump.dll_dump]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.0040c9f0
xor edx, edx
jne 0x51c5e0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret 4

Function at 0x51efb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523d97
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5644a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x51f00f
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c30
mov eax, dword [ebp - 0x18]
jmp 0x51f04b
mov eax, dword [ebp - 0x14]
and eax, 0x10
jne 0x51f032
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c30
mov eax, dword [ebp - 0x1c]
jmp 0x51f04b
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c30
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x51f060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523dba
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5644a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x51f0bf
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c30
mov eax, dword [ebp - 0x18]
jmp 0x51f0fb
mov eax, dword [ebp - 0x14]
and eax, 0x10
je 0x51f0e2
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c30
mov eax, dword [ebp - 0x1c]
jmp 0x51f0fb
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402c30
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x51ff30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5265ef
mov eax, dword fs:[0]
push eax
mov eax, 0x4038
call fcn.004a5c90
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4044], 0
push 0x4000
call fcn.0048e173
add esp, 4
mov dword [ebp - 0x4040], eax
mov eax, dword [ebp - 0x4040]
push eax
lea ecx, [ebp - 0x10]
call fcn.00432ff0
mov dword [ebp - 4], 0
push 0x2000
lea ecx, [ebp - 0x10]
call fcn.0043e060
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x520054
lea eax, [ebp - 0x38]
push eax
call fcn.0051fdf0
add esp, 4
lea ecx, [ebp - 0x38]
call fcn.0040acf0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
push 0x18
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043e060
push eax
call dword [sym.imp.SHELL32.dll_PathResolve]
lea ecx, [ebp - 0x10]
call fcn.0043e060
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x52004c
lea ecx, [ebp - 0x38]
call fcn.0040acf0
push eax
push 0x2000
lea edx, [ebp - 0x403c]
push edx
call fcn.004941b2
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0043e060
push eax
lea eax, [ebp - 0x403c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x403c]
push ecx
push 0x2000
lea ecx, [ebp - 0x10]
call fcn.0043e060
push eax
call fcn.004941b2
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.00402c30
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x52006b
lea ecx, [ebp - 0x10]
call fcn.0043e060
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea ecx, [ebp - 0x10]
call fcn.0043e060
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ac70
mov eax, dword [ebp - 0x4044]
or eax, 1
mov dword [ebp - 0x4044], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00466480
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret
Function at 0x4099d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x467fdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045cade
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409a52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a85d
mov eax, dword [eax]
push 0x8b51c0
push eax
call fcn.0044d6c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045cd69
test bl, bl
je 0x409a52
push 0x8b51c0
lea ecx, [esp + 0xc]
call fcn.0045d0f9
push 0x8b8d48
lea ecx, [esp + 0xc]
call fcn.0045d0f9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409a8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045cd69
jmp 0x409b59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409b12
lea edx, [esp + 0x7c]
push 0x8b8d44
push edx
call fcn.0044d6c4
add esp, 8
test eax, eax
je 0x409b12
lea eax, [esp + 0x7c]
push 0x8b8d40
push eax
call fcn.0044d6c4
add esp, 8
test eax, eax
je 0x409b12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409aa2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045cd69
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a350
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a3b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40a3c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46805b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8bf218]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40a4f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a426
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045cd69
xor eax, eax
jmp 0x40a56f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045cea6
push esi
lea ecx, [esp + 0xc]
call fcn.0045d135
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a54d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040a350
test eax, eax
jne 0x40a54d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040a350
test eax, eax
jne 0x40a54d
lea eax, [esp + 0x14]
push 0x8b8d5c
push eax
call fcn.0044e700
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a52c
lea ecx, [esp + 0x14]
push 0x8b8d58
push ecx
call fcn.0044e680
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a52c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a52f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045ce56
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a43e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045cd69
xor eax, eax
jmp 0x40a56f
mov byte [esi], 0
push 0x8b8d54
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045cd69
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41b0c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41b12e
cmp si, 0x69
ja 0x41b12e
add esi, 0xffd0
cmp si, 0x11
je 0x41b0fe
push 0x11
call edi
test ax, ax
jge 0x41b0fe
or esi, 0x2000
cmp si, 0x10
je 0x41b113
push 0x10
call edi
test ax, ax
jge 0x41b113
or esi, 0x4000
cmp si, 0x12
je 0x41b128
push 0x12
call edi
test ax, ax
jge 0x41b128
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41b13b
mov esi, 0xbd
jmp 0x41b0ef
cmp si, 0x6e
jne 0x41b148
mov esi, 0xbe
jmp 0x41b0ef
cmp si, 0x6f
jne 0x41b0e9
mov esi, 0xbf
jmp 0x41b0ef

Function at 0x41c7e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8cf868]
xor edx, edx
cmp eax, edx
jne 0x41c806
xor eax, eax
mov byte [eax + 0x8cf768], al
inc eax
cmp eax, 0x100
jl 0x41c7ee
mov dword [0x8cf868], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8cf768
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c897
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41c86a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41c838
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41c963
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41c94a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret