joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c6a0
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 0x45c84b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45c82c
mov dl, 1
mov eax, dword [0x416a44]
call fcn.00403bf0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45c81b
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.0044de38
test al, al
je 0x45c80e
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, 0x45c85c
lea eax, [ebp - 0x254]
call fcn.00409c64
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45c80e
xor eax, eax
push ebp
push 0x45c807
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 0x45c894
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45c7f0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cbc
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 0x45c7f0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c80e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45c711
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041a7d0
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 0x45c852
lea eax, [ebp - 0x260]
call fcn.00404a4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x470ccc]
cmp byte [eax + 0xad], 0
jne 0x45d235
cmp dword [0x470ce8], 0
jne 0x45d1f6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45d180
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470ce8], eax
cmp dword [0x470ce4], 0
jne 0x45d211
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470ce4], eax
cmp dword [0x470cec], 0
jne 0x45d235
push esp
push 0
push 0
push 0x45d124
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x470cec], eax
pop edx
ret
Function at 0x45d438
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45d44f
add esp, 0xfffffff0
call fcn.00403f44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e924
mov eax, dword [0x46bb34]
cmp word [eax + 2], 0
jne 0x45d477
mov eax, dword [0x46bb34]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045eee8
mov eax, dword [0x46bbf0]
cmp word [eax + 2], 0
jne 0x45d491
mov eax, dword [0x46bbf0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f0f4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416620]
call fcn.00403bf0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416620]
call fcn.00403bf0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416620]
call fcn.00403bf0
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 [0x423cbc]
call fcn.0042b364
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45d648
mov eax, dword [0x46ba54]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b738
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45f7b8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46ba54]
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.0040d568
test eax, eax
je 0x45d598
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409608
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d59c
test eax, eax
je 0x45d5ac
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.00404cbc
mov byte [ebx + 0xd4], 0
push ebx
push 0x45ebb4
call fcn.0041faa0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46b944]
cmp byte [eax], 0
jne 0x45d5fd
mov eax, ebx
call fcn.0045d78c
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.0045f9cc
mov eax, ebx
call fcn.00460530
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d63d
call fcn.00403f9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45da0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45daab
cmp dword [ebx + 0x94], 0
jne 0x45daa5
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45d994
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45daa5
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 0x45da6b
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45daa5
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.004189c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45da7a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45dcc4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x470ccc]
cmp dword [eax + 0x30], 0
je 0x45de21
test bl, bl
jne 0x45dd72
cmp dword [esi + 0x9c], 0
jne 0x45dd67
mov eax, esi
call fcn.004603ac
push eax
push 0x45dbf0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45dd38
mov eax, dword [0x470ccc]
call fcn.00460a8c
test al, al
je 0x45dd38
mov eax, dword [0x470cf0]
call fcn.00405c94
mov edi, eax
cmp edi, 0
jl 0x45dd38
push 0
mov eax, dword [0x470cf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45dd22
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45dd67
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004189c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45dd47
inc dword [esi + 0x9c]
jmp 0x45de21
cmp dword [esi + 0x9c], 0
jle 0x45de21
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45de21
cmp dword [esi + 0x44], 0
je 0x45ddcd
mov eax, dword [0x470ccc]
call fcn.00460a8c
test al, al
je 0x45ddcd
mov eax, dword [0x470cf0]
call fcn.00405c94
mov edi, eax
cmp edi, 0
jl 0x45ddcd
push 5
mov eax, dword [0x470cf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45ddb7
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45ddfc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004189c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45dddc
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x470cf0
mov ecx, 1
mov edx, dword [0x45dbd0]
call fcn.00405e48
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45e908
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45e972
mov eax, ebx
call fcn.00460a8c
test al, al
jne 0x45e972
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.00404b3c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45e95f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45e97f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404aa0
jmp 0x45e97f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404aa0
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45fbb0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45fc1e
mov eax, esi
call fcn.00448b1c
test al, al
je 0x45fc1e
mov eax, dword [ebx + 0x84]
call fcn.004487a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45fc1e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45fc12
push 0
mov eax, dword [ebx + 0x84]
call fcn.004487a8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00440624
jmp 0x45fc1e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045f9ec
pop esi
pop ebx
ret
Function at 0x46310c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x4631ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x108]
xor ecx, ecx
mov edx, 0x104
call fcn.00403554
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x4631f8
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
je 0x4631af
cmp eax, 0x104
jg 0x4631af
lea eax, [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404b3c
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004093e0
jmp 0x46319d
mov edx, dword [ebx]
mov eax, 0x463214
call fcn.00405028
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404f84
mov edx, dword [ebx]
mov eax, 0x463214
call fcn.00405028
test eax, eax
jg 0x463183
jmp 0x4631c9
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.004032ac
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004093e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4631f1
lea eax, [ebp - 0x10c]
call fcn.00404a4c
lea eax, [ebp - 4]
call fcn.00404a4c
ret

Function at 0x466c68
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ecc
mov eax, dword [ebp - 8]
call fcn.00404ecc
mov eax, dword [ebp - 0xc]
call fcn.00404ecc
xor eax, eax
push ebp
push 0x466d41
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403554
mov dword [ebp - 0x50], 0x44
mov word [ebp - 0x20], 5
cmp dword [ebp - 0xc], 0
jne 0x466cd0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409414
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404edc
push eax
push 0
push 0x20
push 0
push 0
push 0
push 0x466d58
push dword [ebp - 4]
push 0x466d64
push dword [ebp - 8]
lea eax, [ebp - 0x64]
mov edx, 4
call fcn.00404de0
mov eax, dword [ebp - 0x64]
call fcn.00404edc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466d48
lea eax, [ebp - 0x64]
call fcn.00404a4c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a70
ret
Function at 0x466e64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x466f2d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00404a4c
lea eax, [ebp - 8]
push eax
push 0x1a
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, 0x80000000
sete al
test al, al
je 0x466ece
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x466ec6
lea edx, [ebp - 4]
lea eax, [ebp - 0x10d]
call fcn.004097f4
mov eax, dword [ebp - 8]
call fcn.00466e0c
cmp dword [ebp - 4], 0
je 0x466ef5
mov eax, dword [ebp - 4]
test eax, eax
je 0x466ee0
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x466ef5
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404ae4
mov eax, dword [ebp - 4]
call fcn.0040923c
test al, al
jne 0x466f0d
mov eax, dword [ebp - 4]
call fcn.00409598
test al, al
je 0x466f17
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404aa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466f34
lea eax, [ebp - 4]
call fcn.00404a4c
ret
Function at 0x467e24
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
lea eax, [ebx + 0x18]
xor ecx, ecx
mov edx, 0xcc
call fcn.00403554
mov dword [ebx + 0x18], 0x10007
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_GetThreadContext
mov eax, ebx
call fcn.00467d18
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
pop ebx
ret
Function at 0x104e5a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12b000]
push edi
jmp 0x104e5ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x104e5c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104e5b0
mov eax, 1
add ebx, ebx
jne 0x104e5d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x104e5e4
jne 0x104e603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104e603
dec eax
add ebx, ebx
jne 0x104e5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x104e5c8
add ebx, ebx
jne 0x104e5ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x104e655
xor ecx, ecx
sub eax, 3
jb 0x104e61b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x104e68a
sar eax, 1
mov ebp, eax
jmp 0x104e626
add ebx, ebx
jne 0x104e626
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104e5f4
inc ecx
add ebx, ebx
jne 0x104e634
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104e5f4
add ebx, ebx
jne 0x104e641
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x104e636
jne 0x104e652
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x104e636
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x104e674
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x104e666
jmp 0x104e5b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x104e674
add edi, ecx
jmp 0x104e5b6
pop esi
mov edi, esi
mov ecx, 0x6d8d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x104e692
cmp byte [edi], 0x1e
jne 0x104e692
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 0x104e697
lea edi, [esi + 0xc4b000]
mov eax, dword [edi]
or eax, eax
je 0x104e70f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc94b74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc94ca0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x104e6c4
mov ecx, edi
jns 0x104e6f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc94ca4]
or eax, eax
je 0x104e709
mov dword [ebx], eax
add ebx, 4
jmp 0x104e6e1
call dword [esi + 0xc94cb4]
mov ebp, dword [esi + 0xc94ca8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x104e743
sub esp, 0xffffff80
jmp 0x50ad33
Function at 0x4028e8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402925
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402945
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004042d8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402aac
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.00404068
test esi, esi
jne 0x402ae2
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.00404158
jmp 0x402b00
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c0
mov edi, eax
test esi, esi
je 0x402b00
cmp dword [ebx], 0
je 0x402b00
dec esi
jmp 0x402ae9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403188
Capabilities:
Query or enumerate registry value

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

Function at 0x403eec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x467044], 0
je 0x403f4d
cmp word [0x467218], 0xd7b2
jne 0x403f15
cmp dword [0x467220], 0
jbe 0x403f15
mov eax, 0x467214
call dword [0x467230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46506c
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 0x403f74
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x465030], 0
jne 0x403f69
push 0
push 0x465064
push 0x46506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405bf0
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 0x405c56
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.004042d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d4c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405c40
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c5d
lea eax, [ebp - 0x10]
call fcn.00404068
ret

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

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

Function at 0x40af14
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 0x40af4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404158
jmp 0x40af56
mov eax, ebx
mov edx, esi
call fcn.004040bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf20
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 0x40bff6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404100
lea eax, [ebp - 8]
call fcn.00404578
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404528
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bfe0
mov eax, ebx
call fcn.004026d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bfd9
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.00404528
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bfc3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c008
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bfc3
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 0x40bfe0
mov eax, dword [ebp - 0x10]
call fcn.004026f4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bffd
lea eax, [ebp - 8]
call fcn.00404068
ret