joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401250
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 0x401277
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 0x4012af
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 0x4012ce
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x4012e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov al, byte [0x4050c0]
sub esp, 0x308
test al, al
push esi
mov esi, dword [esp + 0x310]
jne 0x401300
push esi
call fcn.004010b0
add esp, 4
push 0x4040d8
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x401355
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push 0x4040e8
call fcn.00401c60
add esp, 8
test eax, eax
jne 0x401400
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, 0x404a80
call fcn.00401250
mov esi, eax
add esp, 4
test esi, esi
je 0x4013a4
push edi
push 0xb
push 0x404114
push esi
xor edi, edi
call dword [sym.imp.MSVCR71.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401398
lea ecx, [esi + 0xf]
push ecx
push 0x404120
call fcn.00401c60
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test edi, edi
pop edi
jne 0x401400
push str.PYTHON25.DLL
push 0x4050c0
push 0x404140
lea edx, [esp + 0x14]
push 0x304
push edx
call dword [sym.imp.MSVCR71.dll__snprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401c60
add esp, 0x1c
test eax, eax
jne 0x401400
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 0x401440
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 0x4014ad
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40154b
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push 0x404168
call fcn.00402450
add esp, 8
test eax, eax
je 0x40154b
push 0x404174
push eax
call fcn.00402160
add esp, 8
test eax, eax
je 0x40154b
call eax
pop esi
add esp, 0x304
ret
push str.zlib.pyd
push 0x4050c0
push str._s_s
lea eax, [esp + 0x10]
push 0x304
push eax
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x4014ee
push str.initzlib
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x4014a3
push edi
push 0
mov eax, 0x404a80
call fcn.00401250
mov esi, eax
add esp, 4
test esi, esi
mov edi, esi
je 0x40154a
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_strncmp]
push 0xb
push str._pythondll_
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x401525
mov edx, dword [esi + 0xb]
lea edi, [esi + edx + 0xf]
push 0xa
push str._zlib.pyd_
push edi
call ebx
add esp, 0xc
test eax, eax
pop ebx
jne 0x401543
add edi, 0xe
push edi
call fcn.00401410
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
pop edi
pop esi
add esp, 0x304
ret
Function at 0x4017e0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push edi
mov edi, dword [esp + 8]
push edi
call fcn.00401150
add esp, 4
test eax, eax
je 0x4017ff
push edi
call fcn.004012e0
add esp, 4
test eax, eax
jne 0x401806
mov eax, 0xff
pop edi
ret
mov eax, dword [0x4052ec]
mov ecx, dword [eax + 8]
test ecx, ecx
push esi
je 0x401842
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_setbuf]
push 0
push ecx
call esi
mov edx, dword [sym.imp.MSVCR71.dll__iob]
add edx, 0x20
push 0
push edx
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push 0
push eax
call esi
add esp, 0x18
mov esi, dword [sym.imp.MSVCR71.dll_getenv]
push 0x404214
call esi
add esp, 4
test eax, eax
je 0x401871
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, dword [0x404804]
add esp, 8
mov dword [ecx], eax
jmp 0x40187d
mov edx, dword [0x404804]
mov dword [edx], 0
mov eax, dword [0x40481c]
mov dword [eax], 1
mov ecx, dword [0x40480c]
mov dword [ecx], 1
mov edx, dword [0x4052ec]
mov eax, dword [edx + 4]
mov ecx, dword [0x404814]
push 0x404da0
mov dword [ecx], eax
call dword [0x4046ac]
add esp, 4
call fcn.00401560
call dword [0x40471c]
test eax, eax
jne 0x4018d3
call fcn.004015f0
test eax, eax
jne 0x401939
call dword [0x404684]
jmp 0x4018dc
call fcn.004016d0
test eax, eax
jne 0x401939
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401909
push 1
call dword [0x4047fc]
push eax
push 0x404234
call dword [0x40479c]
add esp, 0xc
push edi
call fcn.00401440
add esp, 4
pop esi
xor eax, eax
pop edi
ret
push eax
call dword [0x4047ac]
mov esi, eax
add esp, 4
test esi, esi
je 0x40192e
push esi
push str.frozen
call dword [0x40479c]
push esi
call fcn.00401b40
add esp, 0xc
push edi
call fcn.00401440
add esp, 4
xor eax, eax
pop esi
pop edi
ret

Function at 0x401bb0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov esi, 0x404680
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bc1
sub eax, edx
add eax, ebx
cmp eax, ebx
je 0x401bda
cmp byte [eax], 0x5c
je 0x401bdf
dec eax
cmp eax, ebx
jne 0x401bd0
cmp byte [eax], 0x5c
jne 0x401be0
inc eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x401bfa
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401c56
mov eax, dword [str.Py_Initialize]
test eax, eax
je 0x401c27
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea esp, [esp]
mov eax, dword [esi]
push eax
push edi
call ebx
test eax, eax
mov dword [esi + 4], eax
je 0x401c30
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jne 0x401c10
pop edi
pop esi
mov eax, 1
pop ebx
ret
push 0x40484c
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov ecx, dword [esi]
mov edx, dword [sym.imp.MSVCR71.dll__iob]
push ecx
add edx, 0x40
push 0x40485c
push edx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401c60
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, 0x404680
jne 0x401c7d
mov eax, dword [esp + 8]
push eax
call fcn.00401bb0
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 0x401ceb
mov eax, dword [str.Py_Initialize]
test eax, eax
je 0x401cbd
jmp 0x401ca0
mov edx, dword [esi]
push edx
push edi
call fcn.00402160
add esp, 8
test eax, eax
mov dword [esi + 4], eax
je 0x401cc5
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
jne 0x401ca0
pop edi
mov eax, 1
pop esi
ret
push str.undef_symbol
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, dword [esi]
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
push eax
add ecx, 0x40
push str.undefined_symbol__s____exit__1__n
push ecx
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x401e60
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ebx, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x401f20
push esi
add ebx, 0x10
push edi
lea esp, [esp]
mov eax, dword [ebx]
test eax, eax
jne 0x401ece
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x401f00
mov eax, dword [ebx - 4]
push 4
push 0x1000
push esi
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ecx, esi
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x401f00
push 4
push 0x1000
push eax
mov eax, dword [ebx - 4]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
inc eax
add ebx, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401e90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401f30
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 ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x401fe5
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 0x401f85
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x401fcd
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x4048b4]
je 0x401f9f
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401fba
test al, 0x40
je 0x401fb1
mov ecx, dword [ebx + 0x20]
jmp 0x401fb8
test al, al
jns 0x401fcd
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401fcd
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 0x401f52
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 [0x404a74]
test esi, esi
push edi
je 0x40247c
mov edi, dword [sym.imp.MSVCR71.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 0x4024a6
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x402463
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
jne 0x402498
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
mov dword [esp + 8], edi
je 0x4024af
push 0xb
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop edi
xor eax, eax
pop esi
pop ecx
ret
inc dword [esi + 0x1c]
pop edi
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push ebp
push 4
push 0x2000
push edx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x4024f0
mov ecx, dword [edi + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x4024f0
push 8
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebx
push 0x28
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edx, dword [esp + 0x18]
mov ebx, eax
xor eax, eax
push edx
mov dword [ebx + 4], ebp
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], 1
call dword [sym.imp.MSVCR71.dll__strdup]
add esp, 4
push 4
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], 0
mov eax, dword [edi + 0x50]
push 0x1000
push eax
push ebp
call esi
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebp
call esi
mov edx, dword [edi + 0x54]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x3c]
add ecx, edx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x3c]
mov esi, dword [esp + 0x10]
push ebx
add eax, edx
push esi
mov dword [ebx], eax
push ecx
mov dword [eax + 0x34], ebp
call fcn.00401e60
mov ecx, dword [esi + 0x34]
mov eax, ebp
add esp, 0xc
sub eax, ecx
je 0x4025a0
push eax
mov eax, ebx
call fcn.00401ff0
add esp, 4
push ebx
call fcn.004022d0
add esp, 4
test eax, eax
je 0x4025d8
push ebx
call fcn.00401f30
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x4025fa
add eax, ebp
jne 0x4025cd
push 0xb
call dword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x4025d8
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x4025f3
mov ecx, dword [ebx + 0x18]
push ecx
call dword [sym.imp.MSVCR71.dll_free]
push ebx
call fcn.004021f0
add esp, 8
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov dword [ebx + 0x10], 1
mov eax, ebx
call fcn.00401cf0
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x40284a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x403100
call fcn.00402acc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x402885
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402885
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40289d
cmp eax, 0x20b
je 0x40288a
mov dword [ebp - 0x1c], edi
jmp 0x4028b1
cmp dword [ecx + 0x84], 0xe
jbe 0x402885
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4028ab
cmp dword [ecx + 0x74], 0xe
jbe 0x402885
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4052f4], 0xffffffff
or dword [0x4052f8], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x404a70]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x404a6c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4052f0], eax
call fcn.00402a26
call fcn.00402ac6
cmp dword [0x404a58], edi
jne 0x402911
push fcn.00402ac6
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00402ab4
push 0x40400c
push 0x404008
call sub.MSVCR71.dll__initterm
push 0x402a6a
call fcn.00402a14
mov eax, dword [0x404a68]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x404a64]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x402965
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x404004
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00401090
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x4029a1
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4029d6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00402b07
ret
Function at 0x403388
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.00404cf8
test esi, esi
jne 0x4033be
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.00404de8
jmp 0x4033dc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040322c
mov edi, eax
test esi, esi
je 0x4033dc
cmp dword [ebx], 0
je 0x4033dc
dec esi
jmp 0x4033c5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403410
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49a008], 0x8088405
inc edx
mov dword [ebx + 0x49a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403b30
Capabilities:
Query or enumerate registry value

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

Function at 0x404ac4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49d04c], 0
je 0x404b25
cmp word [0x49d220], 0xd7b2
jne 0x404aed
cmp dword [0x49d228], 0
jbe 0x404aed
mov eax, 0x49d21c
call dword [0x49d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404b4c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49a030], 0
jne 0x404b41
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x49a034], 0
je 0x404ca2
mov edx, esi
mov eax, ebx
call dword [0x49a034]
jmp 0x404cb1
mov eax, 8
call fcn.00402f3c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c44
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406654
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 0x406884
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406884
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4066d7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4068a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406760
xor eax, eax
push ebp
push 0x406759
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406490
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 0x40673e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4068c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40673e
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 0x406760
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 0x40687a
cmp byte [ebp - 0xd], 0
jne 0x4067a7
cmp byte [ebp - 0x12], 0
je 0x40687a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4067c0
dec ebx
cmp byte [ebx], 0x2e
je 0x4067cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4067bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40687a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40680c
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 0x40687a
cmp byte [ebp - 0xd], 0
je 0x40687a
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 0x40687a
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