joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100354a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x100354cb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push dword [ebp - 0xc]
push esi
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::tempName_void_
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x100354f4
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [ebp - 8]
test eax, eax
cmove edx, esi
mov dword [ebp - 8], edx
test edx, edx
jne 0x1003550a
lea eax, [ebp - 0xc]
push eax
push 0x10035590
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 8]
test edx, edx
je 0x10035551
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10083c98]
mov dword [ebp - 4], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10083c10]
cmp eax, dword [ecx + 4]
jg 0x10035558
jmp 0x1003552e
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x10083c0c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 8]
test eax, eax
pop esi
cmovne ecx, dword [ebp - 4]
mov eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0x10083c10
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::tempName_void_
add esp, 4
cmp dword [0x10083c10], 0xffffffff
jne 0x1003552b
push str.adobe.sccore.get.dialog.owner
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x10083c10
mov dword [0x10083c0c], eax
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::tempName_void_
add esp, 4
jmp 0x1003552b

Function at 0x100356d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ac13
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10082d0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::tempName_void_
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10035768
mov dword [esi + 0xc], 0x20
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 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
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [0x10083ae8]
test eax, eax
jne 0x1003577c
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov dword [eax + 0x58], edi
mov dword [eax + 0x5c], ebx
mov eax, esi
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 0x10035810
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x1003581f
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x10035b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083c3c]
test eax, eax
jne 0x10035bc9
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035bc9
push esi
push 0x178
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::tempName_void_
add esp, 4
test eax, eax
je 0x10035b96
mov ecx, eax
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::tempName_void_
mov esi, eax
jmp 0x10035b98
xor esi, esi
cmp byte [0x10083c38], 0
jne 0x10035bb2
mov ecx, esi
mov dword [0x10083c3c], esi
call fcn.1001d6f0
mov eax, esi
pop esi
ret
push esi
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d6f0
mov eax, esi
pop esi
ret

Function at 0x10035bd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x100829d0]
cmp eax, 0xffffffff
je 0x10035c26
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c17
mov ecx, dword [0x10083c3c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x10083c3c], ecx
mov ecx, esi
call fcn.1001d720
mov ecx, esi
call fcn.1001d6c0
push 0x178
push esi
call sym.ScCore.dll_public:_bool___thiscall_ScCore::FileSpec::tempName_void_
add esp, 8
push 0
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x402e78
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x411008], 0x8088405
inc edx
mov dword [ebx + 0x411008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4067e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x406878
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x406878
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40682b
test edx, 3
jne 0x40681a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x406825
jmp 0x40682b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40682b
cmp dword [ecx - 8], 1
je 0x406835
mov edx, ebx
or edx, 3
call fcn.00404664
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x406847
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004040d8

Function at 0x406884
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x406914
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x406914
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4068c7
test edx, 3
jne 0x4068b6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4068c1
jmp 0x4068c7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4068c7
cmp dword [ecx - 8], 1
je 0x4068d1
mov edx, ebx
or edx, 3
call fcn.00404664
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4068e3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004040d8

Function at 0x409594
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push 0
push 0x100
lea edx, [esp + 8]
push edx
push 0
push eax
push 0
push 0x3200
call sub.KERNEL32.DLL_GetLocaleInfoA
jmp 0x4095bb
dec eax
test eax, eax
jle 0x4095ce
movzx edx, byte [esp + eax - 1]
sub dl, 0x21
jb 0x4095ba
sub dl, 0xd
je 0x4095ba
mov edx, esp
mov ecx, ebx
xchg ecx, eax
call fcn.004041c8
add esp, 0x100
pop ebx
ret

Function at 0x4095ac
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push 0
push 0x100
lea edx, [esp + 8]
push edx
push 0
push eax
push 0
push 0x3200
call sub.KERNEL32.DLL_GetLocaleInfoA
jmp 0x4095bb
dec eax
test eax, eax
jle 0x4095ce
movzx edx, byte [esp + eax - 1]
sub dl, 0x21
jb 0x4095ba
sub dl, 0xd
je 0x4095ba
mov edx, esp
mov ecx, ebx
xchg ecx, eax
call fcn.004041c8
add esp, 0x100
pop ebx
ret
Function at 0x40986c
Capabilities:
Accept command line arguments
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0
push esi
xor eax, eax
push ebp
push 0x409903
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_QueryPerformanceCounter
mov ecx, 0x409918
mov edx, 0x100b
call fcn.004095e0
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.00406c00
mov esi, eax
mov eax, esi
add eax, 0xfffffffd
sub eax, 3
jae 0x4098ed
push 4
push esi
call sub.KERNEL32.DLL_QueryPerformanceCounter
push eax
push 0x4097b8
call sub.KERNEL32.DLL_GetCommandLineA
mov edx, 7
mov eax, 0x4148ec
mov dword [eax], 0xffffffff
add eax, 4
dec edx
jne 0x4098ce
push 3
push esi
call sub.KERNEL32.DLL_QueryPerformanceCounter
push eax
push 0x4097f4
call sub.KERNEL32.DLL_GetCommandLineA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40990a
lea eax, [ebp - 4]
call fcn.004040d8
ret

Function at 0x40b3cc
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
test dl, dl
je 0x40b3da
add esp, 0xfffffff0
call fcn.00403784
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0040350c
mov dword [esi + 0xc], 0xffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
call sub.KERNEL32.DLL_WriteFile
mov dword [esi + 0x10], eax
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_WriteFile
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xffffffff
mov dl, 1
mov eax, dword [0x406658]
call fcn.0040350c
mov dword [esi + 0x20], eax
mov eax, esi
test bl, bl
je 0x40b439
call fcn.004037dc
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret
Function at 0x40ceb0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce8
push ebx
push esi
push edi
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
test byte [eax + 1], 0x20
jne 0x40ced8
mov eax, 0x80070057
call fcn.0040cd90
mov eax, dword [ebp - 0x304]
movzx eax, word [eax]
mov edx, eax
and dx, 0xfff
cmp dx, 0xc
jne 0x40d014
mov edx, dword [ebp - 0x304]
test ah, 0x40
je 0x40cf10
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x308], eax
jmp 0x40cf1f
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 8]
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
movzx eax, word [eax]
mov dword [ebp - 0x310], eax
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x40cfa4
inc ebx
xor edi, edi
lea esi, [ebp - 0x300]
mov eax, esi
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x318]
add eax, 4
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_MoveFileA
call fcn.0040cd90
lea eax, [ebp - 0x30c]
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_ResetEvent
call fcn.0040cd90
mov eax, dword [ebp - 0x318]
mov edx, dword [ebp - 0x30c]
sub edx, dword [eax + 4]
inc edx
mov eax, dword [ebp - 0x318]
mov dword [eax], edx
inc edi
add esi, 8
dec ebx
jne 0x40cf42
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x40cfc9
inc ebx
lea eax, [ebp - 0x2fc]
lea edx, [ebp - 0x100]
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 8
dec ebx
jne 0x40cfbc
push ebp
mov ebx, dword [ebp - 0x310]
dec ebx
mov eax, ebx
call fcn.0040ce24
pop ecx
test al, al
je 0x40d007
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_SetEvent
call fcn.0040cd90
mov eax, dword [ebp - 0x314]
call fcn.0040d0a8
push ebp
mov eax, ebx
call fcn.0040ce54
pop ecx
test al, al
jne 0x40cfc9
mov eax, dword [ebp - 0x304]
push eax
call sub.KERNEL32.DLL_GetTempPathA
call fcn.0040cd90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d150
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce0
push ebx
push esi
push edi
mov dword [ebp - 0x308], ecx
mov ebx, edx
mov dword [ebp - 0x304], eax
test byte [ebx + 1], 0x20
jne 0x40d17a
mov eax, 0x80070057
call fcn.0040cd90
movzx eax, word [ebx]
mov edx, eax
and dx, 0xfff
cmp dx, 0xc
jne 0x40d301
test ah, 0x40
je 0x40d1a0
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x314], eax
jmp 0x40d1a9
mov eax, dword [ebx + 8]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x314]
movzx eax, word [eax]
mov dword [ebp - 0x310], eax
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x40d22e
inc ebx
xor edi, edi
lea esi, [ebp - 0x300]
mov eax, esi
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x320]
add eax, 4
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.KERNEL32.DLL_MoveFileA
call fcn.0040cd90
lea eax, [ebp - 0x30c]
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.KERNEL32.DLL_ResetEvent
call fcn.0040cd90
mov eax, dword [ebp - 0x320]
mov edx, dword [ebp - 0x30c]
sub edx, dword [eax + 4]
inc edx
mov eax, dword [ebp - 0x320]
mov dword [eax], edx
inc edi
add esi, 8
dec ebx
jne 0x40d1cc
lea eax, [ebp - 0x300]
push eax
mov eax, dword [ebp - 0x310]
push eax
push 0xc
call sub.KERNEL32.DLL_LeaveCriticalSection
mov esi, eax
test esi, esi
jne 0x40d24e
call fcn.0040cae8
mov eax, dword [ebp - 0x304]
call fcn.0040d0a8
mov eax, dword [ebp - 0x304]
mov word [eax], 0x200c
mov eax, dword [ebp - 0x304]
mov dword [eax + 8], esi
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x40d292
inc ebx
lea eax, [ebp - 0x2fc]
lea edx, [ebp - 0x100]
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 8
dec ebx
jne 0x40d285
push ebp
mov ebx, dword [ebp - 0x310]
dec ebx
mov eax, ebx
call fcn.0040d0c4
pop ecx
test al, al
je 0x40d2f2
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.KERNEL32.DLL_SetEvent
call fcn.0040cd90
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x100]
push eax
push esi
call sub.KERNEL32.DLL_SetEvent
call fcn.0040cd90
mov eax, dword [ebp - 0x318]
mov edx, eax
mov eax, dword [ebp - 0x31c]
call dword [ebp - 0x308]
push ebp
mov eax, ebx
call fcn.0040d0f4
pop ecx
test al, al
jne 0x40d292
jmp 0x40d313
push ebx
mov eax, dword [ebp - 0x304]
push eax
call sub.KERNEL32.DLL_GetVersionExA
call fcn.0040cd90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f6d8
Capabilities:
Write file on windows

Disassembly:
push 0x4152dc
call sub.KERNEL32.DLL_VirtualAlloc
push 0x40f708
push 0
push 0xffffffffffffffff
push 0
call sub.KERNEL32.DLL_WriteFile
mov dword [0x4152c4], eax
cmp dword [0x4152c4], 0
jne 0x40f705
call fcn.0040b140
ret
Function at 0x40f850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044c4
xor eax, eax
push ebp
push 0x40f8ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004040d8
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f893
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
jle 0x40f8c1
mov esi, 1
lea eax, [ebp - 0x10]
mov edx, ebx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + esi - 1]
xor dl, cl
call fcn.004042c0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.00404380
inc esi
dec edi
jne 0x40f89e
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040412c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f8f6
lea eax, [ebp - 0x10]
call fcn.004040d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004040fc
ret

Function at 0x40f928
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044c4
mov eax, dword [ebp - 8]
call fcn.004044c4
xor eax, eax
push ebp
push 0x40f9b6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x40f98f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004044d4
push eax
mov eax, dword [ebp - 4]
call fcn.004044d4
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f99b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f9bd
lea eax, [ebp - 8]
mov edx, 2
call fcn.004040fc
ret
Function at 0x40158a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4015ca
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_obtaining_snapshot_handle:__ld_n
call fcn.00401560
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32FirstW
sub esp, 8
test eax, eax
jne 0x401607
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_enumerating_the_first_process:__ld_n
call fcn.00401560
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x238]
add eax, 0x24
mov dword [esp], eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x40163b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x230]
jmp 0x40167f
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32NextW
sub esp, 8
test eax, eax
jne 0x401607
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.____Error_finding_process_by_name:__S_n
call fcn.00401560
mov eax, 0
leave
ret
Function at 0x40179b
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4017f7
mov dword [esp], str.Error_opening_filepath
call fcn.00401560
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
call eax
sub esp, 8
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x405040
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x10], 0x405040
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40186c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], str.Invalid_DOS_file
call fcn.00401560
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
jl 0x4018b1
cmp ebx, edx
jg 0x40188b
cmp ecx, eax
jb 0x4018b1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], 0x4040eb
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401971
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call eax
sub esp, 0x10
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x405040
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [ebp - 0x14], 0x405040
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401940
mov dword [esp], 0x4040eb
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401971
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp ax, 0x8664
jne 0x401960
mov dword [esp], 0x404138
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401971
mov dword [esp], 0x4040eb
call sub.msvcrt.dll_printf
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401f70
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00401fd0
Function at 0x402960
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402998
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40298e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40299a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x402980
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40557f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x41434c
push str.FlsAlloc
push 0
call fcn.004054f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4055b1
push dword [ebp + 8]
mov ecx, esi
call fcn.00402b3e
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x4055f3
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x414370
push str.FlsGetValue
push 2
call fcn.004054f8
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x405624
mov ecx, esi
call fcn.00402b3e
call esi
jmp 0x40562a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x40562d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x414384
push str.FlsSetValue
push 3
call fcn.004054f8
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x405661
mov ecx, esi
call fcn.00402b3e
call esi
jmp 0x405667
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x4319c0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x808
mov eax, dword [0x435004]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [0x4382a4]
imul eax, eax, 0x343fd
cmp dword [0x22dae8c], 0x139e
mov dword [0x4382a4], eax
jne 0x431a13
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
mov eax, dword [esp]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x4382a4]
add eax, 0x269ec3
push esi
mov dword [0x4382a4], eax
movzx esi, word [0x4382a6]
and esi, 0x7fff
cmp dword [0x22dae8c], 0x8e7
jne 0x431a48
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x808
ret

Function at 0x431b10
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x435004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x4361f0]
push ebx
mov ebx, dword [0x22da830]
push edi
mov edi, dword [0x22dae8c]
call fcn.00431a60
cmp dword [0x22dae8c], 0x2f
jne 0x431b75
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00431a90
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0x24
ret