joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473540
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x47355c
cmp dword [esi + 4], 0
je 0x473589
test byte [ebx + 0x55], 1
jne 0x47357b
mov eax, ebx
call fcn.00472198
test eax, eax
jne 0x47357b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x473699
mov edx, esi
mov eax, ebx
call fcn.00473060
jmp 0x473699
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x473692
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00475310
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0046fe34
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00473540
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00475310
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473699
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479b34
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a4394]
cmp byte [eax + 0xc], 0
je 0x479ca1
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x479c9a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a5620], 0
jne 0x479b88
push 0x479ca8
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x479cb0
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5620], eax
cmp dword [0x4a0018], 0
jne 0x479c83
push 0x479cc0
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4a0018], eax
cmp dword [0x4a0018], 0
je 0x479c83
push 0x479ccc
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5624], eax
push 0x479cdc
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5628], eax
push 0x479cf0
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a562c], eax
push 0x479d08
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5630], eax
push 0x479d20
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5634], eax
push 0x479d34
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5638], eax
push 0x479d4c
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a563c], eax
push 0x479d64
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5640], eax
push 0x479d80
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5644], eax
push 0x479d8c
mov eax, dword [0x4a0018]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4a5648], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479ca1
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x480378
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4803da
call fcn.00480328
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0047b2b0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0047b2b0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x480458
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4a1da4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x480532
cmp dword [0x4a1da0], 0
jne 0x480532
cmp dword [0x4a1f84], 0
je 0x4804ec
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00480228
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4804d2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00480228
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4804d2
lea ebx, [ebp - 0x84]
jmp 0x4804d3
inc ebx
call fcn.00480414
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x48056d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4a1da8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0047b2b0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4a1dab
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x48056d
cmp dword [0x4a1da0], 0
je 0x48054c
cmp dword [0x4a1da0], 0xffffffff
je 0x48056d
push esi
call dword [0x4a1da0]
pop ecx
mov eax, dword [0x4a1da4]
test eax, eax
je 0x48056d
cmp dword [0x4a1da4], 0xffffffff
je 0x48056d
cmp byte [eax], 0
je 0x48056d
push esi
push eax
call fcn.00480378
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480d04
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4a5edc], 0
jne 0x480d85
cmp dword [0x4a5efc], 0
jne 0x480d34
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4a5efc], eax
test eax, eax
jne 0x480d34
push str.GetEnvironmentStrings_failed
call fcn.00480584
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4a5efc]
jmp 0x480d48
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0047b2b0
pop ecx
mov edi, eax
test eax, eax
jne 0x480d40
lea edi, [ebp + 1]
push edi
call fcn.0047abb4
pop ecx
mov ebx, eax
mov dword [0x4a5ee0], ebx
test ebx, ebx
jne 0x480d72
xor eax, eax
jmp 0x480e48
push edi
mov edx, dword [0x4a5efc]
push edx
push ebx
call fcn.0047b160
add esp, 0xc
jmp 0x480da5
xor esi, esi
mov ebx, dword [0x4a5edc]
jmp 0x480d9f
push eax
call fcn.0047b2b0
pop ecx
test eax, eax
jne 0x480d9b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x480d8f
lea ebx, [esi + 4]
push 4
mov dword [0x4a5ee4], ebx
inc ebx
push ebx
call fcn.0047a68c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x480dc8
xor eax, eax
jmp 0x480e48
cmp dword [0x4a5edc], 0
jne 0x480df9
xor esi, esi
mov ebx, dword [0x4a5ee0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x480dea
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0047b2b0
pop ecx
mov edi, eax
test eax, eax
jne 0x480de0
jmp 0x480e2a
xor esi, esi
mov ebx, dword [0x4a5edc]
mov eax, dword [esp]
mov edi, eax
jmp 0x480e24
push eax
call fcn.0047b2b0
pop ecx
test eax, eax
je 0x480e19
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x480e1d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x480e08
mov eax, dword [0x4a5edc]
test eax, eax
je 0x480e3a
push eax
call fcn.0047abc4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4a5edc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x487954
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x487982
mov eax, ebx
call fcn.0048840c
cmp dword [ebx + 0x3c], 0
je 0x48797b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4879f3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4879e5
cmp dword [ebx + 8], 0
je 0x4879a4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4879b6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4879e5
cmp dword [ebx + 8], 0
je 0x487997
cmp eax, 3
je 0x4879c9
dec eax
jne 0x487997
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 0x487997
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x487997
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x487a11
cmp dword [ebx + 0x10], 0xcc
je 0x487a11
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00487a1c
pop ebx
ret
Function at 0x43b651
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
mov ebx, 0x515e48ef
sub ebx, 0x97a7e1e
mov ebx, 0xef6c627f
call fcn.0043b696
mov ebx, ecx
push ebx
pop ecx
xor dword [eax], edx
or ecx, ecx
sub esp, 4
mov dword [esp], ebx
pop ebx
or ecx, ebx
add eax, 1
mov ebx, ebx
add ecx, 0x4fb0d7f5
cmp eax, esi
jne fcn.0043b651
mov ebx, ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x65a0100b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x52354be5
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43b643
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov esi, dword [esp]
add esp, 4
add edi, edx
mov edi, 0x6bc2331a
call fcn.0043b685
mov edx, 0xa70113da
inc edi
or edx, edi
xor dword [ebx], esi
or edx, edx
add ebx, 1
add edx, 0x2a4c6f71
sub edx, edx
cmp ebx, eax
jne fcn.0043b643
inc edi
sub edx, edx
ret
Function at 0x40f510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f532
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f528
mov eax, 1
add ebx, ebx
jne 0x40f54b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f540
jne 0x40f55c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f540
xor ecx, ecx
sub eax, 3
jb 0x40f570
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f5e2
mov ebp, eax
add ebx, ebx
jne 0x40f57b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f588
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f5ac
inc ecx
add ebx, ebx
jne 0x40f598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f58d
jne 0x40f5a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f58d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f5cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f5bd
jmp 0x40f52e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f5cc
add edi, ecx
jmp 0x40f52e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f5ea
cmp byte [edi], 5
jne 0x40f5ea
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 0x40f5ef
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f65e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x103ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x104a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f61c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x104a4]
or eax, eax
je 0x40f658
mov dword [ebx], eax
add ebx, 4
jmp 0x40f639
call dword [esi + 0x104b4]
mov ebp, dword [esi + 0x104a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40f692
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402b40
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.00404324
test esi, esi
jne 0x402b76
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.00404414
jmp 0x402b94
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f4
mov edi, eax
test esi, esi
je 0x402b94
cmp dword [ebx], 0
je 0x402b94
dec esi
jmp 0x402b7d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032d4
Capabilities:
Query or enumerate registry value

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

Function at 0x404124
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49c04c], 0
je 0x404185
cmp word [0x49c220], 0xd7b2
jne 0x40414d
cmp dword [0x49c228], 0
jbe 0x40414d
mov eax, 0x49c21c
call dword [0x49c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49a06c
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 0x4041ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49a030], 0
jne 0x4041a1
push 0
push 0x49a064
push 0x49a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042d8
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.004027b8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042a0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405b94
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c17
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405dc4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c17
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405de0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ca0
xor eax, eax
push ebp
push 0x405c99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c7e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e00
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c7e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ca0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405dba
cmp byte [ebp - 0xd], 0
jne 0x405ce7
cmp byte [ebp - 0x12], 0
je 0x405dba
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d00
dec ebx
cmp byte [ebx], 0x2e
je 0x405d0f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405cff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405dba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d4c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405dba
cmp byte [ebp - 0xd], 0
je 0x405dba
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405dba
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4064a8
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 0x40650e
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.00404594
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e98
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406515
lea eax, [ebp - 0x10]
call fcn.00404324
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004047e4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408f35
test al, 0x10
jne 0x408f39
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c26c
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 0x40c2a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404414
jmp 0x40c2ae
mov eax, ebx
mov edx, esi
call fcn.00404378
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c960
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c7d8
mov eax, dword [0x49ba70]
cmp byte [eax], 0
je 0x40c9dc
mov eax, dword [0x49b73c]
call fcn.00402c5c
call fcn.00402920
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.004093dc
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 0x40ca24
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ca12
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49b6b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x49c668]
call fcn.004059a0
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