joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401280
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012a7
xor eax, eax
pop esi
pop ecx
ret
push ebx
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, eax
call esi
cmp edi, 0xffffffff
jne 0x4012df
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push ebp
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push edi
mov ebp, eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4012fe
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x401310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x308
cmp byte [0x406420], 0
push esi
mov esi, dword [esp + 0x310]
jne 0x401330
push esi
call fcn.004010b0
add esp, 4
push 0x4050c8
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x401385
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push 0x4050d8
call fcn.00401c90
add esp, 8
test eax, eax
jne 0x401430
push str.Could_not_load_python_dll
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call section..text
add esp, 8
xor eax, eax
pop esi
add esp, 0x308
ret
lea eax, [esp + 4]
push eax
mov eax, 0x405de0
call fcn.00401280
mov esi, eax
add esp, 4
test esi, esi
je 0x4013d4
push edi
push 0xb
push 0x405104
push esi
xor edi, edi
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4013c8
lea ecx, [esi + 0xf]
push ecx
push 0x405110
call fcn.00401c90
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x401430
push str.PYTHON27.DLL
push 0x406420
push 0x405130
lea edx, [esp + 0x14]
push 0x304
push edx
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401c90
add esp, 0x1c
test eax, eax
jne 0x401430
push str.LoadLibrary_pythondll__failed
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call section..text
lea ecx, [esp + 0x10]
push ecx
push 0
call section..text
add esp, 0x10
xor eax, eax
pop esi
add esp, 0x308
ret
mov eax, 1
pop esi
add esp, 0x308
ret
Function at 0x401470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x304
push esi
mov esi, dword [esp + 0x30c]
push str.ZLIB.PYD
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x4014dc
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401584
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push 0x405158
call fcn.00402450
add esp, 8
test eax, eax
je 0x401584
push 0x405164
push eax
call fcn.00402160
add esp, 8
test eax, eax
je 0x401584
pop esi
add esp, 0x304
jmp eax
push str.zlib.pyd
push 0x406420
push 0x405188
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x401527
push str.initzlib
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x401527
call eax
pop esi
add esp, 0x304
ret
push edi
push 0
mov eax, 0x405de0
call fcn.00401280
mov esi, eax
add esp, 4
mov edi, esi
test esi, esi
je 0x401583
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_strncmp]
push 0xb
push str._pythondll_
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40155e
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push str._zlib.pyd_
push edi
call ebx
add esp, 0xc
pop ebx
test eax, eax
jne 0x40157c
add edi, 0xe
push edi
call fcn.00401440
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret
Function at 0x401810
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401150
add esp, 4
test eax, eax
jne 0x401829
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.00401310
add esp, 4
test eax, eax
je 0x401822
mov eax, dword [0x40664c]
cmp dword [eax + 8], 0
push esi
je 0x401874
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push 0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_setbuf]
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x20
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
pop edi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push 0x405204
call esi
add esp, 4
test eax, eax
je 0x4018a3
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x4057f4]
add esp, 8
mov dword [ecx], eax
jmp 0x4018af
mov edx, dword [0x4057f4]
mov dword [edx], 0
mov eax, dword [0x40580c]
mov dword [eax], 1
mov ecx, dword [0x4057fc]
mov dword [ecx], 1
mov edx, dword [0x40664c]
mov eax, dword [edx + 4]
mov ecx, dword [0x405804]
push 0x406100
mov dword [ecx], eax
call dword [0x40569c]
add esp, 4
call fcn.00401590
call dword [0x40570c]
test eax, eax
jne 0x401905
call fcn.00401620
test eax, eax
jne 0x40196b
call dword [0x405674]
jmp 0x40190e
call fcn.00401700
test eax, eax
jne 0x40196b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40193b
push 1
call dword [0x4057ec]
push eax
push 0x405224
call dword [0x40578c]
add esp, 0xc
push ebx
call fcn.00401470
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [0x40579c]
mov esi, eax
add esp, 4
test esi, esi
je 0x401960
push esi
push 0x40522c
call dword [0x40578c]
push esi
call fcn.00401b70
add esp, 0xc
push ebx
call fcn.00401470
add esp, 4
xor eax, eax
pop esi
pop ebx
ret

Function at 0x401be0
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, 0x405670
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bf1
sub eax, edx
add eax, edi
cmp eax, edi
je 0x401c0a
cmp byte [eax], 0x5c
je 0x401c0f
dec eax
cmp eax, edi
jne 0x401c00
cmp byte [eax], 0x5c
jne 0x401c10
inc eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401c2a
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x401c84
cmp dword [0x405670], 0
je 0x401c55
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push ebx
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x401c5e
add esi, 8
cmp dword [esi], 0
jne 0x401c40
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x40583c
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov ecx, dword [esi]
push ecx
push 0x40584c
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401c90
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, 0x405670
test eax, eax
jne 0x401cad
mov eax, dword [esp + 8]
push eax
call fcn.00401be0
add esp, 4
pop esi
ret
mov ecx, dword [esp + 8]
push edi
push eax
push ecx
call fcn.00402450
mov edi, eax
add esp, 8
test edi, edi
je 0x401d19
cmp dword [0x405670], 0
je 0x401ceb
jmp 0x401cd0
mov edx, dword [esi]
push edx
push edi
call fcn.00402160
add esp, 8
mov dword [esi + 4], eax
test eax, eax
je 0x401cf3
add esi, 8
cmp dword [esi], 0
jne 0x401cd0
pop edi
mov eax, 1
pop esi
ret
push str.undef_symbol
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [esi]
push eax
push str.undefined_symbol__s____exit__1__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x401e90
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x401f37
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x401ef2
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x401f1b
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call sub.MSVCR90.dll_memset
jmp 0x401f18
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call sub.MSVCR90.dll_memcpy
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401ec3
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x401f40
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x401ff7
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401f97
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x401fdf
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov esi, dword [ecx*4 + 0x4058a4]
test eax, 0x4000000
je 0x401fb1
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401fcc
test al, 0x40
je 0x401fc3
mov ecx, dword [ebx + 0x20]
jmp 0x401fca
test al, al
jns 0x401fdf
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401fdf
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x401f64
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402450
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, dword [0x405dbc]
push edi
test esi, esi
je 0x40247c
mov edi, dword [sym.imp.MSVCR90.dll__stricmp]
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x40249b
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x402463
push ebp
mov ebp, dword [esp + 0x18]
mov edx, 0x5a4d
cmp word [ebp], dx
je 0x4024a4
push 0xb
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
inc dword [esi + 0x1c]
pop edi
mov eax, esi
pop esi
pop ecx
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x4024c2
push 0xb
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x402503
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x402503
push 8
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0x28
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esi + 4], edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
push 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov ecx, dword [ebx + 0x50]
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edx, dword [ebx + 0x54]
push 4
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [ebx + 0x54]
mov dword [esp + 0x10], eax
push ecx
push ebp
push eax
call sub.MSVCR90.dll_memcpy
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x1c]
push esi
add eax, edx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00401e90
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x4025aa
push eax
mov eax, esi
call fcn.00402000
add esp, 4
push esi
call fcn.004022d0
add esp, 4
test eax, eax
je 0x4025e2
push esi
call fcn.00401f40
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
add esp, 4
test eax, eax
je 0x402604
add eax, edi
jne 0x4025d7
push 0xb
call dword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x4025e2
push 0
push 1
push edi
call eax
test eax, eax
jne 0x4025fd
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_free]
push esi
call fcn.004021f0
add esp, 8
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov dword [esi + 0x10], 1
mov eax, esi
call fcn.00401d20
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x200205d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x2002079d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x200205fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x20020601
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x200205f0
mov eax, 1
add ebx, ebx
jne 0x20020613
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x20020608
jne 0x20020624
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x20020608
xor ecx, ecx
sub eax, 3
jb 0x20020638
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x200206aa
mov ebp, eax
add ebx, ebx
jne 0x20020643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x20020650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x20020674
inc ecx
add ebx, ebx
jne 0x20020660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x20020655
jne 0x20020671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x20020655
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x20020694
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x20020685
jmp 0x200205f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x20020694
add edi, ecx
jmp 0x200205f6
pop esi
mov edi, esi
mov ecx, 0x7b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x200206b2
cmp byte [edi], 1
jne 0x200206b2
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 0x200206b7
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x2002072f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20a30]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20ae4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x200206e4
mov ecx, edi
jns 0x20020713
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 + 0x20ae8]
or eax, eax
je 0x20020729
mov dword [ebx], eax
add ebx, 4
jmp 0x20020701
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x20020760
cmp al, 0xef
ja 0x20020753
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x20020735
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x20020742
mov ebp, dword [esi + 0x20aec]
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 0x20020794
sub esp, 0xffffff80
jmp 0x2001006c
Function at 0x402a64
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.0040419c
test esi, esi
jne 0x402a9a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040428c
jmp 0x402ab8
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402ab8
cmp dword [ebx], 0
je 0x402ab8
dec esi
jmp 0x402aa1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40321c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x488020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403294
xor eax, eax
push ebp
push 0x40328d
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 0x4032d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403294
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x488020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x488020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48c04c], 0
je 0x403ffd
cmp word [0x48c220], 0xd7b2
jne 0x403fc5
cmp dword [0x48c228], 0
jbe 0x403fc5
mov eax, 0x48c21c
call dword [0x48c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48806c
push 0xfffffffffffffff5
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 0x404024
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x488030], 0
jne 0x404019
push 0
push 0x488064
push 0x48806c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404150
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.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404118
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405734
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405964
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4057b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405964
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x4057b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405980
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x405840
xor eax, eax
push ebp
push 0x405839
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040557c
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_1
test eax, eax
je 0x40581e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4059a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40581e
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 0x405840
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40595a
cmp byte [ebp - 0xd], 0
jne 0x405887
cmp byte [ebp - 0x12], 0
je 0x40595a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4058a0
dec ebx
cmp byte [ebx], 0x2e
je 0x4058af
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40589f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40595a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4058ec
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 0x40595a
cmp byte [ebp - 0xd], 0
je 0x40595a
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 0x40595a
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