joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ef311
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x674014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x60d47c
push esi
call fcn.005ff0a1
pop ecx
pop ecx
test eax, eax
jne 0x5ef33f
xor al, al
jmp 0x5ef3bc
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005ef0a2
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5ef379
push dword [ebp - 0x210]
call fcn.004d2040
xor al, al
jmp 0x5ef3ba
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5ef37f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5ef39f
push edx
call fcn.005ef262
pop ecx
test al, al
je 0x5ef36a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5ef3ad
mov bl, 1
push dword [ebp - 0x210]
call fcn.004d2040
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005dd6f3
leave
ret
Function at 0x5f1016
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 + 0x678c68]
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 0x5f1056
cmp byte [ebx], 0xa
jne 0x5f1056
or byte [eax + edi + 0x28], 4
jmp 0x5f105b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5f1159
mov al, byte [edx]
cmp al, 0x1a
je 0x5f113b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5f108a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5f10af
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5f10b9
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 0x5f106c
jmp 0x5f1159
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 0x5f1136
cmp dword [ebp - 0xc], 0
je 0x5f1136
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x678c68]
test byte [eax + edi + 0x28], 0x48
je 0x5f1110
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5f10fb
mov byte [esi], dl
jmp 0x5f110c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x678c68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5f1159
cmp byte [ebp - 1], 0xa
jne 0x5f111f
cmp esi, ebx
jne 0x5f111f
mov byte [esi], 0xa
jmp 0x5f1158
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005fe020
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5f1159
mov byte [esi], 0xd
jmp 0x5f1158
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x678c68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5f1155
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5f1159
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5f1162
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 + 0x678c68]
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 0x5f11a5
cmp word [esi], dx
jne 0x5f11a5
or byte [edi + eax + 0x28], 4
jmp 0x5f11aa
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 0x5f12e3
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 0x5f12c3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5f11ec
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5f1222
cmp eax, edx
jae 0x5f122e
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 0x5f11c4
jmp 0x5f12e3
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 0x5f12bf
cmp dword [ebp - 0x14], 0
je 0x5f12bf
mov eax, dword [ebx*4 + 0x678c68]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5f1297
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x5f12dd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x678c68]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x678c68]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x678c68]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x5f12e0
pop ebx
cmp word [ebp - 4], bx
jne 0x5f12a8
cmp esi, dword [ebp + 0xc]
jne 0x5f12a8
mov word [esi], bx
jmp 0x5f12e0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005fe020
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5f12e3
push 0xd
jmp 0x5f12dc
mov ecx, dword [ebx*4 + 0x678c68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5f12da
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5f12e3
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 0x5f687b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005ddb10
mov eax, dword [0x674014]
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.005ef016
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5f68bd
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5f6a19
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00601e50
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 + 0x678c68]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005fe07e
mov ecx, dword [esi*4 + 0x678c68]
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 0x5f6a12
cmp eax, dword [edi + ecx + 0x24]
jne 0x5f6a12
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 0x5f6a12
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005fe07e
add esp, 0x14
test edx, edx
jl 0x5f6a12
jg 0x5f6988
test eax, eax
jb 0x5f6a12
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5f6a12
jl 0x5f69a2
cmp dword [ebp - 0x1008], eax
ja 0x5f6a12
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5f69c0
test ebx, ebx
je 0x5f69f9
cmp ecx, edi
jae 0x5f69f9
mov al, byte [ecx]
cmp al, 0xd
jne 0x5f69da
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5f69e6
cmp byte [ecx + 1], 0xa
jne 0x5f69e6
inc ecx
jmp 0x5f69e6
movzx eax, al
movsx eax, byte [eax + 0x674280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5f69c0
cmp edx, ebx
jne 0x5f69c0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5f6a17
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005dd6f3
leave
ret

Function at 0x5fbac6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x60e778
push 0x60e770
push 0x60e778
push 0x1e
call fcn.005fc022
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5fbafa
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x5fbb00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5fbb44
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x60e794
push str.FlsGetValue
push 0x20
call fcn.005fc022
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5fbb7b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x600a22
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x674014]
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 0x600a6d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00600b98
test al, al
jne 0x600a67
sub edx, 2
cmp edx, edi
jne 0x600a4d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x600a8f
lea eax, [edi + 2]
cmp edx, eax
je 0x600a8f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0060096e
add esp, 0x10
jmp 0x600b89
push esi
lea ecx, [ebp - 0x255]
call fcn.00600b98
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 0x600ad2
push dword [ebp - 0x25c]
jmp 0x600a7f
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 0x600b0f
cmp word [ebp - 0x226], 0
je 0x600b30
cmp word [ebp - 0x226], ax
jne 0x600b0f
cmp word [ebp - 0x224], 0
je 0x600b30
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0060096e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x600b7c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x600ae9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x600b64
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x600b89
push 0x600bc0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005f7980
add esp, 0x10
jmp 0x600b59
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.005dd6f3
leave
ret
Function at 0x601fb1
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 0x60204e
push ebx
push esi
call fcn.0060209f
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.00601efa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x601ffb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x60204d
push edi
push eax
call fcn.004d1ff0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x60201b
call fcn.004d2040
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x60204c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00601efa
add esp, 0x20
test eax, eax
jne 0x60203a
push edi
call fcn.004d2040
jmp 0x602042
push ebx
call fcn.004d2040
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 0x602051
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x602062
pop esi
ret
push ebx
push edi
push esi
call fcn.0060209f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004d1ff0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x60208a
push ebx
push esi
push edi
call fcn.005df8f0
add esp, 0xc
push 0
call fcn.004d2040
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x6020e1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0060234a

Function at 0x604d97
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00604da2
Function at 0x405dc0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 6
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405e3d
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
jmp 0x405ed3
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jmp 0x405e4e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x405ebb
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x405e83
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
jmp 0x405ed3
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x405eb7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 8], 0xffffffff
jmp 0x405e45
jmp 0x405ebb
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], 0xffffffff
jne 0x405ed0
or eax, 0xffffffff
jmp 0x405ed3
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42d965
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 0x42d986
jl 0x42d97d
test edi, edi
jne 0x42d986
xor eax, eax
xor edx, edx
jmp 0x42da47
cmp dword [ebx + 0x38], 0
je 0x42d99b
push eax
push edi
push dword [ebp + 8]
call fcn.0042da4d
jmp 0x42da47
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42d9e2
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x42d9e2
cmp eax, edi
jb 0x42d9bc
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00430050
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 0x42d9e8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x42da3c
mov ecx, ebx
call fcn.0042d1e8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x42da27
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0043deed
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 0x42da3c
jmp 0x42d9fa
test edx, edx
je 0x42da3c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0043deed
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 0x42f2d2
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042f720
mov eax, dword [0x469010]
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.00443392
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x433a06
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x433b62
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00455470
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 + 0x46ab38]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004435a1
mov ecx, dword [esi*4 + 0x46ab38]
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 0x433b5b
cmp eax, dword [ecx + edi + 0x24]
jne 0x433b5b
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 0x433b5b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004435a1
add esp, 0x14
test edx, edx
jl 0x433b5b
jg 0x433ad1
test eax, eax
jb 0x433b5b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x433b5b
jl 0x433aeb
cmp dword [ebp - 0x1008], eax
ja 0x433b5b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x433b09
test ebx, ebx
je 0x433b42
cmp ecx, edi
jae 0x433b42
mov al, byte [ecx]
cmp al, 0xd
jne 0x433b23
lea eax, [edi - 1]
cmp ecx, eax
jae 0x433b2f
cmp byte [ecx + 1], 0xa
jne 0x433b2f
inc ecx
jmp 0x433b2f
movzx eax, al
movsx eax, byte [eax + 0x469270]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x433b09
cmp edx, ebx
jne 0x433b09
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x433b60
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042ed8f
leave
ret
Function at 0x443c46
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 + 0x46ab38]
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 0x443c86
cmp byte [ebx], 0xa
jne 0x443c86
or byte [edi + eax + 0x28], 4
jmp 0x443c8b
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 0x443d8a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x443d6d
inc eax
cmp dl, 0xd
je 0x443cb7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x443cdd
cmp eax, ecx
jae 0x443ceb
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 0x443c9f
jmp 0x443d8a
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 0x443d68
cmp dword [ebp - 0x10], 0
je 0x443d68
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46ab38]
test byte [eax + edi + 0x28], 0x48
je 0x443d42
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x443d2d
mov byte [esi], dl
jmp 0x443d3e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46ab38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x443d8a
cmp byte [ebp - 1], 0xa
jne 0x443d51
cmp esi, ebx
jne 0x443d51
mov byte [esi], 0xa
jmp 0x443d89
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004435bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x443d8a
mov byte [esi], 0xd
jmp 0x443d89
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46ab38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x443d87
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x443d8a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x443d93
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 + 0x46ab38]
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 0x443dd9
cmp word [ebx], dx
jne 0x443dd9
or byte [eax + edi + 0x28], 4
jmp 0x443dde
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 0x443f41
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 0x443f21
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x443e1f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x443e55
cmp eax, edx
jae 0x443e63
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 0x443dfa
jmp 0x443f41
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 0x443f1c
cmp dword [ebp - 0x18], 0
je 0x443f1c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46ab38]
test byte [eax + edi + 0x28], 0x48
je 0x443ef2
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 0x443eb6
mov word [esi], cx
jmp 0x443eed
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46ab38]
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 + 0x46ab38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46ab38]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x443f41
pop eax
cmp word [ebp - 4], ax
jne 0x443f02
cmp esi, ebx
jne 0x443f02
mov word [esi], ax
jmp 0x443f3e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004435bf
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x443f41
push 0xd
pop eax
jmp 0x443efd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46ab38]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x443f3b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x443f41
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret