joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40451a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00402506
mov dword [ebp - 0x14], eax
cmp dword [0x411e00], esi
jne 0x40460d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40459a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4046ed
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4046ed
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4046ed
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x411e00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x411e04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x411e08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411e10], eax
test eax, eax
je 0x40460a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x411e0c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x404632
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404625
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x404647
push 4
pop eax
jmp 0x4046ef
cmp dword [ebp - 0x14], esi
je 0x404647
push dword [0x411e00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40462c
mov eax, dword [0x411e0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4046a5
cmp dword [0x411e10], edi
je 0x4046a5
push eax
call ebx
push dword [0x411e10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4046a5
test eax, eax
je 0x4046a5
call ecx
test eax, eax
je 0x40469a
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 0x40469a
test byte [ebp - 8], 1
jne 0x4046a5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4046d5
mov eax, dword [0x411e04]
cmp eax, edi
je 0x4046d2
push eax
call ebx
test eax, eax
je 0x4046d2
call eax
mov esi, eax
test esi, esi
je 0x4046d2
mov eax, dword [0x411e08]
cmp eax, edi
je 0x4046d2
push eax
call ebx
test eax, eax
je 0x4046d2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x411e00]
call ebx
test eax, eax
je 0x4046ed
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4046ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401019
mov esp, ebp
pop ebp
ret
Function at 0x969e20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x79d015
lea edi, [esi - 0x39c015]
push edi
or ebp, 0xffffffff
jmp 0x969e42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x969e49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e38
mov eax, 1
add ebx, ebx
jne 0x969e5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x969e6c
jne 0x969e8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e8b
dec eax
add ebx, ebx
jne 0x969e78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x969e50
add ebx, ebx
jne 0x969e87
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x969edd
xor ecx, ecx
sub eax, 3
jb 0x969ea3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x969f12
sar eax, 1
mov ebp, eax
jmp 0x969eae
add ebx, ebx
jne 0x969eae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e7c
inc ecx
add ebx, ebx
jne 0x969ebc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x969e7c
add ebx, ebx
jne 0x969ec9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x969ebe
jne 0x969eda
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x969ebe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x969efc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x969eee
jmp 0x969e3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x969efc
add edi, ecx
jmp 0x969e3e
pop esi
mov edi, esi
mov ecx, 0xd621
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x969f1a
cmp byte [edi], 0x35
jne 0x969f1a
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 0x969f1f
lea edi, [esi + 0x559000]
mov eax, dword [edi]
or eax, eax
je 0x969f8e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x56a1b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x56a1d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x969f4c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x56a1e0]
or eax, eax
je 0x969f88
mov dword [ebx], eax
add ebx, 4
jmp 0x969f69
call dword [esi + 0x56a1dc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x969fc8
cmp al, 0xef
ja 0x969fb2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x969f94
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x969fa1
mov eax, dword [edi]
add edi, 4
jmp 0x969fa1
mov ebp, dword [esi + 0x56a1e4]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x969ffc
sub esp, 0xffffff80
jmp 0x463090
Function at 0xd16900
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6c6000]
mov dword [edi + 0x737120], 0x6e13903c
push edi
jmp 0xd1692a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd16931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd16920
mov eax, 1
add ebx, ebx
jne 0xd16943
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd16954
jne 0xd16973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd16973
dec eax
add ebx, ebx
jne 0xd16960
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd16938
add ebx, ebx
jne 0xd1696f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd169c5
xor ecx, ecx
sub eax, 3
jb 0xd1698b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd169fa
sar eax, 1
mov ebp, eax
jmp 0xd16996
add ebx, ebx
jne 0xd16996
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd16964
inc ecx
add ebx, ebx
jne 0xd169a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd16964
add ebx, ebx
jne 0xd169b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd169a6
jne 0xd169c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd169a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd169e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd169d6
jmp 0xd16926
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd169e4
add edi, ecx
jmp 0xd16926
pop esi
mov edi, esi
mov ecx, 0x2b74c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd16a02
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xd16a07
lea edi, [esi + 0x912000]
mov eax, dword [edi]
or eax, eax
je 0xd16a78
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91aec4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x91b054]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd16a2d
mov ecx, edi
jns 0xd16a5c
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x91b058]
or eax, eax
je 0xd16a72
mov dword [ebx], eax
add ebx, 4
jmp 0xd16a4a
call dword [esi + 0x91b068]
mov ebp, dword [esi + 0x91b05c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0xd16aac
sub esp, 0xffffff80
jmp 0x4040c8
Function at 0x440e3f
Capabilities:
Check for vm using instruction vpcext

Disassembly:
cmp dh, byte [ecx + ebp*2 + 0x63]
imul ebp, dword [ebp + 0x34], 3
Function at 0xff2224
Capabilities:
Encode data using xor

Disassembly:
jmp 0xff222e
pushal
call 0xff2234
pop ebp
sub ebp, 0x10
sub ebp, 0xbf2224
jmp 0xff224a
mov eax, 0xbf2224
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cd
mov edx, 0xfbf942b4
xor byte [eax], dl
inc eax
dec ecx
jne 0xff2261
jmp 0xff2274
aas
jns 0xff22b6
cmp eax, 0xb4b4b488
xor eax, 0xb4b44c75
mov ah, 0xb7
jns 0xff2291
mov al, 0xb4
mov ah, 0xb4
push cs
pushfd
mov ah, 0xb4
mov ah, 0x43
push esi
mov bh, 0x7c
aas
jl 0xff22d2
xor eax, 0xb4b4b4b8
mov bh, 0x71
cmp eax, edx
nop
dec eax
cmp eax, 0xd03990b0
nop
dec eax
cmp eax, 0x84dc90b0
dec edx
xchg ebp, eax
mov ah, 0xdc
inc ebp
xchg edi, eax
sub dword [ebp + esi*4 - 0x18236f68], esi
mov ebp, 0xb15cc8bd
mov ah, 0xb4
mov ah, 0x5d
out 0xbd, eax
mov ebp, 0xb4b15cc8
mov ah, 0xb4
pop ebp
lcall 0xe9e0, 0xe1b4b4b4
aas
xor dword [esp + esi*4 + 0x213fb4b4], edi
mov eax, 0x3fb4b4b4
mov ah, 0x3f
cmp dword [esp + esi*4 + 0x5d75b4b4], esp
mov dh, 0x85
mov dh, 0x37
jbe 0xff2291
std
mov ebx, 0x4b4b4031
dec ebx
aas
cwde
nop
cmp eax, edx
nop
mov al, 0x76
mov eax, 0x90383fb4
mov al, 0xb4
mov ah, 0xb4
fadd qword [edx + ecx*2 + 0x45dcb495]
xchg edi, eax
sub dword [ebp + esi*4 + 0x5ce59098], esi
mov cl, 0xb4
mov ah, 0xb4
pop ebp
out 0xb6, eax
mov ah, 0xb4
cmp eax, edx
nop
dec eax
cmp eax, 0xd8399098
nop
mov ah, 0x4b
sar dword [eax + 0x5cbcc14b], 0xca
mov ah, 0xb4
mov ah, 0x3f
or dword [esp + esi*4 + 0x4535b4b4], edi
invalid
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1002aaee
pop dword [ebp - 0x3c]
mov eax, 0x4b3f0663
add eax, 0xc4c3a48b
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x516d5f39
sub dword [ebp - 0x4c], 0x31b19ee
mov dword [ebp - 0x48], 0xf64d7cfb
add dword [ebp - 0x48], 0x3be5cf4a
mov dword [ebp - 0x44], 0xc5306319
add dword [ebp - 0x44], 0x871be115
mov dword [ebp - 0x40], 0xafbbced6
sub dword [ebp - 0x40], 0xafbbced6
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xfa76b103
add eax, 0x158c0f35
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x2eee021c
sub dword [ebp - 0x4c], 0xba7b98c6
mov dword [ebp - 0x48], 0xa037c9ea
add dword [ebp - 0x48], 0xa134978b
mov dword [ebp - 0x44], 0x6730b5c8
add dword [ebp - 0x44], 0xfc3eb6a4
mov dword [ebp - 0x40], 0x9da6f6cc
add dword [ebp - 0x40], 0x62590934
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x310673a1
add eax, 0xdefc4c87
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x33ec0
push 0
call eax
mov ecx, 0x3dd1
xor edi, edi
add edi, eax
mov esi, 0xb0ca2519
add esi, 0x5f3970e7
add esi, dword [ebp - 0x3c]
mov ebx, 0xe5f73c52
add dword [ebp - 0xc], edi
mov edx, dword [esi]
xor dword [ebp - 0x2c], 0x96ff79c9
add edx, ebx
xor dword [ebp - 0x28], 0xf45de332
mov dword [edi], edx
xor dword [ebp - 0x38], edi
add edi, 0x12b24b6d
add edi, 0xed4db497
add esi, 4
loop 0x1002ac06
add eax, 0xea17
xor ebx, ebx
add ebx, eax
add eax, 0xf2fc4040
add eax, 0xd03bfc5
mov ecx, 0x6ce6d1b2
add ecx, 0xa3192e4e
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4054fa
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a4cc
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x47800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.00418953
push dword [esi + 0xc0]
call fcn.00418953
push dword [esi + 0x9c]
call fcn.00418953
push dword [esi + 0x90]
call fcn.00418953
push dword [esi + 0x30]
call fcn.00418953
push dword [esi + 0x24]
call fcn.00418953
push dword [esi + 0x18]
call fcn.00418953
add esp, 0x1c
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x405577
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40558b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40559f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x4055b2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405d85
Capabilities:
Hide graphical window

Disassembly:
push dword [esp + 4]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x406a15
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x47800c]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
push 0x208
xor ebp, ebp
lea eax, [esp + 0x18]
push ebp
push eax
mov edi, edx
mov ebx, ecx
call fcn.0041d600
add esp, 0xc
lea eax, [esp + 0x14]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406aa7
mov edx, edi
mov ecx, esi
call fcn.00459369
push dword [edi]
mov dword [esp + 0x14], ebp
call fcn.00418a5b
pop ecx
push ebp
lea ecx, [esp + 0x14]
mov dword [ebx], eax
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418942
add esp, 0x210
ret
Function at 0x412e30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a94a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00419b05
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x412ef0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0041d030
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x472c98
push eax
call fcn.0041d589
push edi
push esi
call fcn.0041aad8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418942
mov esp, ebp
pop ebp
ret 4

Function at 0x417580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45aa36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x47800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00418acd
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0041a9d5
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x429cb1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4641a0
push str.FlsAlloc
push 0x1e
call fcn.00429b3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429ce5
push dword [ebp + 8]
mov ecx, esi
call dword [0x45e330]
call esi
jmp 0x429ceb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x429d2f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4641c4
push str.FlsGetValue
push 0x20
call fcn.00429b3b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429d66
push dword [ebp + 8]
mov ecx, esi
call dword [0x45e330]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42cedb
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 0x42cf78
push ebx
push esi
call fcn.0042cea4
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.004294ca
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42cf25
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42cf77
push edi
push eax
call fcn.00427df9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42cf45
call fcn.004285a5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42cf76
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004294ca
add esp, 0x20
test eax, eax
jne 0x42cf64
push edi
call fcn.004285a5
jmp 0x42cf6c
push ebx
call fcn.004285a5
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 0x430e1e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00430c8f

Function at 0x431218
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00437160
mov eax, dword [0x47800c]
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.0042aecc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x43125a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4313b6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00437190
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 + 0x47ab48]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00431896
mov ecx, dword [esi*4 + 0x47ab48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4313af
cmp eax, dword [edi + ecx + 0x24]
jne 0x4313af
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4313af
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00431896
add esp, 0x14
test edx, edx
jl 0x4313af
jg 0x431325
test eax, eax
jb 0x4313af
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4313af
jl 0x43133f
cmp dword [ebp - 0x1008], eax
ja 0x4313af
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x43135d
test ebx, ebx
je 0x431396
cmp ecx, edi
jae 0x431396
mov al, byte [ecx]
cmp al, 0xd
jne 0x431377
lea eax, [edi - 1]
cmp ecx, eax
jae 0x431383
cmp byte [ecx + 1], 0xa
jne 0x431383
inc ecx
jmp 0x431383
movzx eax, al
movsx eax, byte [eax + 0x478990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x43135d
cmp edx, ebx
jne 0x43135d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4313b4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00418942
leave
ret