joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447750
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49cfa8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x447789
inc eax
mov dword [esi + 0x10], eax
jmp 0x44789c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44779d
mov eax, 0xffffffc7
jmp 0x44789e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4477ae
cmp dword [esi + 8], eax
jne 0x44779d
cmp dword [esi + 8], eax
jne 0x4477c7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4477c7
mov eax, 0xffffffc7
jmp 0x44789e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4477db
push eax
mov ecx, ebx
call fcn.00446f80
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0041d310
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44780c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0041d330
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004466f0
test eax, eax
mov dword [esp + 0x38], eax
je 0x44783f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ac964
call fcn.0041d510
mov eax, dword [esp + 0x38]
jmp 0x44789e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004475b0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x447883
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004475d0
mov esi, eax
test esi, esi
jne 0x4478b3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004475b0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x447855
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ac964
call fcn.0041d510
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ac964
call fcn.0041d510
mov eax, esi
jmp 0x44789e

Function at 0x44c210
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x44c270
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x44c270
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x44c270
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x44c270
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x44c2b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x457c70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49cc28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004976e4
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00457610
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00497612
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00493f07
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00493f07
push 1
push 0
push 0
mov ecx, esi
call fcn.00493eaf
push 1
push 0
push 1
mov ecx, esi
call fcn.00493eaf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00497756
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x457df0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49cc28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004976e4
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00457610
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00497612
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x457eb4
cmp dword [esp + 0x40], 1
jne 0x457eb2
cmp ecx, eax
jge 0x457eb4
mov eax, ecx
cmp eax, 0xc8
jge 0x457ec0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00457c70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00497756
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x458640
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49d783
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00492341
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049798c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00498ea8
test eax, eax
je 0x45875c
mov ecx, dword [esp + 0x3c]
call fcn.004979b9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x458720
push edi
mov ecx, esi
call fcn.00495020
mov ecx, esi
call fcn.004588c0
cmp dword [esp + 0x38], 1
jne 0x458755
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049515b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45a800
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45a833
push esi
call fcn.00468b20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45a82c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45a8b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45a8a2
mov eax, dword [esi + 8]
test eax, eax
je 0x45a857
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45a89e
cmp eax, 2
je 0x45a8a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45a84a
cmp eax, 3
je 0x45a87d
cmp eax, 1
jne 0x45a84a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45a84a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45a84a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045a8e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45a8c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045a8e0
add esp, 4
pop esi
ret

Function at 0x45b150
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45b171
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45b171
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45b171
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x483f3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cf00c]
jne 0x483f44
repz ret
jmp fcn.0048c052
Function at 0x48b0d4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0047e4c8
and dword [ebp - 4], 0
cmp dword [0x4e2bc0], 0
mov ebx, eax
jne 0x48b185
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x48b236
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b6fd0
push edi
call esi
test eax, eax
je 0x48b236
push eax
call fcn.0047e456
mov dword [esp], 0x4b6fc0
push edi
mov dword [0x4e2bc0], eax
call esi
push eax
call fcn.0047e456
mov dword [esp], 0x4b6fac
push edi
mov dword [0x4e2bc4], eax
call esi
push eax
call fcn.0047e456
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e2bc8], eax
call esi
push eax
call fcn.0047e456
pop ecx
mov dword [0x4e2bd0], eax
test eax, eax
je 0x48b185
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047e456
pop ecx
mov dword [0x4e2bcc], eax
mov eax, dword [0x4e2bcc]
cmp eax, ebx
je 0x48b1dd
cmp dword [0x4e2bd0], ebx
je 0x48b1dd
push eax
call fcn.0047e4d1
push dword [0x4e2bd0]
mov esi, eax
call fcn.0047e4d1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48b1dd
test edi, edi
je 0x48b1dd
call esi
test eax, eax
je 0x48b1d4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48b1d4
test byte [ebp - 0xc], 1
jne 0x48b1dd
or dword [ebp + 0x10], 0x200000
jmp 0x48b216
mov eax, dword [0x4e2bc4]
cmp eax, ebx
je 0x48b216
push eax
call fcn.0047e4d1
pop ecx
test eax, eax
je 0x48b216
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x48b216
mov eax, dword [0x4e2bc8]
cmp eax, ebx
je 0x48b216
push eax
call fcn.0047e4d1
pop ecx
test eax, eax
je 0x48b216
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e2bc0]
call fcn.0047e4d1
pop ecx
test eax, eax
je 0x48b236
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48b238
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49311d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x493155
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004911eb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004911c3
jmp 0x493161
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49480b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49484d
call fcn.0049a188
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49484d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x494844
xor eax, eax
jmp 0x494855
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049485b
pop edi
pop esi
pop ebx
ret 4
Function at 0x49a6b8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49a6e6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a704
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a61e
jmp 0x49a704
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a704
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a61e
test edi, edi
mov eax, edi
jne 0x49a6ee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42476d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x42477c
pop dword [ebp - 0x40]
mov eax, 0x42477c
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x51848
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x8835b8a8
add ecx, 0x77ca94f7
xor edi, edi
add edi, eax
mov ebx, 0xc6549c17
sub ebx, 0xc60c0e17
add ebx, dword [ebp - 0x40]
mov esi, 0xe99765aa
sub dword [ebp - 0xc], edi
mov edx, dword [ebx]
xor edx, esi
add dword [ebp - 0x3c], 0xec5503e6
mov dword [edi], edx
sub dword [ebp - 0x18], 0xf0c0c43c
add edi, 0x2bc5bcea
sub edi, 0x2bc5bce6
add ebx, 0x609146c5
add ebx, 0x9f6eb93f
loop 0x4247cd
add eax, 0x2dc1f777
add eax, 0xd23f31d8
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xea434c4b
add ecx, 0x15fcb3b5
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x403203
pop dword [ebp - 0x10]
mov eax, 0x5f7b8a3d
sub eax, 0x5f3b583a
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x95a13bf9
sub dword [ebp - 0x20], 0x474ef6ae
mov dword [ebp - 0x1c], 0xccf1b053
sub dword [ebp - 0x1c], 0x9abe640e
mov dword [ebp - 0x18], 0x981de3e3
sub dword [ebp - 0x18], 0x4bd19fb5
mov dword [ebp - 0x14], 0x24b80e1d
add dword [ebp - 0x14], 0xdb47f1e3
lea eax, [ebp - 0x20]
push eax
mov eax, 0x7b7c9e59
add eax, 0x84c3d20b
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x32226f8c
sub dword [ebp - 0x20], 0xbdb00636
mov dword [ebp - 0x1c], 0x7b55ae0d
sub dword [ebp - 0x1c], 0x39e94c98
mov dword [ebp - 0x18], 0x3c68a839
add dword [ebp - 0x18], 0x2706c433
mov dword [ebp - 0x14], 0x759c18e7
add dword [ebp - 0x14], 0x8a63e719
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xa4534d8d
sub eax, 0xa412dce5
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3404d
push 0
call eax
mov ecx, 0x3db3
mov edi, eax
mov ebx, 0x2f878a89
add ebx, 0xd0b97577
add ebx, dword [ebp - 0x10]
mov edx, 0x12a64801
xor dword [ebp - 0xc], 0xaf698d3
mov esi, dword [ebx]
xor dword [ebp - 4], 0xc8ec40d4
xor esi, edx
xor dword [ebp - 4], ebx
mov dword [edi], esi
add dword [ebp - 4], esi
add edi, 4
add ebx, 0x319f38a6
sub ebx, 0x319f38a2
loop 0x403319
add eax, 0x61733895
add eax, 0x9e8db10a
xor ebx, ebx
add ebx, eax
add eax, 0x55789355
add eax, 0xaa876cb0
mov ecx, 0x43193a85
sub ecx, 0x42d93a85
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4015e1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401600
xor eax, eax
jmp 0x40167b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401616
xor eax, eax
jmp 0x40167b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x40165e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jae 0x40165e
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x401637
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x40166a
xor eax, eax
jmp 0x40167b
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
jne 0x401678
xor eax, eax
jmp 0x40167b
mov eax, dword [ebp - 4]
leave
ret
Function at 0x402700
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52633b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x34], ecx
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0xc0], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x34]
push dword [eax + 0xc0]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0xc4], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x34]
push dword [eax + 0xc4]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0x24], eax
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 1
mov ecx, dword [ebp - 0x34]
add ecx, 0x2d0
call fcn.0042f58e
mov dword [ebp - 0x10], eax
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.0040583d
and dword [ebp - 4], 0
push 0x3eb
mov ecx, dword [ebp - 0x34]
call fcn.0042d456
and eax, 1
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x28], eax
setne al
mov ecx, dword [ebp - 0x34]
mov byte [ecx + 0xcc], al
mov eax, dword [ebp - 0x34]
add eax, 0x2d0
mov dword [ebp - 0x30], eax
jne 0x4027ec
and dword [ebp - 0x38], 0
jmp 0x4027f5
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
add eax, 0xc8
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.004059c8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test eax, eax
je 0x402836
mov eax, dword [ebp - 0x34]
push dword [eax + 0xc4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x402836
mov eax, dword [ebp - 0x34]
and dword [eax + 0xc4], 0
mov eax, dword [ebp - 0x34]
push dword [eax + 0xc0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x402853
mov eax, dword [ebp - 0x34]
or dword [eax + 0xc0], 0xffffffff
mov dword [ebp - 0x2c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00405931
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x413bcd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x580b00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x413c15
push 0x538ad0
push 4
push eax
call fcn.0050f7da
push eax
call fcn.0041349c
add esp, 0x10
jmp 0x413c2b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x413cae
push edi
call fcn.0051178c
mov edi, dword [eax]
call fcn.0051178c
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00511729
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.0051178c
cmp dword [eax], 0
je 0x413c82
call fcn.0051178c
push dword [eax]
call fcn.004134c8
pop ecx
jmp 0x413c89
call fcn.0051178c
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x413cae
cmp dword [ebp - 0x11c], esi
jae 0x413cae
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
jmp 0x413cb0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00510ec1
leave
ret