joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56e0a0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x20], 0
jne 0x56e0d2
sub esp, 0x18
mov ecx, esp
push 0x5f8398
call fcn.00408810
push 0
push 0x13
mov ecx, esi
call fcn.0056f610
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x56e0ed
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x24]
mov edi, 0x100
mov ecx, 0x800100
lea edx, [eax + 0x140]
cmp dword [eax + 0x15c], 1
cmove edi, ecx
cmp dword [edx + 0x14], 8
jb 0x56e112
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x56e120
mov eax, dword [eax]
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x56e131
mov ecx, dword [ecx]
push edi
push 0
push edx
push 0
push eax
push ecx
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xb0], eax
test eax, eax
jne 0x56e17a
call fcn.0055e7e0
push str.createRequest_:_failed_to_open_the_request_handle
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0056ecf0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x56e190
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x20], 0
je 0x56e32b
cmp byte [esi + 0x28], 0
je 0x56e32b
lea eax, [ebp - 8]
mov dword [ebx], 0
push eax
push dword [esi + 0xb0]
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x56e222
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
mov ecx, esi
call fcn.0056ecf0
call fcn.0055e7e0
mov esi, eax
mov edi, dword [esi]
call ebx
push eax
push str.Error__d_in_WinHttpQueryDataAvailable._n
push 0x5f8398
push esi
call dword [edi + 0x24]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
cmova ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x56e249
lea eax, [ecx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x10], 0
je 0x56e2b0
push 0x6551a8
push ecx
call fcn.00576988
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x56e2ad
call fcn.0055e7e0
push dword [ebp - 8]
push str.failed_to_allote_mmeory_of_size__d
mov ecx, dword [eax]
push 0x5f8398
push eax
call dword [ecx + 0x24]
sub esp, 8
mov ecx, esp
push 0x5f8398
call fcn.00408810
push 0
push 0x14
mov ecx, esi
call fcn.0056f610
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 8]
push ecx
push 0
push dword [edi]
call fcn.0058fee0
add esp, 0xc
push ebx
push dword [ebp - 8]
push dword [edi]
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x56e30e
call fcn.0055e7e0
push str.Error__u_in_WinHttpReadData._n
push 0x5f8398
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0056ecf0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 8]
neg eax
sbb eax, eax
add eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
call fcn.0055e7e0
push str.downloader_is_not_initialized
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
xor eax, eax
mov ecx, esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x5f8398
mov word [ecx], ax
call fcn.00408a10
push 0
push 0x13
mov ecx, esi
call fcn.0056f610
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057608a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56e7f0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 0xc], eax
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x24
jne 0x56e83e
cmp eax, 0x2f76
je 0x56e84b
cmp eax, 0x7a
je 0x56e860
push eax
mov ecx, edi
call fcn.0056ecf0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
test eax, eax
jne 0x56e894
call fcn.0055e7e0
push str.retrieveHeaderFromHttpRequest:_Zero_buffer_required....
push 0x5f8398
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push 0x6551a8
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00576988
mov esi, eax
add esp, 8
test esi, esi
jne 0x56e8fd
call fcn.0055e7e0
push str.failed_to_allocate_memory
push 0x5f8398
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
sub esp, 0xc
mov ecx, esp
push str.Memory_Allocation_Failed
call fcn.00408810
push esi
push 0x14
mov ecx, edi
call fcn.0056f610
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [ebp - 8]
push eax
push esi
push 0
push ebx
push dword [edi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x56e943
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0056ecf0
push esi
call fcn.00576339
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057608a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
push esi
call fcn.004089c0
push esi
call fcn.00576339
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0057608a
mov esp, ebp
pop ebp
ret 8
Function at 0x56ea50
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x64a070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push eax
push 0
push 0
push 0x16
push dword [edi]
mov dword [ebp - 8], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x56eae4
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057653d
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
push 0
push 0x16
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x56ead6
call fcn.0055e7e0
push esi
push str.Header_contents:__n_s
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
add esp, 0xc
test esi, esi
je 0x56eae3
push esi
call fcn.00576339
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0057608a
mov esp, ebp
pop ebp
ret
Function at 0x5799e5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5b356f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b3232

Function at 0x5b357a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b33b3

Function at 0x5b6e4e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b6b0e
Function at 0x40ecd3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40ece2
pop dword [ebp - 0x18]
mov eax, 0xa50d5f2c
sub eax, 0xa4cc724a
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x298ba8e
sub dword [ebp - 0x28], 0xb4467543
mov dword [ebp - 0x24], 0xb105c77f
sub dword [ebp - 0x24], 0x7ed27b3a
mov dword [ebp - 0x20], 0xa2586cba
sub dword [ebp - 0x20], 0x560c288c
mov dword [ebp - 0x1c], 0xffddbaee
add dword [ebp - 0x1c], 0x224512
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xb3baac1a
add dword [ebp - 0x28], 0xc0b7bd3c
mov dword [ebp - 0x24], 0x6a9e7e38
add dword [ebp - 0x24], 0xd6cde33d
mov dword [ebp - 0x20], 0xc4ba0a32
sub dword [ebp - 0x20], 0x614a9dc6
mov dword [ebp - 0x1c], 0xa1f4b0d4
sub dword [ebp - 0x1c], 0xa1f4b0d4
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x40ab2
push 0
call eax
mov ecx, 0xdf9fb98c
add ecx, 0x20609c8e
xor ebx, ebx
add ebx, eax
mov edx, 0x46c800
add edx, dword [ebp - 0x18]
mov edi, 0x2185fd9f
sub edi, 0xc964f2c7
xor dword [ebp - 8], edx
mov esi, dword [edx]
xor dword [ebp - 0x10], 0x51b6e50
xor esi, edi
add dword [ebp - 0x10], ebx
mov dword [ebx], esi
add ebx, 0x7f18a455
sub ebx, 0x7f18a451
add edx, 0x24c413cd
sub edx, 0x24c413c9
loop 0x40edf6
add eax, 0x8e32e12
sub eax, 0x8e1e2d7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x96dafc6a
sub ecx, 0x969afc6a
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40ee20
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x40f468
call fcn.0040f1a8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x410c20
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40ec48
cmp eax, esi
jne 0x40ec3b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40ec4b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ec1f
xor esi, esi
inc esi
cmp dword [0x410c24], esi
jne 0x40ec5d
push 0x1f
call fcn.004a0000
pop ecx
jmp 0x40ec97
cmp dword [0x410c24], ebx
jne 0x40ec91
mov dword [0x410c24], esi
push 0x4011c4
push 0x4011b8
call fcn.0040ed7c
pop ecx
pop ecx
test eax, eax
je 0x40ec97
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40ed6c
mov dword [0x41004c], esi
cmp dword [0x410c24], esi
jne 0x40ecba
push 0x4011b4
push 0x4011ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x410c24], 2
test edi, edi
jne 0x40ecc7
xor eax, eax
mov ecx, 0x410c20
xchg dword [ecx], eax
cmp dword [0x410c28], 0
je 0x40ecf3
push 0x410c28
call fcn.0040f000
pop ecx
test eax, eax
je 0x40ecf3
push ebx
push 2
push ebx
mov esi, dword [0x410c28]
mov ecx, esi
call dword [0x41116c]
call esi
push dword [0x410058]
push dword [0x410054]
push dword [0x410050]
call fcn.0040a3af
add esp, 0xc
mov dword [0x410048], eax
cmp dword [0x410060], 0
jne 0x40ed51
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 [0x41004c], 0
jne 0x40ed65
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x410048]
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.0040f0f5
jmp 0x40ec03

Function at 0x40eec4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40f488
call fcn.0040f1a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ef24
cmp eax, 0xffffffff
je 0x40ef24
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40ef1d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40ef1d
cmp edx, 0x10000000
jae 0x40ef1d
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 0x40ef1a
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 0x40ef90
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 0x40efce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40efc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40efd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40efb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4205b2
Capabilities:
Read file on windows

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

Function at 0x4205bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004203e3

Function at 0x4209b7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040da40
mov eax, dword [0x47f000]
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.0041e183
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4209f9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420b55
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429450
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 + 0x481a50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421756
mov ecx, dword [esi*4 + 0x481a50]
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 0x420b4e
cmp eax, dword [edi + ecx + 0x24]
jne 0x420b4e
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 0x420b4e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421756
add esp, 0x14
test edx, edx
jl 0x420b4e
jg 0x420ac4
test eax, eax
jb 0x420b4e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420b4e
jl 0x420ade
cmp dword [ebp - 0x1008], eax
ja 0x420b4e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420afc
test ebx, ebx
je 0x420b35
cmp ecx, edi
jae 0x420b35
mov al, byte [ecx]
cmp al, 0xd
jne 0x420b16
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420b22
cmp byte [ecx + 1], 0xa
jne 0x420b22
inc ecx
jmp 0x420b22
movzx eax, al
movsx eax, byte [eax + 0x47f2c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420afc
cmp edx, ebx
jne 0x420afc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420b53
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040ce32
leave
ret
Function at 0x420bf4
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 + 0x481a50]
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 0x420c34
cmp byte [ebx], 0xa
jne 0x420c34
or byte [eax + edi + 0x28], 4
jmp 0x420c39
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420d37
mov al, byte [edx]
cmp al, 0x1a
je 0x420d19
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420c68
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420c8d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420c97
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 0x420c4a
jmp 0x420d37
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 0x420d14
cmp dword [ebp - 0xc], 0
je 0x420d14
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481a50]
test byte [eax + edi + 0x28], 0x48
je 0x420cee
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420cd9
mov byte [esi], dl
jmp 0x420cea
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481a50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420d37
cmp byte [ebp - 1], 0xa
jne 0x420cfd
cmp esi, ebx
jne 0x420cfd
mov byte [esi], 0xa
jmp 0x420d36
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421774
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420d37
mov byte [esi], 0xd
jmp 0x420d36
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481a50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420d33
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420d37
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420d40
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 + 0x481a50]
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 0x420d83
cmp word [esi], dx
jne 0x420d83
or byte [edi + eax + 0x28], 4
jmp 0x420d88
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 0x420edb
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 0x420ebb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420dca
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420e00
cmp eax, edx
jae 0x420e0c
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 0x420da2
jmp 0x420edb
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 0x420eb7
cmp dword [ebp - 0x14], 0
je 0x420eb7
mov eax, dword [ebx*4 + 0x481a50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420e8f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420e58
mov word [esi], cx
jmp 0x420e8b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481a50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481a50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481a50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420edb
pop ebx
cmp word [ebp - 4], bx
jne 0x420ea0
cmp esi, dword [ebp + 0xc]
jne 0x420ea0
mov word [esi], bx
jmp 0x420ed8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421774
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420edb
push 0xd
jmp 0x420ed4
mov ecx, dword [ebx*4 + 0x481a50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420ed2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420edb
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 0x421e0d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47f000]
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 0x421e58
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00421fac
test al, al
jne 0x421e52
sub edx, 2
cmp edx, edi
jne 0x421e38
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x421e7a
lea eax, [edi + 2]
cmp edx, eax
je 0x421e7a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00421d59
add esp, 0x10
jmp 0x421f74
push esi
lea ecx, [ebp - 0x255]
call fcn.00421fac
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 0x421ebd
push dword [ebp - 0x25c]
jmp 0x421e6a
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 0x421efa
cmp word [ebp - 0x226], 0
je 0x421f1b
cmp word [ebp - 0x226], ax
jne 0x421efa
cmp word [ebp - 0x224], 0
je 0x421f1b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00421d59
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x421f67
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x421ed4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x421f4f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x421f74
push 0x421b89
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00427780
add esp, 0x10
jmp 0x421f44
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.0040ce32
leave
ret

Function at 0x429250
Capabilities:
Parse pe header

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