joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x43fc48
push 0xa
push 0x40b044
mov eax, dword [0x43fc38]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40afd4
call fcn.004159a0
push ebx
mov eax, dword [0x43fc38]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40afeb
call fcn.004159a0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40affd
call fcn.004159a0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x43fc4c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x43fc50], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x43fc54], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x43fc58], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x43fc5c], ecx
add edx, dword [eax + 0x14]
mov dword [0x43fc60], edx
pop esi
pop ebx
ret

Function at 0x40e75c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40e805
test eax, edx
je 0x40e808
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40e785
push edx
mov edx, eax
mov eax, esp
call fcn.00406e64
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40e79b
push eax
lea eax, [esp + 8]
call fcn.00406e64
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40e7aa
movzx eax, word [eax]
sub eax, ecx
jmp 0x40e7d1
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40e7eb
add ecx, 4
js 0x40e7c2
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40e7e8
push eax
mov eax, ecx
mov edx, 2
call fcn.004063a4
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40e7cf
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40e7d1
xor eax, eax
ret
test eax, eax
je 0x40e818
test edx, edx
jne 0x40e76c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x412d5c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412d95
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406d9c
jmp 0x412d9e
mov eax, ebx
mov edx, esi
call fcn.00406c60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412da8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x412dca
movzx eax, word [esp]
jmp 0x412dcc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41355c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x413681
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041336c
mov esi, eax
mov eax, dword [0x43c178]
cmp byte [eax], 0
je 0x413629
mov eax, dword [0x43c030]
call fcn.00404960
call fcn.004042f8
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x413534]
call fcn.00408440
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41369c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x413665
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x43c000]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43fc38]
call fcn.00408504
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413688
lea eax, [ebp - 4]
mov edx, dword [0x413534]
call fcn.0040844c
ret

Function at 0x415848
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004066b4
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x4157f2
mov eax, edi
add eax, eax
call fcn.004041b0
mov esi, eax
jmp 0x4157f4
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41582d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x415817
mov eax, esp
cmp esi, eax
je 0x41583a
mov eax, esi
call fcn.004041cc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415874
cmp bl, 0
je 0x415870
cmp bl, 0x41
jl 0x41586b
cmp bl, 0x5a
jg 0x41586b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41584f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4157b4
Function at 0x402b71
Capabilities:
Reference wmi statements

Disassembly:
call fcn.0041a950
push dword [esp + 4]
call fcn.0041a8d0
call fcn.0041a770
push eax
call fcn.0041a770
push eax
push 1
push 0x4200b2
call fcn.00408148
lea eax, [0x11de6f0]
push eax
call fcn.0041a7b0
mov edx, dword [0x11de6f0]
call fcn.0041a770
push eax
call fcn.0041a840
pop eax
push eax
call fcn.0041a8a0
pop edx
add eax, edx
jmp 0x402bcd
ret

Function at 0x403d8e
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041a950
push dword [esp + 0x28]
call fcn.0041a8d0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00408000
mov edx, 0x420020
lea ecx, [esp + 4]
call fcn.00408008
call fcn.0040bfe0
push 0x18
push dword [esp + 4]
call fcn.0040a460
push eax
call fcn.00419930
mov dword [esp + 0xc], eax
push 0x18
push dword [esp + 0x10]
call fcn.00419c80
push eax
push dword [esp + 8]
push dword [esp + 0x18]
call fcn.00419b40
push dword [esp + 0xc]
call sub.WSOCK32.DLL_gethostbyname
mov dword [esp + 8], eax
push dword [esp + 0xc]
call fcn.004199b0
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x403e38
mov edx, 0x420220
call fcn.0041a770
push eax
call fcn.0041a840
pop eax
push eax
call fcn.0041a8a0
pop edx
add eax, edx
jmp 0x403ed3
mov ebp, dword [esp + 8]
movsx ebx, word [ebp + 0xa]
cmp ebx, 4
jne 0x403e4f
mov dword [esp + 0x10], 0
jmp 0x403e57
mov dword [esp + 0x10], 0x10000000
mov ebp, dword [esp + 8]
push dword [ebp + 0xc]
pop eax
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
call fcn.00419ca0
mov ebx, eax
and ebx, ebx
je 0x403eae
call fcn.0041a770
push eax
call fcn.0041a770
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00419ca0
push eax
call fcn.00419ca0
push eax
call fcn.0040c68f
lea eax, [esp + 8]
push eax
call fcn.0041a7b0
mov ebx, dword [esp + 0x14]
add ebx, 4
mov dword [esp + 0x14], ebx
jmp 0x403e63
mov edx, dword [esp + 4]
call fcn.0041a770
push eax
call fcn.0041a840
pop eax
push eax
call fcn.0041a8a0
pop edx
add eax, edx
jmp 0x403ed3
push dword [esp + 4]
call fcn.0041aa20
push dword [esp]
call fcn.0041aa20
add esp, 0x18
pop ebx
pop ebp
ret 4

Function at 0x404f69
Capabilities:
Reference wmi statements

Disassembly:
call fcn.0041a950
push dword [esp + 4]
call fcn.0041a8d0
call fcn.0041a770
push eax
call fcn.0041a770
push eax
push 1
push 0x42158a
call fcn.00408148
lea eax, [0x11de714]
push eax
call fcn.0041a7b0
mov edx, dword [0x11de714]
call fcn.0041a770
push eax
call fcn.0041a840
pop eax
push eax
call fcn.0041a8a0
pop edx
add eax, edx
jmp 0x404fc5
ret

Function at 0x405760
Capabilities:
Reference wmi statements

Disassembly:
call fcn.0041a950
push dword [esp + 4]
call fcn.0041a8d0
call fcn.0041a770
push eax
call fcn.0041a770
push eax
push 1
push 0x420054
call fcn.00408148
lea eax, [0x11de688]
push eax
call fcn.0041a7b0
mov edx, dword [0x11de688]
call fcn.0041a770
push eax
call fcn.0041a840
pop eax
push eax
call fcn.0041a8a0
pop edx
add eax, edx
jmp 0x4057bc
ret
Function at 0x4057bd
Capabilities:
Reference wmi statements

Disassembly:
call fcn.0041a950
push dword [esp + 4]
call fcn.0041a8d0
call fcn.0041a770
push eax
call fcn.0041a770
push eax
push 1
push 0x421736
call fcn.00408148
lea eax, [0x11de688]
push eax
call fcn.0041a7b0
mov edx, dword [0x11de688]
call fcn.0041a770
push eax
call fcn.0041a840
pop eax
push eax
call fcn.0041a8a0
pop edx
add eax, edx
jmp 0x405819
ret

Function at 0x405c6f
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0xc]
lea ecx, [esp]
call fcn.00408000
push dword [esp + 0x10]
push dword [esp + 8]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0x18]
call sub.SHELL32.DLL_ShellExecuteW
xor eax, eax
push dword [esp]
call fcn.0041aa20
add esp, 8
ret 8
Function at 0x40afa9
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x40aff8
push dword [esp + 0x10]
push 0x40af27
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x11df020]
cmp esi, ebx
je 0x40b04c
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40aff0
cmp byte [esi + 0x10], bl
je 0x40aff0
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x40afcd
jmp 0x40b04c
mov esi, dword [0x11df020]
cmp esi, ebx
je 0x40b04c
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40b045
cmp byte [esi + 0x11], bl
je 0x40b022
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x40b038
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x11df020
call fcn.0041a6a8
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x40b003
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40bfe0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push ebx
xor ebx, ebx
inc ebx
cmp dword [0x11df04c], 0
jne 0x40c00c
push 0x40bf38
push 0x10
push 0x2c
mov dword [0x11df04c], ebx
call fcn.0041a4d9
mov dword [0x11df034], eax
cmp word [0x11df048], 0
jne 0x40c0a3
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x40c032
mov eax, ebx
jmp 0x40c034
xor eax, eax
push str.ws2_32.dll
mov word [0x11df048], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x11df030], eax
test eax, eax
je 0x40c0a3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x11df030]
mov dword [0x11df03c], eax
call esi
push str.getnameinfo
push dword [0x11df030]
mov dword [0x11df040], eax
call esi
cmp dword [0x11df03c], 0
mov dword [0x11df044], eax
pop esi
je 0x40c0a3
cmp dword [0x11df040], 0
je 0x40c0a3
test eax, eax
je 0x40c0a3
mov dword [0x11df038], ebx
movsx eax, word [0x11df048]
pop ebx
add esp, 0x190
ret
Function at 0x40c4ef
Capabilities:
Get socket status
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
inc eax
xor edi, edi
xor ebx, ebx
cmp dword [esi], eax
jne 0x40c572
mov esi, dword [esi + 8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
lea eax, [ebp - 0x120]
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WSOCK32.DLL_select]
cmp eax, edi
jl 0x40c569
je 0x40c56e
lea eax, [ebp - 0x120]
push eax
push esi
call sub.WSOCK32.DLL___WSAFDIsSet
test eax, eax
je 0x40c56e
lea eax, [ebp + 8]
push eax
push 0x4004667f
push esi
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x40c569
cmp dword [ebp + 8], edi
je 0x40c569
push 2
jmp 0x40c56b
push 4
pop ebx
jmp 0x40c5cc
xor ebx, ebx
jmp 0x40c5cc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push 0x800
lea eax, [ebp - 0x920]
push eax
push dword [esi + 0x10]
mov dword [ebp - 4], 0x10
call dword [sym.imp.WSOCK32.DLL_recvfrom]
mov dword [ebp + 8], eax
cmp eax, edi
jle 0x40c5cc
push 2
pop ebx
push eax
push edi
push dword [0x11de664]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
push ecx
mov dword [esi + 0x18], ecx
lea ecx, [ebp - 0x920]
push ecx
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x40c5d5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], 1
jne 0x40c5f8
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov edi, eax
jmp 0x40c639
cmp dword [esi + 0x14], edi
je 0x40c639
mov eax, dword [esi + 0x18]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jle 0x40c609
mov edi, eax
push edi
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x18], edi
mov eax, dword [esi + 0x18]
add dword [esi + 0x1c], edi
add esp, 0xc
test eax, eax
jne 0x40c639
push dword [esi + 0x14]
push eax
push dword [0x11de664]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi + 0x14], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40ca85
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x40caa7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x40cae6
push 2
pop eax
mov word [ebp - 0x10], ax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40cace
mov eax, dword [eax]
jmp 0x40cad1
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
leave
ret 0xc

Function at 0x411a7a
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x411af6
push 9
call esi
test bl, al
je 0x411af6
push 0x11
call esi
test bl, al
jne 0x411af6
push 0x10
call esi
test bl, al
jne 0x411af6
push 0x12
call esi
test bl, al
jne 0x411af6
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x411af6
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x411af6
xor eax, eax
jmp 0x411b78
push ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x411b1f
push 0x11
call esi
test bl, al
jne 0x411b17
push 0x10
call esi
test bl, al
jne 0x411b17
push 0x12
call esi
test bl, al
je 0x411b1f
push 1
push ebp
call fcn.00411a33
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test edi, edi
je 0x411b35
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x411b75
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x411b75
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x411b75
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x411b75
dec esi
push esi
push dword [0x11df83c]
call fcn.0041a449
test eax, eax
je 0x411b75
mov eax, dword [eax + 8]
jmp 0x411b77
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x411d59
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x411d82
test byte [esp + 8], 2
je 0x411d76
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x411d84
xor eax, eax
ret 8
Function at 0x412590
Capabilities:
Write file on windows

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

Function at 0x412a40
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x412a99
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x412a98
mov eax, dword [esp + 0x10]
mov ecx, dword [0x11df854]
push eax
push ecx
call fcn.0041a449
test eax, eax
je 0x412a94
cmp dword [eax + 4], 0
je 0x412a82
push esi
push edi
push eax
call fcn.00412e60
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x412b00
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x11df854]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0041a449
test eax, eax
je 0x412b52
cmp dword [eax + 4], 0
je 0x412b38
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.00412f60
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push 0
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 0xc
Function at 0x412e60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x412e95
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x412f0a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x412ef7
dec ecx
je 0x412ee2
sub ecx, 2
je 0x412ecf
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00412590
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x412f37
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x412f60
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x412f81
push esi
call fcn.00412590
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x412ff6
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x412fe3
dec ecx
je 0x412fce
sub ecx, 2
je 0x412fbb
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
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 0x41303f
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
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 0x413062
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x4167c0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x5c], ecx
ret

Function at 0x416a70
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret