joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e750
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48bddc]
cmp dword [eax + 0x30], 0
je 0x45e7fa
cmp dword [ebx + 0x94], 0
jne 0x45e7f4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e6e0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45e7f4
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 0x45e7ba
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e7f4
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.0041b5b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e7c9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45f358
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45f38d
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.00404ea4
jmp 0x45f39a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e08
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4604d4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460515
mov eax, esi
call fcn.00446520
test al, al
je 0x460515
mov eax, dword [ebx + 0x84]
call fcn.0044621c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460515
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044621c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4611f8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4185ac]
call fcn.00405818
xor eax, eax
push ebp
push 0x46133c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x487550], 0
jne 0x46124b
mov ecx, dword [0x487ffc]
mov dl, 1
mov eax, dword [0x40a890]
call fcn.0040f5d4
call fcn.004047c8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040385c
mov eax, ebx
call fcn.00405614
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46134c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406958
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405624
test eax, eax
jle 0x4612e3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4612dc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040503c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00405024
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040b774
test eax, eax
jne 0x4612dc
mov ebx, 0x15
jmp 0x4612e8
mov ebx, 0x10
jmp 0x4612e8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x487550]
call fcn.00461150
mov eax, dword [ebp - 8]
call fcn.00461150
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406970
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461343
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404dd8
lea eax, [ebp - 0x10]
mov edx, dword [0x4185ac]
call fcn.004058e8
ret

Function at 0x4624a8
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x4624bd
or edx, 0x200
test eax, 0x20000000
je 0x4624f0
test eax, 0x40000000
je 0x4624dc
test eax, 0x80000000
je 0x4624d7
or edx, 0x40
jmp 0x462517
or edx, 0x20
jmp 0x462517
test eax, 0x80000000
je 0x4624eb
or edx, 0x80
jmp 0x462517
or edx, 0x10
jmp 0x462517
test eax, 0x40000000
je 0x462508
test eax, 0x80000000
je 0x462503
or edx, 4
jmp 0x462517
or edx, 2
jmp 0x462517
test eax, 0x80000000
je 0x462514
or edx, 8
jmp 0x462517
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x4641bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405614
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4641d5
test al, 0x10
jne 0x4641d9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x464504
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004057f8
xor eax, eax
push ebp
push 0x46464a
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004056e0
jne 0x46455b
mov ecx, 0x464664
mov dl, 1
mov eax, dword [0x40aa04]
call fcn.0040f518
mov edx, eax
mov dword [edx + 0xc], 3
mov eax, edx
call fcn.004047c8
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00464150
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004054f4
mov eax, dword [ebp - 4]
call fcn.004641bc
test al, al
jne 0x46461a
mov eax, dword [ebp - 4]
call fcn.00405624
cmp eax, 3
jl 0x46461a
mov eax, dword [ebp - 4]
call fcn.004641bc
test al, al
jne 0x46461a
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040503c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0040c16c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.00405604
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004056e0
je 0x46461a
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004640d4
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00464504
test al, al
je 0x4645f9
push 0
mov eax, dword [ebp - 4]
call fcn.00405614
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4645fd
xor ebx, ebx
jmp 0x4645ff
mov bl, 1
test bl, bl
je 0x46461a
test si, si
jbe 0x46461a
movzx eax, si
push eax
mov eax, dword [ebp - 4]
call fcn.00405614
push eax
call sub.kernel32.dll_SetFileAttributesW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464651
lea eax, [ebp - 0x18]
call fcn.00405494
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404dd8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004054ac
ret
Function at 0x4665c8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
test dl, dl
je 0x4665da
add esp, 0xfffffff0
call fcn.00404360
mov esi, ecx
mov ebx, edx
mov edi, eax
lea eax, [ebp + 0x1c]
call fcn.004057f8
xor eax, eax
push ebp
push 0x466685
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403ff8
mov dword [edi + 0x38], esi
lea eax, [edi + 0xc]
mov edx, dword [ebp + 0x1c]
call fcn.004054d0
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x18], eax
mov al, byte [ebp + 8]
mov byte [edi + 0x1c], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
push 0
lea eax, [edi + 0x40]
mov ecx, 1
mov edx, dword [0x4632ac]
call fcn.004061f8
add esp, 4
mov eax, edi
call fcn.0046641c
test al, al
jne 0x46666f
call fcn.0040f4ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46668c
lea eax, [ebp + 0x1c]
call fcn.00405494
ret
Function at 0x466ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x14
add esp, 0xfffff004
push eax
dec eax
jne 0x466ce9
mov eax, dword [ebp - 4]
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14018], ecx
mov dword [ebp - 0x1401c], ecx
mov dword [ebp - 0x14008], edx
mov ebx, eax
lea eax, [ebp - 0x14008]
call fcn.004057f8
xor eax, eax
push ebp
push 0x466f01
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x14009], 0
lea edx, [ebp - 0x1401c]
mov eax, dword [ebp - 0x14008]
call fcn.00464348
mov eax, dword [ebp - 0x1401c]
lea edx, [ebp - 0x14018]
call fcn.00464680
mov eax, dword [ebp - 0x14018]
mov edx, 0x466f1c
call fcn.004056e0
jne 0x466ed8
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xac], 0
mov byte [ebx + 0xa0], 0
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 0x14008]
call fcn.00405614
mov ecx, 1
mov edx, 0x80000000
call fcn.00464744
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x466ed1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.004647d8
mov dword [ebp - 0x14010], eax
push 0
push 0x10000
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004647d8
push 0
lea eax, [ebp - 0x14014]
push eax
push 0x14000
lea eax, [ebp - 0x14004]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
mov edi, dword [ebp - 0x14014]
sub edi, 6
test edi, edi
jb 0x466e47
inc edi
xor esi, esi
push ebp
mov eax, esi
call fcn.00466ca8
pop ecx
mov byte [ebx + 0xa0], al
cmp byte [ebx + 0xa0], 0
je 0x466e43
lea eax, [esi + 0x10000]
xor edx, edx
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], edx
mov byte [ebp - 0x14009], 1
jmp 0x466e47
inc esi
dec edi
jne 0x466e0e
cmp byte [ebx + 0xa0], 0
jne 0x466ebb
push ebp
call fcn.00466bb8
pop ecx
mov esi, eax
cmp esi, dword [ebp - 0x14010]
je 0x466ebb
mov eax, esi
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004647d8
push 0
lea eax, [ebp - 0x14014]
push eax
push 6
lea eax, [ebp - 0x14004]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
push ebp
xor eax, eax
call fcn.00466ca8
pop ecx
mov byte [ebx + 0xa0], al
cmp byte [ebx + 0xa0], 0
je 0x466ebb
mov eax, esi
xor edx, edx
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], edx
mov byte [ebp - 0x14009], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466ed8
mov eax, dword [ebp - 4]
call fcn.0040bdb0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466f08
lea eax, [ebp - 0x1401c]
mov edx, 2
call fcn.004054ac
lea eax, [ebp - 0x14008]
call fcn.00405494
ret
Function at 0x4674d4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
xor ecx, ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405264
lea eax, [ebp - 0x160]
mov edx, dword [0x40a870]
call fcn.00405818
xor eax, eax
push ebp
push 0x4676a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
lea eax, [ebp - 0x164]
mov ecx, 0x4676bc
mov edx, dword [ebp - 4]
call fcn.004050c0
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.0040c03c
test eax, eax
jne 0x46765d
xor edx, edx
push ebp
push 0x467656
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x158]
mov edx, eax
and edx, 0x10
cmp edx, eax
jne 0x4675d2
mov eax, dword [ebp - 0x154]
mov edx, 0x4676c8
call fcn.004051c0
je 0x46762a
mov eax, dword [ebp - 0x154]
mov edx, 0x4676d4
call fcn.004051c0
je 0x46762a
push dword [ebp - 4]
push dword [ebp - 0x154]
push 0x4676e0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405134
mov edx, dword [ebp - 0x168]
mov eax, ebx
call fcn.004674d4
mov byte [ebp - 5], al
jmp 0x467624
and eax, 1
dec eax
jne 0x467602
push 0x80
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.004050c0
mov eax, dword [ebp - 0x16c]
call fcn.00405274
push eax
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.004050c0
mov eax, dword [ebp - 0x170]
call fcn.0040c0cc
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x46763d
lea eax, [ebp - 0x160]
call fcn.0040c08c
test eax, eax
je 0x467567
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46765d
lea eax, [ebp - 0x160]
call fcn.0040c0b0
ret
cmp byte [ebp - 5], 0
je 0x46766e
mov eax, dword [ebp - 4]
call fcn.0040c388
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4676ac
lea eax, [ebp - 0x170]
mov edx, 4
call fcn.00404dd8
lea eax, [ebp - 0x160]
mov edx, dword [0x40a870]
call fcn.004058e8
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x470cc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x470cee
mov eax, ebx
call fcn.00471774
cmp dword [ebx + 0x40], 0
je 0x470ce7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x470d5f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x470d51
cmp dword [ebx + 8], 0
je 0x470d10
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 0x470d22
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x470d51
cmp dword [ebx + 8], 0
je 0x470d03
cmp eax, 3
je 0x470d35
dec eax
jne 0x470d03
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 0x470d03
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x470d03
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x470d7d
cmp dword [ebx + 0x14], 0xcc
je 0x470d7d
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.00470d88
pop ebx
ret
Function at 0x402f50
Capabilities:
Query or enumerate registry value

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

Function at 0x403c94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x450048], 0
je 0x403cf5
cmp word [0x45021c], 0xd7b2
jne 0x403cbd
cmp dword [0x450224], 0
jbe 0x403cbd
mov eax, 0x450218
call dword [0x450234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44e06c
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 0x403d1c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44e030], 0
jne 0x403d11
push 0
push 0x44e064
push 0x44e06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405968
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 0x4059ce
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.00404080
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b14
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4059b8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059d5
lea eax, [ebp - 0x10]
call fcn.00403e10
ret

Function at 0x40a8b4
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 0x40a8ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f00
jmp 0x40a8f6
mov eax, ebx
mov edx, esi
call fcn.00403e64
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40afa8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ae20
mov eax, dword [0x44f01c]
cmp byte [eax], 0
je 0x40b024
mov eax, dword [0x44ee44]
call fcn.00402980
call fcn.00402824
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.00408128
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 0x40b06c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b05a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x44edf4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x450664]
call fcn.00404e7c
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 0x40b8c0
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 0x40b996
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ea8
lea eax, [ebp - 8]
call fcn.00404320
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042d0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40b980
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40b979
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.004042d0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40b963
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40b9a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40b963
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 0x40b980
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b99d
lea eax, [ebp - 8]
call fcn.00403e10
ret

Function at 0x40be14
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 0x40be78
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.00404080
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407cb8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be7f
lea eax, [ebp - 0xc]
call fcn.00403e10
ret

Function at 0x419f54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x450884
cmp dword [edi], 0
jne 0x419fd0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x450880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44e3ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x419f2c
lea eax, [esi + 5]
call fcn.00419f4c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00419f4c
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 0x419fa5
mov dword [0x450880], 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 0x41b1e4
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 0x41b1ea
ret
Function at 0x41d62c
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 0x41d67d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d664
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d654
jmp 0x41d67d
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 0x41d665
pop ebx
mov esp, ebp
pop ebp
ret