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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e4d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x455008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov cl, byte [esi + 0x50]
test cl, cl
jne 0x410bb9
cmp byte [esi + 0x51], cl
jne 0x410bb9
cmp byte [esi + 0x55], cl
jne 0x410bb9
cmp byte [esi + 0x52], cl
jne 0x410bb9
cmp byte [esi + 0x53], cl
jne 0x410bb9
cmp byte [esi + 0x54], cl
jne 0x410bb9
mov byte [esi + 0x51], 1
xor eax, eax
mov dword [esi + 0x58], 0
jmp 0x410bd2
xor eax, eax
mov dword [esi + 0x58], 0
test cl, cl
je 0x410bd2
mov dword [esi + 0x58], 1
mov eax, 1
cmp byte [esi + 0x51], 0
je 0x410bdc
inc eax
mov dword [esi + 0x58], eax
cmp byte [esi + 0x52], 0
je 0x410be6
inc eax
mov dword [esi + 0x58], eax
cmp byte [esi + 0x53], 0
je 0x410bf0
inc eax
mov dword [esi + 0x58], eax
cmp byte [esi + 0x54], 0
je 0x410bfa
inc eax
mov dword [esi + 0x58], eax
cmp byte [esi + 0x55], 0
je 0x410c04
inc eax
mov dword [esi + 0x58], eax
cmp dword [esi + 0x14c], 0xffffffff
jne 0x410c17
mov dword [esi + 0x14c], 1
cmp dword [esi + 0x788], 0xffffffff
jne 0x410c2a
mov dword [esi + 0x788], 0xa
cmp dword [esi + 0x104], 0
jne 0x410c84
cmp dword [esi + 0x104], 0x15555555
lea edi, [esi + 0x100]
mov ebx, dword [edi]
je 0x410d3e
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 0xc
mov dword [ebp - 0x10], 0
call fcn.00416174
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov dword [eax + 8], 0x44f644
inc dword [edi + 4]
mov ecx, dword [ebx + 4]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [ebx + 4], eax
mov dword [ecx], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x410c93
cmp word [eax], 0
jne 0x410cf6
jmp 0x410ca3
push 0x820
call fcn.0041f021
add esp, 4
mov dword [esi + 0x10], eax
push dword [esi + 0x10]
push 0x410
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [esi + 0x10]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410cc0
sub ecx, edi
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x410cf6
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ce0
sub ecx, edi
sar ecx, 1
xor eax, eax
mov word [edx + ecx*2 - 2], ax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410d05
cmp word [eax], 0
jne 0x410d2a
jmp 0x410d15
push 0x208
call fcn.0041f021
add esp, 4
mov dword [esi + 0x14], eax
push 0x450690
push 0x104
push dword [esi + 0x14]
call fcn.0041fa9e
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x44698c
call fcn.00415f49
int3
Function at 0x411870
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x4118a7
push eax
call ebx
cmp dword [esi + 0x7c], 0
mov dword [esi + 0x6c], 0xffffffff
jge 0x4118a7
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4118a4
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esi + 0x70]
cmp eax, 0xffffffff
je 0x4118d0
push eax
call ebx
cmp dword [esi + 0x80], 0
mov dword [esi + 0x70], 0xffffffff
jge 0x4118d0
cmp dword [esi + 0x38], 8
lea eax, [esi + 0x24]
jb 0x4118cd
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esi + 0x74]
cmp eax, 0xffffffff
je 0x411902
push eax
call ebx
cmp dword [esi + 0x84], 0
mov dword [esi + 0x74], 0xffffffff
jl 0x4118f4
cmp dword [esi + 0x88], 0
jge 0x411902
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
jb 0x4118ff
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esi + 0x78]
test eax, eax
je 0x411939
push eax
call fcn.00420141
add esp, 4
mov dword [esi + 0x78], 0
cmp dword [esi + 0x84], 0
jl 0x41192b
cmp dword [esi + 0x88], 0
jge 0x411939
add esi, 0x54
cmp dword [esi + 0x14], 8
jb 0x411936
mov esi, dword [esi]
push esi
call edi
pop edi
pop esi
pop ebx
ret
Function at 0x413300
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x14c]
jge 0x413348
cmp byte [0x456678], 0
jne 0x413348
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [0x4558d4]
call ebx
test eax, eax
jne 0x413360
mov byte [0x456678], 1
mov ecx, dword [edi]
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80070103
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [0x457eb8]
call ebx
cmp eax, 0x102
jne 0x413348
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x14c]
jge 0x413348
cmp byte [0x456678], 0
jne 0x413348
push 0
push dword [0x4558d4]
call ebx
test eax, eax
je 0x413341
mov ecx, edi
call fcn.00412ab0
mov esi, eax
mov eax, dword [edi]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
js 0x41343b
lock inc dword [edi + 0x78]
push 0
push 0
push edi
push 0x413c00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
test eax, eax
je 0x413444
mov eax, dword [edi]
mov ecx, dword [0x457eb8]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push 0
push eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x34]
push 2
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x413428
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x14c]
jge 0x41342d
cmp byte [0x456678], 0
jne 0x41342d
push 0
push dword [0x4558d4]
call ebx
test eax, eax
jne 0x41342d
mov byte [0x456678], 1
jmp 0x41342d
cmp eax, 1
je 0x413432
mov esi, 0x80070103
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x413459
movzx esi, si
or esi, 0x80070000
mov ecx, edi
call fcn.00411c40
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4145d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
shl eax, 2
push edi
mov edi, ecx
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x1c], xmm0
mov ebx, dword [eax + edi + 4]
cmp dword [ebx + 0x20], 8
lea eax, [ebx + 0xc]
jb 0x4145fa
mov eax, dword [eax]
push eax
push 0x451cf0
push 0x451cf8
push edi
call fcn.00413540
mov eax, dword [0x456694]
add esp, 0x10
test eax, eax
jne 0x414647
push 0x44fba4
push 0x446918
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x456694], eax
test eax, eax
jne 0x414647
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov esi, 0x80004002
jmp 0x41470d
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
push 2
push dword [0x4558d4]
call eax
mov esi, eax
test esi, esi
jle 0x41466c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41470d
lea eax, [ebp - 0xc]
mov byte [edi + 0x71], 0
push eax
push dword [ebp + 0x10]
mov ecx, edi
mov dword [ebp - 0xc], 0x414d10
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push 0x1104
push dword [0x456670]
push dword [0x4558d4]
push dword [ebx + 0x6c]
push 2
call fcn.00414750
mov esi, eax
mov dword [ebx + 0x7c], esi
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test esi, esi
js 0x41470d
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp eax, 4
ja case.0x4146c8.2
jmp dword [eax*4 + 0x414734]
mov al, 1
jmp 0x4146d5
xor al, al
push dword [ebp + 0x14]
mov byte [edi + 0x71], al
push dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov esi, dword [ebx + 0x74]
push dword [eax + 0x456698]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push dword [ebp - 0x1c]
mov ecx, edi
push esi
push dword [ebp + 8]
call fcn.00414750
mov esi, eax
mov dword [ebx + 0x84], esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x414726
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416a28
Capabilities:
Parse pe header

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

Function at 0x42bc7a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b484
push 0x43b47c
push 0x439504
push 0x1f
call fcn.0042bb58
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bcae
push dword [ebp + 8]
mov ecx, esi
call dword [0x4382f8]
call esi
jmp 0x42bcb4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42bcf8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b494
push 0x43b48c
push 0x439528
push 0x21
call fcn.0042bb58
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bd2f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4382f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42bd37
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43b49c
push 0x43b494
push 0x43953c
push 0x22
call fcn.0042bb58
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bd71
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4382f8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d2e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00436be0
mov eax, dword [0x455008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041fa1c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42d326
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42d482
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00436a70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4561a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004324a5
mov ecx, dword [esi*4 + 0x4561a0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x42d47b
cmp eax, dword [ecx + edi + 0x24]
jne 0x42d47b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d47b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004324a5
add esp, 0x14
test edx, edx
jl 0x42d47b
jg 0x42d3f1
test eax, eax
jb 0x42d47b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42d47b
jl 0x42d40b
cmp dword [ebp - 0x1008], eax
ja 0x42d47b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42d429
test ebx, ebx
je 0x42d462
cmp ecx, edi
jae 0x42d462
mov al, byte [ecx]
cmp al, 0xd
jne 0x42d443
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42d44f
cmp byte [ecx + 1], 0xa
jne 0x42d44f
inc ecx
jmp 0x42d44f
movzx eax, al
movsx eax, byte [eax + 0x4557a0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42d429
cmp edx, ebx
jne 0x42d429
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42d480
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00415f69
leave
ret
Function at 0x42e81d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x455008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42e868
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042e9b8
test al, al
jne 0x42e862
sub edx, 2
cmp edx, edi
jne 0x42e848
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42e88a
lea eax, [edi + 2]
cmp edx, eax
je 0x42e88a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042e769
add esp, 0x10
jmp 0x42e984
push esi
lea ecx, [ebp - 0x255]
call fcn.0042e9b8
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e8cd
push dword [ebp - 0x25c]
jmp 0x42e87a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42e90a
cmp word [ebp - 0x226], 0
je 0x42e92b
cmp word [ebp - 0x226], ax
jne 0x42e90a
cmp word [ebp - 0x224], 0
je 0x42e92b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042e769
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42e977
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42e8e4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42e95f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42e984
push 0x42e599
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00433e50
add esp, 0x10
jmp 0x42e954
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415f69
leave
ret

Function at 0x42f344
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42f355
pop esi
ret
push ebx
push edi
push esi
call fcn.0042f30d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00429bc2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42f37d
push ebx
push esi
push edi
call fcn.00419030
add esp, 0xc
push 0
call fcn.00429b88
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42f74d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f392
Function at 0x432521
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4561a0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x432561
cmp byte [ebx], 0xa
jne 0x432561
or byte [edi + eax + 0x28], 4
jmp 0x432566
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x432665
mov dl, byte [eax]
cmp dl, 0x1a
je 0x432648
inc eax
cmp dl, 0xd
je 0x432592
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4325b8
cmp eax, ecx
jae 0x4325c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x43257a
jmp 0x432665
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432643
cmp dword [ebp - 0x10], 0
je 0x432643
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4561a0]
test byte [eax + edi + 0x28], 0x48
je 0x43261d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x432608
mov byte [esi], dl
jmp 0x432619
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4561a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x432665
cmp byte [ebp - 1], 0xa
jne 0x43262c
cmp esi, ebx
jne 0x43262c
mov byte [esi], 0xa
jmp 0x432664
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004324c3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x432665
mov byte [esi], 0xd
jmp 0x432664
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4561a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x432662
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x432665
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43266e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4561a0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4326b4
cmp word [ebx], dx
jne 0x4326b4
or byte [eax + edi + 0x28], 4
jmp 0x4326b9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43281c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4327fc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4326fa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x432730
cmp eax, edx
jae 0x43273e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4326d5
jmp 0x43281c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4327f7
cmp dword [ebp - 0x18], 0
je 0x4327f7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4561a0]
test byte [eax + edi + 0x28], 0x48
je 0x4327cd
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x432791
mov word [esi], cx
jmp 0x4327c8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4561a0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4561a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4561a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43281c
pop eax
cmp word [ebp - 4], ax
jne 0x4327dd
cmp esi, ebx
jne 0x4327dd
mov word [esi], ax
jmp 0x432819
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004324c3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43281c
push 0xd
pop eax
jmp 0x4327d8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4561a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x432816
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43281c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434ce5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00434c61
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x434e54
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x434e54
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x434e09
jg 0x434d41
test eax, eax
je 0x434dff
push 1
push 0x1000
call fcn.0042b9e2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x434d64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x434df6
push 0x8000
push ebx
call fcn.0041f94d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x434d8d
jg 0x434d88
cmp ecx, 0x1000
jb 0x434d8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042ccb7
add esp, 0x10
cmp eax, 0xffffffff
je 0x434dd2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x434d88
jl 0x434db9
test ecx, ecx
jne 0x434d7a
push dword [ebp - 0xc]
push ebx
call fcn.0041f94d
push esi
call fcn.00429b88
add esp, 0xc
xor ebx, ebx
jmp 0x434e62
cmp byte [edi + 0x24], 0
je 0x434de9
cmp dword [edi + 0x20], 5
jne 0x434de9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x434df4
mov ebx, dword [edi + 0x18]
jmp 0x434df6
xor ebx, ebx
push esi
call fcn.00429b88
pop ecx
jmp 0x434e62
test ecx, ecx
jg 0x434dcb
jl 0x434e09
test eax, eax
jae 0x434dcb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004324c3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x434e29
cmp byte [edi + 0x1c], 0
je 0x434dcb
jmp 0x434e5a
push ebx
call fcn.0041f3f6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x434dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x434e62
cmp byte [edi + 0x1c], 0
je 0x434e5f
mov ebx, dword [edi + 0x18]
jmp 0x434e62
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004324c3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4367d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4367fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4367fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4c4000
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x4c4031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4c403a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x4c4047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.004168d9