joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1074ac4
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x10946d4], 0
jne 0x1074b83
mov dword [ebp - 0x10], 0x80000000
push 0x400
call fcn.0107af6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x10946d4], eax
mov dword [ebp - 0xc], 0
jmp 0x1074b08
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x100
jge 0x1074b83
push 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.01074a6e
add esp, 8
shl eax, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x1074b37
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jge 0x1074b64
mov ecx, dword [ebp - 0x18]
and ecx, 0x80000000
test ecx, ecx
je 0x1074b5a
mov edx, dword [ebp - 0x18]
shl edx, 1
xor edx, 0x4c11db7
mov dword [ebp - 0x18], edx
jmp 0x1074b62
mov eax, dword [ebp - 0x18]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x1074b2e
push 0x20
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.01074a6e
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x10946d4]
mov dword [ecx + edx*4], eax
jmp 0x1074aff
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x1074b9d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x1074bc9
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
mov eax, dword [0x10946d4]
mov ecx, dword [eax + ecx*4]
xor ecx, edx
mov dword [ebp + 0x10], ecx
jmp 0x1074b94
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x10757a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x1075813
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x107585c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.01080eb0
add esp, 8
test eax, eax
jne 0x107585a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x107585e
jmp 0x107580a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x107a9ae
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.010775a9
add esp, 4
and eax, 0xff
test eax, eax
je 0x107aa37
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.0107b6b0
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x107aa35
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x107aa35
jmp 0x107aa37
jmp 0x107a9b7
mov esp, ebp
pop ebp
ret

Function at 0x107d6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1091af8
cmp edx, dword [eax]
je 0x107d6d2
add eax, 8
inc ecx
cmp eax, 0x1091b88
jl 0x107d6c3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1091af8]
jne 0x107d800
mov eax, dword [0x1094c50]
cmp eax, 1
je 0x107d7da
test eax, eax
jne 0x107d703
cmp dword [0x1091834], 1
je 0x107d7da
cmp edx, 0xfc
je 0x107d800
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x107d73a
lea eax, [ebp - 0x1a4]
push 0x10945c0
push eax
call fcn.0107bb20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0107b8a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x107d77d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0107b8a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10945bc
push edi
call fcn.0107bcd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x10945a0
push eax
call fcn.0107bb20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0107bb30
lea eax, [ebp - 0xa0]
push 0x109459c
push eax
call fcn.0107bb30
push dword [esi + 0x1091afc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0107bb30
push 0x12010
lea eax, [ebp - 0xa0]
push 0x1094574
push eax
call fcn.0107fc78
add esp, 0x2c
pop edi
jmp 0x107d800
lea eax, [ebp + 8]
lea esi, [esi + 0x1091afc]
push 0
push eax
push dword [esi]
call fcn.0107b8a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405e20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80c90b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4040f4
call fcn.00406a81
push 4
mov dword [esp + 0x18], 0
call fcn.00407a74
mov edi, eax
add esp, 4
test edi, edi
je 0x405e94
push ebx
call fcn.00406959
mov dword [edi], eax
call fcn.00406718
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406a42
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405e88
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406a6a
pop ebx
jmp 0x405e96
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4084e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80ff08]
jne 0x4084eb
repz ret
jmp fcn.0040d33c
Function at 0x4117a2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x80ff08]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a60a
and dword [ebp - 0x14], 0
cmp dword [0x81464c], 0
mov dword [ebp - 0x18], eax
jne 0x411855
push 0x40379c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4118fd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403790
push ebx
call edi
test eax, eax
je 0x4118fd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403780
push ebx
mov dword [0x81464c], eax
call edi
push eax
call esi
push 0x40376c
push ebx
mov dword [0x814650], eax
call edi
push eax
call esi
push 0x403750
push ebx
mov dword [0x814654], eax
call edi
push eax
call esi
mov dword [0x81465c], eax
test eax, eax
je 0x411855
push 0x403738
push ebx
call edi
push eax
call esi
mov dword [0x814658], eax
mov eax, dword [0x814658]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4118ae
cmp dword [0x81465c], ecx
je 0x4118ae
push eax
call esi
push dword [0x81465c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4118ae
test ebx, ebx
je 0x4118ae
call edi
test eax, eax
je 0x4118a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4118a5
test byte [ebp - 8], 1
jne 0x4118ae
or dword [ebp + 0x10], 0x200000
jmp 0x4118e1
mov eax, dword [0x814650]
cmp eax, dword [ebp - 0x18]
je 0x4118e1
push eax
call esi
test eax, eax
je 0x4118e1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4118e1
mov eax, dword [0x814654]
cmp eax, dword [ebp - 0x18]
je 0x4118e1
push eax
call esi
test eax, eax
je 0x4118e1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81464c]
call esi
test eax, eax
je 0x4118fd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4118ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004084e1
leave
ret
Function at 0x80a7e0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.004120f0
cmp dword [0xb983e4], 0x37
jne 0x80a87a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov ecx, dword [0xb993d8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x819434]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x80ab00
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb983e4]
sub esp, 0x43c
push ebx
push ebp
push esi
mov esi, dword [0x819434]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x80ad06
mov dword [esp + 0x34], 0x9e3779b9
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jmp 0x80ab46
mov esi, dword [esp + 0x24]
xor edi, edi
cmp dword [0xb983e4], 0x1c
jne 0x80ab5d
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x8102c0]
mov ebx, dword [0x8102c8]
mov ebp, dword [0x8102cc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x8102c4]
mov dword [esp + 0x1c], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], 0x20
jmp 0x80aba6
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x20], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0xb98354], edi
mov eax, dword [esp + 0x20]
add dword [0xb98354], eax
mov eax, dword [0xb98354]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x38]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x3c]
add dword [esp + 0x10], eax
cmp dword [0xb983e4], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x80ac3d
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x30]
cmp dword [0xb983e4], 0x979
mov dword [0xb98358], 0xff6b3619
mov dword [0xb9835c], 0xffffffff
mov dword [esp + 0x20], eax
jne 0x80ac77
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
sub esi, dword [esp + 0x18]
dec dword [esp + 0x2c]
jne 0x80aba0
cmp dword [0xb983e4], 0x8d4
jne 0x80acbb
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
cmp dword [0xb983e4], 0x17
jne 0x80acf5
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x48]
push ecx
push 0x403f3c
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x24], esi
jne 0x80ab40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
Function at 0x4490f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3c000]
push edi
or ebp, 0xffffffff
jmp 0x449112
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x449119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x449108
mov eax, 1
add ebx, ebx
jne 0x44912b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x449120
jne 0x44913c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x449120
xor ecx, ecx
sub eax, 3
jb 0x449150
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4491c2
mov ebp, eax
add ebx, ebx
jne 0x44915b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x449168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x44918c
inc ecx
add ebx, ebx
jne 0x449178
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44916d
jne 0x449189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44916d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4491ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44919d
jmp 0x44910e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4491ac
add edi, ecx
jmp 0x44910e
pop esi
mov edi, esi
mov ecx, 0xd20
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4491ca
cmp byte [edi], 0xe
jne 0x4491ca
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 0x4491cf
lea edi, [esi + 0x47000]
mov eax, dword [edi]
or eax, eax
je 0x44923e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4daf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4dbec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4491fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4dbf4]
or eax, eax
je 0x449238
mov dword [ebx], eax
add ebx, 4
jmp 0x449219
call dword [esi + 0x4dbf0]
mov ebp, dword [esi + 0x4dbf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x449272
sub esp, 0xffffff80
jmp 0x41a0e4
Function at 0x402fa8
Capabilities:
Query or enumerate registry value

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

Function at 0x403d4c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x478048], 0
je 0x403dad
cmp word [0x47821c], 0xd7b2
jne 0x403d75
cmp dword [0x478224], 0
jbe 0x403d75
mov eax, 0x478218
call dword [0x478234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47606c
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 0x403dd4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x476030], 0
jne 0x403dc9
push 0
push 0x476064
push 0x47606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053b4
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 0x4055e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405437
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4055e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405437
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405600
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4054c0
xor eax, eax
push ebp
push 0x4054b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004051fc
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 0x40549e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405620
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40549e
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 0x4054c0
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 0x4055da
cmp byte [ebp - 0xd], 0
jne 0x405507
cmp byte [ebp - 0x12], 0
je 0x4055da
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405520
dec ebx
cmp byte [ebx], 0x2e
je 0x40552f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40551f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4055da
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40556c
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 0x4055da
cmp byte [ebp - 0xd], 0
je 0x4055da
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 0x4055da
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 0x405cac
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 0x405d12
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.00404138
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b6c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cfc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d19
lea eax, [ebp - 0x10]
call fcn.00403ec8
ret

Function at 0x40aea8
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 0x40aee1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fb8
jmp 0x40aeea
mov eax, ebx
mov edx, esi
call fcn.00403f1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40beb4
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 0x40bf8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f60
lea eax, [ebp - 8]
call fcn.004043d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404388
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf74
mov eax, ebx
call fcn.004026e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf6d
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.00404388
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf57
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf9c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf57
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 0x40bf74
mov eax, dword [ebp - 0x10]
call fcn.00402704
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf91
lea eax, [ebp - 8]
call fcn.00403ec8
ret