joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d5fc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
mov ecx, dword [0x4b507c]
mov al, byte [esp + 0x124]
mov esi, dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
xor ebp, ebp
mov ebx, 0
xor ecx, esp
test al, al
mov dword [esp + 0x104], ecx
je 0x46d64c
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
setb bl
mov al, byte [esp + 0x128]
test edi, edi
mov dword [esi], 0x4c
je 0x46d665
xor ebp, ebp
cmp byte [edi], 0
cmovne ebp, edi
test al, al
mov dword [esi + 0x2c], ebp
je 0x46d675
push esi
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x46d67c
push esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov esi, eax
test edi, edi
je 0x46d699
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
jb 0x46d699
mov byte [edi], 0
test bl, bl
je 0x46d6a6
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x104]
test esi, esi
setne bl
xor ecx, esp
call fcn.0046f0c8
mov eax, ebx
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x484054
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048405f

Function at 0x4843de
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004843e9

Function at 0x485b57
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00485b62

Function at 0x511000
Capabilities:
Packed with generic packer
Terminate process

Disassembly:
pushal
push 0x511031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x51103a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x511047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.0046f4c6
Function at 0x10003760
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001262d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1001e008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, 0x1001af3d
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.10006060
test al, al
jne 0x1000381d
mov eax, dword [ebp + 0x18]
inc eax
push eax
call fcn.10006d17
add esp, 4
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov ebx, eax
mov edx, ebx
cmovae ecx, dword [ebp + 8]
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x100037c0
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100037d2
sub esi, ecx
inc esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.10009260
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1000384d
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10003843
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000385f
push edx
push ecx
call fcn.1000679f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100099dc
int3
Function at 0x4792d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d000]
push edi
or ebp, 0xffffffff
jmp 0x4792f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4792f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4792e8
mov eax, 1
add ebx, ebx
jne 0x47930b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47931c
jne 0x47933b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47933b
dec eax
add ebx, ebx
jne 0x479328
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x479300
add ebx, ebx
jne 0x479337
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47938d
xor ecx, ecx
sub eax, 3
jb 0x479353
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4793c2
sar eax, 1
mov ebp, eax
jmp 0x47935e
add ebx, ebx
jne 0x47935e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47932c
inc ecx
add ebx, ebx
jne 0x47936c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47932c
add ebx, ebx
jne 0x479379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47936e
jne 0x47938a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47936e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4793ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47939e
jmp 0x4792ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4793ac
add edi, ecx
jmp 0x4792ee
pop esi
mov edi, esi
mov ecx, 0x93
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4793ca
cmp byte [edi], 6
jne 0x4793ca
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 0x4793cf
lea edi, [esi + 0x77000]
mov eax, dword [edi]
or eax, eax
je 0x479447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x790c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x79104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4793fc
mov ecx, edi
jns 0x47942b
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 + 0x79108]
or eax, eax
je 0x479441
mov dword [ebx], eax
add ebx, 4
jmp 0x479419
call dword [esi + 0x79118]
mov ebp, dword [esi + 0x7910c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x47947b
sub esp, 0xffffff80
jmp 0x4013bc
Function at 0x40b346
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040d5b0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x400
push esi
lea eax, [ebp - 0x800]
push eax
xor ebx, ebx
push ebx
call edi
push str.opeqmc.exe
lea eax, [ebp - 0x800]
call fcn.00405493
test eax, eax
pop ecx
je 0x40b3e0
lea eax, [ebp - 0x1800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
jne 0x40b3e0
push esi
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
push 1
lea eax, [ebp - 0x800]
push eax
push str.IueiOod
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.004069fd
add esp, 0x14
test eax, eax
push 4
je 0x40b3ca
push ebx
push 3
jmp 0x40b3d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040a786
add esp, 0xc
call fcn.0040b2ce
call fcn.0040aafd
test eax, eax
jne 0x40b3db
call fcn.0040ab7c
test eax, eax
je 0x40b453
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebx
push 9
call fcn.0040a786
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
je 0x40b453
push ebx
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b453
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040abd9
test eax, eax
je 0x40b4ad
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
lea eax, [ebp - 0x800]
push eax
call fcn.00407727
test eax, eax
pop ecx
pop ecx
je 0x40b498
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b44c
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b4a3
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040a786
add esp, 0xc
jmp 0x40b44c
push ebx
call fcn.00407727
cmp eax, ebx
pop ecx
push esi
je 0x40b4cf
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x411040]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b4e9
lea eax, [ebp - 0x1000]
push eax
push ebx
call edi
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.004054ed
lea eax, [ebp - 0x1000]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b44c
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
call fcn.0040a786
add esp, 0xc
mov dword [0x411058], ebx
jmp 0x40b3db

Function at 0x40cd66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [str.T_tBr]
jne 0x40cd70
repz ret
jmp fcn.0040d00b
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
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
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x43b647
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
sub ecx, 0x926dc04c
call fcn.0043b672
dec ecx
mov ecx, 0x6ee8e98d
xor dword [eax], edi
or ecx, edx
add edx, 0xa3e9ea99
inc eax
or edx, ecx
cmp eax, esi
jne fcn.0043b647
sub edx, ecx
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10002470
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x100091b3], 0
je 0x1000251a
push esi
push 0x10
call fcn.1000563c
mov esi, eax
add esp, 4
push esi
mov dword [esi], 0x65685343
mov dword [esi + 4], 0x642e6c6c
mov word [esi + 8], 0x6c6c
mov byte [esi + 0xa], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov dword [0x10faa3fc], eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov esi, dword [0x10faa3fc]
add esp, 4
test esi, esi
je 0x10002519
mov eax, dword [esi + 0x5b7500]
push edi
mov dword [0x10faa3f8], eax
mov byte [0x100091b3], 0
call fcn.10002310
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0
add esi, 0x388b65
push esi
call edi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push ecx
mov edx, 0x10002390
sub edx, esi
push 0
sub edx, 5
push esi
mov byte [esi], 0xe8
mov dword [esi + 1], edx
call edi
call fcn.10002400
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100027f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x10faa3f8]
cmp dword [eax + 0x54], 0
je 0x10002ab0
push esi
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
fld dword [0x10007558]
mov edx, dword [0x10faa3fc]
fld qword [0x10007550]
mov esi, dword [edx + 0xf9499c]
test ax, ax
je 0x100029ef
push edi
mov edi, dword [0x10faa408]
inc edi
mov dword [0x10faa408], edi
xor ecx, ecx
cmp dword [esi + ecx*4], 0
je 0x100029c8
cmp ecx, 6
je 0x100029c8
cmp ecx, 0x64
je 0x100029c8
cmp ecx, 0x7e
je 0x100029c8
cmp ecx, 0x87
je 0x100029c8
cmp ecx, 0xc8
je 0x100029c8
cmp ecx, 0xd1
je 0x100029c8
cmp ecx, 0xd2
je 0x100029c8
cmp ecx, 0xf0
je 0x100029c8
cmp ecx, 0x106
je 0x100029c8
cmp ecx, 0x107
je 0x100029c8
cmp ecx, 0x110
je 0x100029c8
cmp ecx, 0x120
je 0x100029c8
cmp ecx, 0x139
je 0x100029c8
cmp ecx, 0x144
je 0x100029c8
cmp ecx, 0x152
je 0x100029c8
cmp ecx, 0x165
je 0x100029c8
cmp ecx, 0x17e
je 0x100029c8
cmp ecx, 0x1a0
je 0x100029c8
cmp ecx, 0x1a7
je 0x100029c8
cmp ecx, 0x1a8
je 0x100029c8
cmp ecx, 0x1a9
je 0x100029c8
cmp ecx, 0x1b3
je 0x100029c8
cmp ecx, 0x1b6
je 0x100029c8
cmp ecx, 0x1d9
je 0x100029c8
cmp ecx, 0x1e1
je 0x100029c8
cmp ecx, 0x207
je 0x100029c8
cmp ecx, 0x2b8
je 0x100029c8
cmp ecx, 0x2d0
je 0x100029c8
cmp ecx, 0x2d9
je 0x100029c8
mov eax, dword [edx + 0xf9499c]
fxch st(1)
mov eax, dword [eax + ecx*4]
fcom dword [eax + 0x81c]
fnstsw ax
cmp edi, 2
jg 0x100029aa
test ah, 5
jp 0x100029c6
mov eax, dword [edx + 0xf9499c]
mov eax, dword [eax + ecx*4]
fld dword [eax + 0x81c]
fdiv st(2)
jmp 0x100029c0
test ah, 0x41
jne 0x100029c6
mov eax, dword [edx + 0xf9499c]
mov eax, dword [eax + ecx*4]
fld dword [eax + 0x81c]
fmul st(2)
fstp dword [eax + 0x81c]
fxch st(1)
inc ecx
cmp ecx, 0x3e7
jl 0x10002839
fstp st(1)
cmp edi, 3
fstp st(0)
pop edi
jl 0x10002aaf
mov dword [0x10faa408], 0
pop esi
ret
xor ecx, ecx
cmp dword [ecx + esi], 0
je 0x10002a28
mov eax, dword [edx + 0xf9499c]
fxch st(1)
mov eax, dword [ecx + eax]
fcom dword [eax + 0x81c]
fnstsw ax
test ah, 5
jp 0x10002a26
mov eax, dword [edx + 0xf9499c]
mov eax, dword [ecx + eax]
fld dword [eax + 0x81c]
fdiv st(2)
fstp dword [eax + 0x81c]
fxch st(1)
cmp dword [ecx + esi + 4], 0
je 0x10002a62
mov eax, dword [edx + 0xf9499c]
fxch st(1)
mov eax, dword [ecx + eax + 4]
fcom dword [eax + 0x81c]
fnstsw ax
test ah, 5
jp 0x10002a60
mov eax, dword [edx + 0xf9499c]
mov eax, dword [ecx + eax + 4]
fld dword [eax + 0x81c]
fdiv st(2)
fstp dword [eax + 0x81c]
fxch st(1)
cmp dword [ecx + esi + 8], 0
je 0x10002a9c
mov eax, dword [edx + 0xf9499c]
fxch st(1)
mov eax, dword [ecx + eax + 8]
fcom dword [eax + 0x81c]
fnstsw ax
test ah, 5
jp 0x10002a9a
mov eax, dword [edx + 0xf9499c]
mov eax, dword [ecx + eax + 8]
fld dword [eax + 0x81c]
fdiv st(2)
fstp dword [eax + 0x81c]
fxch st(1)
add ecx, 0xc
cmp ecx, 0xf9c
jl 0x100029f1
fstp st(1)
fstp st(0)
pop esi
ret
Function at 0x10003cf0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x10009018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x10005450
push 1
mov dword [0x10faa3e0], 0x10003cb0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov esi, dword [0x10faa3ec]
call fcn.10005480
push 0x2c8
lea eax, [ebp - 0x2cc]
push 0
push eax
mov dword [ebp - 0x2d0], 0x10010
call sub.MSVCR100.dll_memset
mov ecx, dword [0x10faa3b8]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [0x10faa3b8]
lea edx, [ebp - 0x2d0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [0x10faa3b8]
lea ecx, [ebp - 0x2d0]
push ecx
push edx
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2b8], 1
mov dword [ebp - 0x2bc], 0
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [0x10faa3b8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000565a
mov esp, ebp
pop ebp
ret
Function at 0x10004a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100061e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10009018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x10004be2
cmp byte [ebx + 0x49], 0
je 0x10004be2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x10004bd6
lea esi, [ebp - 0x2c]
call fcn.100049f0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10004ac3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x10004afb
dec eax
je 0x10004aff
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x10004bdd
call fcn.10003e10
xor al, al
jmp 0x10004be4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x10004b0f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x10004b3d
cmp edi, 0x10
jae 0x10004b1e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10004bce
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x10004bda
test esi, esi
jne 0x10004ab7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x10004bff
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x10004bff
cmp edi, esi
jae 0x10004bb7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.10004c80
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x10004ab7
mov ecx, eax
cmp edi, 0x10
jae 0x10004b93
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x10004bae
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10004ab1
test esi, esi
jne 0x10004b89
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x10004bc6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x10004ab1
lea esi, [ebp - 0x2c]
call fcn.10003e10
xor al, al
jmp 0x10004be4
lea esi, [ebp - 0x2c]
call fcn.10003e10
mov al, 1
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.1000565a
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x10005480
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10009018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x100054f1
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100054f1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Thread32Next]
cmp dword [ebp - 0x14], ebx
je 0x100054d6
lea ecx, [ebp - 0x20]
push ecx
push esi
call edi
test eax, eax
jne 0x100054c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
push 1
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [0x10faa3b8], eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000565a
mov esp, ebp
pop ebp
ret

Function at 0x1000565a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10009018]
jne 0x10005664
repz ret
jmp fcn.10005b71
Function at 0x407064
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407170
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test bl, bl
je 0x4070e4
movzx eax, bl
add ax, 0x41
dec eax
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
cmp edi, 0x104
jbe 0x4070db
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.0040c594
mov eax, dword [ebp - 4]
call fcn.0040c408
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
ja 0x407114
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.0040c4bc
jmp 0x407130
mov edx, esi
dec edx
mov eax, dword [ebp - 8]
call fcn.0040c594
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040c408
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407158
cmp edi, 0x104
jbe 0x40714c
mov eax, dword [ebp - 4]
call fcn.0040c408
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x407158
lea eax, [ebp - 0x420]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407177
lea eax, [ebp - 4]
call fcn.0040b904
pop eax
jmp eax

Function at 0x407714
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040b904
test esi, esi
jne 0x40774a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040ba9c
jmp 0x407768
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407658
mov edi, eax
test esi, esi
je 0x407768
cmp dword [ebx], 0
je 0x407768
dec esi
jmp 0x407751
add esp, 0x20c
pop edi
pop esi
pop ebx
ret