joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4146e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x41477c
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x41470b
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x421d8f
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 0x421dd1
call fcn.004250de
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x421dd1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421dc8
xor eax, eax
jmp 0x421dd9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00421ddf
pop edi
pop esi
pop ebx
ret 4
Function at 0x422d6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x426974
call fcn.00416ce0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004250de
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x422da9
call fcn.004250de
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x422db7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x422dc5
or eax, 0xffffffff
jmp 0x422ead
mov ecx, esi
call fcn.00422ce0
mov dword [ebp - 0x14], eax
call fcn.004203d2
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x422dfc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x422dfc
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00420386
push dword [ebp - 0x14]
call fcn.0041feb8
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00422a78
cmp eax, edi
je 0x422e6f
test byte [esi + 0x24], 0x10
je 0x422e3d
push 4
mov ecx, esi
pop ebx
call fcn.0041f8b8
test ah, 1
je 0x422e35
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00421ee1
cmp dword [esi + 0x1c], edi
je 0x422e6f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041f8ec
jmp 0x422e6f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x422e83
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x422e9c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x422e9c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00422d1a
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x424c50
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 0x424c7e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424c9c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424bb6
jmp 0x424c9c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424c9c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424bb6
test edi, edi
mov eax, edi
jne 0x424c86
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5b8717db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov ebx, ecx
jmp 0x5b8717ff
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x5b871855
test eax, eax
je 0x5b87184e
cmp eax, esi
ja 0x5b87184e
sub esi, eax
add edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5b8717ec
call fcn.5b86f6c1
mov esi, eax
test esi, esi
jns 0x5b871855
lfence
mov eax, dword [0x5b89602c]
cmp eax, 0x5b89602c
je 0x5b87184a
test byte [eax + 0x1c], 1
je 0x5b87184a
push esi
push dword [eax + 0x14]
mov edx, 0x5b818450
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.5b81ae33
mov eax, esi
jmp 0x5b871857
mov esi, 0x8000ffff
jmp 0x5b87181d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5b874055
Capabilities:
Enumerate pe sections

Disassembly:
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x5b87408b
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5b874072
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x5b874083
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x5b87408d
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5b874068
xor eax, eax
pop edi
pop esi
ret
Function at 0x5b87468e
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x5b8746c4
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x5b8746bf
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x5b8746a9
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x5b8746b1
cmp edx, ebx
jne 0x5b8747ff
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x5b874680
add eax, dword [eax + 4]
jmp 0x5b87466d
mov dword [ebp + 0xc], ebx
jmp 0x5b8746cf
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x5b8746e7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x5b874705
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x5b874763
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x5b87474a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x5b874753
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x5b87475d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x5b87473f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x5b8746c9
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x5b8747b0
dec eax
je 0x5b8747a7
sub eax, 3
je 0x5b87479e
mov dword [ebp - 4], 0x40
jmp 0x5b8747cd
mov dword [ebp - 4], 4
jmp 0x5b8747b3
mov dword [ebp - 4], 0x20
jmp 0x5b8747b3
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x5b8747ff
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x5b87477f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.5b874010
salc
fisubr word [ebx + 0xd]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x5b87480b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0xf39377c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..7LWLf
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6b0b3991
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4011f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40120b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401242
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40123e
jmp 0x401230
cmp esi, eax
jae 0x401242
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401230
cmp esi, eax
jb 0x401249
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402870
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539919
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x597950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.00410900
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
mov dword [ebp - 4], 0
call fcn.00410900
lea edx, [edi + 8]
lea ecx, [esi + 8]
push edx
mov byte [ebp - 4], 1
call fcn.00410900
lea eax, [edi + 0xc]
lea ecx, [esi + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.00410900
lea edx, [edi + 0x10]
lea ecx, [esi + 0x10]
push edx
mov byte [ebp - 4], 3
call fcn.00410900
lea eax, [edi + 0x14]
lea ecx, [esi + 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.00410900
lea edx, [edi + 0x18]
lea ecx, [esi + 0x18]
push edx
mov byte [ebp - 4], 5
call fcn.00410900
lea eax, [edi + 0x1c]
lea ecx, [esi + 0x1c]
push eax
mov byte [ebp - 4], 6
call fcn.00410900
lea edx, [edi + 0x20]
lea ecx, [esi + 0x20]
push edx
mov byte [ebp - 4], 7
call fcn.00410900
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 8
call fcn.00410900
lea edx, [edi + 0x28]
lea ecx, [esi + 0x28]
push edx
mov byte [ebp - 4], 9
call fcn.00410900
lea eax, [edi + 0x2c]
lea ecx, [esi + 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00410900
lea edx, [edi + 0x30]
lea ecx, [esi + 0x30]
push edx
mov byte [ebp - 4], 0xb
call fcn.00410900
lea eax, [edi + 0x34]
lea ecx, [esi + 0x34]
push eax
mov byte [ebp - 4], 0xc
call fcn.00410900
lea edx, [edi + 0x38]
lea ecx, [esi + 0x38]
push edx
mov byte [ebp - 4], 0xd
call fcn.00410900
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00410900
lea edx, [edi + 0x40]
lea ecx, [esi + 0x40]
push edx
mov byte [ebp - 4], 0xf
call fcn.00410900
lea eax, [edi + 0x44]
lea ecx, [esi + 0x44]
push eax
mov byte [ebp - 4], 0x10
call fcn.00410900
lea edx, [edi + 0x48]
lea ecx, [esi + 0x48]
push edx
mov byte [ebp - 4], 0x11
call fcn.00410900
mov byte [ebp - 4], 0x12
mov eax, dword [edi + 0x4c]
lea edx, [edi + 0x50]
lea ecx, [esi + 0x50]
push edx
mov dword [esi + 0x4c], eax
call fcn.00410900
add edi, 0x54
push edi
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 0x13
call fcn.00410900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404950
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a718
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x597950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
call fcn.0041fe1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404991
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x569265
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x4049cd
mov edx, ecx
movzx edi, dx
push edi
call fcn.0041fd36
test eax, eax
je 0x4049d9
push edi
push eax
mov ecx, esi
call fcn.00410790
jmp 0x4049d9
push 0x569265
mov ecx, esi
call fcn.0040d530
or eax, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], 2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b040
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b350
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
mov eax, dword [0x597950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x569200
lea eax, [esi + 0x100]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040dcd0
lea edx, [esi + 0x104]
push edx
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
call fcn.0040dc10
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x78]
call sym.Autorun.exe_public:_void___thiscall_CBootstrapConfigItem::constructor_void_
push 0x56c920
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 3
call fcn.0040dcd0
add esp, 8
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], esp
add esi, 0xfc
push esi
push eax
push ecx
call fcn.0040dc10
add esp, 8
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.HP_Installer_Launch
call fcn.0040d380
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov byte [ebp - 4], 6
call fcn.0040d380
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call dword [sym.imp.BootstrapLibrary.dll_public:_bool___thiscall_CBootstrapPrereqCheck::RegistrySetString_struct_HKEY_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x78]
call sym.Autorun.exe_public:_void___thiscall_CBootstrapConfigItem::destructor_void_
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b180
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x597950]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x411451
cmp byte [edi + 0x49], bl
je 0x411451
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x411445
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4113a5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4113bd
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4113e6
dec eax
je 0x4113ea
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x411440
jmp 0x41144c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4113fa
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x411423
cmp ebx, 0x10
jae 0x411409
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.005127f0
add esp, 0x10
cmp esi, eax
jne 0x41143d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x411449
test esi, esi
jne 0x4113b1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00410b60
jmp 0x4113ab
lea ecx, [ebp - 0x2c]
call fcn.0040e260
xor al, al
jmp 0x411453
lea ecx, [ebp - 0x2c]
call fcn.0040e260
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00510a46
mov esp, ebp
pop ebp
ret
Function at 0x411d30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539aeb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x597950]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0052c34f
push 4
mov dword [ebp - 4], 0
call fcn.004189dd
mov edi, eax
add esp, 4
test edi, edi
je 0x411db0
call fcn.0052c0bd
mov dword [edi], eax
call fcn.0052be7c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0052c310
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411da6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0052c338
jmp 0x411db2
xor edi, 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
mov dword [esi + 0x38], edi
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 eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f58b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41f5d2
call fcn.00425a2a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f5d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41f5ee
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041f08b
mov esi, eax
test edi, edi
je 0x41f5ec
test ebx, ebx
je 0x41f5ec
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x420671
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x597950]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4206b6
push 0x540670
push 4
push eax
call fcn.00514ca8
push eax
call fcn.00401000
add esp, 0x10
jmp 0x4206cc
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42074c
push edi
call fcn.00513220
mov edi, dword [eax]
call fcn.00513220
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00510a73
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00513220
cmp dword [eax], 0
je 0x420720
call fcn.00513220
push dword [eax]
call fcn.00418deb
pop ecx
jmp 0x420727
call fcn.00513220
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x42074c
cmp dword [ebp - 0x234], esi
jae 0x42074c
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42074e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00510a46
leave
ret