joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d470
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x1001d48b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x50
jge 0x1001d4a1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4 + 0x1c], 0
jmp 0x1001d482
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0xc3d2e1f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001d9c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x1001d9db
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x50
jge 0x1001d9f9
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*8 + 0x50], 0
mov dword [edx + ecx*8 + 0x54], 0
jmp 0x1001d9d2
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xf3bcc908
mov dword [edx + 0x14], 0x6a09e667
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x84caa73b
mov dword [eax + 0x1c], 0xbb67ae85
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], 0xfe94f82b
mov dword [ecx + 0x24], 0x3c6ef372
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], 0x5f1d36f1
mov dword [edx + 0x2c], 0xa54ff53a
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0xade682d1
mov dword [eax + 0x34], 0x510e527f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0x2b3e6c1f
mov dword [ecx + 0x3c], 0x9b05688c
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0xfb41bd6b
mov dword [edx + 0x44], 0x1f83d9ab
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0x137e2179
mov dword [eax + 0x4c], 0x5be0cd19
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4034a8
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.00404c80
test esi, esi
jne 0x4034de
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.00404d70
jmp 0x4034fc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033ac
mov edi, eax
test esi, esi
je 0x4034fc
cmp dword [ebx], 0
je 0x4034fc
dec esi
jmp 0x4034e5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403530
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x466008], 0x8088405
inc edx
mov dword [ebx + 0x466008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x466024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403cc8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ca8
xor eax, eax
push ebp
push 0x403ca1
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 0x403ce4
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 0x403ca8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x466024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x466024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x404a8d
cmp word [0x46a220], 0xd7b2
jne 0x404a55
cmp dword [0x46a228], 0
jbe 0x404a55
mov eax, 0x46a21c
call dword [0x46a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404ab4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x466030], 0
jne 0x404aa9
push 0
push 0x46675c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c04
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x466034], 0
je 0x404c2a
mov edx, esi
mov eax, ebx
call dword [0x466034]
jmp 0x404c39
mov eax, 8
call fcn.0040304c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x46a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bcc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4063bc
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 0x4065ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40643f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40643f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406608
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4064c8
xor eax, eax
push ebp
push 0x4064c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004061f8
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 0x4064a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406628
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064a6
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 0x4064c8
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 0x4065e2
cmp byte [ebp - 0xd], 0
jne 0x40650f
cmp byte [ebp - 0x12], 0
je 0x4065e2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406528
dec ebx
cmp byte [ebx], 0x2e
je 0x406537
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406527
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4065e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406574
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 0x4065e2
cmp byte [ebp - 0xd], 0
je 0x4065e2
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 0x4065e2
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 0x40add8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40ae2a
test eax, edx
je 0x40ae2d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40aded
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40ae13
add ecx, 4
js 0x40ae03
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40ae10
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40ae39
test edx, edx
jne 0x40ade0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405110
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b686
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40b6a7
cmp ebx, 3
je 0x40b6a7
cmp ebx, 0x7b
je 0x40b6a7
mov eax, esi
call fcn.0040b628
test al, al
jne 0x40b6ab
xor eax, eax
jmp 0x40b6ad
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405110
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b6c9
test al, 0x10
jne 0x40b6cd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e1fc
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 0x40e235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d70
jmp 0x40e23e
mov eax, ebx
mov edx, esi
call fcn.00404cd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e248
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 0x40e26a
movzx eax, byte [esp]
jmp 0x40e26c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e8fc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e774
mov eax, dword [0x469894]
cmp byte [eax], 0
je 0x40e978
mov eax, dword [0x469710]
call fcn.00403604
call fcn.00403218
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.0040b964
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 0x40e9c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e9ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4696d4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c7f8]
call fcn.004061a0
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 0x41bca4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041b9e0
dec esi
jne 0x41bcc6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41f904
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405100
xor eax, eax
push ebp
push 0x41fa2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404c80
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405110
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41fa04
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004053a0
lea eax, [ebp - 8]
call fcn.00405170
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41fa3c
lea eax, [ebp - 8]
call fcn.00405170
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0xc], 0x34
jb 0x41fa04
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
call fcn.0040b0e8
push dword [ebp - 0x14]
push 0x41fa48
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 8]
call fcn.0040b0e8
push dword [ebp - 0x18]
push 0x41fa48
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
call fcn.0040b0e8
push dword [ebp - 0x1c]
push 0x41fa48
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xc]
call fcn.0040b0e8
push dword [ebp - 0x20]
mov eax, ebx
mov edx, 7
call fcn.00405014
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41fa33
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404ca4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ca4
ret
Function at 0x422388
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov byte [esp], dl
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x40
push 0x1000
push 0x400000
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_VirtualProtectEx
mov dword [esp + 4], 0x400500
mov ebx, dword [esi + 0xc]
mov edx, dword [esp + 4]
mov eax, ebx
call fcn.00420614
mov edx, 0x422550
mov eax, ebx
call fcn.00420694
mov edx, 0x42255c
mov eax, ebx
call fcn.00420694
mov edx, 0x422570
mov eax, ebx
call fcn.00420694
mov edx, 0x422580
mov eax, ebx
call fcn.00420694
mov edx, 0x42258c
mov eax, ebx
call fcn.0042099c
mov edx, 0x422598
mov eax, ebx
call fcn.00420694
mov edx, 0x4225a8
mov eax, ebx
call fcn.00420694
mov edx, 0x4225b8
mov eax, ebx
call fcn.00420694
mov edx, 0x422580
mov eax, ebx
call fcn.00420694
mov edx, 0x42258c
mov eax, ebx
call fcn.0042099c
mov edx, 0x4225c8
mov eax, ebx
call fcn.00420694
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x68]
mov eax, ebx
call fcn.0042076c
mov edx, 0x4225d8
mov eax, ebx
call fcn.00420694
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x28]
add edx, 0x18
mov eax, ebx
call fcn.0042076c
mov edx, 0x4225e4
mov eax, ebx
call fcn.00420694
mov edx, 0x4225d8
mov eax, ebx
call fcn.00420694
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x38]
mov eax, ebx
call fcn.0042076c
mov edx, 0x4225f4
mov eax, ebx
call fcn.00420694
mov edx, 0x4225d8
mov eax, ebx
call fcn.00420694
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x28]
add edx, dword [eax + 0xd4]
add edx, 4
mov eax, ebx
call fcn.0042076c
mov edx, 0x42258c
mov eax, ebx
call fcn.004208e8
mov edx, 0x422600
mov eax, ebx
call fcn.00420694
mov edx, 0x42260c
mov eax, ebx
call fcn.00420694
mov eax, ebx
call fcn.00420a8c
test al, al
je 0x422541
lea eax, [ebx + 0x18]
call fcn.00405170
mov edx, eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x42250a
sub eax, 4
mov eax, dword [eax]
push eax
mov ecx, edx
mov eax, esi
mov edx, dword [esp + 8]
call fcn.00420de0
push 4
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x38]
add edx, dword [eax + 0x60]
lea ecx, [esp + 8]
mov eax, esi
call fcn.00420de0
push 1
lea ecx, [esp + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x38]
mov eax, esi
call fcn.00420de0
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x422998
Capabilities:
Get graphical window text

Disassembly:
push ebx
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x42299f
mov eax, dword [esp + 0x2000]
add esp, 4
mov ebx, edx
push 0x2000
lea edx, [esp + 4]
push edx
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, ebx
mov edx, esp
call fcn.00404e78
add esp, 0x2000
pop ebx
ret
Function at 0x422bf4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x58]
je 0x422d79
mov dword [esi + 0x58], eax
push esp
push 0x40
push 0x1000
push 0x400000
mov eax, dword [esi + 0x44]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_VirtualProtectEx
mov ebx, dword [esi + 0x40]
mov edx, 0x4005fc
mov eax, ebx
call fcn.00420614
xor edx, edx
mov eax, ebx
call fcn.004207ec
mov edx, 0x422d88
mov eax, ebx
call fcn.004208e8
xor edx, edx
mov eax, ebx
call fcn.004207ec
mov edx, 0x422d98
mov eax, ebx
call fcn.00420694
mov eax, dword [esi + 0x4c]
mov edx, dword [eax + 0xe4]
mov eax, ebx
call fcn.0042076c
mov edx, 0x422da4
mov eax, ebx
call fcn.00420694
mov edx, 0x422d88
mov eax, ebx
call fcn.0042086c
mov edx, 0x422db4
mov eax, ebx
call fcn.00420694
mov edx, 0x422dc0
mov eax, ebx
call fcn.00420694
mov edx, 0x422dcc
mov eax, ebx
call fcn.0042099c
mov edx, 0x422dd8
mov eax, ebx
call fcn.00420694
mov edx, 0x422dcc
mov eax, ebx
call fcn.004208e8
mov edx, 0x422de4
mov eax, ebx
call fcn.00420694
mov edx, 0x422d88
mov eax, ebx
call fcn.0042086c
mov edx, 0x422df4
mov eax, ebx
call fcn.00420694
mov edx, 0x422e04
mov eax, ebx
call fcn.00420694
mov eax, ebx
call fcn.00420a8c
lea eax, [ebx + 0x18]
call fcn.00405170
mov edx, eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x422d0e
sub eax, 4
mov eax, dword [eax]
push eax
mov ecx, edx
mov eax, esi
mov edx, 0x4005fc
call fcn.00422bc0
mov ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x4c]
mov edx, dword [eax + 0xe0]
mov eax, ebx
call fcn.00420614
mov edx, 0x422e1c
mov eax, ebx
call fcn.00420694
mov edx, 0x400600
mov eax, ebx
call fcn.00420944
mov eax, ebx
call fcn.00420a8c
lea eax, [ebx + 0x18]
call fcn.00405170
mov edx, eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x422d65
sub eax, 4
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + 0xe0]
mov ecx, edx
mov edx, esi
xchg edx, eax
call fcn.00422bc0
pop edx
pop esi
pop ebx
ret

Function at 0x4257fc
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.00405110
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x425854
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x469980]
mov dl, 1
mov eax, dword [0x4251e4]
call fcn.0040eabc
call fcn.0040456c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004252ec
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 0x425ed8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00425ebc
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
cmp word [edi], 0x5a4d
jne 0x425f64
mov eax, dword [edi + 0x3c]
mov ecx, edi
add eax, ecx
test eax, eax
je 0x425f64
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, ecx
add edx, dword [eax + 4]
mov dword [ebp - 0xc], edx
test esi, esi
je 0x425f64
jmp 0x425f5e
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0xc]
ja 0x425f64
cmp dword [esi + 0x10], 0
je 0x425f5b
mov ebx, edi
add ebx, dword [esi + 0x10]
jmp 0x425f56
mov eax, dword [ebx]
cmp eax, dword [ebp + 0xc]
jne 0x425f53
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x425f53
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
add ebx, 4
cmp dword [ebx], 0
jne 0x425f35
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x425f20
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42612c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405100
xor eax, eax
push ebp
push 0x4261e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4698b4]
mov eax, dword [eax]
call fcn.0040b94c
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x4261f0
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4261b5
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov esi, dword [ebp - 4]
test esi, esi
je 0x426199
sub esi, 4
mov esi, dword [esi]
push 0
lea eax, [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.00405110
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0xc]
call fcn.0044bf1c
mov eax, dword [ebp - 0xc]
call fcn.0040b94c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4261ea
lea eax, [ebp - 0xc]
call fcn.00404c80
lea eax, [ebp - 4]
call fcn.00404c80
ret
Function at 0x42cc04
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 0x42cc0a
ret
Function at 0x437340
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x43736e
mov eax, ebx
call fcn.00437df4
cmp dword [ebx + 0x40], 0
je 0x437367
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4373df
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4373d1
cmp dword [ebx + 8], 0
je 0x437390
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4373a2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4373d1
cmp dword [ebx + 8], 0
je 0x437383
cmp eax, 3
je 0x4373b5
dec eax
jne 0x437383
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x437383
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x437383
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4373fd
cmp dword [ebx + 0x14], 0xcc
je 0x4373fd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00437408
pop ebx
ret

Function at 0x447fd8
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], 0xff
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0xff
call fcn.00404ef0
add esp, 0x104
pop ebx
ret

Function at 0x448058
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x44800c
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret