joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57e010
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.00581be0
mov eax, dword [0x635f14]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x57e04f
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00581392
add esp, 0x34
ret
movups xmm0, xmmword [edi + 0x10]
push ebx
mov ebx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push esi
lea esi, [edi + 0x10]
mov dword [esp + 0x10], ebx
dec eax
movups xmmword [esp + 0x30], xmm0
and byte [esp + 0x3c], 0x7f
push 1
mov dword [edi + 0x30], eax
push ecx
psrldq xmm0, 8
movd eax, xmm0
push 0
push 0
and al, 0x7f
mov byte [esp + 0x48], al
mov eax, dword [edi + 0x20]
push 0
push eax
mov dword [esp + 0x30], eax
call fcn.00459570
add esp, 0x18
test eax, eax
je 0x57e132
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 0x18]
push eax
push ebp
push dword [esp + 0x28]
call fcn.00459f80
add esp, 0x14
test eax, eax
je 0x57e132
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call fcn.0057e5f0
add esp, 0x10
test eax, eax
je 0x57e132
lea eax, [esi + 0xf]
xor edx, edx
lea ecx, [esp + 0x1c]
cmp ecx, eax
ja 0x57e103
lea eax, [esp + 0x2b]
cmp eax, esi
jb 0x57e103
mov eax, ecx
sub esi, eax
nop dword [eax]
lea ecx, [esp + 0x1c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 0x10
jl 0x57e0f0
jmp 0x57e114
movups xmm1, xmmword [esp + 0x1c]
movups xmm0, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [esp + 0x1c], xmm1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or ecx, dword [esp + 0x24]
or eax, dword [esp + 0x28]
or ecx, eax
je 0x57e147
push ebx
push ebp
call fcn.00401320
add esp, 8
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00581392
add esp, 0x34
ret
mov ecx, dword [esp + 0x40]
mov eax, ebx
pop esi
pop ebx
mov dword [edi + 0x2c], 0
pop edi
pop ebp
xor ecx, esp
call fcn.00581392
add esp, 0x34
ret
Function at 0x57ed90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00581be0
mov edx, dword [esp + 0x2c]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x1c]
or ecx, 0xffffffff
cmp edx, 1
push esi
setne al
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x3c]
add eax, edi
mov dword [esp + 0x1c], esi
cmp eax, esi
jbe 0x57edc9
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
cmp edx, 1
je 0x57ee9e
mov ebp, dword [esp + 0x30]
dec ebp
add ebp, esi
cmp dword [esp + 0x44], 0
mov cl, byte [ebp]
movzx edx, cl
mov byte [esp + 0x13], cl
mov dword [esp + 0x14], edx
je 0x57ee03
sub esi, edx
mov eax, 1
sub esi, edi
pop ebp
dec esi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
add esp, 0x14
ret
lea ecx, [edx + eax]
mov ebx, esi
sub ebx, ecx
mov eax, esi
xor ebx, ecx
xor eax, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor edi, edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x57ee75
mov esi, edx
shr edx, 0x1f
mov dword [esp + 0x1c], edx
mov ecx, esi
lea ebp, [ebp - 1]
sub ecx, edi
mov eax, edi
shr ecx, 0x1f
inc edi
shr eax, 0x1f
xor cl, al
xor al, dl
or cl, al
movzx eax, byte [ebp + 1]
xor cl, dl
dec cl
movzx edx, cl
movzx ecx, byte [esp + 0x13]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x18]
jb 0x57ee35
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
not ebx
movzx eax, bl
mov ebx, dword [esp + 0x28]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx + 1]
mov edx, dword [esp + 0x3c]
neg ecx
and eax, ecx
sub esi, eax
mov dword [ebx], esi
push dword [esp + 0x48]
push ecx
push edi
push edx
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebx
call fcn.0057ea40
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x599fbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00599e3e

Function at 0x5a0e75
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a0b35
Function at 0xdddf00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x97b015
lea edi, [esi - 0x57a015]
lea eax, [edi + 0x954e10]
push dword [eax]
mov dword [eax], 0xffd0d774
push eax
push edi
or ebp, 0xffffffff
jmp 0xdddf32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xdddf39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xdddf28
mov eax, 1
add ebx, ebx
jne 0xdddf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xdddf40
jne 0xdddf5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xdddf40
xor ecx, ecx
sub eax, 3
jb 0xdddf70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xdddfe2
mov ebp, eax
add ebx, ebx
jne 0xdddf7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xdddf88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xdddfac
inc ecx
add ebx, ebx
jne 0xdddf98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xdddf8d
jne 0xdddfa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xdddf8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xdddfcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xdddfbd
jmp 0xdddf2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xdddfcc
add edi, ecx
jmp 0xdddf2e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x51d61c
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xdde00b
cmp byte [edi], 0xbd
jne 0xdddff0
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0xdddfee
lea edi, [esi + 0x9cb000]
mov eax, dword [edi]
or eax, eax
je 0xdde053
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa38a80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa38d4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xdde011
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa38d54]
or eax, eax
je 0xdde04d
mov dword [ebx], eax
add ebx, 4
jmp 0xdde02e
call dword [esi + 0xa38d50]
mov ebp, dword [esi + 0xa38d58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x9de0ae]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xdde09f
sub esp, 0xffffff80
jmp 0x401480

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40b57d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410920
cmp edx, dword [eax]
je 0x40b59f
add eax, 8
inc ecx
cmp eax, 0x4109b0
jl 0x40b590
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410920]
jne 0x40b6cd
mov eax, dword [0xf0f8ac]
cmp eax, 1
je 0x40b6a7
test eax, eax
jne 0x40b5d0
cmp dword [0x410248], 1
je 0x40b6a7
cmp edx, 0xfc
je 0x40b6cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b607
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004088e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408ab0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b64a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408ab0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f48c
push edi
call fcn.00409000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004088e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004088f0
lea eax, [ebp - 0xa0]
push 0x40f46c
push eax
call fcn.004088f0
push dword [esi + 0x410924]
lea eax, [ebp - 0xa0]
push eax
call fcn.004088f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d753
add esp, 0x2c
pop edi
jmp 0x40b6cd
lea eax, [ebp + 8]
lea esi, [esi + 0x410924]
push 0
push eax
push dword [esi]
call fcn.00408ab0
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x12cd5259
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x27843b15
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40d14a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407d4b
mov dword [ebp - 0x14], eax
cmp dword [0x813d7c], esi
jne 0x40d23d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d31d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d31d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d31d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813d7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813d80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813d84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813d8c], eax
test eax, eax
je 0x40d23a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813d88], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d262
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d255
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d277
push 4
pop eax
jmp 0x40d31f
cmp dword [ebp - 0x14], esi
je 0x40d277
push dword [0x813d7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d25c
mov eax, dword [0x813d88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2d5
cmp dword [0x813d8c], edi
je 0x40d2d5
push eax
call ebx
push dword [0x813d8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2d5
test eax, eax
je 0x40d2d5
call ecx
test eax, eax
je 0x40d2ca
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d2ca
test byte [ebp - 8], 1
jne 0x40d2d5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d305
mov eax, dword [0x813d80]
cmp eax, edi
je 0x40d302
push eax
call ebx
test eax, eax
je 0x40d302
call eax
mov esi, eax
test esi, esi
je 0x40d302
mov eax, dword [0x813d84]
cmp eax, edi
je 0x40d302
push eax
call ebx
test eax, eax
je 0x40d302
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813d7c]
call ebx
test eax, eax
je 0x40d31d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d31f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404248
mov esp, ebp
pop ebp
ret
Function at 0x403dc0
Capabilities:
Get graphical window text
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x4c
mov eax, dword [0x40a40c]
mov dword [esp], eax
call sym.unk_136
lea ebx, [eax + 1]
sub esp, 4
lea eax, [ebx + ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sym.unk_180
sub esp, 0xc
test eax, eax
je 0x403fc1
mov esi, eax
mov dword [esp + 4], eax
mov eax, dword [0x40a40c]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym.unk_160
mov eax, dword [0x40a40c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], eax
call sym.unk_96
mov ebx, eax
mov eax, dword [0x40a40c]
sub esp, 0x10
mov dword [esp], eax
call sym.unk_210
lea eax, [ebp - 0x28]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [0x40a404]
mov dword [esp], eax
call sym.unk_215
mov edx, dword [0x40a400]
sub esp, 8
cmp dword [0x40a470], 1
mov dword [esp + 0x28], edx
mov edx, dword [0x40a404]
sbb eax, eax
and eax, 0xffefff80
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x1c]
add eax, 0x50b000c4
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], global_editW
mov dword [esp], 0x200
call sym.unk_121
mov edx, dword [0x40a410]
sub esp, 0x30
mov dword [0x40a40c], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x30
mov dword [esp], eax
call sym.unk_96
mov eax, dword [0x40a40c]
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.unk_130
mov eax, dword [0x40a40c]
sub esp, 8
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call sym.unk_96
mov eax, dword [0x40a40c]
sub esp, 0x10
mov dword [esp], eax
call sym.unk_118
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sym.unk_198
mov eax, dword [0x40a470]
sub esp, 0xc
test eax, eax
mov eax, dword [0x40a404]
sete bl
mov dword [esp], eax
mov dword [0x40a470], ebx
shl ebx, 3
call sym.unk_134
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x119
mov dword [esp], eax
call sym.unk_119
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dbg.ShowLastError
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x60
lea eax, [ebp - 0x18]
sub esp, 0x34
mov dword [esp + 8], eax
mov dword [esp + 4], global_dpi_key_name
mov dword [esp], 0x80000005
call sym.unk_208
sub esp, 0xc
test eax, eax
je 0x404775
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], global_dpi_value_name
mov dword [esp], eax
mov dword [ebp - 0x10], 4
call sym.unk_213
sub esp, 0x18
test eax, eax
jne 0x4047b9
cmp dword [ebp - 0x14], 4
je 0x4047d0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym.unk_207
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
mov ebx, dword [ebp - 0xc]
mov eax, 0x60
test ebx, ebx
cmove ebx, eax
jmp 0x4047b9
Function at 0x407220
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.unk_214
call sym._abort
lea esi, [esi]

Function at 0x407280
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x40a3bc]
test esi, esi
jle 0x407390
mov edi, dword [0x40a3c0]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4072b4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x407335
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4072a0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4073b7
mov eax, dword [0x40a3c0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40a3c0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x407397
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40732e
sub eax, 4
and eax, 0xfffffffb
jne 0x40733c
add dword [0x40a3bc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x40a3c0]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40732e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4072be
mov eax, dword [0x40a3c0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x407840
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40a3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40a3d0]
sub esp, 4
test ebx, ebx
je 0x407895
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40788e
test esi, esi
je 0x40788e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x407870
mov dword [esp], 0x40a3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4051a8
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
test eax, eax
jle 0x4051e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403230
jmp 0x4051ea
mov eax, ebx
mov edx, esi
call fcn.004031e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406bc8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c56
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c13
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403230
jmp 0x406c40
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c27
lea eax, [ebp - 4]
call fcn.00403150
jmp 0x406c36
lea edx, [ebp - 4]
call fcn.00406a8c
test ebx, ebx
je 0x406c36
dec ebx
jmp 0x406c18
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c5d
lea eax, [ebp - 4]
call fcn.00403150
ret