joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5746f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5746fd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5749ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
add eax, 0xc
call fcn.0040ab08
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x10], edx
mov byte [ebp - 0x15], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x5749af
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.0040b74c
lea eax, [ebp - 4]
call fcn.0040b0a0
push eax
push 0
push 0x574a00
push 0x574a08
call sub.KERNEL32.DLL_GetTempFileNameW
mov eax, dword [ebp - 4]
call fcn.0040b5c0
call fcn.0040b004
lea edx, [ebp - 4]
xchg edx, eax
call fcn.0040b74c
push 0xff00
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48ca30]
call fcn.004b3f5c
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x574952
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x57487e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x574a18
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push 0x574a38
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00422d30
push dword [ebp - 0x20]
push 0x574a48
call fcn.0057300c
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.00572dd4
push dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 6
call fcn.0040b8b0
call fcn.0057300c
lea ecx, [ebp - 0x2c]
mov edx, ebx
call fcn.00572dd4
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x574a6c
call fcn.0040b828
mov esi, dword [ebp - 0x28]
test ebx, ebx
je 0x57483b
lea eax, [ebp - 8]
mov dword [ebp - 0x30], esi
mov edx, dword [ebp - 0x30]
call fcn.0040af40
jmp 0x574843
lea eax, [ebp - 8]
call fcn.0040ab08
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0040b828
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x14]
call fcn.0056c9a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x574885
lea eax, [ebp - 0xc]
call fcn.0040ab08
pop eax
jmp eax
Function at 0x401290
Capabilities:
Enumerate process modules
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1078
call fcn.00403140
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1074], eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x60], 2
jb 0x40131e
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [esp + 0x14], 0
ja 0x4012e4
cmp dword [esp + 0x10], 0x40000000
jb 0x40131e
lea eax, [esp + 4]
push eax
push 0x1000
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x40131e
mov eax, dword [esp + 4]
and eax, 0xfffffffc
cmp eax, 0xc8
setb al
mov ecx, dword [esp + 0x1074]
xor ecx, esp
call fcn.0040220a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1074]
mov al, 1
xor ecx, esp
call fcn.0040220a
mov esp, ebp
pop ebp
ret

Function at 0x401ba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
push 4
call fcn.00402218
add esp, 4
lea ecx, [esp + 0x38]
mov dword [eax], 0x401340
push ecx
push 0
push eax
push 0x4021b0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esp + 0x34], eax
test eax, eax
je 0x401ce1
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x401cd9
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x401cd9
xorps xmm0, xmm0
movlpd qword [esp + 0x34], xmm0
lea ecx, [esp + 0x20]
call fcn.00401170
mov esi, dword [esp + 0x24]
cmp esi, 0x7fffffff
jg 0x401c43
mov ebx, dword [esp + 0x20]
jl 0x401c38
cmp ebx, 0xc46535ff
jae 0x401c43
add ebx, 0x3b9aca00
adc esi, 0
jmp 0x401c4b
or ebx, 0xffffffff
mov esi, 0x7fffffff
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x28]
call fcn.00401170
mov ecx, dword [esp + 0x2c]
cmp ecx, esi
jg 0x401c15
mov eax, dword [esp + 0x28]
jl 0x401c6e
cmp eax, ebx
jae 0x401c15
mov edi, ebx
sub edi, eax
mov eax, esi
sbb eax, ecx
mov dword [esp + 0x18], eax
cmp eax, 0x4e94
jg 0x401cca
jl 0x401c8b
cmp edi, 0x914f0000
jae 0x401cca
push 0
push 0xf4240
push eax
push edi
call fcn.00402f70
push 0
push 0xf4240
mov ebx, edx
mov esi, eax
push ebx
push esi
call fcn.00403100
cmp edx, dword [esp + 0x18]
jg 0x401cba
jl 0x401cb7
cmp eax, edi
jae 0x401cba
add esi, 1
push esi
call sub.KERNEL32.dll_Sleep
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x401c53
push 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x401c53
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [esp + 0x3c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x402ad5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402b14
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402b14
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402b14
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402b14
cmp dword [ecx + 0x74], 0xe
jbe 0x402b14
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x15840b95
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x66dc5ca7
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x5ce8273b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x10ec60a0
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x403ce0
Capabilities:
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x834
cmp dword [0x283d638], 0x400
push ebx
push esi
push edi
jne 0x403dd1
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
lea eax, [esp + 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DrawStateA]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0
call fcn.00404400
add esp, 4
push 0
push 0
call fcn.0040488f
push 0
push 0
call fcn.004043c0
push 0
push 0
call fcn.004046c6
push 0
call fcn.00404bfe
add esp, 0x1c
push 0
push 0
push 0
call fcn.00404b15
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.00404060
add esp, 8
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004040a0
fstp st(0)
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004045a0
fstp st(0)
push 0
call fcn.00404c72
add esp, 0xc
push 0
push 0
call fcn.00404350
push 0
call fcn.0040493c
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
lea esp, [esp]
push 0
push 0
push 0
push 0
call edi
cmp esi, 0x4f4d0c6
jg 0x403dfb
inc esi
cmp esi, 0x34476d9
jl 0x403de0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
call ebx
cmp esi, 0x12e82fe
jg 0x403e25
inc esi
cmp esi, 0x3011b
jl 0x403e10
mov ecx, dword [0x444c54]
mov dword [0x283d638], ecx
call fcn.004039f0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, 0x2ec37
cmp dword [0x283d638], 0x51f
jne 0x403e56
lea edx, [esp + 0x40]
push edx
push 0
call esi
dec edi
jne 0x403e41
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406e30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4417c4]
jne 0x406e3a
repz ret
jmp fcn.0040bb0c
Function at 0x40d7f3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4417c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040583e
and dword [ebp - 0x14], 0
cmp dword [0x4597ec], 0
mov dword [ebp - 0x18], eax
jne 0x40d8a6
push 0x403444
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d94e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403438
push ebx
call edi
test eax, eax
je 0x40d94e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403428
push ebx
mov dword [0x4597ec], eax
call edi
push eax
call esi
push 0x403414
push ebx
mov dword [0x4597f0], eax
call edi
push eax
call esi
push 0x4033f8
push ebx
mov dword [0x4597f4], eax
call edi
push eax
call esi
mov dword [0x4597fc], eax
test eax, eax
je 0x40d8a6
push 0x4033e0
push ebx
call edi
push eax
call esi
mov dword [0x4597f8], eax
mov eax, dword [0x4597f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d8ff
cmp dword [0x4597fc], ecx
je 0x40d8ff
push eax
call esi
push dword [0x4597fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d8ff
test ebx, ebx
je 0x40d8ff
call edi
test eax, eax
je 0x40d8f6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d8f6
test byte [ebp - 8], 1
jne 0x40d8ff
or dword [ebp + 0x10], 0x200000
jmp 0x40d932
mov eax, dword [0x4597f0]
cmp eax, dword [ebp - 0x18]
je 0x40d932
push eax
call esi
test eax, eax
je 0x40d932
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d932
mov eax, dword [0x4597f4]
cmp eax, dword [ebp - 0x18]
je 0x40d932
push eax
call esi
test eax, eax
je 0x40d932
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4597ec]
call esi
test eax, eax
je 0x40d94e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d950
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e30
leave
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x408944
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
call fcn.00408968
xor dword [ebx], edi
add eax, 0xf9e13768
add ebx, 1
and edx, edx
add edx, edx
cmp ebx, esi
jne fcn.00408944
and edx, edx
ret
Function at 0x10023383
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100233d3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10028a14
mov dword [eax], esi
jmp 0x10023401
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x10023401
push 0
push 0xc75
push 0
push 0
push 0x93
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10023532
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10023558
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10023560
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x100362e3
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10036309
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10036307
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x10036354
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10036337
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x10036354
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10028a14
mov dword [eax], 1
jmp 0x1003632c
mov esp, ebp
pop ebp
ret
Function at 0x10037e57
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10037e80
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10037e7b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x10037f17
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 1
je 0x10037ed3
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10028a14
cmp dword [eax], 0
je 0x10037ed3
mov dword [ebp - 0x14], 1
jmp 0x10037ed7
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jg 0x10037efc
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10028a14
cmp dword [eax], 0
je 0x10037efc
mov dword [ebp - 0x18], 1
jmp 0x10037f00
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xc]
call fcn.10028a14
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x100386bf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100386e4
push 0
push 0xc75
push 0
push 0
push 0x93
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x100386f1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetParent]
pop ebp
ret
Function at 0x10044077
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100440aa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x100440a8
push 0x2188
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x100440f5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100440d8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100440f5
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10028a14
mov dword [eax], 0x5741311e
jmp 0x100440cd
mov esp, ebp
pop ebp
ret

Function at 0x100440f9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10044154
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10044135
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10044152
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10028a14
mov dword [eax], 0xa39ed080
jmp 0x1004412a
jmp 0x1004415c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x100467a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100467d6
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100467d4
push 0
push 0xc75
push 0
push 0
push 0x93
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x100467ef
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x100467ef
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ShowCaret]
mov esp, ebp
pop ebp
ret
Function at 0x10049ebf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10049ee3
xor eax, eax
jmp 0x1004a042
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x76c2
lea eax, [ebp + 8]
push eax
push 1
call fcn.1004947d
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10049f10
xor eax, eax
jmp 0x1004a042
push 0x32de
push 1
push 0x7622
push 0x4d72
push 0x7d4e
lea eax, [ebp - 0xc]
push eax
push 0x1cde
lea eax, [ebp - 8]
push eax
call fcn.100494f6
add esp, 0x20
cmp dword [ebp - 0xc], 0
jne 0x10049f48
xor eax, eax
jmp 0x1004a042
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.10049355
add esp, 0x18
push 0x11f2
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4a3c
lea eax, [ebp - 8]
push eax
call fcn.10049be2
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x10049fa9
push 1
push 0x3610
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10049c7e
add esp, 0x10
push dword [ebp - 4]
call fcn.100490eb
pop ecx
test eax, eax
jne 0x10049fbd
xor eax, eax
jmp 0x1004a042
push 0x3174
push 0x1be2
push 1
lea eax, [ebp - 4]
push eax
call fcn.10049cf8
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1004a02a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10049ff4
xor eax, eax
jmp 0x1004a042
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1004a00d
xor eax, eax
jmp 0x1004a042
lea eax, [ebp - 4]
push eax
push 0x4f51
push 1
push 0x1001
push 0x3e9
call fcn.10049d5b
add esp, 0x14
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1004a03b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1004a03f
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret