joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454360
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45450b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4544ec
mov dl, 1
mov eax, dword [0x41b0b8]
call fcn.00403ffc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404e40
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4544db
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00449c7c
test al, al
je 0x4544ce
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45451c
lea eax, [ebp - 0x254]
call fcn.0040d3b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4544ce
xor eax, eax
push ebp
push 0x4544c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454554
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4544b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004050b0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4544b0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004050b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4544ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4543d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041ed98
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454512
lea eax, [ebp - 0x260]
call fcn.00404e40
ret

Function at 0x454e84
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46568c]
cmp byte [eax + 0xad], 0
jne 0x454ef5
cmp dword [0x4656a4], 0
jne 0x454eb6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454e40
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4656a4], eax
cmp dword [0x4656a0], 0
jne 0x454ed1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4656a0], eax
cmp dword [0x4656a8], 0
jne 0x454ef5
push esp
push 0
push 0
push 0x454de4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4656a8], eax
pop edx
ret
Function at 0x4550c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4550df
add esp, 0xfffffff0
call fcn.00404338
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422e98
mov eax, dword [0x461ae4]
cmp word [eax + 2], 0
jne 0x455107
mov eax, dword [0x461ae4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004569f4
mov eax, dword [0x461b94]
cmp word [eax + 2], 0
jne 0x455121
mov eax, dword [0x461b94]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456c00
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41ac94]
call fcn.00403ffc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41ac94]
call fcn.00403ffc
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41ac94]
call fcn.00403ffc
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x425bc4]
call fcn.0042ba0c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4552d8
mov eax, dword [0x4619fc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042bde0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4572c0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4619fc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00410c04
test eax, eax
je 0x455228
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040cd6c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00410c38
test eax, eax
je 0x45523c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004050b0
mov byte [ebx + 0xd4], 0
push ebx
push 0x4566d8
call fcn.00424014
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4618ec]
cmp byte [eax], 0
jne 0x45528d
mov eax, ebx
call fcn.0045541c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045749c
mov eax, ebx
call fcn.00457ffc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4552cd
call fcn.00404390
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45569c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46568c]
cmp dword [eax + 0x30], 0
je 0x455746
cmp dword [ebx + 0x94], 0
jne 0x455740
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45562c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455740
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455706
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455740
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d040
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455715
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456460
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x456495
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404f30
jmp 0x4564a2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e94
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457680
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4576ee
mov eax, esi
call fcn.00444b38
test al, al
je 0x4576ee
mov eax, dword [ebx + 0x84]
call fcn.0044483c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4576ee
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4576e2
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044483c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043cd4c
jmp 0x4576ee
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004574bc
pop esi
pop ebx
ret
Function at 0x45ca68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x45caf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x45cb04
call fcn.00409298
test al, al
jne 0x45cac9
push 0x45cb1c
push dword [0x465708]
push 0x45cb28
push 0x45cb40
lea eax, [ebp - 4]
mov edx, 4
call fcn.004051c4
mov eax, 0x45cb04
call fcn.00409298
test al, al
jne 0x45cac9
push 0
mov eax, dword [ebp - 4]
call fcn.00405304
push eax
call sub.kernel32.dll_WinExec
mov eax, 0x45cb04
call fcn.00409274
test al, al
jne 0x45cae3
xor edx, edx
mov eax, 0x45cb54
call fcn.00409374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cb00
lea eax, [ebp - 4]
call fcn.00404e40
ret
Function at 0x40325c
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.00404c60
test esi, esi
jne 0x403292
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.00404d50
jmp 0x4032b0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403160
mov edi, eax
test esi, esi
je 0x4032b0
cmp dword [ebx], 0
je 0x4032b0
dec esi
jmp 0x403299
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403a70
Capabilities:
Query or enumerate registry value

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

Function at 0x404a0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c0048], 0
je 0x404a6d
cmp word [0x4c021c], 0xd7b2
jne 0x404a35
cmp dword [0x4c0224], 0
jbe 0x404a35
mov eax, 0x4c0218
call dword [fcn.004c0234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bc764
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 0x404a94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bc030], 0
jne 0x404a89
push 0
push 0x4bc75c
push 0x4bc764
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404be4
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 [0x4bc034], 0
je 0x404c0a
mov edx, esi
mov eax, ebx
call dword [0x4bc034]
jmp 0x404c19
mov eax, 8
call fcn.00402e70
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c0049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bac
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 0x406378
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 0x4065a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4063fb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4063fb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406484
xor eax, eax
push ebp
push 0x40647d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004061b4
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 0x406462
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4065e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406462
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 0x406484
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_lstrcpyn
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 0x40659e
cmp byte [ebp - 0xd], 0
jne 0x4064cb
cmp byte [ebp - 0x12], 0
je 0x40659e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlen
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4064e4
dec ebx
cmp byte [ebx], 0x2e
je 0x4064f3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4064e3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40659e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406530
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_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40659e
cmp byte [ebp - 0xd], 0
je 0x40659e
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_lstrcpyn
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40659e
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_lstrcpyn
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 0x409140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409192
test eax, edx
je 0x409195
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409155
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 0x40917b
add ecx, 4
js 0x40916b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409178
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 0x4091a1
test edx, edx
jne 0x409148
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004050f0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409a7a
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409a9b
cmp ebx, 3
je 0x409a9b
cmp ebx, 0x7b
je 0x409a9b
mov eax, esi
call fcn.00409a1c
test al, al
jne 0x409a9f
xor eax, eax
jmp 0x409aa1
mov al, 1
pop esi
pop ebx
ret

Function at 0x40ce28
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 0x40ce61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d50
jmp 0x40ce6a
mov eax, ebx
mov edx, esi
call fcn.00404cb4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ce74
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 0x40ce96
movzx eax, byte [esp]
jmp 0x40ce98
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d528
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d3a0
mov eax, dword [0x4bf9ac]
cmp byte [eax], 0
je 0x40d5a4
mov eax, dword [0x4bf66c]
call fcn.004033e8
call fcn.00402fcc
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.00409ce4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d5ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x40d5da
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bf5e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c27f4]
call fcn.0040615c
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
add esp, 0x444
ret
Function at 0x40de88
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40df5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404cf8
lea eax, [ebp - 4]
call fcn.00405148
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004050f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40df48
mov eax, ebx
call fcn.00402e70
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40df41
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 - 4]
call fcn.004050f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40df2b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40df70
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40df2b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df48
mov eax, dword [ebp - 0x10]
call fcn.00402e8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df65
lea eax, [ebp - 4]
call fcn.00404c60
ret

Function at 0x40f2c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404c60
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004050f0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40f305
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404d50
jmp 0x40f31e
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405380
push ebx
mov eax, dword [esi]
call fcn.004050f0
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41d30c
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.0041d048
dec esi
jne 0x41d32e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41e4a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c49ec
cmp dword [edi], 0
jne 0x41e51c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c49e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4bcb60
mov ecx, 2
call fcn.00403060
mov edx, 0x41e478
lea eax, [esi + 5]
call fcn.0041e498
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e498
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 0x41e4f1
mov dword [0x4c49e8], 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 0x422dc0
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.004050f0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x422e18
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bfb78]
mov dl, 1
mov eax, dword [0x4226fc]
call fcn.0040d70c
call fcn.004045b0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422870
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 0x4240d8
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 0x4240de
ret