joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b1
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x4013e9
push dword [edi]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
push dword [edi]
push esi
call fcn.00406750
test byte [edi + 0x14], 8
mov dword [esp + 0x14], eax
je 0x4014da
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [edi], eax
jne 0x4014da
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x401508
test ebp, ebp
jle 0x401508
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x401508
push ebp
push dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x30], eax
test eax, eax
je 0x4014d1
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x10], 0
je 0x40147b
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x401490
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push 2
pop eax
add dword [esp + 0x18], eax
add dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
sub dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x40]
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x401508
cmp dword [edi + 0x10], ebx
je 0x4014f4
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
jmp 0x401508
push ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push dword [esp + 0x14]
push esi
call fcn.0040685a
cmp dword [esp + 0x10], 0
je 0x401522
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x40153a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
movzx esi, ax
push 2
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x40155b
or esi, 2
push 4
call edi
bt ax, 0xf
jae 0x401569
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40156f
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, dword [esp + 0x1c]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi]
mov ebp, eax
call fcn.0040660b
push eax
call fcn.004023d6
push dword [0x434acc]
mov dword [esp + 0x20], eax
call fcn.0040573f
mov ebx, eax
movsx ecx, si
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
movzx esi, ax
push 0x12
shr esi, 0xf
call edi
bt ax, 0xf
jae 0x4015e7
or esi, 2
push 0x11
call edi
bt ax, 0xf
jae 0x4015f5
or esi, 4
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 4], eax
call fcn.0040153a
push 0x40152a
push ebx
push dword [esp + 0x28]
mov dword [ebx + 8], eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x14], eax
movzx eax, word [esp + 0x3c]
push ebp
push 0x332c
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], eax
call fcn.00405a01
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x409045
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4090db
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4090d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4090d8
lea eax, [esi - 1]
push eax
push dword [0x434e98]
call fcn.004054cf
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4090da
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4090c8
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4090d3
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4090b8
jmp 0x4090d8
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x409181
push eax
call esi
test al, al
jns 0x409181
push 0x11
call esi
test al, al
js 0x409181
push 0x10
call esi
test al, al
js 0x409181
push 0x12
call esi
test al, al
js 0x409181
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x409181
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.004104c7
add esp, 0xc
test eax, eax
je 0x409155
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.004104c7
add esp, 0xc
test eax, eax
jne 0x40916c
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4091c2
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.00410487
pop ecx
pop ecx
test eax, eax
je 0x4091c2
test ebp, ebp
je 0x4091a5
push 0x11
call esi
test al, al
js 0x40919d
push 0x10
call esi
test al, al
js 0x40919d
push 0x12
call esi
test al, al
jns 0x4091a5
push 1
push ebp
call fcn.004092e6
test ebx, ebx
je 0x4091b9
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4091c2
test edi, edi
je 0x4091c2
mov eax, dword [edi + 8]
jmp 0x4091c4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x40a09e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00411e10
mov eax, dword [0x4342a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00410024
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40a0e0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40a23c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00411d60
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x435208]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004118e5
mov ecx, dword [esi*4 + 0x435208]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x40a235
cmp eax, dword [ecx + edi + 0x24]
jne 0x40a235
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a235
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004118e5
add esp, 0x14
test edx, edx
jl 0x40a235
jg 0x40a1ab
test eax, eax
jb 0x40a235
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40a235
jl 0x40a1c5
cmp dword [ebp - 0x1008], eax
ja 0x40a235
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40a1e3
test ebx, ebx
je 0x40a21c
cmp ecx, edi
jae 0x40a21c
mov al, byte [ecx]
cmp al, 0xd
jne 0x40a1fd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40a209
cmp byte [ecx + 1], 0xa
jne 0x40a209
inc ecx
jmp 0x40a209
movzx eax, al
movsx eax, byte [eax + 0x4342b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40a1e3
cmp edx, ebx
jne 0x40a1e3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40a23a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041019c
leave
ret

Function at 0x40a6a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40a6d8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a6d3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.0040b330
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x40ca12
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426278
push 0x426270
push str.FlsAlloc
push 0x1f
call fcn.0040ce29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ca46
push dword [ebp + 8]
mov ecx, esi
call dword [0x431438]
call esi
jmp 0x40ca4c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ca90
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426288
push 0x426280
push str.FlsGetValue
push 0x21
call fcn.0040ce29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40cac7
push dword [ebp + 8]
mov ecx, esi
call dword [0x431438]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40cacf
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x426290
push 0x426288
push str.FlsSetValue
push 0x22
call fcn.0040ce29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40cb09
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x431438]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4113e6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x435208]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411426
cmp byte [ebx], 0xa
jne 0x411426
or byte [edi + eax + 0x28], 4
jmp 0x41142b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41152a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41150d
inc eax
cmp dl, 0xd
je 0x411457
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41147d
cmp eax, ecx
jae 0x41148b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41143f
jmp 0x41152a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411508
cmp dword [ebp - 0x10], 0
je 0x411508
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x435208]
test byte [eax + edi + 0x28], 0x48
je 0x4114e2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4114cd
mov byte [esi], dl
jmp 0x4114de
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435208]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41152a
cmp byte [ebp - 1], 0xa
jne 0x4114f1
cmp esi, ebx
jne 0x4114f1
mov byte [esi], 0xa
jmp 0x411529
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411887
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41152a
mov byte [esi], 0xd
jmp 0x411529
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x435208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411527
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41152a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411533
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x435208]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411579
cmp word [ebx], dx
jne 0x411579
or byte [eax + edi + 0x28], 4
jmp 0x41157e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4116e1
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4116c1
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4115bf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4115f5
cmp eax, edx
jae 0x411603
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41159a
jmp 0x4116e1
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4116bc
cmp dword [ebp - 0x18], 0
je 0x4116bc
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x435208]
test byte [eax + edi + 0x28], 0x48
je 0x411692
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x411656
mov word [esi], cx
jmp 0x41168d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x435208]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x435208]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x435208]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4116e1
pop eax
cmp word [ebp - 4], ax
jne 0x4116a2
cmp esi, ebx
jne 0x4116a2
mov word [esi], ax
jmp 0x4116de
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411887
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4116e1
push 0xd
pop eax
jmp 0x41169d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x435208]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4116db
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4116e1
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x412b31
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x412b70
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412b70
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412b70
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x412b70
cmp dword [ecx + 0x74], 0xe
jbe 0x412b70
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x416208
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4342a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040c2d2
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040c2d2
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41627f
cmp word [ecx], dx
je 0x41627f
mov eax, dword [0x428284]
push edi
dec eax
push eax
push 0x428170
call fcn.004163f8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4162f2
cmp word [eax], dx
je 0x4162f2
mov eax, dword [edi]
test eax, eax
je 0x4162a3
cmp word [eax], dx
je 0x4162a3
lea eax, [ebp - 0x10]
push eax
call fcn.00416459
jmp 0x4162ac
lea eax, [ebp - 0x10]
push eax
call fcn.00416747
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41631c
mov eax, dword [0x42816c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x427e60
call fcn.004163f8
add esp, 0xc
test al, al
je 0x41631c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4162e7
cmp word [eax], di
je 0x4162e7
lea eax, [ebp - 0x10]
push eax
call fcn.00416459
pop ecx
jmp 0x41631e
lea eax, [ebp - 0x10]
push eax
call fcn.00416747
jmp 0x4162e4
mov eax, dword [edi]
test eax, eax
je 0x416309
cmp word [eax], dx
je 0x416309
lea eax, [ebp - 0x10]
push eax
call fcn.0041687b
pop ecx
jmp 0x41631c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4163e7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041696d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4163e7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4163e7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4163e7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x416374
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040cc6c
test ebx, ebx
je 0x4163e2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040cc6c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4163e7
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4163e7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041f2ec
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4163e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041019c
leave
ret
Function at 0x416a73
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040c2d2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x416ae2
cmp esi, dword [ebp - 4]
je 0x416add
cmp dword [ebp + 0xc], 0
je 0x416add
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x416aba
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00416b3c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x416ae4
xor eax, eax
inc eax
jmp 0x416ae4
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4181f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41821d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41821d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x425190
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42522d
push ebx
push esi
call fcn.00425230
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00413335
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4251da
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42522c
push edi
push eax
call fcn.0040bba4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4251fa
call fcn.0040bb6a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42522b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413335
add esp, 0x20
test eax, eax
jne 0x425219
push edi
call fcn.0040bb6a
jmp 0x425221
push ebx
call fcn.0040bb6a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x436000
Capabilities:
Allocate thread local storage

Disassembly:
push 0x10
push 0
push 0x434ab8
call fcn.00401020
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x434abc], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x434ab8], eax
call fcn.00401000
call fcn.00404f90
call fcn.00404f12
call fcn.00404eb0
call fcn.00404210
call fcn.00403c52
call fcn.00403c00
call fcn.0040331b
call fcn.00402e61
call fcn.00402dbb
call fcn.00402ce0
call fcn.00402cad
call fcn.00402c70
call fcn.00402b75
call fcn.00402ad5
call fcn.004029f0
call fcn.00402486
call fcn.004023b7
call fcn.004022bd
push 0xc80001
mov eax, str.VectorDrawing
push eax
push 0xc8
push 0x190
push 0
push 0
push 0
call fcn.0040289a
and eax, eax
je 0x436212
push 0xc8
push 0x190
push 0
push 0
push 0
call fcn.0040225d
push 0
call fcn.0040224f
push eax
call fcn.004043a0
and eax, eax
je 0x4361fa
fld qword [0x434048]
sub esp, 8
fstp qword [esp]
fld qword [0x434050]
sub esp, 8
fstp qword [esp]
fld qword [0x434048]
sub esp, 8
fstp qword [esp]
fld qword [0x434058]
sub esp, 8
fstp qword [esp]
call fcn.00404da0
fld qword [0x434048]
sub esp, 8
fstp qword [esp]
push 0xff
push 0
push 0
push 0xff
call fcn.00402cec
push eax
call fcn.00404920
fld qword [0x434060]
sub esp, 8
fstp qword [esp]
push 0xff
push 0
push 0xff
push 0
call fcn.00402cec
push eax
call fcn.00404920
fld qword [0x434068]
sub esp, 8
fstp qword [esp]
push 0xff
push 0xff
push 0
push 0
call fcn.00402cec
push eax
call fcn.00404920
fld qword [0x434070]
sub esp, 8
fstp qword [esp]
fld qword [0x434078]
sub esp, 8
fstp qword [esp]
fld qword [0x434080]
sub esp, 8
fstp qword [esp]
fld qword [0x434058]
sub esp, 8
fstp qword [esp]
call fcn.00403cb0
call fcn.00404230
call fcn.004048e0
call fcn.004029e8
mov dword [0x434ac4], eax
mov ebx, dword [0x434ac4]
cmp ebx, 0x333c
jne 0x4361fa
push 0
call 0x436231
call fcn.00404fd0
push dword [0x434ab8]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.00402361
call sub.ole32.dll_OleUninitialize
call fcn.004023c6
call fcn.00402463
call fcn.00402a5f
call fcn.00402c4a
call fcn.00402cd4
call fcn.00402daf
call fcn.00403341
call fcn.00403ca0
call fcn.00404f06
call fcn.00403ca0
call fcn.00404ea0
ret