joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ea9e8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x40]
push esi
mov ebx, ecx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4681c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4681e7
push ebp
push eax
lea ecx, [esp + 0x18]
call sym.EXP.EXE_public:_void___thiscall_CxMemFile::constructor_unsigned_char___unsigned_long_int_
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0x38], 0
call sym.EXP.EXE_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
lea ecx, [esp + 0x10]
mov bl, al
mov dword [esp + 0x30], 0xffffffff
call sym.EXP.EXE_public_virtual:_void___thiscall_CxMemFile::destructor_void_
mov al, bl
jmp 0x4681e9
mov edi, str.Unable_to_load_resource_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x468290
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4eaa08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
push edi
mov dword [esi], sym.EXP.EXE_const_CxImage::vftable
call sym.EXP.EXE_protected:_void___thiscall_CxImage::Startup_unsigned_long_int_
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x10]
call sym.EXP.EXE_public:_void___thiscall_CxMemFile::constructor_unsigned_char___unsigned_long_int_
lea edx, [esp + 8]
push edi
push edx
mov ecx, esi
mov dword [esp + 0x30], 0
call sym.EXP.EXE_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call sym.EXP.EXE_public_virtual:_void___thiscall_CxMemFile::destructor_void_
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x468310
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4eaa28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x2c]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x10]
call sym.EXP.EXE_public:_void___thiscall_CxMemFile::constructor_unsigned_char___unsigned_long_int_
mov edx, dword [esp + 0x38]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x30], 0
call sym.EXP.EXE_public:_bool___thiscall_CxImage::Decode_class_CxFile___unsigned_long_int_
lea ecx, [esp + 8]
mov bl, al
mov dword [esp + 0x28], 0xffffffff
call sym.EXP.EXE_public_virtual:_void___thiscall_CxMemFile::destructor_void_
mov ecx, dword [esp + 0x20]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x4758b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetHeight_void_const
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x4758e2
mov dword [esp + 0x2c], 0
jmp 0x4758fd
mov ecx, ebp
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetHeight_void_const
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetHeight_void_const
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetWidth_void_const
cmp eax, esi
jae 0x47593d
mov ecx, ebp
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetWidth_void_const
mov dword [esp + 0x10], eax
jmp 0x475941
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call sym.EXP.EXE_public:_long_int___thiscall_CxImage::GetTransIndex_void_const
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x4759ad
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x4759a8
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call sym.EXP.EXE_public:_unsigned_char___thiscall_CxImage::GetPixelIndex_long_int__long_int_
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x47599b
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call sym.EXP.EXE_public:_void___thiscall_CxImage::SetPixelIndex_long_int__long_int__unsigned_char_
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x475968
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x475956
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x478a20
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0x9ac6cdd7
jne 0x478a62
mov dword [esp + 8], eax
lea ecx, [esi + 2]
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x478a3a
cmp ax, word [esi + 0x14]
jne 0x478a62
mov si, word [esi + 0xe]
test si, si
jbe 0x478a62
cmp si, 0x9ec
ja 0x478a62
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x4a0fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x4a1029
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x4a0feb
test byte [eax + 0x230], 1
jne 0x4a1008
movzx si, byte [edx]
cmp si, cx
jbe 0x4a1008
push str.Invalid_background_palette_index
push eax
call fcn.004993d0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.0049fcf0
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x4a10a1
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.0049fcd0
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.0049fcd0
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.0049fcd0
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x4a109a
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x4a109a
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.004993d0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x4a1010
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x4a10d4
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.004993d0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0049fcd0
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.0049fcf0
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x4bb6d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x40
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
push edi
je 0x4bb710
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push 2
push ebp
push ebx
push ecx
push esi
push 0
push eax
call fcn.004c97c0
mov edi, dword [esp + 0x78]
add esp, 0x24
jmp 0x4bb731
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov edi, 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4bb768
lea edx, [esp + 0x30]
lea ecx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push ecx
push 2
push ebp
push ebx
push edx
push esi
push 0x10000
push eax
call fcn.004c97c0
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
add esp, 0x24
jmp 0x4bb781
mov ecx, dword [esp + 0x60]
mov eax, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
imul eax, edi
mov ecx, dword [esp + 0x70]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x60], eax
mov dword [ecx], eax
jle 0x4bb81e
mov edx, dword [esp + 0x74]
lea ecx, [edx + 0x1c]
jmp 0x4bb7a5
mov edi, dword [esp + 0x54]
mov eax, ebx
cdq
idiv edi
mov eax, ebx
mov esi, edx
cdq
idiv edi
shl esi, 4
mov edx, esi
mov esi, dword [esp + edx + 0x10]
mov dword [ecx - 0x1c], esi
shl eax, 4
mov ebp, dword [esp + eax + 0x34]
mov edi, dword [esp + eax + 0x30]
mov dword [ecx - 0x10], ebp
mov ebp, dword [esp + edx + 0x18]
mov dword [ecx - 0x18], edi
mov edi, dword [esp + edx + 0x14]
mov edx, dword [esp + edx + 0x1c]
mov dword [ecx - 0xc], ebp
mov ebp, dword [esp + eax + 0x38]
mov eax, dword [esp + eax + 0x3c]
mov dword [ecx - 0x14], edi
mov dword [ecx - 8], ebp
mov dword [ecx - 4], edx
mov dword [ecx], eax
mov edx, dword [ecx - 0x18]
cmp esi, edi
jne 0x4bb801
mov eax, dword [ecx - 8]
mov dword [ecx - 0x10], edx
mov dword [ecx], eax
jmp 0x4bb812
cmp edx, dword [ecx - 0x10]
jne 0x4bb812
mov eax, dword [ecx - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0x14], eax
mov dword [ecx - 4], edx
mov eax, dword [esp + 0x60]
inc ebx
add ecx, 0x20
cmp ebx, eax
jl 0x4bb7a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x4c9d10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4c9d40
push esi
call fcn.004ca2d0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4c9d39
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4c9dc3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4c9daf
mov eax, dword [esi + 8]
test eax, eax
je 0x4c9d64
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4c9dab
cmp eax, 2
je 0x4c9daf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4c9d57
cmp eax, 3
je 0x4c9d8a
cmp eax, 1
jne 0x4c9d57
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4c9d57
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4c9d57
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004c9df0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4c9de3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004c9df0
add esp, 4
pop esi
ret

Function at 0x4cad50
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x4cae0a
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x4cae0a
cmp byte [eax + 1], 0x64
jne 0x4cae0a
cmp byte [eax + 2], 0x6f
jne 0x4cae0a
cmp byte [eax + 3], 0x62
jne 0x4cae0a
cmp byte [eax + 4], 0x65
jne 0x4cae0a
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x108], 1
mov byte [esi + 0x109], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x4ce3a0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.004d5880
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.004d5840
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4ce3e4
push edi
call fcn.004029e0
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.004ce4e0
mov dword [esi + 4], fcn.004ce630
mov dword [esi + 8], fcn.004ce6e0
mov dword [esi + 0xc], fcn.004ce790
mov dword [esi + 0x10], 0x4ce840
mov dword [esi + 0x14], 0x4ce8b0
mov dword [esi + 0x18], 0x4ce920
mov dword [esi + 0x1c], 0x4ceaa0
mov dword [esi + 0x20], 0x4cec90
mov dword [esi + 0x24], fcn.004cee80
mov dword [esi + 0x28], 0x4cef80
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x4ce446
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x4ce4d8
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4ce4d8
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x4ce4a1
cmp al, 0x4d
jne 0x4ce4c5
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x401674
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
push dword [esi + 0x1420]
call fcn.00401c63
pop ecx
lea edi, [esi + 0x1418]
push ebp
mov ebx, eax
push dword [esi + 0x141c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll__llseek]
push dword [esi + 0x1420]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, dword [esi + 0x1420]
jne 0x401705
lea eax, [esi + 0x1210]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [esi + 0x1424], eax
jne 0x4016e2
lea eax, [esi + 4]
push 0x4071ac
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x37
jmp 0x401716
xor eax, eax
xor byte [eax + ebx], 7
inc eax
cmp eax, 0x7d0
jl 0x4016e4
push dword [esi + 0x1420]
push ebx
push dword [esi + 0x1424]
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x401717
lea eax, [esi + 4]
push 0x407190
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x36
pop ebp
push ebx
call fcn.00401b7a
mov esi, dword [esi + 0x1424]
pop ecx
cmp esi, 0xffffffff
je 0x401730
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x401737
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
push edi
call esi
cmp byte [eax + edi - 1], 0x5c
je 0x401769
push 0x40718c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call esi
mov ebx, eax
xor esi, esi
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00401ae0
add esp, 0xc
cmp ebx, 2
jle 0x4017e1
cmp byte [edi + 1], 0x3a
jne 0x4017e1
test ebx, ebx
jle 0x4017e4
lea eax, [ebp - 0x108]
sub edi, eax
cmp dword [ebp - 4], 0
je 0x4017e4
lea eax, [ebp + esi - 0x108]
mov cl, byte [edi + eax]
cmp cl, 0x5c
mov byte [eax], cl
jne 0x4017da
cmp esi, 2
je 0x4017da
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4017da
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
inc esi
cmp esi, ebx
jl 0x40179c
jmp 0x4017e4
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4017ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
push edi
push 0x10
mov esi, ecx
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x70], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
lea eax, [ebp - 0x70]
pop edi
push edi
push ebx
push eax
call fcn.00401ae0
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00401ae0
mov eax, dword [esi + 0x1420]
mov dword [ebp - 0x70], edi
add eax, dword [esi + 0x141c]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x3e], bx
push eax
lea eax, [ebp - 0x194]
push 0x4071f8
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [esi + 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
je 0x401888
lea eax, [esi + 0x804]
push 0x4071f4
push eax
call edi
lea eax, [ebp - 0x194]
push eax
lea eax, [esi + 0x804]
push eax
call edi
lea eax, [esi + 0x110c]
push eax
lea eax, [ebp - 0x194]
push 0x4071e4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esi + 0x804]
push 0x4071f4
push eax
call edi
lea eax, [ebp - 0x194]
push eax
lea eax, [esi + 0x804]
push eax
call edi
cmp dword [0x409c18], ebx
je 0x4018f0
lea eax, [esi + 0x1210]
push ebx
push eax
lea eax, [esi + 0x804]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x10]
xor edi, edi
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x1314]
push eax
push ebx
push 0x20
push ebx
push ebx
lea eax, [esi + 0x804]
push ebx
push eax
lea eax, [esi + 0x1210]
inc edi
push eax
mov dword [esi + 0x1108], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40193a
add esi, 4
push 0x4071c8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x37
pop edi
jmp 0x4019b2
cmp dword [esi + 0x1108], ebx
je 0x401990
jmp 0x401979
cmp dword [ebp - 0x28], 0xf
je 0x401953
cmp dword [ebp - 0x28], 0x200
jne 0x401967
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jg 0x401944
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, edi
je 0x401967
add esi, 0x1428
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [esi]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402357
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4404d3
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x468034]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x468034]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.0040f728
pop ecx
and dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0x10
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.0040269a
lea ecx, [esp + 8]
call fcn.00402286
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043cb24
mov esp, ebp
pop ebp
ret

Function at 0x406557
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4416ee
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x468034]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x468034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
and dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
and dword [esp + 0x38], 0
push eax
push edi
mov ecx, esi
call fcn.004288ae
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040253d
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043cb24
mov esp, ebp
pop ebp
ret 4

Function at 0x406666
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b650
Function at 0x407d85
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x468034]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d0], 0
je 0x407df2
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x407de2
mov ecx, esi
call fcn.00407a8b
jmp 0x407df4
cmp dword [esp + 0xc], 6
jb 0x407df2
mov ecx, esi
call fcn.004072ce
jmp 0x407df4
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0043cb24
mov esp, ebp
pop ebp
ret