joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457470
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x457482
add esp, 0xfffffff0
call fcn.00403bf4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041da44
mov eax, dword [0x4ba30c]
mov dword [eax + 4], ebx
mov dword [eax], 0x457814
mov eax, dword [0x4ba31c]
mov dword [eax + 4], ebx
mov dword [eax], 0x457820
mov eax, ebx
call fcn.0045782c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415680]
call fcn.004038a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415680]
call fcn.004038a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415680]
call fcn.004038a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415680]
call fcn.004038a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415680]
call fcn.004038a0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4532c4
push eax
push 0
push 0
mov eax, dword [0x4ba48c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421628]
call fcn.00422e7c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421628]
call fcn.00422e7c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421628]
call fcn.00422e7c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457c5c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b2c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b2c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4575bf
call fcn.00403c4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457910
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 0x457abb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457a9c
mov dl, 1
mov eax, dword [0x415aa4]
call fcn.004038a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404718
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457a8b
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.0044a8a8
test al, al
je 0x457a7e
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, 0x457acc
lea eax, [ebp - 0x254]
call fcn.004098f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457a7e
xor eax, eax
push ebp
push 0x457a77
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 0x457b04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457a60
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404988
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 0x457a60
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a7e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457981
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041980c
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 0x457ac2
lea eax, [ebp - 0x260]
call fcn.00404718
ret

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

Disassembly:
push ecx
mov eax, dword [0x4be580]
cmp byte [eax + 0xad], 0
jne 0x4584a5
cmp dword [0x4be598], 0
jne 0x458466
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4583f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4be598], eax
cmp dword [0x4be594], 0
jne 0x458481
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4be594], eax
cmp dword [0x4be59c], 0
jne 0x4584a5
push esp
push 0
push 0
push 0x458394
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4be59c], eax
pop edx
ret
Function at 0x458678
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45868f
add esp, 0xfffffff0
call fcn.00403bf4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041da44
mov eax, dword [0x4ba470]
cmp word [eax + 2], 0
jne 0x4586b7
mov eax, dword [0x4ba470]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a140
mov eax, dword [0x4ba52c]
cmp word [eax + 2], 0
jne 0x4586d1
mov eax, dword [0x4ba52c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045a34c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415680]
call fcn.004038a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415680]
call fcn.004038a0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415680]
call fcn.004038a0
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 [0x422138]
call fcn.00429900
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x458888
mov eax, dword [0x4ba37c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429cd4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45aa0c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ba37c]
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.0040d114
test eax, eax
je 0x4587d8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004092a8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d148
test eax, eax
je 0x4587ec
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.00404988
mov byte [ebx + 0xd4], 0
push ebx
push 0x459c88
call fcn.0041ebc0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4ba240]
cmp byte [eax], 0
jne 0x45883d
mov eax, ebx
call fcn.004589cc
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.0045abe8
mov eax, ebx
call fcn.0045b748
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45887d
call fcn.00403c4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458c4c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4be580]
cmp dword [eax + 0x30], 0
je 0x458cf6
cmp dword [ebx + 0x94], 0
jne 0x458cf0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458bdc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458cf0
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 0x458cb6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458cf0
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.00417ab4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458cc5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459a10
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 0x459a45
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.00404808
jmp 0x459a52
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040476c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45adcc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ae3a
mov eax, esi
call fcn.00445568
test al, al
je 0x45ae3a
mov eax, dword [ebx + 0x84]
call fcn.004451c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ae3a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45ae2e
push 0
mov eax, dword [ebx + 0x84]
call fcn.004451c8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043d610
jmp 0x45ae3a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045ac08
pop esi
pop ebx
ret
Function at 0x71f140
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x2d5000]
push edi
jmp 0x71f15a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x71f161
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f150
mov eax, 1
add ebx, ebx
jne 0x71f173
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x71f184
jne 0x71f1a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f1a3
dec eax
add ebx, ebx
jne 0x71f190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x71f168
add ebx, ebx
jne 0x71f19f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x71f1f5
xor ecx, ecx
sub eax, 3
jb 0x71f1bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x71f22a
sar eax, 1
mov ebp, eax
jmp 0x71f1c6
add ebx, ebx
jne 0x71f1c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f194
inc ecx
add ebx, ebx
jne 0x71f1d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x71f194
add ebx, ebx
jne 0x71f1e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x71f1d6
jne 0x71f1f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x71f1d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x71f214
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x71f206
jmp 0x71f156
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x71f214
add edi, ecx
jmp 0x71f156
pop esi
mov edi, esi
mov ecx, 0x467
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x71f232
cmp byte [edi], 7
jne 0x71f232
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x71f237
lea edi, [esi + 0x31d000]
mov eax, dword [edi]
or eax, eax
je 0x71f2a6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3a91c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3a91fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x71f264
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3a9204]
or eax, eax
je 0x71f2a0
mov dword [ebx], eax
add ebx, 4
jmp 0x71f281
call dword [esi + 0x3a9200]
mov ebp, dword [esi + 0x3a9208]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x71f2da
sub esp, 0xffffff80
jmp 0x40125d
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x210]
sub esp, 0x284
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x26
mov dword [esp], 0
call dword [sym.imp.shell32.dll_SHGetFolderPathW]
sub esp, 0x14
test eax, eax
js 0x4010ef
cmp word [ebp - 0x210], 0
mov edx, ebx
je 0x401061
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401058
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [eax + str.Windows_NTAccessorieswordpad.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401068
mov dword [ebp - 0x254], 0x44
lea esi, [ebp - 0x254]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x264]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x401158
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 4], 0x65
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.user32.dll_MessageBoxW]
mov eax, 1
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp - 0x264]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x260]
sub esp, 4
mov dword [esp], eax
call ebx
xor eax, eax
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x401190
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x401250
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x4012ae
xor ecx, ecx
xor edx, edx
jmp 0x40128e
cmp al, 0x5c
jne 0x401300
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x4012a3
cmp al, 9
je 0x401296
cmp al, 0x20
jne 0x401278
test ecx, ecx
je 0x4012a3
xor edx, edx
jmp 0x401283
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x4012a0
cmp al, 0x20
je 0x4012a0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x20], 1
jne 0x4012c9
mov word [ebp - 0x1c], 1
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
cmp al, 0x22
jne 0x40129a
and edx, 1
jne 0x40129a
xor ecx, 1
jmp 0x401283
Function at 0x40349c
Capabilities:
Query or enumerate registry value

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

Function at 0x404200
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48704c], 0
je 0x404261
cmp word [0x487220], 0xd7b2
jne 0x404229
cmp dword [0x487228], 0
jbe 0x404229
mov eax, 0x48721c
call dword [0x487238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x485070
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 0x404288
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x485030], 0
jne 0x40427d
push 0
push 0x485068
push 0x485070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4061dc
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 0x406242
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.004045ec
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f04
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40622c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406249
lea eax, [ebp - 0x10]
call fcn.0040437c
ret

Function at 0x40b790
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 0x40b7c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040446c
jmp 0x40b7d2
mov eax, ebx
mov edx, esi
call fcn.004043d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b7dc
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 0x40b7fd
mov al, byte [esp]
jmp 0x40b7ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40be84
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bcfc
mov eax, dword [0x486c88]
cmp byte [eax], 0
je 0x40bf00
mov eax, dword [0x486a44]
call fcn.00402d64
call fcn.0040287c
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.00408eb4
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 0x40bf48
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bf36
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4869e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x487668]
call fcn.004056f0
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 0x40c7e4
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 0x40c8ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404414
lea eax, [ebp - 8]
call fcn.0040488c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040483c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c8a4
mov eax, ebx
call fcn.00402714
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c89d
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.0040483c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c887
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c8cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c887
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 0x40c8a4
mov eax, dword [ebp - 0x10]
call fcn.00402734
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8c1
lea eax, [ebp - 8]
call fcn.0040437c
ret

Function at 0x40ce98
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 0x40cefc
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.004045ec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408914
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf03
lea eax, [ebp - 0xc]
call fcn.0040437c
ret

Function at 0x41e384
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x487888
cmp dword [edi], 0
jne 0x41e400
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x487884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x485480
mov ecx, 2
call fcn.00402948
mov edx, 0x41e35c
lea eax, [esi + 5]
call fcn.0041e37c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e37c
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 0x41e3d5
mov dword [0x487884], 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 0x41f9a4
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 0x41f9aa
ret
Function at 0x421e7c
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 0x421ecd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421eb4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421ea4
jmp 0x421ecd
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 0x421eb5
pop ebx
mov esp, ebp
pop ebp
ret