joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f0de5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5f0efd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5f0efd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00636128
mov esi, eax
test esi, esi
je 0x5f0efd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x5f0efd
mov ecx, esi
call fcn.005f0d50
cmp edi, eax
jge 0x5f0efd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x5f0e83
mov dword [esp + 0x34], 1
jmp 0x5f0ede
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x5f0efd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005f02f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x5f9840
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call fcn.00625076
add esp, 8
push 1
call fcn.00624f83
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x5f9886
push esi
mov esi, eax
shl esi, 7
add esi, eax
inc edx
movsx eax, cl
mov cl, byte [edx]
test cl, cl
lea eax, [esi + eax - 0x61c8ffff]
jne 0x5f986d
pop esi
ret
Function at 0x604160
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0060a5e0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x604259
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, esi
call fcn.00604270
test eax, eax
jne 0x604259
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, esi
call fcn.00604270
test eax, eax
jne 0x604259
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.006240a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x60422a
lea eax, [esp + 0x10]
push 0x914c60
push eax
call fcn.006240a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x60422a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x60422d
mov byte [esi], 0
push 0x914428
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x604270
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x6042d2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x60a520
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x6495b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x60a5d0
mov eax, dword [0x9159dc]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00634a61
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00634ab0
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00634a0d
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x60a5b7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x60a5b7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00634631
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x60d6d0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x649a40
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x60d877
mov ecx, dword [0x9159dc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x60d7cc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0060c3f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0063476a
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00634631
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x914428
call fcn.0063469f
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0060c7b0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0063476a
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00634631
lea ecx, [esp + 0xc]
call fcn.00634b45
mov ecx, dword [esp + 0xc]
push 0x914e64
push ecx
call fcn.00622ef4
add esp, 8
test eax, eax
je 0x60d7f4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x60d72d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00634631
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00634631
jmp 0x60d87b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0060d470
test eax, eax
push 0
je 0x60d85f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0060bb10
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x60d845
cmp eax, 0x64
jg 0x60d833
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x60d7d0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x60d7d0
cmp eax, 0x64
jge 0x60d7cc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x60d7d0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0060bb10
mov esi, eax
jmp 0x60d7d0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x60d885
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x6354b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0063ff32
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x6354e5
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.006354f8
pop edi
pop esi
pop ebx
ret 8

Function at 0x636acc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x636b04
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00634ad8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00634ab0
jmp 0x636b10
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6383bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6383fe
call fcn.0063ff32
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x6383fe
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x6383f5
xor eax, eax
jmp 0x638406
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0063840c
pop edi
pop esi
pop ebx
ret 4

Function at 0x640462
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x640490
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x6404ae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006403c8
jmp 0x6404ae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6404ae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006403c8
test edi, edi
mov eax, edi
jne 0x640498
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100011c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002196a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.10004921
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 eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x1000124d
push eax
push esi
call fcn.10004c67
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
lea ecx, [ebp - 0x1c]
call fcn.10001160
push 0x1003118c
lea eax, [ebp - 0x1c]
push eax
call fcn.10007664
int3
Function at 0x10002370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000239b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10003470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100023bd
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100023bf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10002443
jg 0x100023d4
test esi, esi
je 0x10002443
test ecx, ecx
jl 0x1000241d
jg 0x100023de
test eax, eax
je 0x1000241d
cmp edi, ecx
jg 0x100023f2
jl 0x100023e8
cmp esi, eax
jae 0x100023f2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.100070f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10002420
mov edx, dword [ebp + 8]
test edi, edi
jl 0x10002443
jg 0x1000242a
test esi, esi
je 0x10002443
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10002443
push eax
push esi
push 1
push edx
call fcn.1000cbe9
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x1000248b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10003550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x100024ad
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x100024af
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x1000254e
jg 0x100024cc
test esi, esi
je 0x1000254e
test ecx, ecx
jl 0x10002519
jg 0x100024d6
test eax, eax
je 0x10002519
cmp ebx, ecx
jg 0x100024ea
jl 0x100024e0
cmp esi, eax
jae 0x100024ea
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.100070f0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x10002520
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x1000254e
jg 0x1000252a
test esi, esi
je 0x1000254e
cmp dword [edi + 0x4c], 0
je 0x1000254e
mov ecx, edi
call fcn.10003ed0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.1000ce36
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000297c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100029ae
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100029ae
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10002a69
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100029d6
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100029ff
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1000bf14
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, bl
mov byte [ebp - 1], al
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x10002a75
lea ecx, [ebp - 1]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x28]
mov dword [ebp + 8], ecx
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.1000bf14
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x10002a59
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000cbe9
add esp, 0x10
cmp edi, eax
jne 0x10002a69
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x100029a3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10002a69
cmp eax, 1
jle 0x10002a3c
cmp eax, 3
jne 0x10002a69
mov al, byte [ebp - 1]
jmp 0x10002a1a
Function at 0x10003f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x10004009
cmp byte [esi + 0x3d], 0
je 0x10004009
push 0xffffffffffffffff
call fcn.10002960
cmp eax, 0xffffffff
je 0x10003fd6
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
cmp edx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x10004011
lea edi, [ebp - 0x24]
xor eax, eax
mov dword [ebp - 4], edi
sub eax, 0
je 0x10003fde
sub eax, 1
je 0x10003fe2
sub eax, 2
je 0x10004009
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003ffc
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.1000cbe9
add esp, 0x10
cmp edi, eax
jne 0x10003fd6
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
mov edi, dword [ebp - 4]
jmp 0x10003fc7

Function at 0x100041d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10001b00
push 8
call fcn.10005ba1
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.10004b60
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 0
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
call fcn.10004440
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x100042c9
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.10001b00
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100135a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001341c
Function at 0x52aec0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x94000]
push edi
or ebp, 0xffffffff
jmp 0x52aee2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52aee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52aed8
mov eax, 1
add ebx, ebx
jne 0x52aefb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52aef0
jne 0x52af0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52aef0
xor ecx, ecx
sub eax, 3
jb 0x52af20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52af92
mov ebp, eax
add ebx, ebx
jne 0x52af2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x52af38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x52af5c
inc ecx
add ebx, ebx
jne 0x52af48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52af3d
jne 0x52af59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52af3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52af7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52af6d
jmp 0x52aede
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52af7c
add edi, ecx
jmp 0x52aede
pop esi
mov edi, esi
mov ecx, 0x37ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52af9a
cmp byte [edi], 0x13
jne 0x52af9a
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 0x52af9f
lea edi, [esi + 0x127000]
mov eax, dword [edi]
or eax, eax
je 0x52b017
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12fcb4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12fd78]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52afcc
mov ecx, edi
jns 0x52affb
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 + 0x12fd80]
or eax, eax
je 0x52b011
mov dword [ebx], eax
add ebx, 4
jmp 0x52afe9
call dword [esi + 0x12fd7c]
mov ebp, dword [esi + 0x12fd84]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x52b04b
sub esp, 0xffffff80
jmp 0x46ef3e
Function at 0x401000
Capabilities:
Encode data using xor
Terminate process

Disassembly:
mov eax, dword [0x4108cc]
sub esp, 0x24
cmp eax, 0xb9555728
jne 0x401155
mov al, 0x7b
mov byte [esp + 3], al
mov byte [esp + 5], al
mov al, 0x43
mov byte [esp + 6], al
mov byte [esp + 7], al
xor eax, eax
mov word [esp + 0xd], ax
mov byte [esp + 0xf], al
mov al, 0xe6
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
mov al, 0xe1
mov byte [esp + 0x16], al
mov byte [esp + 0x1f], al
mov byte [esp], 0x75
mov byte [esp + 1], 0x70
mov byte [esp + 2], 0x7e
mov byte [esp + 4], 0x73
mov byte [esp + 8], 0x40
mov byte [esp + 9], 0x77
mov byte [esp + 0xa], 0x80
mov byte [esp + 0xb], 0x81
mov byte [esp + 0xc], 0x16
mov byte [esp + 0x10], 0xc9
mov byte [esp + 0x11], 0xf2
mov byte [esp + 0x12], 0xc6
mov byte [esp + 0x15], 0xf0
mov byte [esp + 0x17], 0xe0
mov byte [esp + 0x18], 0xed
mov byte [esp + 0x19], 0xfb
mov byte [esp + 0x1a], 0xda
mov byte [esp + 0x1b], 0xf9
mov byte [esp + 0x1c], 0xe9
mov byte [esp + 0x1d], 0xfe
mov byte [esp + 0x1e], 0xeb
mov byte [esp + 0x20], 0xe4
mov byte [esp + 0x21], 0x91
xor eax, eax
nop
lea esp, [esp]
mov dl, byte [esp + eax]
mov cl, 0xf6
sub cl, al
add dl, cl
mov byte [esp + eax], dl
inc eax
cmp eax, 0xc
jle 0x4010c0
xor eax, eax
mov cl, byte [esp + eax + 0x10]
mov dl, al
add dl, 0x80
xor cl, dl
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x12
jl 0x4010d6
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40112c
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401125
call eax
cmp eax, 1
jne 0x401125
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [0x4108cc]
xor edx, 1
push 0x4108d8
mov dword [0x4108cc], edx
push 0x99ade66b
mov edx, 0x404c30
mov ecx, 0x4035d0
call fcn.0040b7a0
pop esi
add esp, 0x24
ret