joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00431219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x10001918
Capabilities:
Connect socket

Disassembly:
push ecx
mov eax, dword [edi + 0x18]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x10001934
call fcn.10030355
mov esi, dword [edi + 0x18]
call fcn.100302f5
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x10001947
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x1c], 0xffffffff
mov ecx, dword [edi + 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004105
mov ecx, dword [edi + 0x30]
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004105
add esp, 0x14
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x13f0], ebx
mov dword [edi + 0x13ec], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x3e0], ebx
mov dword [edi + 0x3e4], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x1c], eax
je 0x10001a04
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x10001a04
mov eax, dword [edi + 0x40]
push str.http:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100019c8
mov eax, dword [edi + 0x24]
jmp 0x10001a09
push dword [edi + 0x14]
call fcn.100302ae
cmp eax, ebx
pop ecx
mov dword [edi + 0x18], eax
je 0x10001a04
mov ecx, dword [edi + 0x1c]
lea edx, [eax + 0xf8]
lea esi, [eax + 0xfc]
mov dword [edx], ecx
mov dword [esi], ecx
mov dword [eax + 0x110], edx
mov dword [eax + 0x114], esi
mov eax, dword [edi + 0x18]
call fcn.100305ce
cmp eax, 1
je 0x100019c3
mov dword [edi + 0x24], ebx
xor eax, eax
pop esi
pop ebx
pop ecx
ret

Function at 0x10001a0d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edi + 0x24], 0
push esi
jne 0x10001a1e
xor eax, eax
jmp 0x10001a95
mov eax, dword [ebx + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x10001a92
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
mov eax, 0x1000
cmp ecx, eax
jl 0x10001a3d
mov ecx, eax
mov eax, dword [ebx]
mov esi, dword [edi + 0x18]
add eax, dword [ebp - 4]
test esi, esi
je 0x10001a5b
push ecx
push eax
call fcn.100334a7
test eax, eax
pop ecx
pop ecx
jge 0x10001a68
or esi, 0xffffffff
jmp 0x10001a6a
push 0
push ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x10001a98
mov eax, dword [edi + 0x3e8]
test eax, eax
je 0x10001a87
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001a98
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x10001a2c
xor eax, eax
inc eax
pop esi
leave
ret
and dword [edi + 0x24], 0
jmp 0x10001a1a
Function at 0x10001aa1
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ecx
cmp dword [esi + 0x24], 0
push ebx
push ebp
push edi
jne 0x10001ab3
xor eax, eax
jmp 0x10001b8a
mov edi, dword [esi + 0x13f0]
mov eax, edi
cdq
mov ebx, bind
add eax, ebx
adc edx, 0
mov dword [esp + 0x10], edx
mov ebp, 0x1000
js 0x10001b17
jg 0x10001ad7
cmp eax, ebp
jbe 0x10001b17
mov ecx, dword [esi + 0x13ec]
test ecx, ecx
je 0x10001b17
cmp edi, ebp
je 0x10001aee
mov eax, edi
sub eax, ecx
cmp eax, 0x10
jg 0x10001b17
mov eax, edi
sub eax, ecx
push eax
mov dword [esi + 0x13f0], eax
lea eax, [ecx + esi + 0x3ec]
push eax
lea eax, [esi + 0x3ec]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
and dword [esi + 0x13ec], 0
mov eax, dword [esi + 0x13f0]
mov ecx, ebp
sub ecx, eax
cmp ecx, ebx
jle 0x10001b27
mov ecx, ebx
mov edx, dword [esi + 0x18]
xor ebx, ebx
cmp edx, ebx
lea eax, [eax + esi + 0x3ec]
je 0x10001b44
push ecx
push eax
push edx
call fcn.1003032e
add esp, 0xc
jmp 0x10001b50
push ebx
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jge 0x10001b5e
mov dword [esi + 0x24], ebx
jmp 0x10001aac
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x10001b76
push ebx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001b56
add dword [esi + 0x13f0], edi
cmp edi, ebx
jne 0x10001b87
mov dword [esi + 0x28], 1
mov eax, dword [esi + 0x24]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10002a9e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ecx, edi
and ecx, 0xff00
mov edx, edi
shl edx, 0x10
or ecx, edx
shl ecx, 8
movzx edx, di
or ecx, edx
xor ecx, 0xb11924e1
movsx esi, cl
mov edx, ecx
shr edx, 8
movsx edx, dl
mov ebx, esi
mov ebp, dword [esp + 0x14]
shl ebx, 5
add ebx, esi
add edx, ebx
mov esi, edx
shl esi, 5
add esi, edx
mov edx, ecx
shr edx, 0x10
movsx edx, dl
add esi, edx
shr ecx, 0x18
mov edx, esi
shl edx, 5
add edx, esi
movsx ecx, cl
mov ebx, edi
and ebx, 3
mov eax, 0x96438af7
lea ecx, [ecx + edx + 0x7c5d0f85]
mov dword [esp + 0x14], ebx
je 0x10002b60
mov esi, ebp
jmp 0x10002b19
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x10055378]
mov ebp, ecx
not ebp
shl ebp, 0x15
mov dl, al
add dl, cl
xor dl, byte ds:[esi]
add ebp, 0x2611501
shr ecx, 0xb
or ecx, ebp
mov ebp, eax
shl ebp, 5
add ebp, eax
movzx eax, dl
mov byte ds:[esi], dl
add esi, 1
sub ebx, 1
lea eax, [ebp + eax + 3]
jne 0x10002b19
sub edi, dword [esp + 0x14]
mov ebp, esi
test edi, edi
mov esi, ebp
je 0x10002ba7
jmp 0x10002b6a
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x10055378]
mov ebx, ecx
not ebx
shl ebx, 0x15
lea edx, [eax + ecx]
xor edx, dword ds:[esi]
add ebx, 0x3938731
shr ecx, 0xb
or ecx, ebx
mov ebx, eax
shl ebx, 5
add ebx, edx
mov dword ds:[esi], edx
add esi, 4
sub edi, 4
lea eax, [ebx + eax + 3]
jne 0x10002b6a
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10002bb1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
cmp edi, 0x18
jb 0x10002dbd
and dword [esp + 0x10], eax
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [ecx + edx]
add ecx, 4
cmp ecx, 0x14
jle 0x10002bd0
mov esi, edx
add esi, 0x18
add edi, 0xffffffe8
test eax, eax
jne 0x10002bfb
push esi
mov esi, edi
call fcn.10003f87
mov dword [esp + 0x14], eax
jmp 0x10002d7b
cmp eax, 1
jne 0x10002c1d
push esi
mov esi, edi
call fcn.10003f87
pop ecx
push dword [eax + 4]
mov dword [esp + 0x14], eax
push dword [eax]
call fcn.10002a74
pop ecx
jmp 0x10002d7b
cmp eax, 2
jne 0x10002cc6
push edi
call sub.MSVCRT.dll_malloc
pop ecx
push edi
mov ebx, eax
push esi
push ebx
mov dword [esp + 0x24], ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
push ebx
call fcn.10002a74
push 0
mov edx, edi
mov eax, ebx
lea esi, [esp + 0x34]
call fcn.100011f6
add esp, 0xc
test eax, eax
je 0x10002cae
mov ebx, dword [esp + 0x28]
push ebx
call sub.MSVCRT.dll_malloc
pop ecx
mov dword [esp + 0x14], eax
push eax
mov eax, dword [esp + 0x1c]
mov edx, edi
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.100011f6
test eax, eax
pop ecx
je 0x10002c95
push dword [esp + 0x14]
mov esi, dword [esp + 0x20]
call fcn.10003f87
pop ecx
mov dword [esp + 0x10], eax
test ebx, ebx
mov eax, dword [esp + 0x14]
je 0x10002ca4
mov byte [eax], 0
inc eax
dec ebx
jne 0x10002c9d
push dword [esp + 0x14]
call sub.MSVCRT.dll_free
pop ecx
push edi
push 0
push dword [esp + 0x20]
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [esp + 0x18]
jmp 0x10002d76
cmp eax, 3
jne 0x10002db9
push edi
call sub.MSVCRT.dll_malloc
pop ecx
push edi
mov ebx, eax
push esi
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor ecx, ecx
test edi, edi
jbe 0x10002d00
xor edx, edx
push 0x14
mov eax, ecx
pop esi
div esi
mov eax, dword [ebp + 8]
mov al, byte [edx + eax]
xor byte [ecx + ebx], al
inc ecx
cmp ecx, edi
jb 0x10002ce9
push 0
mov edx, edi
mov eax, ebx
lea esi, [esp + 0x28]
call fcn.100011f6
test eax, eax
pop ecx
je 0x10002d69
mov esi, dword [esp + 0x24]
push esi
call sub.MSVCRT.dll_malloc
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
push eax
mov edx, edi
mov eax, ebx
lea esi, [esp + 0x24]
call fcn.100011f6
test eax, eax
pop ecx
je 0x10002d4c
push dword [esp + 0x18]
mov esi, dword [esp + 0x24]
call fcn.10003f87
pop ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov eax, dword [esp + 0x18]
je 0x10002d5f
mov byte [eax], 0
inc eax
dec ecx
jne 0x10002d58
push dword [esp + 0x18]
call sub.MSVCRT.dll_free
pop ecx
push edi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
call sub.MSVCRT.dll_free
mov esi, dword [esp + 0x14]
test esi, esi
pop ecx
je 0x10002db9
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 4]
cdq
push edx
push eax
mov eax, dword [esi]
call fcn.10003c0e
add esp, 0xc
push 0x14
push dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x10002db9
call fcn.10004019
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002def
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
push str..cached_header
push dword [ebp + 8]
call fcn.10004041
push str..cached_part
push dword [eax]
mov dword [ebp - 0xc], eax
call fcn.10004041
add esp, 0x10
xor edi, edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [eax]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10002e4d
mov esi, dword [ebp - 0xc]
call fcn.10003ff1
mov esi, dword [ebp - 0x10]
call fcn.10003ff1
mov eax, edi
pop edi
pop esi
leave
ret
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x100421f9
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0xe
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], 0x16
mov dword [ebp - 0x3c], 0x14
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], 0xd
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x2c], 0x15
mov dword [ebp - 0x28], 0x1c
mov dword [ebp - 0x24], 0x1d
mov dword [ebp - 0x20], 0x1e
mov dword [ebp - 0x1c], 0x1f
mov dword [ebp - 0x18], 0x20
call fcn.1000405d
add esp, 0x20
mov esi, eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x4c]
mov ecx, dword [ebx + eax*8 + 0x2d8]
cmp dword [ecx + 4], edi
je 0x10002ef5
mov eax, dword [ebx + eax*8 + 0x2d4]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ecx]
push esi
call fcn.10004296
add esp, 0x20
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xe
jb 0x10002ec8
mov eax, dword [ebx + 0x180]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call fcn.10004296
add esp, 0x20
push edi
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push dword [esi]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.10004019
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push 9
push dword [eax]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edi, edi
inc edi
jmp 0x10002e37
Function at 0x10002f51
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push str..cached_header
push dword [ebp + 0xc]
call fcn.10004041
pop ecx
pop ecx
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10002f7d
test al, 0x10
je 0x10002f85
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call fcn.10003d1b
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
call fcn.10003ff1
xor ebx, ebx
cmp edi, ebx
jne 0x10002fa4
xor eax, eax
jmp 0x100030f5
mov esi, dword [ebp + 8]
add esi, 0x2d8
mov dword [ebp - 8], 0x21
mov ecx, dword [esi]
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004105
add esp, 0x14
add esi, 8
dec dword [ebp - 8]
jne 0x10002fb4
mov esi, dword [edi]
mov eax, dword [edi + 4]
add eax, esi
cmp esi, eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], 0xe
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], 0x16
mov dword [ebp - 0x34], 0x14
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], 9
mov dword [ebp - 0x28], 0x15
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], 0x1d
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x18], 0x1f
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 4], eax
je 0x100030ed
jmp 0x1000303c
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + eax*4 - 0x44]
mov eax, dword [ebp + 8]
lea edi, [eax + ebx*8 + 0x2d4]
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100030b5
mov edx, dword [ebp - 4]
sub edx, esi
cmp ecx, edx
jg 0x100030b5
mov eax, dword [eax]
push esi
call fcn.10004935
test eax, eax
pop ecx
je 0x100030b5
mov eax, dword [edi]
add esi, dword [eax + 4]
cmp esi, dword [ebp - 4]
mov edi, esi
jmp 0x10003093
push 0x100424c0
push edi
call fcn.10004914
test eax, eax
pop ecx
pop ecx
jne 0x10003098
inc edi
cmp edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
jne 0x1000307e
mov eax, dword [ebp + 8]
sub edi, esi
push esi
mov esi, dword [eax + ebx*8 + 0x2d8]
call fcn.10004095
mov esi, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 0xc], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xd
jb 0x10003042
cmp dword [ebp - 0xc], 0
jne 0x100030c5
inc esi
cmp esi, dword [ebp - 4]
je 0x100030ea
push 0x100424c0
push esi
call fcn.10004914
test eax, eax
pop ecx
pop ecx
jne 0x100030e1
inc esi
cmp esi, dword [ebp - 4]
jne 0x100030ca
cmp esi, dword [ebp - 4]
jne 0x1000303a
mov edi, dword [ebp - 0x10]
call fcn.10003daf
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003a40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x1005a640], 0
push esi
push edi
mov edx, 0xff
jne 0x10003a7f
xor esi, esi
push 8
mov ecx, esi
pop edi
test cl, 1
je 0x10003a66
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x10003a68
shr ecx, 1
dec edi
jne 0x10003a57
mov edi, esi
xor edi, edx
inc esi
cmp esi, 0x100
mov dword [edi*4 + 0x1005a640], ecx
jb 0x10003a52
xor ecx, ecx
cmp dword [esp + 0x10], ecx
jle 0x10003aab
mov esi, dword [esp + 0xc]
movzx esi, byte [ecx + esi]
mov edi, eax
and edi, edx
shr eax, 8
xor esi, edi
xor eax, dword [esi*4 + 0x1005a640]
xor eax, 0xff000000
inc ecx
cmp ecx, dword [esp + 0x10]
jl 0x10003a87
pop edi
pop esi
ret

Function at 0x10003ac1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov ecx, dword [eax]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 8]
push ebx
push esi
mov esi, dword [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0xc]
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x10]
add edi, 2
movzx ebx, byte [edi]
xor edx, edx
mov dh, byte [edi - 2]
add edi, 4
mov dl, byte [edi - 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [edi - 3]
shl edx, 8
or edx, ebx
mov ebx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
mov dword [ebp + ebx*4 - 0x150], edx
jb 0x10003aed
push 0x40
lea edx, [ebp - 0x148]
pop edi
mov ebx, dword [edx + 0x2c]
xor ebx, dword [edx + 0x18]
xor ebx, dword [edx - 8]
xor ebx, dword [edx]
add edx, 4
dec edi
rol ebx, 1
mov dword [edx + 0x34], ebx
jne 0x10003b25
xor edx, edx
cmp edx, 0x14
jae 0x10003b60
mov ebx, dword [ebp - 4]
mov edi, esi
not edi
and edi, dword [ebp - 8]
and ebx, esi
or edi, ebx
add edi, dword [ebp + edx*4 - 0x150]
lea edi, [edi + ecx + 0x5a827999]
jmp 0x10003bb7
cmp edx, 0x28
jae 0x10003b7d
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 4]
xor edi, esi
add edi, dword [ebp + edx*4 - 0x150]
lea edi, [edi + ecx + 0x6ed9eba1]
jmp 0x10003bb7
cmp edx, 0x3c
jae 0x10003ba1
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 4]
or edi, esi
and edi, dword [ebp - 8]
and ebx, esi
or edi, ebx
add edi, dword [ebp + edx*4 - 0x150]
lea edi, [edi + ecx - 0x70e44324]
jmp 0x10003bb7
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 4]
xor edi, esi
add edi, dword [ebp + edx*4 - 0x150]
lea edi, [edi + ecx - 0x359d3e2a]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
ror esi, 2
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov ebx, esi
rol ebx, 5
inc edx
add edi, ebx
cmp edx, 0x50
mov dword [ebp - 0x10], edi
jb 0x10003b3d
mov edx, dword [eax]
add edx, edi
mov dword [eax], edx
mov edx, dword [eax + 4]
add edx, esi
mov esi, dword [ebp - 4]
mov dword [eax + 4], edx
mov edx, dword [eax + 8]
add edx, esi
mov esi, dword [ebp - 8]
mov dword [eax + 8], edx
mov edx, dword [eax + 0xc]
add edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0x10]
pop edi
add edx, ecx
pop esi
mov dword [eax + 0x10], edx
pop ebx
leave
ret
Function at 0x10003c0e
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov esi, edi
mov eax, ebx
shld eax, esi, 3
shl esi, 3
test ebx, ebx
mov dword [ebp - 0x1c], 0x67452301
mov dword [ebp - 0x18], 0xefcdab89
mov dword [ebp - 0x14], 0x98badcfe
mov dword [ebp - 0x10], 0x10325476
mov dword [ebp - 0xc], 0xc3d2e1f0
mov dword [ebp + 0xc], eax
jbe 0x10003c70
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
call fcn.10003ac1
add dword [ebp - 8], 0x40
add edi, 0xffffffc0
adc ebx, 0xffffffff
test ebx, ebx
ja 0x10003c55
jb 0x10003c75
cmp edi, 0x40
jae 0x10003c55
test edi, edi
jbe 0x10003c89
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x5c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [edi + 1]
cmp eax, 0x38
mov byte [ebp + edi - 0x5c], 0x80
jbe 0x10003cb8
push 0x40
pop ecx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x5c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x5c]
call fcn.10003ac1
xor eax, eax
push 0x38
pop ecx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x5c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x38
pop eax
mov ecx, dword [ebp + 0xc]
shr ecx, 0x18
mov byte [ebp + eax - 0x5c], cl
mov ecx, dword [ebp + 0xc]
shld ecx, esi, 8
inc eax
shl esi, 8
cmp eax, 0x40
mov dword [ebp + 0xc], ecx
jb 0x10003cd0
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x5c]
call fcn.10003ac1
xor eax, eax
mov ecx, eax
and ecx, 0xfffffffc
mov edx, eax
and edx, 3
sub ecx, edx
mov cl, byte [ebp + ecx - 0x19]
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, 0x14
jb 0x10003cfa
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003d1b
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
call fcn.10003a27
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
mov dword [ebp - 0xc], ebx
jne 0x10003d39
xor eax, eax
jmp 0x10003dac
push esi
push edi
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10003da1
xor esi, esi
cmp dword [ebp - 4], esi
jne 0x10003da1
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x10], edi
je 0x10003da1
mov eax, dword [ebp - 8]
push esi
push esi
push esi
push 4
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x10003d8e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
jmp 0x10003da8
push 0x10
call sub.MSVCRT.dll_malloc
lea esi, [ebp - 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
jmp 0x10003daa
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret