joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44c377
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa34
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
mov eax, dword [ecx + 8]
cmp eax, ebx
mov edi, 1
mov dword [esp + 0xa48], edi
jne 0x419d1c
mov esi, dword [esp + 0xa50]
push 0x44f6bf
mov ecx, esi
call fcn.0041c090
jmp 0x419d66
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0xa60]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edx
push eax
mov dword [esp + 0x28], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
mov esi, dword [esp + 0xa50]
mov ecx, esi
jne 0x419d5c
lea eax, [esp + 0x18]
push eax
call fcn.0041c090
jmp 0x419d66
push 0x44f6bf
call fcn.0041c090
lea ecx, [esp + 0xa54]
mov dword [esp + 0xc], edi
mov byte [esp + 0xa48], bl
call fcn.0041bee0
mov ecx, dword [esp + 0xa40]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa40
ret 0x10

Function at 0x419da0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44c3a0
push eax
mov dword fs:[0], esp
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esp + 0x14], 1
je 0x419e23
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.0041bed0
push eax
mov eax, dword [ebp + 8]
push esi
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x419e23
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.0041bee0
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041bee0
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.0041bee0
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041bee0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret 0x18

Function at 0x419e60
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44c3b8
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 8]
test eax, eax
je 0x419eba
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x419eba
lea ecx, [esp + 0x10]
mov dword [esp + 8], 0xffffffff
call fcn.0041bee0
mov al, 1
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 8], 0xffffffff
call fcn.0041bee0
mov ecx, dword [esp]
xor al, al
mov dword fs:[0], ecx
add esp, 0xc
ret 0x10
Function at 0x41e150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44ccae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x451f58
mov dword [esi + 4], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
lea ecx, [esi + 0x1c]
mov dword [esp + 0x30], ebp
call fcn.0041c120
push 0x20
mov byte [esp + 0x34], 1
call fcn.00440adc
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x30], 2
je 0x41e1b7
mov ecx, eax
call fcn.0041cae0
jmp 0x41e1b9
xor eax, eax
mov ecx, eax
mov byte [esp + 0x30], 1
mov dword [esi + 0x14], eax
call fcn.0041ce50
cmp dword [esi + 4], ebp
je 0x41e204
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, ebp
jle 0x41e1f5
xor ebx, ebx
jmp 0x41e1e0
mov ecx, dword [esi + 4]
add ecx, ebx
call fcn.00420160
mov eax, dword [esi + 8]
inc edi
add ebx, 0x10
cmp edi, eax
jl 0x41e1e0
mov eax, dword [esi + 4]
push eax
call fcn.00440b0c
add esp, 4
mov dword [esi + 4], ebp
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esi + 0xc], ebp
mov dword [esi + 8], ebp
call fcn.0041eea0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esi + 0x1c]
mov byte [esp + 0x34], 6
call fcn.0041c060
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.0041bee0
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 8]
cmp eax, ebp
jle 0x41e2ab
xor ebx, ebx
lea esp, [esp]
test ebx, ebx
jl 0x41e2c2
cmp ebp, eax
jge 0x41e2c2
mov eax, dword [edi + 4]
add eax, ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00422410
mov edx, dword [esi + 8]
sub esp, 0x10
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x44], 7
mov dword [esp + 0x4c], edx
call fcn.00422410
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, esi
call fcn.0041d8f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00420160
mov eax, dword [edi + 8]
inc ebp
add ebx, 0x10
cmp ebp, eax
jl 0x41e250
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4
call fcn.0043afed
int3

Function at 0x41f650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44cf78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 8]
sub esp, 0x28
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov dword [esp + 0x40], 0
call fcn.0041e150
push edi
mov ecx, esi
call fcn.0041f370
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041db10
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0x28
Function at 0x422260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44d459
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
lea eax, [esp + 0x40]
mov ebx, 1
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebx
call fcn.0041bff0
push 0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4522f8
mov byte [esp + 0x48], 2
call fcn.0041c090
lea ecx, [esp + 0x24]
call fcn.0041bf70
push 0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4522fc
mov edi, eax
call fcn.0041c090
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 3
call fcn.0041bed0
dec eax
push eax
push 2
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x30]
call fcn.0041c260
mov ecx, eax
mov byte [esp + 0x44], 5
call fcn.0041bf70
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x34], 2
call fcn.0041bee0
inc esi
cmp edi, ebx
jl 0x42232f
cmp esi, ebx
jl 0x42232f
sub esi, edi
dec esi
push esi
mov esi, dword [esp + 0x40]
inc edi
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.0041c260
jmp 0x42233f
mov esi, dword [esp + 0x3c]
push 0x44f6bf
mov ecx, esi
call fcn.0041c090
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], bl
mov dword [esp + 0xc], ebx
call fcn.0041bee0
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 0
call fcn.0041bee0
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret
Function at 0x422490
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44d501
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push 0x4522fc
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.0041c090
mov eax, dword [esi]
push eax
lea eax, [esp + 0x1c]
mov ebx, 1
push eax
mov dword [esp + 0x34], ebx
call fcn.00420170
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.0041c2f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0041bee0
push 0x4522f8
lea ecx, [esp + 0x1c]
call fcn.0041c090
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.0041c2f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0041bee0
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004223f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call fcn.0041c2f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0041bee0
push 0x452300
lea ecx, [esp + 0x1c]
call fcn.0041c090
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call fcn.0041c2f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0041bee0
mov esi, dword [esi]
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00420170
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 6
call fcn.0041c2f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0041bee0
push 0x4522f8
lea ecx, [esp + 0x1c]
call fcn.0041c090
lea edx, [esp + 0x18]
mov byte [esp + 0x2c], 7
push edx
lea ecx, [esp + 0x10]
call fcn.0041c2f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0041bee0
mov esi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0041bff0
lea ecx, [esp + 0xc]
mov dword [esp + 8], ebx
mov byte [esp + 0x2c], 0
call fcn.0041bee0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x422c80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44d620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov esi, ecx
push 0x4524c8
lea ecx, [esp + 0x10]
call fcn.0041c090
lea eax, [esp + 0x24]
push 6
push eax
mov dword [esp + 0x4c], 0
call fcn.0041b540
add esp, 8
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x50], 1
call fcn.004228d0
lea edi, [esi + 0xc8]
push eax
mov ecx, edi
mov byte [esp + 0x48], 2
call fcn.0041c060
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.0041bee0
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 0
call fcn.0041bee0
lea ecx, [esp + 0xc]
mov dword [esp + 0x44], 0xffffffff
call fcn.0041bee0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x14], esp
push edi
call fcn.0041bff0
lea eax, [esp + 0x3c]
push eax
call fcn.00404890
add esp, 0x10
push eax
mov ecx, edi
mov dword [esp + 0x48], 3
call fcn.0041c060
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 0xffffffff
call fcn.0041bee0
mov eax, dword [esp + 0x4c]
mov edx, dword [esi]
push eax
push 0x85
mov ecx, esi
mov byte [esi + 0x108], 0
call dword [edx + 0x134]
mov ecx, dword [esp + 0x3c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x40
ret 4
Function at 0x4248b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x424909
call fcn.0044676b
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x424909
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4248ff
xor eax, eax
jmp 0x424a22
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x424939
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x424939
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x424a1f
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x424966
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004257f5
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x424a1f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4249af
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4249af
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4249a9
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004257f5
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x424a0f
and dword [ebp + 0xc], 0
jmp 0x424a0f
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x424a0f
push 0xc
call fcn.00440adc
mov esi, eax
test esi, esi
pop ecx
je 0x4249f1
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4249f3
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x424a0a
push dword [ebp - 8]
call fcn.0043b9a9
jmp 0x424a0f
call fcn.0043b980
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x424974
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42e80a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042de20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42e8a5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x479540]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42e8a5
cmp eax, 1
je 0x42e8c6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42e8a5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42e872
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42e8a1
xor eax, eax
inc eax
jmp 0x42e8e5
cmp edi, eax
jae 0x42e8a9
xor eax, eax
jmp 0x42e8e5
cmp eax, esi
jae 0x42e8b0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x479540]
jmp 0x42e8c9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42ebe9
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x455a08
call fcn.0042f864
mov edi, 0x94
mov eax, edi
call fcn.0042de20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x479540], ecx
mov eax, dword [esi + 4]
mov dword [0x47954c], eax
mov edx, dword [esi + 8]
mov dword [0x479550], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x479544], esi
cmp ecx, 2
je 0x42ec49
or esi, 0x8000
mov dword [0x479544], esi
shl eax, 8
add eax, edx
mov dword [0x479548], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42ec84
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ec84
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42ec9c
cmp eax, 0x20b
je 0x42ec89
mov dword [ebp - 0x1c], esi
jmp 0x42ecb0
cmp dword [ecx + 0x84], 0xe
jbe 0x42ec84
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42ecaa
cmp dword [ecx + 0x74], 0xe
jbe 0x42ec84
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004323cf
pop ecx
test eax, eax
jne 0x42ecc4
push 0x1c
call fcn.0042ebc5
pop ecx
call fcn.004315b1
test eax, eax
jne 0x42ecd5
push 0x10
call fcn.0042ebc5
pop ecx
call fcn.0043561e
mov dword [ebp - 4], esi
call fcn.004348e6
test eax, eax
jge 0x42ecee
push 0x1b
call fcn.0042eba0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47ae10], eax
call fcn.004354fc
mov dword [0x47952c], eax
call fcn.0043545a
test eax, eax
jge 0x42ed14
push 8
call fcn.0042eba0
pop ecx
call fcn.00435227
test eax, eax
jge 0x42ed25
push 9
call fcn.0042eba0
pop ecx
push 1
call fcn.0042f6cb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42ed3b
push eax
call fcn.0042eba0
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004351ca
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42ed5c
movzx eax, word [ebp - 0x40]
jmp 0x42ed5f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043ab5a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42ed7d
push edi
call fcn.0042f7f8
call fcn.0042f81a
jmp 0x42edaf
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0042f89f
ret
Function at 0x42f735
Capabilities:
Terminate process

Disassembly:
push 8
push 0x455a88
call fcn.0042f864
push 8
call fcn.00432573
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x479580], esi
jne 0x42f769
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x47957c], esi
mov al, byte [ebp + 0x10]
mov byte [0x479578], al
cmp dword [ebp + 0xc], edi
jne 0x42f7b3
cmp dword [0x47ae08], edi
je 0x42f7a3
mov eax, dword [0x47ae04]
sub eax, 4
mov dword [0x47ae04], eax
cmp eax, dword [0x47ae08]
jb 0x42f7a3
mov eax, dword [eax]
cmp eax, edi
je 0x42f784
call eax
jmp 0x42f784
push 0x4620dc
mov eax, 0x4620d4
call fcn.0042f6b3
pop ecx
push 0x4620e8
mov eax, 0x4620e0
call fcn.0042f6b3
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x42f7e4
cmp dword [ebp + 0x10], edi
jne 0x42f7f2
mov dword [0x479580], esi
push dword [ebp + 8]
call fcn.0042f671
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x42f7f1
push 8
call fcn.004324be
pop ecx
ret
call fcn.0042f89f
ret
Function at 0x4343e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4345bb
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x479a80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4345bb
test cl, 0x48
je 0x434452
cmp byte [eax + 5], 0xa
je 0x434452
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4344a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x43448c
call fcn.004307db
mov dword [eax], 9
call fcn.004307e4
mov dword [eax], esi
jmp 0x43449c
cmp eax, 0x6d
je 0x4345bb
push eax
call fcn.004307ed
pop ecx
or eax, 0xffffffff
jmp 0x4345bd
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4345b6
test eax, eax
je 0x4344cb
cmp byte [ebx], 0xa
jne 0x4344cb
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4344d4
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4345b0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4345a0
cmp al, 0xd
je 0x434506
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x434592
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x434520
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x43451b
add dword [ebp + 0x10], 2
jmp 0x434574
mov dword [ebp + 0x10], eax
jmp 0x43458e
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x434548
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43458e
cmp dword [ebp - 0xc], 0
je 0x43458e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x434569
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x434574
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x434591
cmp ebx, dword [ebp + 0xc]
jne 0x434579
cmp byte [ebp - 1], 0xa
jne 0x434579
mov byte [ebx], 0xa
jmp 0x434591
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004342c8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x434592
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4344ea
jmp 0x4345b0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4345b0
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4345bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43466d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x463288]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x43469e
xor eax, eax
jmp 0x434827
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x479a80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4346da
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00439221
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4347b5
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4347f3
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x43473e
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43472f
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x43470f
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43477e
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x434787
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x434700
jmp 0x434789
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x434822
cmp dword [ebp - 0x6c], edi
je 0x4347f3
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4347e8
call fcn.004307db
mov dword [eax], 9
call fcn.004307e4
mov dword [eax], esi
jmp 0x43481d
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4347dd
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x434789
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x434789
push dword [ebp - 0x6c]
call fcn.004307ed
pop ecx
jmp 0x43481d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43480b
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x43480b
xor eax, eax
jmp 0x434825
call fcn.004307db
mov dword [eax], 0x1c
call fcn.004307e4
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x434825
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0042edef
add ebp, 0x3a0
leave
ret