joyce8/EMBER2024-capa huggingface dataset:
Function at 0x90c4770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90d4bd2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb20
mov eax, dword [0x91154f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x18]
push eax
mov dword [ebp - 0xb2c], eax
call fcn.0902c632
add esp, 4
lea ecx, [ebp - 0xb24]
push eax
call fcn.0902c632
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
push dword [ebp - 0xb24]
mov dword [ebp - 4], 0
push esi
call fcn.09009307
add esp, 0x3c
lea ecx, [ebp - 0xb20]
push eax
call fcn.0902c632
mov byte [ebp - 4], 1
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
mov byte [ebp + eax - 0x118], al
inc eax
cmp eax, 0x100
jb 0x90c4820
mov ecx, dword [ebp - 0xb20]
lea eax, [ebp - 0x918]
push 0
push 0x5058595a
push 0x67386b30
push 0x100
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0902c632
movzx ecx, word [ebp - 0x11c]
movzx edi, word [ebp - 0x914]
mov dword [ebp - 0xb28], ecx
cmp ecx, edi
jbe 0x90c499a
mov edx, ecx
sub edx, edi
xor esi, esi
mov dword [ebp - 0xb1c], edx
movzx eax, word [ebp + esi*8 - 0x914]
cmp eax, edi
ja 0x90c4891
xor eax, eax
jmp 0x90c48be
cmp eax, ecx
jb 0x90c489c
mov eax, 0x8000
jmp 0x90c48be
sub eax, edi
mov ecx, edx
shl eax, 0xf
xor edx, edx
shr ecx, 1
add eax, ecx
mov ecx, dword [ebp - 0xb28]
div dword [ebp - 0xb1c]
mov edx, dword [ebp - 0xb1c]
movzx eax, ax
mov word [ebp + esi*2 - 0xb18], ax
inc esi
cmp esi, 0x100
jb 0x90c4881
lea ecx, [ebp - 0xb20]
mov byte [ebp - 4], 0
call fcn.090198a7
lea ecx, [ebp - 0xb24]
mov dword [ebp - 4], 0xffffffff
call fcn.0901e58a
mov esi, dword [ebp - 0xb2c]
lea eax, [esi + 8]
push eax
push 0x280
mov dword [ebp - 0xb2c], eax
call fcn.0902c632
add esp, 8
mov dword [ebp - 0xb28], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x90c492a
push esi
mov ecx, eax
call fcn.0902c632
mov edx, eax
jmp 0x90c492c
xor edx, edx
movsd xmm1, qword [ebx + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebx + 0xc]
mulsd xmm1, qword [0x90e7a70]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
comisd xmm0, xmm1
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], eax
jbe 0x90c495a
subsd xmm1, qword [0x90dd3d8]
jmp 0x90c4962
addsd xmm1, qword [0x90dd3d8]
cvttsd2si eax, xmm1
lea edi, [edx + 0x7a]
mov ecx, 0x80
lea esi, [ebp - 0xb18]
rep movsd dword es:[edi], dword [esi]
mov word [edx + 0x78], ax
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09002290
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x6250726f
call fcn.0902c632
int3
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xe0c784
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe0c78e
pushal
call 0xe0c794
pop ebp
sub ebp, 0x10
sub ebp, 0xa0c784
jmp 0xe0c7aa
mov eax, 0xa0c784
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0x1ff5dba7
xor byte [eax], dl
inc eax
dec ecx
jne 0xe0c7c1
jmp 0xe0c7d4
sub al, 0x6a
sub al, 0x2e
wait
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
pop di
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
movsb byte es:[edi], byte [esi]
push 0x1f
mov dword [0x1da7a7a7], eax
invalid
Function at 0x42bc47
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.0042bbfb
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x4a0e88
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x49dabc]
jmp 0x42bc78
cmp dword [esi + 0xc], edi
je 0x42bc7e
mov esi, dword [esi]
test esi, esi
jne 0x42bc71
jmp 0x42bc96
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x49dabc
call fcn.00461e4d
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x42bca3
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x42bd3b
push edi
push 0x4a0e88
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x49dabc]
test edi, edi
je 0x42bd0f
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42bd08
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x49dabc
call fcn.00461e4d
pop ecx
pop ecx
jmp 0x42bd0a
mov edi, dword [edi]
test edi, edi
jne 0x42bcdf
pop ebx
mov eax, dword [0x49acac]
mov esi, eax
inc eax
push 0x10
push 0x49dabc
mov dword [0x49acac], eax
call fcn.00461e8d
pop ecx
pop ecx
push 0x4a0e88
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x42f114
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42f187
push ebx
push dword [ebp + 8]
push dword [0x4a0eac]
call fcn.004616be
mov ebx, eax
test ebx, ebx
je 0x42f186
cmp dword [ebp + 0x10], 0x19
jne 0x42f147
push esi
call fcn.00485980
jmp 0x42f153
cmp dword [ebp + 0x10], 2
jne 0x42f155
push esi
call fcn.00485a80
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 0x19
jne 0x42f17a
push esi
call fcn.00485970
jmp 0x42f186
cmp dword [ebp + 0x10], 2
jne 0x42f186
push esi
call fcn.00485a70
pop ebx
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42f60c
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x42f661
push dword [esp + 0x10]
push 0x42f58b
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x49dbd4]
test esi, esi
je 0x42f6ba
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x42f659
cmp byte [esi + 0x10], 0
je 0x42f659
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x42f635
jmp 0x42f6ba
mov esi, dword [0x49dbd4]
test esi, esi
je 0x42f6ba
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x42f6b3
cmp byte [esi + 0x11], 0
je 0x42f68f
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x42f6a6
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x49dbd4
call fcn.00461e4d
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x42f66e
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x42f7a7
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x49dbe4], 0
jne 0x42f7d3
push 0x42f6f6
push 0x10
push 0x2c
mov dword [0x49dbe4], edi
call fcn.00461791
mov dword [0x49dbe0], eax
cmp word [0x49dbd8], 0
jne 0x42f86f
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x42f7fe
mov word [0x49dbd8], di
jmp 0x42f806
xor eax, eax
mov word [0x49dbd8], ax
push 0x489054
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x49dbf4], eax
test eax, eax
je 0x42f86f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x49dbf4]
mov dword [0x49dbe8], eax
call esi
push str.getnameinfo
push dword [0x49dbf4]
mov dword [0x49dbec], eax
call esi
cmp dword [0x49dbe8], 0
mov dword [0x49dbf0], eax
pop esi
je 0x42f86f
cmp dword [0x49dbec], 0
je 0x42f86f
test eax, eax
je 0x42f86f
mov dword [0x49dbdc], edi
movsx eax, word [0x49dbd8]
pop edi
add esp, 0x190
ret
Function at 0x430715
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
cmp dword [0x49dc14], ebp
jne 0x430739
push fcn.00430823
push 0x10
push 0x148
call fcn.00461791
mov dword [0x49dc14], eax
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x430746
mov esi, 0x489028
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x430753
cmp byte [edi], 0
jne 0x430758
mov edi, 0x489090
push esi
call sub.MSVCRT.dll_strlen
mov ebx, eax
push edi
mov dword [esp + 0x20], ebx
call sub.MSVCRT.dll_strlen
pop ecx
pop ecx
add ebx, 2
add eax, ebx
push eax
push 0
push dword [0x49d758]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x43081a
push esi
push ebx
call sub.MSVCRT.dll_strcpy
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
test eax, eax
je 0x4307af
cmp byte [eax + esi - 1], 0x5c
je 0x4307af
push 0x489094
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push edi
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [esp + 0x14]
push dword [0x49dc14]
call fcn.004616fd
mov esi, eax
lea eax, [esi + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4307e0
and dword [esi + 4], ebp
jmp 0x4307f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4307f6
mov dword [esi + 4], 1
mov ebp, esi
jmp 0x43080b
cmp dword [esp + 0x14], 0xffffffff
jne 0x430809
push esi
push dword [0x49dc14]
call fcn.0046166f
and dword [esi], ebp
push ebx
push 0
push dword [0x49d758]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0xc

Function at 0x430a60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x430a9c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x430ae0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4a0ec8]
call fcn.004616be
mov esi, eax
test esi, esi
je 0x430b5f
cmp dword [esi + 4], 0
je 0x430b30
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00431280
test eax, eax
je 0x430b24
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430b6a
cmp dword [esp + 8], 0
je 0x430b6a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x430ff0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x43115b
cmp byte [esi], 0
je 0x43115b
mov eax, dword [esp + 0x14]
cmp eax, 0x19
jne 0x431078
lea eax, [esp + 0x10]
push eax
push esi
push 0
call fcn.00431850
mov esi, eax
test esi, esi
je 0x43106f
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 4], 0
je 0x431049
mov eax, dword [esp + 0x10]
add eax, eax
push eax
push esi
push ecx
call fcn.004318c0
mov dword [esp + 4], eax
jmp 0x431060
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
add eax, eax
push eax
push esi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x49d758]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
mov ecx, esi
push edi
cmp eax, 2
jne 0x43110d
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431087
sub ecx, edx
mov dword [esp + 0x14], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [0x49d758]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x431103
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00462730
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
je 0x4310e0
push dword [esp + 0x18]
push edi
push eax
call fcn.004318c0
mov dword [esp + 8], eax
jmp 0x4310f4
push 0
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x20]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x49d758]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x10]
lea edi, [ecx + 1]
cmp dword [edx + 4], 0
je 0x431137
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431120
sub ecx, edi
push ecx
push esi
push edx
call fcn.004318c0
pop edi
pop esi
pop ecx
ret 0xc
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431137
push 0
lea eax, [esp + 0xc]
sub ecx, edi
push eax
push ecx
push esi
push dword [edx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x431170
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x4a0ec8]
call fcn.004616be
test eax, eax
je 0x43118c
mov dword [esp + 4], eax
jmp fcn.00430ff0
xor eax, eax
ret 0xc
Function at 0x431280
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x4312a1
push esi
call fcn.00430a60
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x431315
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x431302
dec ecx
je 0x4312ed
sub ecx, 2
je 0x4312da
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x43135a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x43137b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4313a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x49d758]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x43154d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x4313f4
test ebp, ebp
je 0x4314ad
dec ebp
cmp dword [ebx + 4], 0
je 0x43140d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00431280
mov dword [esp + 0x14], eax
jmp 0x431427
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x4314ad
test ax, ax
je 0x431441
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x431488
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x49d758]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x4314ad
cmp dword [esp + 0x30], 0
jne 0x4313e6
cmp ax, 0xd
je 0x4314b4
cmp ax, 0xa
jne 0x4313e6
sub edi, 2
jmp 0x43152c
cmp dword [esp + 0x30], 0
jne 0x43152c
cmp ax, 0xa
jne 0x4314bf
sub edi, 2
jmp 0x43152c
cmp ax, 0xd
jne 0x43152c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x4314e1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00431280
mov dword [esp + 0x14], eax
jmp 0x4314f7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x43152c
cmp dword [ebx + 4], 0
je 0x43150b
add dword [ebx + 0xc], 2
jmp 0x43152c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x431560
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x49d758]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4316b0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x4315ac
test edi, edi
je 0x43161d
dec edi
push esi
push ebp
call fcn.004319c0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4315bf
xor cl, cl
jmp 0x4315c1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x431604
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x49d758]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x43161d
test eax, eax
jne 0x4315a2
cmp cl, 0xd
je 0x431621
cmp cl, 0xa
jne 0x4315a2
dec esi
jmp 0x431693
test eax, eax
jne 0x431693
cmp cl, 0xa
jne 0x431629
dec esi
jmp 0x431693
cmp cl, 0xd
jne 0x431693
dec esi
cmp dword [ebp + 4], 0
je 0x431648
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00431280
mov dword [esp + 0x20], eax
jmp 0x43165f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x431693
cmp dword [ebp + 4], 0
je 0x431671
inc dword [ebp + 0xc]
jmp 0x431693
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x4316c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x49d758]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x431844
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x43170e
test ebp, ebp
je 0x4317b0
dec ebp
cmp dword [ebx + 4], 0
je 0x431727
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00431280
mov dword [esp + 0x14], eax
jmp 0x431741
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x4317b0
test cl, cl
je 0x431755
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x431790
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x49d758]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x4317b0
cmp dword [esp + 0x2c], 0
jne 0x431700
cmp cl, 0xd
je 0x4317b7
cmp cl, 0xa
jne 0x431700
dec esi
jmp 0x431827
cmp dword [esp + 0x2c], 0
jne 0x431827
cmp cl, 0xa
jne 0x4317bf
dec esi
jmp 0x431827
cmp cl, 0xd
jne 0x431827
dec esi
cmp dword [ebx + 4], 0
je 0x4317de
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00431280
mov dword [esp + 0x14], eax
jmp 0x4317f4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x431827
cmp dword [ebx + 4], 0
je 0x431806
inc dword [ebx + 0xc]
jmp 0x431827
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10