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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x24], ebx
push edi
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
jne 0x422b7e
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
cmp byte [esi + 0xc], 0
jne 0x422b6f
call fcn.0043a533
lea eax, [esi + 0xa0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x3c], 0
jne 0x422b89
call fcn.00422a10
mov ecx, ebx
mov dword [ebp - 0xc], 0
lea eax, [esi + 0x34]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movups xmmword [ebp - 0x1c], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422bb0
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040a430
cmp dword [ebp - 8], 0xf
lea edi, [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
mov edx, 0x811c9dc5
mov ebx, dword [ebp - 0xc]
cmova edi, esi
xor ecx, ecx
test ebx, ebx
je 0x422bf1
nop
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x422be0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00423790
mov edi, dword [eax + 4]
mov eax, dword [ebp - 8]
cmp eax, 0xf
jbe 0x422c38
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x422c2e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422cfb
push ecx
push esi
call fcn.00439f72
add esp, 8
test edi, edi
je 0x422b59
mov edx, dword [ebp - 0x24]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0xc], 0
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422c60
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040a430
cmp dword [ebp - 8], 0xf
lea edi, [ebp - 0x1c]
mov esi, dword [ebp - 0x1c]
mov edx, 0x811c9dc5
mov ebx, dword [ebp - 0xc]
cmova edi, esi
xor ecx, ecx
test ebx, ebx
je 0x422ca1
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x422c90
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00423790
mov eax, dword [eax + 4]
test eax, eax
jne 0x422cbe
mov eax, dword [ebx + 4]
mov edi, dword [eax + 0x20]
mov eax, dword [ebp - 8]
cmp eax, 0xf
jbe 0x422cf0
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x422ce6
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422cfb
push ecx
push esi
call fcn.00439f72
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00423f6f
int3
Function at 0x42bf09
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x447744
push str.FlsAlloc
push 0x1e
call fcn.0042bdf2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bf3d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4461c4]
call esi
jmp 0x42bf43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42bf87
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x447768
push str.FlsGetValue
push 0x20
call fcn.0042bdf2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bfbe
push dword [ebp + 8]
mov ecx, esi
call dword [0x4461c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x43ab5b
Capabilities:
Parse pe header

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

Function at 0x440e7d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x477840]
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 0x440ec8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044101c
test al, al
jne 0x440ec2
sub edx, 2
cmp edx, edi
jne 0x440ea8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x440eea
lea eax, [edi + 2]
cmp edx, eax
je 0x440eea
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00440dc9
add esp, 0x10
jmp 0x440fe4
push esi
lea ecx, [ebp - 0x255]
call fcn.0044101c
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 0x440f2d
push dword [ebp - 0x25c]
jmp 0x440eda
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 0x440f6a
cmp word [ebp - 0x226], 0
je 0x440f8b
cmp word [ebp - 0x226], ax
jne 0x440f6a
cmp word [ebp - 0x224], 0
je 0x440f8b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00440dc9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x440fd7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x440f44
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x440fbf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x440fe4
push 0x440bf9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00441610
add esp, 0x10
jmp 0x440fb4
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.00439e1a
leave
ret

Function at 0x441e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x441e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x441e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406a00
Capabilities:
Encode data using xor

Disassembly:
mov esi, dword [eax - 0x71]
mov edi, 0x41042c
xor edx, edx
test al, 0x75
lodsd eax, dword [esi]
daa
mov edi, 0x13043
add byte [eax], al
pop ds
xor eax, eax
pop ebx
mov esp, ebp
inc edi
ret 8
push ebp
mov dword [0x8ec0904], eax
jne 0x406a01
push esi
js 0x406a0b
call dword [edx]
js 0x4069cf
adc bh, byte [eax - 0x40]
inc eax
add byte [edx + 0x55], dh
cld
mov eax, dword [ebp - 8]
xor esi, esi
xor ecx, ecx
or ebx, dword [esi]
push esi
inc esi
enter 0xa6a, 0x52
push ecx
push ebx
dec ebx
add byte [edi], dl
sub eax, 0x48864000
pop esi
sbb edx, 0x295e96
mov esp, ebp
pop eax
not byte [eax - 0x6f6f6f70]
add byte [ebx - 0x6f09a71b], cl
nop
nop
nop
nop
nop
nop
push ebp
adc al, 0xec
mov eax, dword [ebp + 0x7e]
xor ecx, ecx
popfd
xor eax, dword [edx + 0xe488b66]
jnp 0x406a34
inc ecx
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
or dword [ebp + 8], 0xffffffc1
mov ebx, 0x331c8903
shl byte [esi + 0x10], cl
push eax
or al, 0x89
push ecx
js 0x406a8d
shl byte [esi - 0x75], cl
nop
or dh, byte [0xd2475b51]
push esi
mov esp, dword [ebx]
or byte [ecx + 0x4d330c51], cl
insb byte es:[edi], dx
push eax
push es
mov dword [ecx + 0x10], edx
xor edx, edx
sub dword [ebx - 0x76b5fdb0], ecx
push ecx
adc al, 0x33
invalid

Function at 0x406dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
pop edx
or byte [edi - 0x31], dl
jge 0x406e53
test di, di
mov dword [ecx + 0x10], edi
pop ds
mov dword [esi + 0x28], ebx
je 0x406dfa
push edi
call dword [0x40c1de]
mov word [esi + 0x2a], ax
mov word [esi + 0xc], di
and dword [edx + 2], 0x75
ret
push dword [ebx]
shl byte [esi + 0x55], 2
add byte [eax], al
push cs
mov al, 0xd1
dec ecx
lea esi, [ecx + ebx - 1]
cmp esi, ebx
mov esp, dword [0x74a13c72]
rcr dword [0x1388300], 0x7e
adc dh, byte [ebx]
leave
mov eax, dword [0x1dc174]
cmp dword [eax], 1
jle 0x406e75
xor ecx, ecx
push 0xffffffffffffffcc
mov cl, byte [edi]
push ecx
call dword [0x84d9c168]
mov esp, es
or bl, ch
adc dword [ecx + 0x6a40c178], esp
mov eax, dword [0x6a40c178]
xor esp, ecx
mov edx, dword [edi]
mov edi, dword [eax + esi*4 - 0x1f24aefc]
test byte [ecx - 0x40], dl
bound eax, qword [edi]
dec edi
cmp bh, bl
jae 0x406e59
jmp 0x406e42
Function at 0x43338e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459744]
jne 0x433398
repz ret
jmp fcn.00437ec8

Function at 0x441447
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004387bf
xor ebx, ebx
cmp dword [0x45ebdc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44151c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x441487
xor eax, eax
jmp 0x4415e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x441480
push eax
call fcn.0043875c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45ebdc], eax
call esi
push eax
call fcn.0043875c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45ebe0], eax
call esi
push eax
call fcn.0043875c
mov dword [0x45ebe4], eax
lea eax, [ebp - 8]
push eax
call fcn.0043981d
test eax, eax
pop ecx
pop ecx
je 0x4414ea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004337ad
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44151c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043875c
cmp eax, ebx
pop ecx
mov dword [0x45ebec], eax
je 0x44151c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043875c
pop ecx
mov dword [0x45ebe8], eax
mov eax, dword [0x45ebe8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x441595
cmp dword [0x45ebec], esi
je 0x441595
push eax
call fcn.004387c8
pop ecx
call eax
cmp eax, ebx
je 0x441562
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45ebec]
call fcn.004387c8
pop ecx
call eax
test eax, eax
je 0x441562
test byte [ebp - 0x18], 1
jne 0x441595
lea eax, [ebp - 0xc]
push eax
call fcn.00439854
test eax, eax
pop ecx
je 0x44157d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004337ad
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44158c
or dword [ebp + 0x10], 0x200000
jmp 0x4415c6
or dword [ebp + 0x10], 0x40000
jmp 0x4415c6
mov eax, dword [0x45ebe0]
cmp eax, esi
je 0x4415c6
push eax
call fcn.004387c8
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4415c6
mov eax, dword [0x45ebe4]
cmp eax, esi
je 0x4415c6
push dword [ebp - 4]
push eax
call fcn.004387c8
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45ebdc]
call fcn.004387c8
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x420826
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x420830
repz ret
jmp fcn.004253b1

Function at 0x432a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
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.00426493
and dword [ebp - 0x14], 0
cmp dword [0x44395c], 0
mov dword [ebp - 0x18], eax
jne 0x432ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432b6c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44395c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443964], eax
call edi
push eax
call esi
mov dword [0x44396c], eax
test eax, eax
je 0x432ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443968], eax
mov eax, dword [0x443968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432b1d
cmp dword [0x44396c], ecx
je 0x432b1d
push eax
call esi
push dword [0x44396c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432b1d
test ebx, ebx
je 0x432b1d
call edi
test eax, eax
je 0x432b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432b14
test byte [ebp - 8], 1
jne 0x432b1d
or dword [ebp + 0x10], 0x200000
jmp 0x432b50
mov eax, dword [0x443960]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432b50
mov eax, dword [0x443964]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44395c]
call esi
test eax, eax
je 0x432b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
leave
ret

Function at 0x401000
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, 0x5bfe
mov eax, ecx
mov dword [0x4b4752], eax
mov dword [0x4b4739], 0
mov eax, dword [0x4b4739]
mov dword [0x4b48ef], eax
mov dword [0x4b49c1], 0
mov eax, dword [0x4b49c1]
mov eax, ebx
xor ebx, eax
test dword [0x4b428b], eax
jne 0x401045
mov ebx, 0x19c2
sub eax, ebx
dec eax
shl eax, 1
ror eax, 1
or eax, dword [0x4b43b9]
je 0x401077
sub eax, dword [0x4b47dd]
dec eax
mov ebx, 0x11e8
add eax, ebx
dec eax
or eax, ebx
mov ebx, 0x1dd0
sub eax, ebx
add eax, dword [0x4b4a1d]
xor ebx, eax
sub eax, dword [0x4b46db]
shr eax, 1
add dword [0x4b42db], eax
jmp fcn.00402754
Function at 0x405b24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x405ba4
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x405ba3
push ebx
mov ebx, 0x46ac48
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00402409
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x428558
mov byte [edi + esi], al
call fcn.0040f68e
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x405b46
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.0040563b
pop edi
pop ebp
ret 0x14

Function at 0x40951b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40953c
jl 0x409533
test edi, edi
jne 0x40953c
xor eax, eax
xor edx, edx
jmp 0x4095fd
cmp dword [ebx + 0x38], 0
je 0x409551
push eax
push edi
push dword [ebp + 8]
call fcn.00409603
jmp 0x4095fd
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409598
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409598
cmp eax, edi
jb 0x409572
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ad60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40959e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4095f2
mov ecx, ebx
call fcn.00408db5
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4095dd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00413408
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4095f2
jmp 0x4095b0
test edx, edx
je 0x4095f2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00413408
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a8bf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a8fe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a8fe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a8fe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a8fe
cmp dword [ecx + 0x74], 0xe
jbe 0x40a8fe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41ccb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cb29

Function at 0x41d0b2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ad10
mov eax, dword [0x468fc0]
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.0041ac75
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41d0f4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d250
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426840
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 + 0x46b5f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041de51
mov ecx, dword [esi*4 + 0x46b5f0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d249
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d249
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d249
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041de51
add esp, 0x14
test edx, edx
jl 0x41d249
jg 0x41d1bf
test eax, eax
jb 0x41d249
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d249
jl 0x41d1d9
cmp dword [ebp - 0x1008], eax
ja 0x41d249
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d1f7
test ebx, ebx
je 0x41d230
cmp ecx, edi
jae 0x41d230
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d211
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d21d
cmp byte [ecx + 1], 0xa
jne 0x41d21d
inc ecx
jmp 0x41d21d
movzx eax, al
movsx eax, byte [eax + 0x469288]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d1f7
cmp edx, ebx
jne 0x41d1f7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d24e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a123
leave
ret
Function at 0x41d2ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x46b5f0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d32f
cmp byte [ebx], 0xa
jne 0x41d32f
or byte [eax + edi + 0x28], 4
jmp 0x41d334
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d432
mov al, byte [edx]
cmp al, 0x1a
je 0x41d414
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d363
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d388
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d392
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d345
jmp 0x41d432
push 0
lea eax, [ebp - 0xc]
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 0x41d40f
cmp dword [ebp - 0xc], 0
je 0x41d40f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46b5f0]
test byte [eax + edi + 0x28], 0x48
je 0x41d3e9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d3d4
mov byte [esi], dl
jmp 0x41d3e5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46b5f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d432
cmp byte [ebp - 1], 0xa
jne 0x41d3f8
cmp esi, ebx
jne 0x41d3f8
mov byte [esi], 0xa
jmp 0x41d431
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041de6f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d432
mov byte [esi], 0xd
jmp 0x41d431
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46b5f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d42e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d432
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret