joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x43a470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x43a46c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x43a470], edx
cmp eax, 0x26f
jl 0x40a8d8
mov dword [0x42e980], 0x270
ret

Function at 0x40a910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x43a474]
mov ebx, dword [eax*4 + 0x43a470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x43aaa4]
mov dword [eax*4 + 0x43a470], edx
cmp eax, 0xe2
jl 0x40a918
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x43a474]
mov ebx, dword [eax*4 + 0x43a470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x43a0e4]
mov dword [eax*4 + 0x43a470], edx
cmp eax, 0x26e
jl 0x40a968
mov edx, dword [0x43a470]
mov ecx, dword [0x43ae2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x43aaa0]
mov dword [0x43ae2c], eax
mov dword [0x42e980], 0
pop ebx
ret

Function at 0x40a9f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, dword [0x42e980]
add dword [0x42e980], 1
mov eax, dword [0x439020]
cmp eax, dword [0x42e4a0]
jne 0x40aa13
cmp ebx, 0x271
jb 0x40aa34
mov eax, dword [0x439020]
call fcn.0040a8d0
not dword [0x439020]
mov eax, dword [0x439020]
mov dword [0x42e4a0], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40aa50
call fcn.0040a910
xor ebx, ebx
mov dword [0x42e980], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x43a470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x40c4c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x42e200]
cmp ax, 0xcb
je 0x40c5cc
cmp ax, 0xcc
je 0x40c5cc
lea esi, [esi]
mov edx, dword [0x43b070]
test edx, edx
je 0x40c4f5
mov eax, dword [0x43af20]
call edx
mov ebx, eax
jmp 0x40c4fa
mov ebx, 0x43af24
cmp word [0x43af10], 0
jle 0x40c520
mov eax, 0x43aef0
call fcn.0040c730
mov eax, ebx
call fcn.0040c080
mov eax, ebx
call fcn.0040c0f0
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x40c542
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40c53d
mov edx, edi
mov eax, ebx
call fcn.0040b4f0
jmp 0x40c540
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40c528
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x43af10], 0
jle 0x40c5cc
mov edx, 0x43ae30
mov eax, ebx
call fcn.0040b630
mov edi, eax
test edi, edi
je 0x40c59c
mov eax, dword [0x43aec4]
mov dword [edi + 0xc], eax
cmp dword [0x43aec4], 0
je 0x40c590
mov eax, dword [0x43aec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x43aec4], eax
nop
sub word [0x43af10], 1
cmp word [0x43af10], 0
sete bl
mov eax, 0x43aef0
call fcn.0040c750
test bl, bl
je 0x40c5cc
mov eax, 0x43aef0
call fcn.0040c720
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x40e520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.0040e500
push ebp
push 0x40f960
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x40e64a
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00407d30
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x40e5af
mov edx, 0x43a2f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x40e601
call sub.kernel32.dll_GetLastError
call fcn.004027a0
lea eax, [ebp - 0x10]
call fcn.00406f30
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.00407390
mov edx, dword [ebp - 0x14]
mov ecx, 0x4302bc
lea eax, [ebp - 0x10]
call fcn.00407220
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00407770
jmp 0x40e698
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x40e61a
cmp eax, ecx
je 0x40e624
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.00407d30
cmp byte [0x42e470], 0
jne 0x40e698
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.00408280
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.004077b0
lea esi, [esi]
jmp 0x40e698
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.00407d30
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x40e66e
mov eax, 0x43a2f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x42e470], 0
jne 0x40e698
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.00408280
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.004077b0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0040e500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40eaf0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x43a260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.0040ecd0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x43a260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00402000
call sub.kernel32.dll_GetCommandLineA
mov dword [0x42e270], eax
mov ebx, eax
jmp 0x40ec93
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x40eb78
cmp byte [ebx], 0
je 0x40ec9c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x40ebf3
mov al, byte [ebx]
cmp al, 1
jb 0x40ebe8
sub al, 0x20
jbe 0x40ebb8
sub al, 2
je 0x40ebcc
jmp 0x40ebe8
mov al, byte [ebp - 0x114]
test al, al
je 0x40ebf8
add dword [ebp - 0x110], 1
jmp 0x40ebf0
cmp byte [ebx + 1], 0x22
je 0x40ebe3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40ebf0
add ebx, 1
jmp 0x40ebf0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40eba8
test dword [ebp - 0x10c], 0xffffffff
je 0x40ec8c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.0040ecd0
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x43a260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x40ec83
mov al, byte [ebx]
cmp al, 1
jb 0x40ec78
sub al, 0x20
jbe 0x40ec48
sub al, 2
je 0x40ec5c
jmp 0x40ec78
mov al, byte [ebp - 0x114]
test al, al
je 0x40ec88
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x40ec80
cmp byte [ebx + 1], 0x22
je 0x40ec73
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x40ec80
add ebx, 1
jmp 0x40ec80
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x40ec38
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x40eb7b
mov ebx, dword [ebp - 0x10c]
mov dword [0x43a250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x43a260
call fcn.0040c300
mov eax, dword [0x43a260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x118]
push ebx
push esi
push edi
mov esi, eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov al, byte [ebp + 8]
mov byte [ebp - 0x110], al
mov dword [ebp - 0xc], 0
xor eax, eax
push fcn.00410f10
push ebp
push 0x40f960
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push edi
call sub.kernel32.dll_FindResourceA
mov dword [esi + 0x10], eax
test eax, eax
jne 0x411030
mov al, byte [ebp - 0x110]
test al, al
je 0x410ff9
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.004030d0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004062a0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00406dd0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4308ec
call fcn.00424230
mov edx, 0x410f8a
mov ecx, ebp
call fcn.0040f820
jmp 0x411030
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4308ec
call fcn.00424230
mov edx, 0x410ff9
mov ecx, ebp
call fcn.0040f820
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_LoadResource
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4110f4
mov al, byte [ebp - 0x110]
test al, al
je 0x4110bd
push 0xff
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x10c]
mov edx, 0xffffffff
call fcn.004030d0
lea ecx, [ebp - 0xc]
xor dx, dx
lea eax, [ebp - 0x10c]
call fcn.004062a0
xor cl, cl
xor dx, dx
lea eax, [ebp - 0xc]
call fcn.00406dd0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xb
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4308ec
call fcn.00424230
mov edx, 0x41104e
mov ecx, ebp
call fcn.0040f820
jmp 0x4110f4
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [str.Resource___s__not_found]
mov edx, 1
mov eax, 0x4308ec
call fcn.00424230
mov edx, 0x4110bd
mov ecx, ebp
call fcn.0040f820
push dword [esi + 0x10]
push edi
call sub.kernel32.dll_SizeofResource
mov ebx, eax
push dword [esi + 0x14]
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, esi
mov ecx, ebx
call fcn.00410c50
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00410f10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x425340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x26c]
push ebx
push esi
mov dword [ebp - 4], eax
mov byte [ebp - 8], dl
mov bl, cl
mov edx, 0x436bd0
lea eax, [ebp - 0x268]
call fcn.0040a230
xor eax, eax
push fcn.00425320
push ebp
push 0x40f960
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
jne 0x425383
mov eax, 0x43a2f0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x4253cb
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x42539f
clc
jmp 0x4253a6
bt dword [0x436250], eax
jb 0x4253bf
mov eax, ebp
call fcn.00425470
test al, al
je 0x4253bf
mov byte [ebp - 0x26c], 1
jmp 0x425450
mov byte [ebp - 0x26c], 0
jmp 0x425450
mov eax, esi
and eax, 0x10
movzx edx, byte [ebp - 8]
cmp eax, dword [edx*4 + 0x42f5a0]
sete byte [ebp - 0x26c]
mov al, bl
and al, byte [ebp - 0x26c]
je 0x425450
and esi, 0x400
je 0x425450
lea ebx, [ebp - 0x268]
mov edx, 0x436bd0
mov eax, ebx
call fcn.0040a2f0
mov edx, ebx
mov eax, dword [ebp - 4]
xor cl, cl
call fcn.00424fe0
test eax, eax
je 0x425424
sub eax, 1
je 0x42543c
jmp 0x425448
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0x268]
xor cl, cl
call fcn.00425340
mov byte [ebp - 0x26c], al
jmp 0x425450
mov byte [ebp - 0x26c], 1
jmp 0x425450
mov byte [ebp - 0x26c], 0
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.00425320
mov al, byte [ebp - 0x26c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4256e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0xc]
push ebx
push esi
push edi
mov edi, eax
mov esi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
xor eax, eax
push fcn.004256d0
push ebp
push 0x40f960
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x425750
lea edx, [ebx - 1]
lea eax, [ebp - 4]
call fcn.00407d30
cmp ebx, 1
jle 0x425740
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor dx, dx
call fcn.00407650
jmp 0x42575b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405a20
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.004256d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4258f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x10]
push ebx
push esi
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.004258e0
push ebp
push 0x40f960
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea esi, [esi]
add ebx, 1
lea eax, [ebx*4 + 0x43b94c]
xor edx, edx
call fcn.00405a20
mov dword [ebx*4 + 0x43b96c], 0xffffffff
cmp ebx, 7
jl 0x425918
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4259a4
lea esi, [esi]
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
xor cx, cx
mov edx, 0xa
call fcn.00406410
mov eax, dword [ebp - 0x10]
mov edx, 1
call fcn.0041fb00
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x4259a4
push 4
push ebx
push esi
mov eax, 0x4257c0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x425850
push eax
call sub.kernel32.dll_EnumCalendarInfoA
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.004258e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425fe0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x94]
mov dword [0x43b9b0], 0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x84]
mov dword [0x43b810], eax
mov eax, dword [ebp - 0x90]
mov dword [0x43b820], eax
mov eax, dword [ebp - 0x8c]
mov dword [0x43b830], eax
mov eax, dword [ebp - 0x88]
mov dword [0x43b840], eax
mov edx, 0x43b851
lea eax, [ebp - 0x80]
mov ecx, pe_nt_image_headers32
call fcn.00402000
lea eax, [ebp - 0x80]
call fcn.00402b60
mov byte [0x43b850], al
mov eax, 0x4362c8
push eax
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x43b9c0], eax
test eax, eax
je 0x426080
mov eax, 0x4362d4
push eax
push dword [0x43b9c0]
call sub.kernel32.dll_GetProcAddress
mov dword [0x43b9b0], eax
nop
cmp dword [0x43b820], 6
jae 0x426094
mov dword [0x42ee70], 0
nop
cmp dword [0x43b820], 6
jb 0x4260b0
cmp dword [0x43b830], 1
jb 0x4260b0
mov dword [0x42ee80], 2
mov esp, ebp
pop ebp
ret
Function at 0x405e04
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 0x405e6a
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.00404450
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e54
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e71
lea eax, [ebp - 0x10]
call fcn.004041e0
ret

Function at 0x40ae40
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 0x40ae79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d0
jmp 0x40ae82
mov eax, ebx
mov edx, esi
call fcn.00404234
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b544
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3ac
mov eax, dword [0x451fe4]
cmp byte [eax], 0
je 0x40b5c0
mov eax, dword [0x451e1c]
call fcn.00402d10
call fcn.00402bb4
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.00408630
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 0x40b608
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5f6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x451dd0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x453664]
call fcn.00405270
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 0x41a740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x453884
cmp dword [esi], 0
jne 0x41a7e6
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x453880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4513ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41a718
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041a738
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041a738
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41a7ad
mov eax, dword [ebp - 8]
mov dword [0x453880], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41b9bc
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 0x41b9c2
ret

Function at 0x41de34
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 0x41de85
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41de6c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41de5c
jmp 0x41de85
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 0x41de6d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a11c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42a068
call sub.user32.dll_EnumWindows
ret

Function at 0x42a23c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42a2b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00429c9c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42a261
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042989c
cmp dword [ebp - 4], 0
je 0x42a2a3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046a0
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a2c0
lea eax, [ebp - 4]
call fcn.004041e0
ret

Function at 0x42d28c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x453ae8], 0
je 0x42d3db
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x451f88]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42d3db
mov eax, dword [0x453aec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x453ae8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42d3aa
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x453ae8]
call fcn.00413c2c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42d3a2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42d3a2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42d3a2
mov eax, dword [ebp - 0x14]
call fcn.00435f4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42d3a2
push ebp
call fcn.0042d248
pop ecx
test al, al
jne 0x42d3a2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42d35e
mov eax, dword [ebp - 0x14]
call fcn.00434a7c
dec eax
jle 0x42d3a2
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403674
cmp byte [ebp - 1], 0
je 0x42d3a2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42d3a2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x453aec]
call fcn.0042ca14
inc edi
dec ebx
jne 0x42d2f1
mov eax, dword [0x453aec]
cmp dword [eax + 8], 0
jle 0x42d3c2
mov eax, dword [0x453aec]
call fcn.0042caa4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42d3db
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042d0b0
pop ecx
test al, al
jne 0x42d3db
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret