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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
shr edi, 6
and eax, 0x3f
mov dword [ebp - 8], ebx
mov dword [ebp + 0x14], eax
jbe 0x403d6a
and dword [ebp + 0x14], 7
mov esi, eax
shr esi, 3
cmp esi, ebx
jbe 0x403d6a
cmp edi, ebx
jbe 0x403d6a
mov dword [ebp - 8], 1
dec edi
push 8
lea eax, [ebp - 0x10]
push 0x413594
push eax
call fcn.00408100
push ebx
push dword [ebp + 8]
call fcn.004036db
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403908
push 1
push dword [ebp + 8]
call fcn.004036db
add esp, 0x24
cmp edi, ebx
jbe 0x403df7
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
sub eax, ebx
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], eax
push 8
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00408100
push ebx
push edi
call fcn.00403908
add esp, 0x14
push 8
pop eax
mov ecx, dword [ebp + 8]
mov cl, byte [ebx + ecx]
xor byte [ebx], cl
inc ebx
dec eax
jne 0x403dcb
lea eax, [ebp - 0x28]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408100
sub dword [ebp + 8], 8
add esp, 0xc
add edi, 8
dec dword [ebp + 0x10]
jne 0x403db2
jmp 0x403dfd
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp word [ebp - 8], 0
je 0x403ea5
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00403908
add edi, 8
push esi
lea eax, [ebp - 0x20]
push edi
push eax
mov dword [ebp + 0x10], edi
call fcn.00408100
mov dword [ebp + 8], 8
lea edi, [esi + ebp - 0x20]
sub dword [ebp + 8], esi
push dword [ebp + 8]
push 0
push edi
call fcn.00402d82
add esp, 0x20
xor eax, eax
mov cl, byte [eax + ebp - 0x20]
xor byte [eax + ebp - 0x18], cl
inc eax
cmp eax, 8
jb 0x403e41
push dword [ebp + 8]
lea eax, [esi + ebp - 0x18]
push eax
push edi
call fcn.00408100
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00403908
add esp, 0x14
lea eax, [ebp - 0x10]
mov edi, ebx
sub eax, ebx
push 8
pop ecx
mov dl, byte [eax + edi]
xor byte [edi], dl
inc edi
dec ecx
jne 0x403e74
lea eax, [ebp - 0x18]
add ebx, 8
push esi
push eax
push ebx
call fcn.00408100
lea eax, [ebp - 0x20]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408100
mov edi, dword [ebp + 0x10]
add esp, 0x18
mov dword [ebp - 4], esi
xor esi, esi
test esi, esi
jbe 0x403ede
and dword [ebp + 8], 0
test esi, esi
jbe 0x403edb
mov dword [ebp + 0x10], edi
lea eax, [ebp - 0x10]
sub dword [ebp + 0x10], eax
mov ecx, ebx
lea eax, [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
lea eax, [eax + ebp - 0x10]
mov dl, byte [eax + edx]
xor dl, byte [eax]
inc dword [ebp + 8]
cmp dword [ebp + 8], esi
mov byte [eax + ecx], dl
jb 0x403ec1
mov dword [ebp - 4], esi
cmp dword [ebp + 0x14], 0
jbe 0x403f01
mov eax, dword [ebp - 4]
lea esi, [eax + ebp - 0x10]
push esi
push dword [ebp + 0x14]
call fcn.00403bf2
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov cl, byte [edi + eax]
xor cl, byte [esi]
mov byte [ebx + eax], cl
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x407847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41451c]
jne 0x407851
repz ret
jmp fcn.004097df

Function at 0x40dbbb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ab0b
xor ebx, ebx
cmp dword [0x416090], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40dc90
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40dbfb
xor eax, eax
jmp 0x40dd54
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41191c
push edi
call esi
cmp eax, ebx
je 0x40dbf4
push eax
call fcn.0040aaa8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416090], eax
call esi
push eax
call fcn.0040aaa8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x416094], eax
call esi
push eax
call fcn.0040aaa8
mov dword [0x416098], eax
lea eax, [ebp - 8]
push eax
call fcn.00407c8d
test eax, eax
pop ecx
pop ecx
je 0x40dc5e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408964
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40dc90
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040aaa8
cmp eax, ebx
pop ecx
mov dword [0x4160a0], eax
je 0x40dc90
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040aaa8
pop ecx
mov dword [0x41609c], eax
mov eax, dword [0x41609c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40dd09
cmp dword [0x4160a0], esi
je 0x40dd09
push eax
call fcn.0040ab14
pop ecx
call eax
cmp eax, ebx
je 0x40dcd6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4160a0]
call fcn.0040ab14
pop ecx
call eax
test eax, eax
je 0x40dcd6
test byte [ebp - 0x18], 1
jne 0x40dd09
lea eax, [ebp - 0xc]
push eax
call fcn.00407cc4
test eax, eax
pop ecx
je 0x40dcf1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408964
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40dd00
or dword [ebp + 0x10], 0x200000
jmp 0x40dd3a
or dword [ebp + 0x10], 0x40000
jmp 0x40dd3a
mov eax, dword [0x416094]
cmp eax, esi
je 0x40dd3a
push eax
call fcn.0040ab14
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40dd3a
mov eax, dword [0x416098]
cmp eax, esi
je 0x40dd3a
push dword [ebp - 4]
push eax
call fcn.0040ab14
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 [0x416090]
call fcn.0040ab14
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
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0xd1c07fc
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7ac913c9
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x43b650
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edx
mov eax, 0x29a32ba5
mov edi, edi
dec eax
call fcn.0043b687
sub eax, 0x3d235d31
sub eax, 1
xor dword [ebx], edx
and edi, edi
dec edi
sub eax, 0x5d889f3e
inc ebx
push edi
pop eax
cmp ebx, esi
jne fcn.0043b650
inc eax
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x6e10e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x289000]
push edi
or ebp, 0xffffffff
jmp 0x6e1102
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6e1109
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e10f8
mov eax, 1
add ebx, ebx
jne 0x6e111b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6e112c
jne 0x6e114b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e114b
dec eax
add ebx, ebx
jne 0x6e1138
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6e1110
add ebx, ebx
jne 0x6e1147
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6e119d
xor ecx, ecx
sub eax, 3
jb 0x6e1163
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6e11d2
sar eax, 1
mov ebp, eax
jmp 0x6e116e
add ebx, ebx
jne 0x6e116e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e113c
inc ecx
add ebx, ebx
jne 0x6e117c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e113c
add ebx, ebx
jne 0x6e1189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6e117e
jne 0x6e119a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6e117e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6e11bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6e11ae
jmp 0x6e10fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6e11bc
add edi, ecx
jmp 0x6e10fe
pop esi
mov edi, esi
mov ecx, 0x507b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6e11da
cmp byte [edi], 0x21
jne 0x6e11da
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 0x6e11df
lea edi, [esi + 0x2de000]
mov eax, dword [edi]
or eax, eax
je 0x6e124e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2ef4fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ef628]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6e120c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2ef62c]
or eax, eax
je 0x6e1248
mov dword [ebx], eax
add ebx, 4
jmp 0x6e1229
call dword [esi + 0x2ef63c]
mov ebp, dword [esi + 0x2ef630]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x6e1282
sub esp, 0xffffff80
jmp 0x4d8354
Function at 0x402e7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
mov eax, dword [0x432180]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [0x494e84]
xor ebx, ebx
push edi
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x402ee1
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004035de
lea ecx, [esp + 0x1c]
call fcn.00402a0f
cmp eax, dword [esp + 0x14]
je 0x402ef9
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00404017
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x402eb1
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409367
add esp, 0x2c
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00404017
jmp 0x402ee3

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x494e84], eax
push 0x27
mov esi, 0x492a60
mov edx, 0x547
push 0x432c30
mov ecx, esi
call fcn.00402805
pop ecx
pop ecx
mov edx, 0x8aafdc01
call fcn.00402e7a
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4e4
push esi
call eax
test eax, eax
je 0x403007
lea ecx, [esp + 0x10]
call fcn.004049da
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], 1
test ecx, ecx
je 0x403011
cmp byte [ecx + 0x6c], 0
jne 0x403011
mov eax, dword [ecx]
push 1
call dword [eax + 8]
lea ecx, [esp + 0x10]
call fcn.0040315a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 4
pop ecx
call fcn.0040277a
int3
Function at 0x4082af
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 0x4082d0
jl 0x4082c7
test edi, edi
jne 0x4082d0
xor eax, eax
xor edx, edx
jmp 0x408391
cmp dword [ebx + 0x38], 0
je 0x4082e5
push eax
push edi
push dword [ebp + 8]
call fcn.00408397
jmp 0x408391
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40832c
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40832c
cmp eax, edi
jb 0x408306
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a4e0
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 0x408332
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408386
mov ecx, ebx
call fcn.00407b01
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408371
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041185d
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 0x408386
jmp 0x408344
test edx, edx
je 0x408386
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041185d
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 0x40a1d0
Capabilities:
Parse pe header

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

Function at 0x4173f0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429b68
push 0x429b60
push str.FlsAlloc
push 0x1e
call fcn.004172ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417424
push dword [ebp + 8]
mov ecx, esi
call dword [0x426158]
call esi
jmp 0x41742a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41746e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429b78
push 0x429b70
push str.FlsGetValue
push 0x20
call fcn.004172ba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4174a5
push dword [ebp + 8]
mov ecx, esi
call dword [0x426158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a9f5
Capabilities:
Read file on windows

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

Function at 0x41adef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a430
mov eax, dword [0x432180]
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.00418914
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41ae31
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41af8d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424d30
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 + 0x494b48]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041bde6
mov ecx, dword [esi*4 + 0x494b48]
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 0x41af86
cmp eax, dword [edi + ecx + 0x24]
jne 0x41af86
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 0x41af86
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041bde6
add esp, 0x14
test edx, edx
jl 0x41af86
jg 0x41aefc
test eax, eax
jb 0x41af86
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41af86
jl 0x41af16
cmp dword [ebp - 0x1008], eax
ja 0x41af86
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41af34
test ebx, ebx
je 0x41af6d
cmp ecx, edi
jae 0x41af6d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41af4e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41af5a
cmp byte [ecx + 1], 0xa
jne 0x41af5a
inc ecx
jmp 0x41af5a
movzx eax, al
movsx eax, byte [eax + 0x432460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41af34
cmp edx, ebx
jne 0x41af34
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41af8b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409367
leave
ret
Function at 0x41b284
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 + 0x494b48]
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 0x41b2c4
cmp byte [ebx], 0xa
jne 0x41b2c4
or byte [eax + edi + 0x28], 4
jmp 0x41b2c9
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b3c7
mov al, byte [edx]
cmp al, 0x1a
je 0x41b3a9
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b2f8
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b31d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41b327
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 0x41b2da
jmp 0x41b3c7
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 0x41b3a4
cmp dword [ebp - 0xc], 0
je 0x41b3a4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x494b48]
test byte [eax + edi + 0x28], 0x48
je 0x41b37e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41b369
mov byte [esi], dl
jmp 0x41b37a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x494b48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b3c7
cmp byte [ebp - 1], 0xa
jne 0x41b38d
cmp esi, ebx
jne 0x41b38d
mov byte [esi], 0xa
jmp 0x41b3c6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b3c7
mov byte [esi], 0xd
jmp 0x41b3c6
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x494b48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b3c3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b3c7
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b3d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x494b48]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41b413
cmp word [esi], dx
jne 0x41b413
or byte [edi + eax + 0x28], 4
jmp 0x41b418
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41b56b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41b54b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b45a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b490
cmp eax, edx
jae 0x41b49c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41b432
jmp 0x41b56b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b547
cmp dword [ebp - 0x14], 0
je 0x41b547
mov eax, dword [ebx*4 + 0x494b48]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b51f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b4e8
mov word [esi], cx
jmp 0x41b51b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x494b48]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x494b48]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x494b48]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b56b
pop ebx
cmp word [ebp - 4], bx
jne 0x41b530
cmp esi, dword [ebp + 0xc]
jne 0x41b530
mov word [esi], bx
jmp 0x41b568
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041be04
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b56b
push 0xd
jmp 0x41b564
mov ecx, dword [ebx*4 + 0x494b48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b562
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b56b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e06a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e107
push ebx
push esi
call fcn.0041e033
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041cdfb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e0b4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e106
push edi
push eax
call fcn.00417a23
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e0d4
call fcn.00416fdf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e105
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cdfb
add esp, 0x20
test eax, eax
jne 0x41e0f3
push edi
call fcn.00416fdf
jmp 0x41e0fb
push ebx
call fcn.00416fdf
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x424b30
Capabilities:
Parse pe header

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