joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008401
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10003698
and dword [ebp - 0x14], 0
cmp dword [0x1000ec8c], 0
mov dword [ebp - 0x18], eax
jne 0x100084b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000855c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000855c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000ec8c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000ec90], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000ec94], eax
call edi
push eax
call esi
mov dword [0x1000ec9c], eax
test eax, eax
je 0x100084b4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000ec98], eax
mov eax, dword [0x1000ec98]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000850d
cmp dword [0x1000ec9c], ecx
je 0x1000850d
push eax
call esi
push dword [0x1000ec9c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000850d
test ebx, ebx
je 0x1000850d
call edi
test eax, eax
je 0x10008504
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10008504
test byte [ebp - 8], 1
jne 0x1000850d
or dword [ebp + 0x10], 0x200000
jmp 0x10008540
mov eax, dword [0x1000ec90]
cmp eax, dword [ebp - 0x18]
je 0x10008540
push eax
call esi
test eax, eax
je 0x10008540
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10008540
mov eax, dword [0x1000ec94]
cmp eax, dword [ebp - 0x18]
je 0x10008540
push eax
call esi
test eax, eax
je 0x10008540
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000ec8c]
call esi
test eax, eax
je 0x1000855c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000855e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002153
leave
ret
Function at 0x1033058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010331a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103306a
add dl, dl
jne 0x1033089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10330dc
xor eax, eax
add dl, dl
jne 0x1033096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103317d
add dl, dl
jne 0x10330a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10330b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10330bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10330c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10330d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1033075
mov eax, 1
add dl, dl
jne 0x10330ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10330f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10330e1
sub eax, ebx
mov ebx, 1
jne 0x1033128
mov ecx, 1
add dl, dl
jne 0x103310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1033119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1033105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1033075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1033136
cmp eax, 0x7d00
jae 0x103316d
cmp eax, 0x500
jb 0x1033168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1033075
cmp eax, 0x7f
ja 0x1033170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1033075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1033075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x44ba10
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x65dd9c]
sub esp, 0x10
push esi
push eax
mov esi, 1
call sub.WINSPOOL.DRV_StartPagePrinter
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push str.SoftwareAdobeAdobe_Acrobat11.0Security
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44ba8e
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0x65d054
push edx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44ba83
mov eax, dword [esp + 4]
test eax, eax
jne 0x44ba83
xor esi, esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x1002456
Capabilities:
Allocate or change rwx memory

Disassembly:
push eax
push ecx
push edx
call fcn.0100235e
mov dword [edx + 4], 0
push dword [edx]
call dword [edx + 0x14]
pop ecx
test eax, eax
je 0x1002485
push eax
push ecx
push eax
push esp
push 0x80
push 0x18
push eax
call fcn.0100235e
call dword [edx + 0x10]
pop edx
mov edx, eax
pop ecx
pop eax
test edx, edx
je 0x1002485
cmp byte [eax], 0xb8
jne 0x1002485
cmp byte [eax + 5], 0xba
je 0x100246e
cmp dword [eax + 5], 0x424548d
jne 0x1002422
cmp dword [eax + 8], 0xc22ecd04
jne 0x1002485
sub ecx, eax
sub ecx, 0xa
mov dword [eax + 6], ecx
mov byte [eax + 5], 0xe8
mov byte [eax + 0xa], 0x90
jmp 0x1002485
cmp dword [eax + 7], 0x424548d
jne 0x1002485
cmp dword [eax + 0xb], 0xc015ff64
jne 0x1002485
cmp dword [eax + 0xf], 0xc2000000
jne 0x1002485
push edx
call fcn.0100235e
mov dword [edx + 4], 1
pop edx
push esi
push eax
push ebx
push ecx
push edx
mov esi, eax
mov eax, dword [esi + 0xa]
mov edx, dword [esi + 0xe]
sub ecx, esi
sub ecx, 0x12
mov ebx, 0xe8909004
lock cmpxchg8b qword [esi + 0xa]
pop edx
pop ecx
pop ebx
pop eax
pop esi
jmp 0x1002485
cmp word [eax + 0xa], 0xd2ff
je 0x1002482
cmp word [eax + 0xa], 0x12ff
jne 0x1002485
mov byte [eax + 0xb], 0xd2
mov dword [eax + 6], ecx
pop eax
ret
Function at 0x910360
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x67800d
lea edi, [esi - 0x27700d]
push edi
or ebp, 0xffffffff
jmp 0x910382
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x910389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x910378
mov eax, 1
add ebx, ebx
jne 0x91039b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x910390
jne 0x9103ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x910390
xor ecx, ecx
sub eax, 3
jb 0x9103c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x910432
mov ebp, eax
add ebx, ebx
jne 0x9103cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9103d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9103fc
inc ecx
add ebx, ebx
jne 0x9103e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9103dd
jne 0x9103f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9103dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x91041c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x91040d
jmp 0x91037e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x91041c
add edi, ecx
jmp 0x91037e
pop esi
mov edi, esi
mov ecx, 0x18a9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x91043a
cmp byte [edi], 0x11
jne 0x91043a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x91043f
lea edi, [esi + 0x50c000]
mov eax, dword [edi]
or eax, eax
je 0x9104ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x518164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5181bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x91046c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5181c4]
or eax, eax
je 0x9104a8
mov dword [ebx], eax
add ebx, 4
jmp 0x910489
call dword [esi + 0x5181c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9104df
cmp al, 0xef
ja 0x9104d2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9104b4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9104c1
mov ebp, dword [esi + 0x5181c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x910513
sub esp, 0xffffff80
jmp 0x40efbc
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5e255c46
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2e6a56f6
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x42c3f0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x435770
call fcn.0042c958
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x436574
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x42c218
cmp eax, esi
jne 0x42c20b
xor esi, esi
inc esi
mov edi, esi
jmp 0x42c21b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42c1ef
xor esi, esi
inc esi
cmp dword [0x436578], esi
jne 0x42c22d
push 0x1f
call fcn.005a8000
pop ecx
jmp 0x42c267
cmp dword [0x436578], ebx
jne 0x42c261
mov dword [0x436578], esi
push 0x40141c
push 0x401410
call fcn.0042c34c
pop ecx
pop ecx
test eax, eax
je 0x42c267
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x42c33c
mov dword [0x436124], esi
cmp dword [0x436578], esi
jne 0x42c28a
push 0x40140c
push 0x4013f4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x436578], 2
test edi, edi
jne 0x42c297
xor eax, eax
mov ecx, 0x436574
xchg dword [ecx], eax
cmp dword [0x43657c], 0
je 0x42c2c3
push 0x43657c
call fcn.0042c7b0
pop ecx
test eax, eax
je 0x42c2c3
push ebx
push 2
push ebx
mov esi, dword [0x43657c]
mov ecx, esi
call dword [0x437220]
call esi
push dword [0x436130]
push dword [0x43612c]
push dword [0x436128]
call fcn.0040d66e
add esp, 0xc
mov dword [0x436120], eax
cmp dword [0x436138], 0
jne 0x42c321
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x436124], 0
jne 0x42c335
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x436120]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0042c8a5
jmp 0x42c1d3

Function at 0x42c6a4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x435790
call fcn.0042c958
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x42c704
cmp eax, 0xffffffff
je 0x42c704
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x42c6fd
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x42c6fd
cmp edx, 0x10000000
jae 0x42c6fd
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x42c6fa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42c760
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x42c79e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x42c796
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x42c7a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x42c786
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x1d1a0b48
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0xd452614
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4080a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 0x10]
mov bl, byte [edx]
cmp edx, dword [esi + 0xc]
jae 0x4080b7
inc edx
mov al, bl
mov dword [esi + 0x10], edx
pop esi
pop ebx
ret
cmp byte [esi + 0x1c], 0
jne 0x4080f6
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b9a6
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x4080f6
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
pop esi
mov al, bl
pop ebx
ret

Function at 0x408140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.00408510
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x2f
jne 0x4082a1
mov ecx, esi
call fcn.004080a0
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0x2a
jne 0x408219
mov ecx, esi
call fcn.004080a0
nop dword [eax]
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
test al, al
jne 0x4081a8
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 4]
add eax, ecx
mov dword [edi + 0x18], 0x11
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x18], 0
je 0x408180
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp al, 0x2a
jne 0x4081c4
mov ecx, esi
call fcn.004080a0
mov eax, dword [esi + 0x10]
cmp byte [eax], 0x2f
jne 0x408180
mov ecx, esi
call fcn.004080a0
jmp 0x40814b
cmp ecx, dword [esi + 0xc]
jae 0x4081d1
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
jmp 0x408180
cmp byte [esi + 0x1c], 0
jne 0x408180
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b9a6
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x408180
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
jmp 0x408180
cmp al, 0x2f
jne 0x408285
mov ecx, esi
call fcn.004080a0
mov eax, dword [esi + 0x10]
mov bl, byte [eax]
test bl, bl
je 0x40814b
cmp eax, dword [esi + 0xc]
jae 0x40823c
inc eax
mov dword [esi + 0x10], eax
jmp 0x40827b
cmp byte [esi + 0x1c], 0
jne 0x40827b
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b9a6
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x40827b
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
cmp bl, 0xa
jne 0x408224
jmp 0x40814b
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 4]
add eax, ecx
mov dword [edi + 0x18], 0x11
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x18], 0
je 0x40814b
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x408510
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0x20
je 0x408528
cmp al, 0xa
je 0x408528
cmp al, 0xd
je 0x408528
cmp al, 9
jne 0x408576
cmp ecx, dword [esi + 0xc]
jae 0x408535
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
jmp 0x408513
cmp byte [esi + 0x1c], 0
jne 0x408513
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b9a6
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x408513
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
jmp 0x408513
pop esi
ret
Function at 0x409300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov edx, ecx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], edx
mov eax, dword [edi + 0x10]
shl esi, 4
mov cl, byte [eax]
movsx eax, cl
add esi, eax
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x40932c
sub esi, 0x30
jmp 0x409358
lea eax, [ecx - 0x41]
cmp al, 5
ja 0x409338
sub esi, 0x37
jmp 0x409358
sub cl, 0x61
cmp cl, 5
ja 0x409345
sub esi, 0x57
jmp 0x409358
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x18], 8
mov dword [edx + 0x1c], eax
cmp dword [edx + 0x18], 0
jne 0x4093bf
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0xc]
jae 0x409366
inc eax
mov dword [edi + 0x10], eax
jmp 0x4093aa
cmp byte [edi + 0x1c], 0
jne 0x4093aa
push dword [edi]
mov eax, dword [edi + 0x14]
push dword [edi + 8]
add dword [edi + 0x18], eax
push 1
push dword [edi + 4]
call fcn.0044b9a6
mov ecx, dword [edi + 4]
mov edx, eax
add esp, 0x10
mov dword [edi + 0x14], edx
mov dword [edi + 0x10], ecx
lea eax, [ecx - 1]
add eax, edx
mov dword [edi + 0xc], eax
cmp edx, dword [edi + 8]
jae 0x4093a7
mov byte [ecx + edx], 0
inc dword [edi + 0xc]
mov byte [edi + 0x1c], 1
mov edx, dword [ebp - 4]
inc ebx
cmp ebx, 4
jl 0x409313
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bbd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482d68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40bd16
cmp byte [ebx + 0x3d], 0
je 0x40bd16
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40bc24
xor al, al
jmp 0x40bd18
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0040a580
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
nop dword [eax]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40bc7f
sub eax, 1
je 0x40bc83
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x40bcd9
xor bl, bl
jmp 0x40bcdb
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x40bcbb
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.0044c1ef
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x40bc7b
cmp byte [ebx + 0x3d], 0
je 0x40bcd9
test esi, esi
jne 0x40bc40
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040b900
jmp 0x40bc37
mov bl, 1
cmp edx, 0x10
jb 0x40bd0d
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x40bd04
test al, 0x1f
jne 0x40bd11
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x40bd11
sub eax, ecx
cmp eax, 4
jb 0x40bd11
cmp eax, 0x23
ja 0x40bd11
mov eax, ecx
push eax
call fcn.0042b5c5
add esp, 4
mov al, bl
jmp 0x40bd18
call fcn.00446e76
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret
Function at 0x411540
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
push edi
push 0xc
mov ebx, edx
mov esi, ecx
call dword [0x4a2e1c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x411561
pop edi
pop esi
mov eax, 0xfffff027
pop ebx
ret
mov eax, dword [esp + 0x10]
push 0
push 4
push edi
push 0x4114d0
push 0
push 0
mov dword [edi], ebx
mov dword [edi + 4], eax
call fcn.0044cbc7
add esp, 0x18
test eax, eax
jne 0x4115b1
call fcn.0044c2cd
mov ebx, dword [eax]
call fcn.0044c2cd
push edi
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
mov dword [eax], esi
cmp ebx, 0x16
jbe 0x4115bf
pop edi
pop esi
mov eax, 0xfffff01a
pop ebx
ret
mov dword [esi], eax
xor ebx, ebx
push eax
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
movzx eax, byte [ebx + 0x411604]
jmp dword [eax*4 + 0x4115f0]