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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push 0x41f370
push eax
call fcn.00401470
add esp, 8
test eax, eax
je 0x401a8f
xor eax, eax
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
mov dword [esp], ecx
push edi
lea ecx, [esp + 4]
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x401ab2
test al, 0x10
jne 0x401acc
lea ecx, [esp + 0x18]
call fcn.00415e00
dec eax
push eax
lea ecx, [esp + 0x1c]
call fcn.00401450
cmp ax, 0x3a
jne 0x401ad6
mov eax, 1
pop edi
add esp, 0x10
ret
push ebx
push esi
xor esi, esi
push esi
lea ecx, [esp + 0x24]
call fcn.00401450
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test ax, ax
je 0x401b85
push esi
lea ecx, [esp + 0x24]
call fcn.00401450
cmp ax, 0x5c
je 0x401b13
push esi
lea ecx, [esp + 0x24]
call fcn.00401450
cmp ax, 0x2f
jne 0x401b71
test esi, esi
je 0x401b71
lea edx, [esi - 1]
push edx
lea ecx, [esp + 0x24]
call fcn.00401450
cmp ax, 0x3a
je 0x401b71
mov eax, dword [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401690
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
call fcn.00401000
push eax
call edi
cmp eax, 0xffffffff
je 0x401b56
test al, 0x10
jne 0x401b68
push 0
lea ecx, [esp + 0x14]
call fcn.00401000
push eax
call ebx
test eax, eax
je 0x401b9a
lea ecx, [esp + 0x10]
call fcn.004010a0
inc esi
push esi
lea ecx, [esp + 0x24]
call fcn.00401450
test ax, ax
jne 0x401af3
push 0
lea ecx, [esp + 0x24]
call fcn.00401000
push eax
call ebx
pop esi
pop ebx
pop edi
add esp, 0x10
ret
lea ecx, [esp + 0x10]
call fcn.004010a0
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret
Function at 0x401bb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4192e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x423080]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x423080]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.004012e0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
xor esi, esi
cmp eax, esi
je 0x401c01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x401c42
lea ecx, [esp + 8]
mov dword [esp + 8], esi
call fcn.00401300
xor eax, eax
jmp 0x401cc2
cmp eax, esi
jne 0x401c53
lea ecx, [esp + 8]
call fcn.00401300
xor eax, eax
jmp 0x401cc2
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x10], esi
ja 0x401c76
jb 0x401c46
cmp dword [esp + 0xc], 0x14
jb 0x401c46
mov eax, dword [esp + 8]
cmp eax, esi
je 0x401c46
push esi
lea edx, [esp + 0x10]
push edx
push 0x10
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401c46
cmp dword [esp + 0xc], 0x10
jb 0x401c46
push 0x10
lea edx, [esp + 0x18]
push edx
push 0x41ff38
call fcn.004164c0
add esp, 0xc
lea ecx, [esp + 8]
mov esi, eax
call fcn.00401300
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040839e
add esp, 0x30
ret
Function at 0x401fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push str.FANCYRES
lea ecx, [esp + 0xc]
call fcn.00401000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401fff
pop esi
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40201a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40201f
pop ebx
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
push ebx
push eax
call fcn.00415520
pop ebx
mov eax, 1
pop esi
ret

Function at 0x402040
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov eax, ecx
and eax, 0x3ff
add eax, 0xfffffffc
cmp eax, 0xe
ja case.0x40205f.5
movzx edx, byte [eax + 0x4020a0]
jmp dword [edx*4 + 0x40208c]
mov eax, 1
ret
xor eax, eax
cmp ecx, 0x804
setne al
add eax, 2
ret
mov eax, 4
ret
mov eax, 5
ret
xor eax, eax
ret

Function at 0x402130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x423080]
xor eax, esp
mov dword [esp + 0x804], eax
xor eax, eax
push eax
push 0x1c
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00401040
mov ecx, dword [esp + 0x804]
xor ecx, esp
mov eax, esi
call fcn.0040839e
add esp, 0x808
ret
Function at 0x402190
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x85c
mov eax, dword [0x423080]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
mov ebx, dword [esp + 0x86c]
push ebp
push esi
xor eax, eax
push edi
push 0x40
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x30]
push eax
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0x44
call fcn.004091d0
add esp, 0xc
push 0
lea ecx, [esp + 0x874]
mov dword [esp + 0x54], 0x80
call fcn.00401000
push eax
lea ecx, [esp + 0x470]
push 0x400
push ecx
call fcn.00417f30
add esp, 0x10
push 0
lea ecx, [esp + 0x878]
call fcn.00401000
push eax
lea edx, [esp + 0x70]
push 0x400
push edx
call fcn.00417f30
movsx edx, byte [esp + 0x78]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
neg edx
lea ecx, [esp + 0x28]
push ecx
sbb edx, edx
lea eax, [esp + 0x70]
and edx, eax
push edx
push 0
push 0x400
push 0
push 0
push 0
lea ecx, [esp + 0x488]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x10], eax
test esi, esi
je 0x4022b5
mov eax, dword [esi]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x402287
cmp eax, 0xffffffff
je 0x402287
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push 0
push 0
push esi
mov dword [esi], 0
call ebp
push eax
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test edi, edi
je 0x4022c0
cmp edi, 0xffffffff
je 0x4022c0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x4022c6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x402302
mov eax, dword [ebx]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4022dc
cmp eax, 0xffffffff
je 0x4022dc
push eax
call edi
push 2
push 0
push 0
push ebx
mov dword [ebx], 0
call ebp
push eax
push esi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test esi, esi
je 0x402309
cmp esi, 0xffffffff
je 0x402309
push esi
jmp 0x402307
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x868]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040839e
add esp, 0x85c
ret
Function at 0x402340
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x419228
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x423080]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esi]
test eax, eax
je 0x402370
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
push 1
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esi], 0
call fcn.00414ff0
mov dword [esp + 0x28], 0
mov eax, dword [eax]
push eax
call fcn.00401a70
add esp, 0x10
lea ecx, [esp + 8]
call fcn.004010a0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
mov dword [esp + 4], edx
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4023d4
and eax, 0xfffffffe
push eax
lea ecx, [esp + 8]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea ecx, [esp + 0x3c]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x402403
mov dword [esi], 0
xor eax, eax
cmp dword [esi], eax
setne al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret 4

Function at 0x402420
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ecx
mov eax, dword [esi]
test eax, eax
je 0x40242e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
lea ecx, [esp]
mov dword [esi], 0
mov dword [esp], eax
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402463
and eax, 0xfffffffe
push eax
lea ecx, [esp + 4]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea ecx, [esp + 0x20]
call fcn.00401000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x402492
mov dword [esi], 0
xor eax, eax
cmp dword [esi], eax
setne al
pop ecx
ret 4

Function at 0x4024a0
Capabilities:
Clear file content

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, eax
mov edx, dword [edi]
xor eax, eax
test edx, edx
je 0x402535
push 1
lea esi, [esp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor ecx, ecx
push ecx
push eax
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x4024f4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push 0
push ecx
push edx
push eax
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
jne 0x4024fe
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret 8
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4024f4
mov edi, dword [edi]
test edi, edi
je 0x4024f4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push 0
push eax
push ecx
push edi
call esi
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
test eax, eax
je 0x4024f4
mov eax, 1
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x402570
Capabilities:
Write file on windows

Disassembly:
cmp dword [edi], 0
push ebx
mov ebx, dword [esp + 8]
jne 0x402580
xor eax, eax
pop ebx
ret 4
test esi, esi
jne 0x40258b
lea eax, [esi + 1]
pop ebx
ret 4
test ebx, ebx
jne 0x4025a6
push 0x1b2
push str.....SourcePlatformFile.cpp
push str.buffer____null
call fcn.00417dc0
add esp, 0xc
mov ecx, dword [edi]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40257a
cmp dword [esp + 8], esi
pop ebx
sbb eax, eax
inc eax
ret 4

Function at 0x4025d0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, eax
mov eax, dword [ebx]
test eax, eax
jne 0x4025e9
pop edi
pop ebx
add esp, 8
ret 4
push esi
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [esp + 0x10], 0
ja 0x402619
mov esi, dword [esp + 0xc]
cmp esi, 0x7fffffff
jbe 0x402624
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret 4
push esi
mov ecx, edi
call fcn.004153e0
mov ecx, edi
call fcn.004012c0
cmp dword [ebx], 0
mov edi, eax
je 0x402619
test esi, esi
jne 0x40264a
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
add esp, 8
ret 4
test edi, edi
jne 0x402665
push 0x18d
push str.....SourcePlatformFile.cpp
push str.buffer____null
call fcn.00417dc0
add esp, 0xc
mov eax, dword [ebx]
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push edi
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402619
cmp dword [esp + 0x18], esi
pop esi
sbb eax, eax
pop edi
inc eax
pop ebx
add esp, 8
ret 4

Function at 0x4027a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
push 0
lea ecx, [esp + 0x18]
call fcn.00401000
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc
Function at 0x417d30
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400c
call fcn.00412010
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x2000
lea edx, [ebp - 0x4008]
push edx
lea eax, [ebp - 0x400c]
push eax
call fcn.00414f70
add esp, 0x14
mov ecx, dword [0x4242b4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [0x4242b4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], 0
jne 0x417da0
lea edx, [ebp - 0x4008]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x4242b0], 0
je 0x417d9e
push 0x41f460
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x417db7
mov eax, dword [0x4242b0]
push eax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x4008]
push edx
call dword [ebp - 4]
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x419290
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48febb
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.004841cc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x419312
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00481a00
mov eax, dword [eax]
push 0x4c2218
push eax
call fcn.004730e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00484457
test bl, bl
je 0x419312
push 0x4c2218
lea ecx, [esp + 0xc]
call fcn.004847e7
push 0x4c5dcc
lea ecx, [esp + 0xc]
call fcn.004847e7
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 0x41934e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00484457
jmp 0x419419
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 0x4193d2
lea edx, [esp + 0x7c]
push 0x4c5dc8
push edx
call fcn.004730e4
add esp, 8
test eax, eax
je 0x4193d2
lea eax, [esp + 0x7c]
push 0x4c5dc4
push eax
call fcn.004730e4
add esp, 8
test eax, eax
je 0x4193d2
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 0x419362
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.00484457
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 0x41a670
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 0x41a6d2
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 0x41a6e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49001b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ce560]
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 0x41a818
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41a746
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484457
xor eax, eax
jmp 0x41a88f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00484594
push esi
lea ecx, [esp + 0xc]
call fcn.00484823
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 0x41a86d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0041a670
test eax, eax
jne 0x41a86d
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.0041a670
test eax, eax
jne 0x41a86d
lea eax, [esp + 0x14]
push 0x4c5de0
push eax
call fcn.00474120
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a84c
lea ecx, [esp + 0x14]
push 0x4c5ddc
push ecx
call fcn.004740a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a84c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41a84f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00484544
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41a75e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484457
xor eax, eax
jmp 0x41a88f
mov byte [esi], 0
push 0x4c5dd8
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.00484457
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 0x42ed60
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 0x42edce
cmp si, 0x69
ja 0x42edce
add esi, 0xffd0
cmp si, 0x11
je 0x42ed9e
push 0x11
call edi
test ax, ax
jge 0x42ed9e
or esi, 0x2000
cmp si, 0x10
je 0x42edb3
push 0x10
call edi
test ax, ax
jge 0x42edb3
or esi, 0x4000
cmp si, 0x12
je 0x42edc8
push 0x12
call edi
test ax, ax
jge 0x42edc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42eddb
mov esi, 0xbd
jmp 0x42ed8f
cmp si, 0x6e
jne 0x42ede8
mov esi, 0xbe
jmp 0x42ed8f
cmp si, 0x6f
jne 0x42ed89
mov esi, 0xbf
jmp 0x42ed8f

Function at 0x430df0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4dee38]
xor edx, edx
cmp eax, edx
jne 0x430e16
xor eax, eax
mov byte [eax + 0x4ded38], al
inc eax
cmp eax, 0x100
jl 0x430dfe
mov dword [0x4dee38], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ded38
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x430ea7
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 0x430e7a
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 0x430e48
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x430f20
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 0x430f73
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 0x430f5a
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
Function at 0x4379b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x437b48
cmp ebp, ebx
jle 0x437b48
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x437a0e
dec eax
or eax, 0xfffffff8
inc eax
je 0x437a15
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x437a24
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x437a2b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00484198
add esp, 4
cmp eax, ebx
je 0x437a4c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00484198
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x437b3e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x437b25
mov al, byte [edx]
cmp al, 0xc0
jbe 0x437b11
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x437b06
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x437b14
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x437b14
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x437ab0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x437aa1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret