joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100030f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe0
mov ecx, dword [esp + 0xe4]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x3c]
push edi
add eax, ecx
mov ebp, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + ebp + 0x24]
mov edi, dword [ecx + ebp + 0x1c]
mov edx, dword [ecx + ebp + 0x20]
mov ebx, dword [ecx + ebp + 0x18]
mov esi, dword [ecx + ebp + 0x10]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xf8]
add edi, ecx
add edx, ecx
test eax, 0xffff0000
mov dword [esp + 0x20], edi
jne 0x10003162
cmp eax, esi
jb 0x100031c3
mov edx, dword [ecx + ebp + 0x14]
lea edx, [edx + esi - 1]
cmp eax, edx
ja 0x100031c3
sub eax, esi
mov eax, dword [edi + eax*4]
pop edi
pop esi
pop ebp
add eax, ecx
pop ebx
add esp, 0xe0
ret
test ebx, ebx
mov dword [esp + 0x18], 0
jle 0x100031c3
mov dword [esp + 0x1c], edx
mov esi, dword [edx]
mov edi, eax
add esi, ecx
mov bl, byte [esi]
mov dl, bl
cmp bl, byte [edi]
jne 0x1000319c
test dl, dl
je 0x10003198
mov bl, byte [esi + 1]
mov dl, bl
cmp bl, byte [edi + 1]
jne 0x1000319c
add esi, 2
add edi, 2
test dl, dl
jne 0x10003178
xor edx, edx
jmp 0x100031a1
sbb edx, edx
sbb edx, 0xffffffff
xor ebx, ebx
cmp edx, ebx
je 0x100031d0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [ecx + ebp + 0x18]
inc esi
add edx, 4
cmp esi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
jl 0x10003172
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe0
ret
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
xor eax, eax
mov ax, word [edx + esi*2]
mov edx, dword [esp + 0x20]
mov esi, dword [edx + eax*4]
lea eax, [ecx + ebp]
add esi, ecx
cmp esi, eax
jb 0x100032a4
mov edx, dword [esp + 0x10]
add edx, ebp
add edx, ecx
cmp esi, edx
ja 0x100032a4
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x28]
push esi
push eax
call edi
lea ecx, [esp + 0x28]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebx
jne 0x1000325f
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
mov byte [eax], bl
inc eax
lea edx, [esp + 0x8c]
push eax
push edx
call edi
mov al, 0x6c
lea ecx, [esp + 0x28]
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 0x2e
push eax
push ecx
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
jne 0x100032b1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.100030f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
Function at 0x100032d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x40
mov esi, dword [ebp + 0x3c]
push 0x3000
add esi, ebp
mov eax, dword [esi + 0x50]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100032fb
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esi + 0x54]
mov edx, dword [ebp + 0x3c]
add ecx, edx
mov esi, ebp
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x3c]
add esi, ebx
push esi
push ebp
push ebx
call fcn.100033b0
mov ecx, dword [esi + 0x34]
mov eax, ebx
add esp, 0xc
sub eax, ecx
je 0x10003339
push eax
push esi
push ebx
call fcn.10003410
add esp, 0xc
push esi
push ebx
call fcn.10003490
add esp, 8
test eax, eax
je 0x10003390
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
push ebx
call fcn.10003600
add esp, 0x10
test eax, eax
je 0x10003390
mov edi, dword [esi + 0x28]
push esi
push ebx
call fcn.10003660
push esi
push ebx
call fcn.10003570
push esi
push ebx
call fcn.100038c0
add esp, 0x18
test edi, edi
je 0x100033a5
lea eax, [ebx + edi]
test eax, eax
je 0x10003390
push 1
push 1
push ebx
call eax
test eax, eax
jne 0x100033a5
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret

Function at 0x100033b0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor ebx, ebx
mov cx, word [eax + 0x14]
cmp word [eax + 6], bx
lea ecx, [ecx + eax + 0x18]
jbe 0x10003409
push ebp
push esi
push edi
lea edx, [ecx + 0x10]
mov eax, dword [edx - 4]
mov ebp, dword [esp + 0x14]
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov edi, dword [esp + 0x18]
add eax, ebp
mov ebp, ecx
add esi, edi
mov edi, eax
add edx, 0x28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [edx - 0x30], eax
xor eax, eax
mov ax, word [ecx + 6]
cmp ebx, eax
jl 0x100033cd
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10003570
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
xor eax, eax
push ebp
mov ax, word [ebx + 0x14]
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [eax + ebx + 0x18]
jbe 0x100035fc
push esi
push edi
lea esi, [eax + 0x24]
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
and ecx, 1
and edx, 1
lea ecx, [edx + ecx*2]
mov edx, eax
shr edx, 0x1f
test eax, 0x4000000
lea ecx, [edx + ecx*2]
mov edi, dword [ecx*4 + 0x10005010]
je 0x100035be
or edi, 0x200
mov edx, dword [esi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x100035d9
test al, 0x40
je 0x100035d0
mov ecx, dword [ebx + 0x20]
jmp 0x100035d7
test al, 0x80
je 0x100035ec
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x100035ec
mov ecx, dword [esi - 0x1c]
lea eax, [esp + 0x18]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor edx, edx
inc ebp
mov dx, word [ebx + 6]
add esi, 0x28
cmp ebp, edx
jl 0x1000358d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x100038e0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push edi
xor ebx, ebx
push eax
push ecx
mov byte [esp + 0x10], 0x72
mov byte [esp + 0x11], 0x62
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x1000397f
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebx
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
push ebx
push edi
mov ebp, eax
call esi
add esp, 0x1c
push 4
push 0x3000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x1000396d
push edi
push ebp
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push ebx
push ebx
push esi
mov word [esi], bx
call fcn.100032d0
add esp, 0x1c
mov ebx, eax
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
mov eax, ebx
pop edi
pop ebx
pop ecx
ret
Function at 0x402a6c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404034
test esi, esi
jne 0x402aa2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404124
jmp 0x402ac0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402980
mov edi, eax
test esi, esi
je 0x402ac0
cmp dword [ebx], 0
je 0x402ac0
dec esi
jmp 0x402aa9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403154
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031cc
xor eax, eax
push ebp
push 0x4031c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403208
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x460020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403eb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46204c], 0
je 0x403f19
cmp word [0x462220], 0xd7b2
jne 0x403ee1
cmp dword [0x462228], 0
jbe 0x403ee1
mov eax, 0x46221c
call dword [0x462238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46006c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460030], 0
jne 0x403f35
push 0
push 0x460064
push 0x46006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405548
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405778
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055cb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405778
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4055cb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405794
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405654
xor eax, eax
push ebp
push 0x40564d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405390
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405632
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4057b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405632
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405654
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40576e
cmp byte [ebp - 0xd], 0
jne 0x40569b
cmp byte [ebp - 0x12], 0
je 0x40576e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056b4
dec ebx
cmp byte [ebx], 0x2e
je 0x4056c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40576e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405700
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40576e
cmp byte [ebp - 0xd], 0
je 0x40576e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40576e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e5c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405ec2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d18
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405eac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ec9
lea eax, [ebp - 0x10]
call fcn.00404034
ret

Function at 0x40afec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b025
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404124
jmp 0x40b02e
mov eax, ebx
mov edx, esi
call fcn.00404088
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b038
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b059
mov al, byte [esp]
jmp 0x40b05b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b6e0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b558
mov eax, dword [0x4611cc]
cmp byte [eax], 0
je 0x40b75c
mov eax, dword [0x460fc8]
call fcn.00402b84
call fcn.004028ac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040882c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b7a4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b792
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x460f74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x462668]
call fcn.00405354
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c04c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c122
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040cc
lea eax, [ebp - 8]
call fcn.00404544
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c10c
mov eax, ebx
call fcn.00402744
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c105
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c0ef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c134
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c0ef
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c10c
mov eax, dword [ebp - 0x10]
call fcn.00402764
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c129
lea eax, [ebp - 8]
call fcn.00404034
ret

Function at 0x40c62c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c690
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004082c0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c697
lea eax, [ebp - 0xc]
call fcn.00404034
ret

Function at 0x41de1c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x462888
cmp dword [edi], 0
jne 0x41de98
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x462884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4603fc
mov ecx, 2
call fcn.00402940
mov edx, 0x41ddf4
lea eax, [esi + 5]
call fcn.0041de14
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041de14
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41de6d
mov dword [0x462884], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f4ac
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f4b2
ret
Function at 0x421948
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x421999
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421980
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421970
jmp 0x421999
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x421981
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c2d4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0042bf38
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004044f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42c332
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4610e8]
mov dl, 1
mov eax, dword [0x42be30]
call fcn.0040b8ac
call fcn.00403a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42c33c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004044f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42c394
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4612f0]
mov dl, 1
mov eax, dword [0x42be30]
call fcn.0040b8ac
call fcn.00403a70
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042bf68
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430f30
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x430e7c
call sub.user32.dll_EnumWindows
ret

Function at 0x431050
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4310cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00430ab0
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x431075
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004306b0
cmp dword [ebp - 4], 0
je 0x4310b7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004044f4
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4310d4
lea eax, [ebp - 4]
call fcn.00404034
ret
Function at 0x434098
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x462b58], 0
je 0x4341e7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x461164]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4341e7
mov eax, dword [0x462b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x462b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4341b6
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x462b58]
call fcn.0041737c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4341ae
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4341ae
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4341ae
mov eax, dword [ebp - 0x14]
call fcn.0043cd5c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4341ae
push ebp
call fcn.00434054
pop ecx
test al, al
jne 0x4341ae
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43416a
mov eax, dword [ebp - 0x14]
call fcn.0043b854
dec eax
jle 0x4341ae
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004034e0
cmp byte [ebp - 1], 0
je 0x4341ae
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4341ae
mov edx, dword [ebp - 0x14]
mov eax, dword [0x462b5c]
call fcn.00433820
inc edi
dec ebx
jne 0x4340fd
mov eax, dword [0x462b5c]
cmp dword [eax + 8], 0
jle 0x4341ce
mov eax, dword [0x462b5c]
call fcn.004338b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4341e7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00433ebc
pop ecx
test al, al
jne 0x4341e7
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret