joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c341
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x41c28a
add ebx, 0
push ecx
call 0x41c29f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c7cc00a
sub ebx, dword [0x6c7eb849]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c7eb839
call fcn.00417d69
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.00417277
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x41c3fd
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x41c3fd
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x41c3b4
mov eax, 1
lock xchg dword [0x6c7eb845], eax
push 0x3dd1fc71
call 0x41c341
push esi
add esp, 8
cmp eax, 0
jne 0x41c32a
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x41c350
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x41c365
cmp ecx, edx
cmp eax, 0
je 0x41c38a
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x41c374
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.0041c3a3
dec eax
loope 0x41c3a6
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c7eb845], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x41c3da
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x41c3ef
jmp 0x41c3fa
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x41c2e8

Function at 0x423462
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x423738
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c7d84bd
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c7cf483
push 0xffffffffffffffff
call fcn.0041a662
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x4234cc
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.004234e4
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x42372c
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x423700
Function at 0x432f32
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x432f54
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x432f54
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x432f54
ret
cmp word [ebx + 4], 0x14c
jne 0x432f54
test word [ebx + 0x16], 2
je 0x432f54
test word [ebx + 0x16], 0x100
je 0x432f54
cmp word [ebx + 0x18], 0x10b
jne 0x432f54
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x432f54
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x432fe0
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x432f74
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00419ebf
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x432f54
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x432fe0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x432f54
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x432f54
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x432f54
ret
cmp word [ebx + 4], 0x14c
jne 0x432f54
test word [ebx + 0x16], 2
je 0x432f54
test word [ebx + 0x16], 0x100
je 0x432f54
cmp word [ebx + 0x18], 0x10b
jne 0x432f54
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x432f54
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x432fe0
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x432f74
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00419ebf
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x432f54
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x433097
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4330f0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x433097
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4330a6
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x838d49
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4330f7
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.00419f6d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x433196
add edi, 4
add eax, 2
dec ecx
jne 0x4330dc
call 0x433143
loope 0x433139
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x433193
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4331a4
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x433157
cmp eax, ecx
ja 0x433157
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4331e1
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4331d7
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.0041a44c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4330a6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4330f0
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x433097
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4330a6
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x838d49
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4330f7
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.00419f6d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x433196
add edi, 4
add eax, 2
dec ecx
jne 0x4330dc
call 0x433143
loope 0x433139
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x433193
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4331a4
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x433157
cmp eax, ecx
ja 0x433157
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4331e1
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4331d7
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.0041a44c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4496d3
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esi + 0x10], ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x14]
mov dword [esi], vtable.file_util::ExceptionEx.0
mov dword [esi + 0xc], eax
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004079f0
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004079f0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x402380
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44adb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push 0
push 0xb7
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea eax, [esp + 0x1c]
push eax
call fcn.0041df70
mov esi, eax
mov edi, dword [esp + 0x138]
mov dword [esp + 0x130], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4023e8
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push 0x450a04
add esi, 4
push esi
call fcn.0040ada0
add esp, 8
push eax
call fcn.00405f70
lea ebx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e270
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
cmp esi, edi
je 0x402605
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esi + 4]
jmp 0x402430
lea ecx, [esp + 0x14]
push ecx
mov ecx, 1
mov edx, 2
mov dword [esp + 0x14], 0
call fcn.00406600
mov dword [esp + 0x130], 1
call ebp
mov dword [esp + 0x98], eax
push 0xbd
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x13c], 2
call fcn.0041dfe0
push esi
lea eax, [esp + 0x18]
push 0x450a68
push eax
mov dword [esp + 0x13c], 3
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e270
push 0
push 4
call fcn.00401d10
mov eax, dword [edi + 0x14]
mov ebx, 0x10
add esp, 8
cmp eax, ebx
jb 0x4024d3
mov eax, dword [edi]
jmp 0x4024d5
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402557
test bl, al
je 0x402557
cmp dword [edi + 0x14], ebx
jb 0x4024ee
mov eax, dword [edi]
jmp 0x4024f0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
je 0x4025ed
push 0
push 0xc2
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0x1c]
push edx
call fcn.0041df70
push esi
add eax, 4
push 0x4509f4
push eax
mov dword [esp + 0x13c], 4
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e270
xor al, al
jmp 0x402607
lea ecx, [esp + 0xa0]
push ecx
mov ecx, 1
mov edx, 2
mov dword [esp + 0xa0], 0
call fcn.00406600
mov dword [esp + 0x130], 5
call ebp
mov dword [esp + 0x124], eax
push 0xc6
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0xa4]
push edx
mov byte [esp + 0x13c], 6
call fcn.0041dfe0
push esi
lea eax, [esp + 0xa4]
push 0x4509e4
push eax
mov dword [esp + 0x13c], 7
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0x9c]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e270
mov ecx, dword [esp + 0x138]
mov eax, dword [ecx + 8]
add esi, 0x1c
add edi, 0x1c
cmp esi, eax
jne 0x402430
mov al, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x402620
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44adb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push 0
push 0xce
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea eax, [esp + 0x1c]
push eax
call fcn.0041df70
mov esi, eax
mov edi, dword [esp + 0x138]
mov dword [esp + 0x130], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x402688
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push 0x4509d4
add esi, 4
push esi
call fcn.0040ada0
add esp, 8
push eax
call fcn.00405f70
lea ebx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e270
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
cmp esi, edi
je 0x4028a7
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esi + 4]
jmp 0x4026d0
lea ecx, [esp + 0x14]
push ecx
mov ecx, 1
mov edx, 2
mov dword [esp + 0x14], 0
call fcn.00406600
mov dword [esp + 0x130], 1
call ebp
mov dword [esp + 0x98], eax
push 0xd4
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x13c], 2
call fcn.0041dfe0
push esi
lea eax, [esp + 0x18]
push 0x450a5c
push eax
mov dword [esp + 0x13c], 3
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e270
push 0
push 4
call fcn.00401d10
mov eax, dword [edi + 0x14]
mov ebx, 0x10
add esp, 8
cmp eax, ebx
jb 0x402773
mov eax, dword [edi]
jmp 0x402775
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402785
test bl, al
jne 0x4027f9
cmp dword [edi + 0x14], ebx
jb 0x40278e
mov eax, dword [edi]
jmp 0x402790
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
je 0x40288f
push 0
push 0xd9
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0x1c]
push edx
call fcn.0041df70
push esi
add eax, 4
push 0x4509c4
push eax
mov dword [esp + 0x13c], 4
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e270
xor al, al
jmp 0x4028a9
lea ecx, [esp + 0xa0]
push ecx
mov ecx, 1
mov edx, 2
mov dword [esp + 0xa0], 0
call fcn.00406600
mov dword [esp + 0x130], 5
call ebp
mov dword [esp + 0x124], eax
push 0xdd
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0xa4]
push edx
mov byte [esp + 0x13c], 6
call fcn.0041dfe0
push esi
lea eax, [esp + 0xa4]
push 0x4509b4
push eax
mov dword [esp + 0x13c], 7
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0x9c]
mov dword [esp + 0x130], 0xffffffff
call fcn.0041e270
mov ecx, dword [esp + 0x138]
mov eax, dword [ecx + 8]
add esi, 0x1c
add edi, 0x1c
cmp esi, eax
jne 0x4026d0
mov al, 1
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret
Function at 0x408bf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4493cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esp + 4], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00433c8c
push 4
mov dword [esp + 0x14], 0
call fcn.004340c1
add esp, 4
test eax, eax
je 0x408c3a
mov ecx, eax
call fcn.00433b64
jmp 0x408c3c
xor eax, eax
mov dword [esi + 0x38], eax
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x411ec0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esi + 0x68]
xor ebx, ebx
cmp edi, ebx
mov dword [esi], vtable.UpdateThread.0
je 0x411f0f
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [edi + 0x18]
cmp ebp, ebx
je 0x411ef8
push 0x64
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x411ef8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
call fcn.004358f6
add esp, 4
mov eax, dword [esi + 0x64]
mov ebp, 0x10
cmp eax, ebp
jb 0x411f27
mov eax, dword [esi + 0x50]
push eax
call fcn.004358f6
add esp, 4
mov edi, 0xf
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], ebx
mov byte [esi + 0x50], bl
cmp dword [esi + 0x48], ebp
jb 0x411f46
mov ecx, dword [esi + 0x34]
push ecx
call fcn.004358f6
add esp, 4
mov dword [esi + 0x48], edi
mov dword [esi + 0x44], ebx
mov byte [esi + 0x34], bl
cmp dword [esi + 0x1c], ebp
jb 0x411f60
mov edx, dword [esi + 8]
push edx
call fcn.004358f6
add esp, 4
mov dword [esi + 0x1c], edi
pop edi
mov dword [esi + 0x18], ebx
pop ebp
mov byte [esi + 8], bl
pop ebx
ret
Function at 0x4177c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4496e8
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x10], ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.pk::PkException.0
mov dword [esi + 0xc], eax
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004079f0
mov ecx, dword [esp + 8]
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], 0xf
mov byte [esi + 0x30], bl
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x41bf90
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push esi
push edi
je 0x41bff5
mov ecx, dword [eax + 0x18]
xor bl, bl
cmp ecx, 0x10
jb 0x41bfab
mov eax, dword [eax + 4]
jmp 0x41bfae
add eax, 4
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41bff5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bfe0
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x41bff5
mov dword [ebp], edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x41c000
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 0x10
push esi
lea esi, [edi + 4]
jb 0x41c00e
mov eax, dword [esi]
jmp 0x41c010
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41c040
test al, 1
je 0x41c040
cmp dword [edi + 0x18], 0x10
jb 0x41c02a
mov eax, dword [esi]
jmp 0x41c02c
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41c040
xor al, al
pop esi
ret
cmp dword [edi + 0x18], 0x10
jb 0x41c048
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x41c060
Capabilities:
Move file

Disassembly:
cmp dword [edi + 0x18], 0x10
push esi
lea esi, [edi + 4]
jb 0x41c06e
mov eax, dword [esi]
jmp 0x41c070
mov eax, esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x41c0ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x18], 0x10
jb 0x41c0a0
mov eax, dword [ebx + 4]
jmp 0x41c0a3
lea eax, [ebx + 4]
cmp dword [edi + 0x18], 0x10
jb 0x41c0ab
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, 1
jne 0x41c0ba
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x41c0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b2eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [0x45b990]
push esi
xor eax, ebp
push edi
mov dword [esp + 0x134], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
xor esi, esi
push 0x104
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0xf
lea eax, [esp + 0x28]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov byte [esp + 0x10], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c130
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00408930
mov dword [esp + 0x144], esi
push 0x2f
push 0x5c
lea esi, [esp + 0x14]
call fcn.00421c60
add esp, 8
push 0xffffffffffffffff
push 0
mov edx, esi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x14], 0
push edx
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.004079f0
cmp dword [esp + 0x24], 0x10
jb 0x41c18f
mov eax, dword [esp + 0x10]
push eax
call fcn.004358f6
add esp, 4
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x134]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.004395fe
mov esp, ebp
pop ebp
ret

Function at 0x41c1c0
Capabilities:
Set current directory

Disassembly:
cmp dword [eax + 0x18], 0x10
jb 0x41c1d7
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec eax
neg eax
sbb eax, eax
inc eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
dec eax
neg eax
sbb eax, eax
inc eax
ret