joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ba470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x613290
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x624970
call fcn.004ef370
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb8], esp
push 0x624974
call fcn.004ef370
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x58]
push edx
call fcn.00521cb0
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.00528580
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004ef850
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004e2fe0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004eea00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x9c], esp
lea edx, [ebp - 0x70]
push edx
call fcn.004ee9d0
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], esp
push str.7D5BA39F4817829
call fcn.004eea50
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 4
call fcn.004f7d20
add esp, 0x34
lea ecx, [ebp - 0x40]
call fcn.004eed50
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.004e3070
add esp, 8
mov byte [ebp - 4], 6
push str.https:__www.flash.cn_ueip_index.html
lea ecx, [ebp - 0x28]
call fcn.004ef370
mov byte [ebp - 4], 7
push 1
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.004ef850
push eax
push 0x624994
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0x20
jg 0x5ba612
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
lea edx, [ebp - 0x28]
push edx
call fcn.004ef320
mov dword [ebp - 0xa0], eax
call fcn.004ebdd0
add esp, 0x18
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.004ef480
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.004ef480
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004eeb60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.004eeb60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004ef480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x5be030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, dword [ebp + 0x18]
and eax, 1
jne 0x5be064
push 9
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.005bc820
add esp, 0x14
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 0x3c
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 2], 0x21
lea edx, [ebp - 2]
push edx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 3], 0x5b
lea eax, [ebp - 3]
push eax
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 4], 0x43
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 5], 0x44
lea edx, [ebp - 5]
push edx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 6], 0x41
lea eax, [ebp - 6]
push eax
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 7], 0x54
lea ecx, [ebp - 7]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 8], 0x41
lea edx, [ebp - 8]
push edx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 9], 0x5b
lea eax, [ebp - 9]
push eax
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.005c2450
mov esi, eax
mov ecx, dword [ebp + 0x14]
call fcn.005c2480
add esi, eax
push esi
mov ecx, dword [ebp + 0x14]
call fcn.005c2450
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.005bc7d0
add esp, 0x14
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov byte [ebp - 0xa], 0x5d
lea eax, [ebp - 0xa]
push eax
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 0xb], 0x5d
lea ecx, [ebp - 0xb]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 0xc], 0x3e
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5be5f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, dword [ebp + 0x18]
and eax, 1
jne 0x5be624
push 9
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.005bc820
add esp, 0x14
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 0x3c
lea ecx, [ebp - 1]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 2], 0x21
lea edx, [ebp - 2]
push edx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 3], 0x44
lea eax, [ebp - 3]
push eax
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 4], 0x4f
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 5], 0x43
lea edx, [ebp - 5]
push edx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 6], 0x54
lea eax, [ebp - 6]
push eax
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 7], 0x59
lea ecx, [ebp - 7]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 8], 0x50
lea edx, [ebp - 8]
push edx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 9], 0x45
lea eax, [ebp - 9]
push eax
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov byte [ebp - 0xa], 0x20
lea ecx, [ebp - 0xa]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.005c2450
mov esi, eax
mov ecx, dword [ebp + 0x14]
call fcn.005c2480
add esi, eax
push esi
mov ecx, dword [ebp + 0x14]
call fcn.005c2450
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.005bc7d0
add esp, 0x14
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov byte [ebp - 0xb], 0x3e
lea ecx, [ebp - 0xb]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov ecx, eax
call fcn.005c09e0
lea ecx, [ebp + 0xc]
call fcn.0054b3f0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5d14e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5edab5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x697bc0]
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.005d29b3
mov dword [ebp - 0x14], eax
cmp dword [0x6a287c], esi
jne 0x5edba8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5edb35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5edc88
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5edc88
push 0x66aa64
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5edc88
push eax
call ebx
push 0x66aa70
push edi
mov dword [0x6a287c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x6a2880], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x66aa94
push edi
mov dword [0x6a2884], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6a288c], eax
test eax, eax
je 0x5edba5
push 0x66aab0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6a2888], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5edbcd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5edbc0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5edbe2
push 4
pop eax
jmp 0x5edc8a
cmp dword [ebp - 0x14], esi
je 0x5edbe2
push dword [0x6a287c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5edbc7
mov eax, dword [0x6a2888]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5edc40
cmp dword [0x6a288c], edi
je 0x5edc40
push eax
call ebx
push dword [0x6a288c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5edc40
test eax, eax
je 0x5edc40
call ecx
test eax, eax
je 0x5edc35
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 0x5edc35
test byte [ebp - 8], 1
jne 0x5edc40
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5edc70
mov eax, dword [0x6a2880]
cmp eax, edi
je 0x5edc6d
push eax
call ebx
test eax, eax
je 0x5edc6d
call eax
mov esi, eax
test esi, esi
je 0x5edc6d
mov eax, dword [0x6a2884]
cmp eax, edi
je 0x5edc6d
push eax
call ebx
test eax, eax
je 0x5edc6d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6a287c]
call ebx
test eax, eax
je 0x5edc88
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5edc8a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x419460
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc0
lea eax, [esp]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4d0b40
mov edi, eax
call fcn.00419410
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0xcc]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
mov dword [esi], edx
lea edx, [esp + 0x18]
and ecx, 0xffff
push edx
push edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [esp + 0xe]
mov edx, dword [esp + 0xa]
and ecx, 0xffff
and edx, 0xffff
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 8]
and ecx, 0xffff
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0xc4]
test eax, eax
lea edi, [edx + ecx]
je 0x419516
mov edx, dword [0x4d096c]
push 0x4d0670
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, edi
pop edi
cdq
mov ecx, eax
mov eax, 0x88888889
xor ecx, edx

Function at 0x4196b0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.d3d10.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d1ba0], eax
test eax, eax
je 0x419700
push 0x4d0b40
call fcn.00419460
mov eax, dword [0x4d1ba0]
add esp, 4
push str.D3D10CreateStateBlock
push eax
call edi
mov ecx, dword [0x4d1ba0]
push str.D3D10CreateDevice
push ecx
mov dword [0x4d1bac], eax
call edi
mov dword [0x4d1b80], eax
invalid
push str.d3dx10.dll
call esi

Function at 0x4196ff
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.d3d10.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d1ba0], eax
test eax, eax
je 0x419700
push 0x4d0b40
call fcn.00419460
mov eax, dword [0x4d1ba0]
add esp, 4
push str.D3D10CreateStateBlock
push eax
call edi
mov ecx, dword [0x4d1ba0]
push str.D3D10CreateDevice
push ecx
mov dword [0x4d1bac], eax
call edi
mov dword [0x4d1b80], eax
invalid
push str.d3dx10.dll
call esi

Function at 0x431f9f
Capabilities:
Encode data using xor

Disassembly:
insb byte es:[edi], dx
std
xchg ecx, eax
movsd dword es:[edi], dword [esi]
mov edi, 0xb226a06e
mov dl, 0xc8
push ebx
jnp 0x431ff4
invalid
Function at 0x4c641a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd518
cmp edx, dword [eax]
je 0x4c643c
add eax, 8
inc ecx
cmp eax, 0x4cd5a8
jl 0x4c642d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd518]
jne 0x4c656a
mov eax, dword [0x4d1bfc]
cmp eax, 1
je 0x4c6544
test eax, eax
jne 0x4c646d
cmp dword [0x4cd458], 1
je 0x4c6544
cmp edx, 0xfc
je 0x4c656a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c64a4
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c6b30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6d60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c64e7
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6d60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ca988
push edi
call fcn.004c8530
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c6b30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6b40
lea eax, [ebp - 0xa0]
push 0x4ca968
push eax
call fcn.004c6b40
push dword [esi + 0x4cd51c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6b40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c84a4
add esp, 0x2c
pop edi
jmp 0x4c656a
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd51c]
push 0
push eax
push dword [esi]
call fcn.004c6d60
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 0x408ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x408b02
jl 0x408af5
test ecx, ecx
jne 0x408b02
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x408bc2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040a430
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x408b6e
jg 0x408b2d
test esi, esi
je 0x408b6e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x408b45
mov eax, dword [esp + 0x10]
jl 0x408b3f
cmp eax, esi
jae 0x408b45
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040e290
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x408b8f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x408bab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x408b14
jl 0x408bab
test ecx, ecx
jne 0x408b14
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x408c00
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x408c00
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0040e290
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x408c69
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x408c26
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x408c54
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00412f6a
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x408c69
cmp edi, eax
ja 0x408c32
test edi, edi
je 0x408c69
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00412f6a
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4261a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x438048]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040c92c
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040bf4b
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x40d69f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d6de
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d6de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d6de
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d6de
cmp dword [ecx + 0x74], 0xe
jbe 0x40d6de
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x419cf7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c440
push 0x42c438
push str.FlsAlloc
push 0x1f
call fcn.00419b62
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419d2b
push dword [ebp + 8]
mov ecx, esi
call dword [0x429150]
call esi
jmp 0x419d31
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x419d75
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c450
push 0x42c448
push str.FlsGetValue
push 0x21
call fcn.00419b62
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419dac
push dword [ebp + 8]
mov ecx, esi
call dword [0x429150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x419db4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c458
push 0x42c450
push str.FlsSetValue
push 0x22
call fcn.00419b62
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419dee
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x429150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41a61a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d7b0
mov eax, dword [0x438048]
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.00417e1b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a65c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41a7b8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425a00
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 + 0x545940]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041b41b
mov ecx, dword [esi*4 + 0x545940]
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 0x41a7b1
cmp eax, dword [ecx + edi + 0x24]
jne 0x41a7b1
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 0x41a7b1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b41b
add esp, 0x14
test edx, edx
jl 0x41a7b1
jg 0x41a727
test eax, eax
jb 0x41a7b1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41a7b1
jl 0x41a741
cmp dword [ebp - 0x1008], eax
ja 0x41a7b1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a75f
test ebx, ebx
je 0x41a798
cmp ecx, edi
jae 0x41a798
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a779
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a785
cmp byte [ecx + 1], 0xa
jne 0x41a785
inc ecx
jmp 0x41a785
movzx eax, al
movsx eax, byte [eax + 0x4382f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a75f
cmp edx, ebx
jne 0x41a75f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41a7b6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c919
leave
ret