joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56dbb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x5fd0c4]
test eax, eax
je 0x56dbdc
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x56dbf2
cmp dword [eax + 4], 0
mov esi, eax
je 0x56dbf2
add esi, 8
mov eax, esi
add esp, 8
pop esi
ret
mov ecx, 0x5fd0c4
call fcn.005878a0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x56dbca
mov eax, dword [0x5fd0c4]
test eax, eax
je 0x56dc52
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor esi, esi
cmp eax, 1
jne 0x56dc11
mov eax, esi
add esp, 8
pop esi
ret
test eax, eax
mov esi, eax
jne 0x56dc67
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, 0xc
call fcn.0056a9f0
test eax, eax
je 0x56dcaa
mov dword [eax], 0x5fd0c4
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5fd0c4]
test eax, eax
jne 0x56dc5e
mov ecx, 0x5fd0c4
call fcn.005878a0
jmp 0x56dc5f
mov ecx, 0x5fd0c4
call fcn.005878a0
jmp 0x56dbfc
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.00587da0
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x56dbd2
test ecx, ecx
je 0x56dbd2
lock dec dword [ecx]
jne 0x56dbd2
lea ecx, [esp + 4]
call fcn.00417e90
jmp 0x56dbd2
mov ecx, 4
mov edx, 0xc
call fcn.0057f230
int3

Function at 0x56dea0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x5fd0e4]
test eax, eax
je 0x56df80
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x56ded1
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x56df7b
mov eax, dword [0x5fd0e4]
test eax, eax
je 0x56df9f
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x56dfb9
mov esi, eax
test eax, eax
jne 0x56df3c
movzx eax, byte [0x5fd2ec]
xor ecx, ecx
mov edx, 0x20
call fcn.0056a9f0
test eax, eax
je 0x56dfd2
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x5fd0e4
mov esi, eax
mov eax, dword [0x5fd0e4]
test eax, eax
je 0x56dfc3
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x56df5c
movaps xmm0, xmmword [esp]
jmp 0x56df6a
lea ecx, [esp + 0x10]
call fcn.0056a0f0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x56dfbb
mov ecx, 0x5fd0e4
call fcn.005878a0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x56dec4
jmp 0x56ded1
mov ecx, 0x5fd0e4
call fcn.005878a0
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x56deef
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x5fd0e4
call fcn.005878a0
jmp 0x56df34
mov ecx, 8
mov edx, 0x20
call fcn.0057f230
int3
Function at 0x57ab2e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x57ab6d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57ab6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57ab6d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x57ab6d
cmp dword [ecx + 0x74], 0xe
jbe 0x57ab6d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x586800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov ebp, dword [edx]
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
lea edi, [ebp - 1]
cmp edi, 2
jae 0x58682d
cmp dword [edx + 0xc], esi
jbe 0x58689c
mov edx, dword [edx + 8]
cmp byte [edx + esi], 0xc0
setge dl
jmp 0x58689f
mov dword [esp], ecx
mov ecx, dword [edx + 4]
mov edi, dword [edx + 8]
mov ebx, dword [edx + 0x10]
mov dword [esp + 4], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 8], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 0x14]
movzx edx, byte [edx + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x48], ebp
mov ebp, ecx
mov ecx, dword [esp + 4]
cmp ebp, edi
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x60], dl
jae 0x5868b3
mov edx, dword [esp + 0x7c]
cmp ebp, esi
jbe 0x586949
mov ecx, dword [esp + 8]
cmp byte [ecx + esi], 0xbf
jg 0x58694b
jmp 0x58696b
sete dl
movzx edx, dl
mov dword [ecx], edx
mov edx, dword [esp + 0x7c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
jmp 0x586963
mov edx, dword [esp + 0x7c]
lea ecx, [edi + 1]
mov dword [esp + 4], ecx
cmp esi, ebp
jae 0x5868e0
nop word cs:[eax + eax]
nop dword [eax]
mov ecx, dword [esp + 8]
cmp byte [ecx + esi], 0xc0
jl 0x5868e2
jmp 0x58694b
je 0x58694b
inc ebx
je 0x58696e
cmp dword [esp + 4], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
jb 0x586980
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x20]
lea eax, [esp + 0x48]
mov dword [esp + 0x58], ebx
push eax
push dword [esp + 0x8c]
call fcn.004dc250
add esp, 8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp ecx, 1
jne 0x586937
mov edx, dword [esp + 0x28]
mov esi, edx
cmp esi, ebp
jae 0x5868e0
jmp 0x5868d0
cmp ecx, 2
jne 0x58695c
mov ecx, dword [esp]
mov dword [ecx + 4], eax
mov eax, 2
jmp 0x586961
jne 0x58696b
mov ecx, dword [esp]
mov dword [ecx], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
jmp 0x586963
mov ecx, dword [esp]
xor eax, eax
mov dword [ecx], eax
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
inc ebx
jne 0x586978
mov ecx, 0x59e7dc
call fcn.0057fb10
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
lea eax, [esp + 0xc]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0x59a73c
mov dword [esp + 0x24], 2
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x463480
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x20]
mov edx, 0x59e860
mov dword [esp + 0x44], 0x4adf60
mov dword [esp + 0x2c], 2
call fcn.0057f680
int3
Function at 0x5869e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov esi, dword [edx]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
lea edi, [esi - 1]
cmp edi, 2
jae 0x586a18
cmp dword [edx + 0xc], ebx
jbe 0x586b03
mov edx, dword [edx + 8]
cmp byte [edx + ebx], 0xc0
setge dl
jmp 0x586b06
mov dword [esp + 0xc], ebp
mov ebp, dword [edx + 0x10]
mov edi, dword [edx + 8]
mov dword [esp], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ebp
mov dword [esp + 4], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x50], edi
mov dword [esp + 8], edi
mov ebp, dword [edx + 0x14]
movzx edx, byte [edx + 0x18]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x48], esi
mov esi, dword [esp + 4]
mov dword [esp + 4], ecx
mov dword [esp + 0x4c], esi
mov byte [esp + 0x60], dl
lea edx, [ebp - 1]
cmp edx, ecx
jbe 0x586a90
cmp ecx, ebx
jbe 0x586b16
mov ecx, dword [esp + 8]
cmp byte [ecx + ebx], 0xbf
jg 0x586b18
jmp 0x586b30
cmp ebx, ecx
jae 0x586aa0
mov ecx, dword [esp + 8]
cmp byte [ecx + ebx], 0xc0
jl 0x586aa2
jmp 0x586b18
je 0x586b18
xor ebx, ebx
test ebp, ebp
je 0x586bb1
lea esi, [ebp - 1]
cmp ebp, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
jb 0x586b41
mov edx, dword [esp + 0x84]
lea ecx, [esp + 0x20]
lea eax, [esp + 0x48]
mov dword [esp + 0x5c], esi
push eax
push dword [esp + 0x8c]
call fcn.004df5a0
add esp, 8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp ecx, 1
jne 0x586b9f
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 4]
mov ebp, esi
mov dword [esp + 0xc], ebx
jmp 0x586a90
sete dl
movzx edx, dl
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebp
jmp 0x586bb6
jne 0x586b30
mov ecx, dword [esp]
mov edx, dword [esp + 0xc]
mov dword [ecx], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
jmp 0x586bb6
mov ecx, dword [esp]
xor ebx, ebx
test ebp, ebp
je 0x586bb4
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], 0x59a73c
mov dword [esp + 0x24], 2
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], 0x463480
mov dword [esp + 0x40], edx
mov edx, 0x59e860
mov dword [esp + 0x44], 0x4adf60
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 2
mov dword [esp + 0x1c], eax
call fcn.0057f680
cmp ecx, 2
mov ecx, dword [esp]
jne 0x586bb4
mov dword [ecx + 4], eax
mov ebx, 2
jmp 0x586bb4
mov ecx, dword [esp]
mov dword [ecx], ebx
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5878a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x587911
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x587948
cmp dword [esp + 4], 0
je 0x58792f
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x58795b
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x5fd298]
nop dword [eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x5fd298], esi
jne 0x5878f0
mov byte [0x5fd294], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x58793f
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x58799c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x587933
mov edi, dword [esp]
jmp 0x58793f
mov edi, dword [esi]
jmp 0x58793e
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
call fcn.005879d0
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x5eb688
mov dword [esp + 8], 0x5eb64c
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_strpattern.rs
mov dword [esp + 0x14], 0
call fcn.0057f680
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x5eb64c
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_strpattern.rs
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00587a00
int3
Function at 0x40678a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406407
Function at 0x402cfc
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 0x402d39
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 0x402d59
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004049b0
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402f38
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f91
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402dd4
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402dd4
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f7b
inc ebx
jmp 0x402f64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f98
lea eax, [ebp - 8]
call fcn.00404730
ret

Function at 0x402fa0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404730
test esi, esi
jne 0x402fd7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404820
jmp 0x402ff8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402dd4
mov dword [esp], eax
test esi, esi
je 0x402ff8
cmp dword [ebx], 0
je 0x402ff8
dec esi
jmp 0x402fdf
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40368c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403724
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403704
xor eax, eax
push ebp
push 0x4036fd
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 0x403740
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 0x403704
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49b020], ax
mov esp, ebp
pop ebp
ret
Function at 0x404508
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49d04c], 0
je 0x404569
cmp word [0x49d220], 0xd7b2
jne 0x404531
cmp dword [0x49d228], 0
jbe 0x404531
mov eax, 0x49d21c
call dword [0x49d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49b06c
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 0x404590
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49b030], 0
jne 0x404585
push 0
push 0x49b064
push 0x49b06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402afc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046ac
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4069e0
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 0x406a46
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.004049b0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403250
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406a30
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a4d
lea eax, [ebp - 0x10]
call fcn.00404730
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c00
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ae5
test al, 0x10
jne 0x409ae9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d464
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 0x40d49d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404820
jmp 0x40d4a6
mov eax, ebx
mov edx, esi
call fcn.00404784
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40db68
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d9d0
mov eax, dword [0x49c6c0]
cmp byte [eax], 0
je 0x40dbe4
mov eax, dword [0x49c468]
call fcn.004030bc
call fcn.00402c88
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.00409f60
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 0x40dc2c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dc1a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49c410]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49d668]
call fcn.00405e30
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 0x40e4d0
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 0x40e5a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004047c8
lea eax, [ebp - 8]
call fcn.00404c50
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c00
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e590
mov eax, ebx
call fcn.00402afc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e589
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.00404c00
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e573
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e5b8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e573
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 0x40e590
mov eax, dword [ebp - 0x10]
call fcn.00402b2c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5ad
lea eax, [ebp - 8]
call fcn.00404730
ret

Function at 0x40ebc4
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 0x40ec28
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.004049b0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040972c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec2f
lea eax, [ebp - 0xc]
call fcn.00404730
ret

Function at 0x421d48
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.00421ba0
dec esi
jne 0x421d6a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x422eac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49d88c
cmp dword [edi], 0
jne 0x422f28
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49d888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49b4a4
mov ecx, 2
call fcn.00402d94
mov edx, 0x422e84
lea eax, [esi + 5]
call fcn.00422ea4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422ea4
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 0x422efd
mov dword [0x49d888], 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 0x4244a4
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 0x4244aa
ret

Function at 0x4269a8
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 0x4269f9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4269e0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4269d0
jmp 0x4269f9
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 0x4269e1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430e54
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404bf0
xor eax, eax
push ebp
push 0x430f82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x430f55
xor eax, eax
push ebp
push 0x430f4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a00
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x430f23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x430f12
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a00
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404c00
mov edx, ebx
pop ecx
call fcn.00402d94
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430f19
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x49c3a4]
mov dl, 1
mov eax, dword [0x408170]
call fcn.0040dcec
call fcn.00404084
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430f89
lea eax, [ebp - 4]
call fcn.00404730
ret