joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bde0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4400f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], ebx
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 8], ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x3c]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x20]
push eax
mov byte [esp + 0x1c], 1
mov dword [esi + 0x48], 4
call fcn.0042ab80
push 0x4411cc
mov ecx, edi
mov byte [esi + 0x34], bl
mov dword [esi + 0x38], ebx
call fcn.0042ab80
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x42c3d9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x440198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
or eax, 0xffffffff
push esi
mov esi, ecx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor eax, eax
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [esp + 4], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esi], vtable.TiXmlText.0
call fcn.0042ab80
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x42c768
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4401e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor edx, edx
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 4], edi
lea ecx, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
mov dword [esp + 8], esi
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
lea eax, [esi + 0x34]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x28], edx
mov dword [esp + 0x14], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x30], eax
mov dword [eax + 0x2c], eax
mov eax, dword [esp + 0x1c]
push eax
mov byte [esp + 0x18], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
call fcn.0042ab80
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x42d4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4402a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
lea ebp, [edx + 1]
mov dword [eax], ebx
mov al, byte [ebp]
cmp al, bl
je 0x42d67b
cmp al, 0x23
jne 0x42d67b
mov al, byte [edx + 2]
cmp al, bl
lea ecx, [edx + 2]
je 0x42d67b
cmp al, 0x78
mov esi, 1
jne 0x42d5d2
mov cl, byte [edx + 3]
cmp cl, bl
lea eax, [edx + 3]
je 0x42d61b
push 0x3b
push eax
call fcn.00433c10
add esp, 8
cmp eax, ebx
je 0x42d61b
cmp byte [eax], bl
je 0x42d61b
mov ecx, dword [esp + 0x2c]
mov edi, eax
sub edi, ecx
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x78
je 0x42d5b2
nop
cmp cl, 0x30
jl 0x42d572
cmp cl, 0x39
jg 0x42d572
movsx ecx, cl
sub ecx, 0x30
jmp 0x42d5a1
cmp cl, 0x61
jl 0x42d589
cmp cl, 0x66
jg 0x42d589
movsx edx, cl
sub edx, 0x57
imul edx, esi
add ebx, edx
jmp 0x42d5a6
cmp cl, 0x41
jl 0x42d61b
cmp cl, 0x46
jg 0x42d61b
movsx ecx, cl
sub ecx, 0x37
imul ecx, esi
add ebx, ecx
mov cl, byte [eax - 1]
shl esi, 4
dec eax
cmp cl, 0x78
jne 0x42d560
cmp dword [esp + 0x38], 1
mov eax, dword [esp + 0x34]
jne 0x42d641
mov ecx, dword [esp + 0x30]
push eax
push ecx
push ebx
call fcn.0042cf50
add esp, 0xc
jmp 0x42d64d
push 0x3b
push ecx
call fcn.00433c10
add esp, 8
cmp eax, ebx
je 0x42d61b
cmp byte [eax], bl
je 0x42d61b
mov ecx, dword [esp + 0x2c]
mov edi, eax
sub edi, ecx
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x23
je 0x42d5b2
cmp cl, 0x30
jl 0x42d61b
cmp cl, 0x39
jg 0x42d61b
movsx edx, cl
mov cl, byte [eax - 1]
sub edx, 0x30
imul edx, esi
lea esi, [esi + esi*4]
add ebx, edx
shl esi, 1
dec eax
cmp cl, 0x23
jne 0x42d5f6
jmp 0x42d5b2
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0042b460
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
mov byte [edx], bl
mov dword [eax], 1
mov ecx, dword [esp + 0x2c]
lea esi, [edi + ecx + 1]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0042b460
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
xor edi, edi
mov esi, 0x44b5dc
jmp 0x42d688
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push edx
push ecx
call fcn.00433bc0
add esp, 0xc
test eax, eax
je 0x42d6c9
add esi, 0xc
inc edi
cmp esi, 0x44b618
jl 0x42d684
mov eax, dword [esp + 0x2c]
mov cl, byte [eax]
mov edx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
mov byte [edx], cl
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
lea eax, [edi + edi*2]
shl eax, 2
mov dl, byte [eax + 0x44b5e4]
mov byte [ecx], dl
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
pop edi
mov dword [edx], 1
mov eax, dword [eax + 0x44b5e0]
pop esi
add eax, ecx
mov ecx, dword [esp + 0x14]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x432fff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x43301c
call fcn.00437ed0
mov dword [eax], 0x16
xor eax, eax
jmp 0x433086
push esi
push 0x8c
push 1
call fcn.00433446
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x433071
push esi
call fcn.00435962
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x43304f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x432f6a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
jne 0x433085
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00432ba1
test ebx, ebx
pop ecx
je 0x433083
push ebx
call fcn.00437ee2
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x433d17
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x444968
call fcn.00435ef0
mov edi, 0x94
mov eax, edi
call fcn.0043baf0
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 [0x488ae4], ecx
mov eax, dword [esi + 4]
mov dword [0x488af0], eax
mov edx, dword [esi + 8]
mov dword [0x488af4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x488ae8], esi
cmp ecx, 2
je 0x433d77
or esi, 0x8000
mov dword [0x488ae8], esi
shl eax, 8
add eax, edx
mov dword [0x488aec], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x433db2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x433db2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x433dca
cmp eax, 0x20b
je 0x433db7
mov dword [ebp - 0x1c], esi
jmp 0x433dde
cmp dword [ecx + 0x84], 0xe
jbe 0x433db2
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x433dd8
cmp dword [ecx + 0x74], 0xe
jbe 0x433db2
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00438091
pop ecx
test eax, eax
jne 0x433df2
push 0x1c
call fcn.00433cf3
pop ecx
call fcn.00435b5c
test eax, eax
jne 0x433e03
push 0x10
call fcn.00433cf3
pop ecx
call fcn.0043ba5e
mov dword [ebp - 4], esi
call fcn.0043ad81
test eax, eax
jge 0x433e1c
push 0x1b
call fcn.00433cce
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x48a1cc], eax
call fcn.0043b93c
mov dword [0x488908], eax
call fcn.0043b89a
test eax, eax
jge 0x433e42
push 8
call fcn.00433cce
pop ecx
call fcn.0043b667
test eax, eax
jge 0x433e53
push 9
call fcn.00433cce
pop ecx
push 1
call fcn.00438e0c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x433e69
push eax
call fcn.00433cce
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.0043b60a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x433e8a
movzx eax, word [ebp - 0x40]
jmp 0x433e8d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040f4c0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x433eab
push edi
call fcn.00438f39
call fcn.00438f5b
jmp 0x433edd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00435f2b
ret
Function at 0x4370e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43710e
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x437115
cmp ebx, dword [eax + 4]
jae 0x437115
xor eax, eax
jmp 0x437305
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x437126
xor eax, eax
inc eax
jmp 0x437304
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43713c
cmp ecx, edx
jae 0x437281
cmp dword [eax + 4], 0
je 0x437145
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43712d
cmp dword [ebp + 8], 0
je 0x437167
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x437281
cmp eax, esi
jae 0x437281
mov eax, dword [0x488a90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43718c
cmp dword [esi*4 + 0x488a98], edi
je 0x437285
inc esi
cmp esi, eax
jl 0x43717a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x437301
cmp dword [ebp - 8], 0x1000000
jne 0x437301
test byte [ebp - 0xc], 0xcc
je 0x43720a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x437301
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x437301
cmp word [eax + 0x18], 0x10b
jne 0x437301
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x437301
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43720a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43720a
test byte [ecx + 0x27], 0x80
jne 0x437281
push 1
push 0x488ad8
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x43711e
mov ecx, dword [0x488a90]
test ecx, ecx
mov edx, ecx
jle 0x43723e
lea eax, [ecx*4 + 0x488a94]
cmp dword [eax], edi
je 0x43723e
dec edx
sub eax, 4
test edx, edx
jg 0x437232
test edx, edx
jne 0x43726f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43724b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x437263
lea eax, [edx*4 + 0x488a98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x437251
cmp ecx, 0x10
jge 0x43726f
inc ecx
mov dword [0x488a90], ecx
push 0
push 0x488ad8
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x43711e
xor eax, eax
jmp 0x437304
test esi, esi
jle 0x43711e
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x488ad8
call ebx
test eax, eax
jne 0x43711e
cmp dword [esi*4 + 0x488a98], edi
je 0x4372db
mov eax, dword [0x488a90]
lea esi, [eax - 1]
test esi, esi
jl 0x4372c9
cmp dword [esi*4 + 0x488a98], edi
je 0x4372c5
dec esi
jns 0x4372b9
test esi, esi
jge 0x4372d9
cmp eax, 0x10
jge 0x4372d4
inc eax
mov dword [0x488a90], eax
lea esi, [eax - 1]
jmp 0x4372db
je 0x4372f3
xor ecx, ecx
test esi, esi
jl 0x4372f3
lea eax, [ecx*4 + 0x488a98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4372e1
push 0
push 0x488ad8
call ebx
jmp 0x43711e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437309
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x44b6d0]
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 0x43733a
xor eax, eax
jmp 0x4374c3
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 + 0x489080]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x437376
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0043d236
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x437451
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x43748f
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 0x4373da
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4373cb
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 0x4373ab
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 0x43741a
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x437423
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x43739c
jmp 0x437425
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4374be
cmp dword [ebp - 0x6c], edi
je 0x43748f
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x437484
call fcn.00437ed0
mov dword [eax], 9
call fcn.00437ed9
mov dword [eax], esi
jmp 0x4374b9
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 0x437479
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x437425
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x437425
push dword [ebp - 0x6c]
call fcn.00437ee2
pop ecx
jmp 0x4374b9
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4374a7
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4374a7
xor eax, eax
jmp 0x4374c1
call fcn.00437ed0
mov dword [eax], 0x1c
call fcn.00437ed9
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4374c1
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00431ec7
add ebp, 0x3a0
leave
ret
Function at 0x437ae2
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 0x437cb6
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x489080]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x437cb6
test cl, 0x48
je 0x437b4d
cmp byte [eax + 5], 0xa
je 0x437b4d
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 0x437b9f
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x437b87
call fcn.00437ed0
mov dword [eax], 9
call fcn.00437ed9
mov dword [eax], esi
jmp 0x437b97
cmp eax, 0x6d
je 0x437cb6
push eax
call fcn.00437ee2
pop ecx
or eax, 0xffffffff
jmp 0x437cb8
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x437cb1
test eax, eax
je 0x437bc6
cmp byte [ebx], 0xa
jne 0x437bc6
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x437bcf
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 0x437cab
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x437c9b
cmp al, 0xd
je 0x437c01
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x437c8d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x437c1b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x437c16
add dword [ebp + 0x10], 2
jmp 0x437c6f
mov dword [ebp + 0x10], eax
jmp 0x437c89
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 0x437c43
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x437c89
cmp dword [ebp - 0xc], 0
je 0x437c89
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x437c64
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x437c6f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x437c8c
cmp ebx, dword [ebp + 0xc]
jne 0x437c74
cmp byte [ebp - 1], 0xa
jne 0x437c74
mov byte [ebx], 0xa
jmp 0x437c8c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043af7f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x437c8d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x437be5
jmp 0x437cab
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x437cab
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 0x437cb8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438e76
Capabilities:
Terminate process

Disassembly:
push 8
push 0x445078
call fcn.00435ef0
push 8
call fcn.00435ebd
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x488b24], esi
jne 0x438eaa
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x488b20], esi
mov al, byte [ebp + 0x10]
mov byte [0x488b1c], al
cmp dword [ebp + 0xc], edi
jne 0x438ef4
cmp dword [0x489188], edi
je 0x438ee4
mov eax, dword [0x489184]
sub eax, 4
mov dword [0x489184], eax
cmp eax, dword [0x489188]
jb 0x438ee4
mov eax, dword [eax]
cmp eax, edi
je 0x438ec5
call eax
jmp 0x438ec5
push 0x44b044
mov eax, 0x44b03c
call fcn.00438df4
pop ecx
push 0x44b050
mov eax, 0x44b048
call fcn.00438df4
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x438f25
cmp dword [ebp + 0x10], edi
jne 0x438f33
mov dword [0x488b24], esi
push dword [ebp + 8]
call fcn.00438db2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x438f32
push 8
call fcn.00435e08
pop ecx
ret
call fcn.00435f2b
ret
Function at 0x43ad81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.00433131
test eax, eax
pop ecx
jne 0x43ad9d
or eax, 0xffffffff
jmp 0x43af7a
mov dword [0x489080], eax
mov dword [0x489060], 0x20
lea ecx, [eax + 0x480]
jmp 0x43add2
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x489080]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x43adb4
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x43aed9
mov eax, dword [esp + 0x48]
test eax, eax
je 0x43aed9
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x43ae13
mov edi, eax
cmp dword [0x489060], edi
jge 0x43ae69
mov esi, 0x489084
push ebx
call fcn.00433131
test eax, eax
pop ecx
je 0x43ae63
add dword [0x489060], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x43ae52
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x43ae3c
add esi, 4
cmp dword [0x489060], edi
jl 0x43ae20
jmp 0x43ae69
mov edi, dword [0x489060]
xor ebx, ebx
test edi, edi
jle 0x43aed9
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x43aece
mov cl, byte [ebp]
test cl, 1
je 0x43aece
test cl, 8
jne 0x43ae92
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x43aece
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x489080]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0043c599
test eax, eax
pop ecx
pop ecx
je 0x43aef9
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x43ae6f
xor ebx, ebx
mov ecx, dword [0x489080]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x43af5b
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x43aefe
push 0xfffffffffffffff6
pop eax
jmp 0x43af08
or eax, 0xffffffff
jmp 0x43af77
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x43af55
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x43af55
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x43af33
or byte [esi + 4], 0x40
jmp 0x43af3c
cmp eax, 3
jne 0x43af3c
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.0043c599
test eax, eax
pop ecx
pop ecx
je 0x43aef9
inc dword [esi + 8]
jmp 0x43af5f
or byte [esi + 4], 0x40
jmp 0x43af5f
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x43aedb
push dword [0x489060]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret