joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2cc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, edx
test esi, esi
jl 0x40d2f4
inc esi
mov ebx, eax
push 0
push 1
push ebx
call sub.KERNEL32.DLL_CompareStringW
test eax, eax
jne 0x40d2d7
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetCommandLineW
add ebx, 8
dec esi
jne 0x40d2d7
pop esi
pop ebx
ret

Function at 0x40d330
Capabilities:
Query environment variable

Disassembly:
add esp, 0xfffffeec
mov dword [esp], 0x114
push esp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
test eax, eax
je 0x40d397
mov eax, dword [esp + 0x10]
mov dword [0x4197dc], eax
mov eax, dword [esp + 4]
mov dword [0x4197e0], eax
mov eax, dword [esp + 8]
mov dword [0x4197e4], eax
cmp dword [0x4197dc], 1
jne 0x40d37b
mov eax, dword [esp + 0xc]
and eax, 0xffff
mov dword [0x4197e8], eax
jmp 0x40d384
mov eax, dword [esp + 0xc]
mov dword [0x4197e8], eax
mov eax, 0x4197ec
lea edx, [esp + 0x14]
mov ecx, 0x80
call fcn.00404fdc
add esp, 0x114
ret

Function at 0x40db30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, 0x41cbf4
mov dword [ebx], 0x409
mov dword [ebx + 4], 9
mov dword [ebx + 8], 1
call sub.KERNEL32.DLL_GetDiskFreeSpaceW
test eax, eax
je 0x40db5d
mov dword [ebx], eax
test ax, ax
je 0x40db78
mov edx, eax
and dx, 0x3ff
movzx edx, dx
mov dword [ebx + 4], edx
movzx eax, ax
shr eax, 0xa
mov dword [ebx + 8], eax
mov esi, 0x40dbc8
mov edi, 0x419824
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
cmp dword [0x4197e0], 4
jle 0x40dba1
cmp dword [0x4197dc], 2
jne 0x40dba1
mov byte [ebx + 0xd], 1
jmp 0x40dbb0
push 0x4a
call sub.user32.dll_MessageBoxA
test eax, eax
setne al
mov byte [ebx + 0xd], al
mov al, 1
mov byte [ebx + 0xc], al
test al, al
je 0x40dbc0
push ebp
call fcn.0040dad4
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e043
Capabilities:
Encode data using xor
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004049b4
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetLocaleInfoW
mov edi, eax
cmp edi, 0x104
jbe 0x40e066
mov eax, edi
add eax, eax
call fcn.00402f10
mov esi, eax
jmp 0x40e068
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_GetLocaleInfoW
push edi
push esi
call sub.user32.dll_CharNextW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40e0a1
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 0x40e08b
mov eax, esp
cmp esi, eax
je 0x40e0ae
mov eax, esi
call fcn.00402f2c
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 0x40e0e8
cmp bl, 0
je 0x40e0e4
cmp bl, 0x41
jl 0x40e0df
cmp bl, 0x5a
jg 0x40e0df
or bl, 0x20
xor al, bl
inc esi
jmp 0x40e0c3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40e028
Function at 0x40f29c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
push edx
mov edx, dword [eax + 0x10]
push edx
mov eax, dword [eax + 0xc]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
pop ebx
pop ebp
ret 8

Function at 0x410eb4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce8
push ebx
push esi
push edi
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
test byte [eax + 1], 0x20
jne 0x410edc
mov eax, 0x80070057
call fcn.00410d94
mov eax, dword [ebp - 0x304]
movzx eax, word [eax]
mov edx, eax
and dx, 0xfff
cmp dx, 0xc
jne 0x411018
mov edx, dword [ebp - 0x304]
test ah, 0x40
je 0x410f14
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x308], eax
jmp 0x410f23
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 8]
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x308]
movzx eax, word [eax]
mov dword [ebp - 0x310], eax
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x410fa8
inc ebx
xor edi, edi
lea esi, [ebp - 0x300]
mov eax, esi
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x318]
add eax, 4
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_TlsGetValue
call fcn.00410d94
lea eax, [ebp - 0x30c]
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_TlsSetValue
call fcn.00410d94
mov eax, dword [ebp - 0x318]
mov edx, dword [ebp - 0x30c]
sub edx, dword [eax + 4]
inc edx
mov eax, dword [ebp - 0x318]
mov dword [eax], edx
inc edi
add esi, 8
dec ebx
jne 0x410f46
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x410fcd
inc ebx
lea eax, [ebp - 0x2fc]
lea edx, [ebp - 0x100]
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 8
dec ebx
jne 0x410fc0
push ebp
mov ebx, dword [ebp - 0x310]
dec ebx
mov eax, ebx
call fcn.00410e28
pop ecx
test al, al
je 0x41100b
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x308]
push eax
call sub.KERNEL32.DLL_RaiseException
call fcn.00410d94
mov eax, dword [ebp - 0x314]
call fcn.004110c4
push ebp
mov eax, ebx
call fcn.00410e58
pop ecx
test al, al
jne 0x410fcd
mov eax, dword [ebp - 0x304]
push eax
call fcn.0040fa44
call fcn.00410d94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41116c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce0
push ebx
push esi
push edi
mov dword [ebp - 0x308], ecx
mov ebx, edx
mov dword [ebp - 0x304], eax
test byte [ebx + 1], 0x20
jne 0x411196
mov eax, 0x80070057
call fcn.00410d94
movzx eax, word [ebx]
mov edx, eax
and dx, 0xfff
cmp dx, 0xc
jne 0x41131d
test ah, 0x40
je 0x4111bc
mov eax, dword [ebx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x314], eax
jmp 0x4111c5
mov eax, dword [ebx + 8]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x314]
movzx eax, word [eax]
mov dword [ebp - 0x310], eax
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x41124a
inc ebx
xor edi, edi
lea esi, [ebp - 0x300]
mov eax, esi
mov dword [ebp - 0x320], eax
mov eax, dword [ebp - 0x320]
add eax, 4
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.KERNEL32.DLL_TlsGetValue
call fcn.00410d94
lea eax, [ebp - 0x30c]
push eax
lea eax, [edi + 1]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.KERNEL32.DLL_TlsSetValue
call fcn.00410d94
mov eax, dword [ebp - 0x320]
mov edx, dword [ebp - 0x30c]
sub edx, dword [eax + 4]
inc edx
mov eax, dword [ebp - 0x320]
mov dword [eax], edx
inc edi
add esi, 8
dec ebx
jne 0x4111e8
lea eax, [ebp - 0x300]
push eax
mov eax, dword [ebp - 0x310]
push eax
push 0xc
call sub.KERNEL32.DLL_LocalAlloc
mov esi, eax
test esi, esi
jne 0x41126a
call fcn.00410aec
mov eax, dword [ebp - 0x304]
call fcn.004110c4
mov eax, dword [ebp - 0x304]
mov word [eax], 0x200c
mov eax, dword [ebp - 0x304]
mov dword [eax + 8], esi
mov ebx, dword [ebp - 0x310]
dec ebx
test ebx, ebx
jl 0x4112ae
inc ebx
lea eax, [ebp - 0x2fc]
lea edx, [ebp - 0x100]
mov ecx, dword [eax]
mov dword [edx], ecx
add edx, 4
add eax, 8
dec ebx
jne 0x4112a1
push ebp
mov ebx, dword [ebp - 0x310]
dec ebx
mov eax, ebx
call fcn.004110e0
pop ecx
test al, al
je 0x41130e
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x314]
push eax
call sub.KERNEL32.DLL_RaiseException
call fcn.00410d94
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x100]
push eax
push esi
call sub.KERNEL32.DLL_RaiseException
call fcn.00410d94
mov eax, dword [ebp - 0x318]
mov edx, eax
mov eax, dword [ebp - 0x31c]
call dword [ebp - 0x308]
push ebp
mov eax, ebx
call fcn.00411110
pop ecx
test al, al
jne 0x4112ae
jmp 0x41132f
push ebx
mov eax, dword [ebp - 0x304]
push eax
call fcn.0040fa4c
call fcn.00410d94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413aa4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov esi, eax
test edx, edx
je 0x413bbb
mov ebp, edx
mov edi, ebp
call sub.KERNEL32.DLL_EnterCriticalSection
mov ebx, eax
jmp 0x413ac6
add edi, dword [esp + 0x10]
push 0x1c
lea eax, [esp + 8]
push eax
push edi
push ebx
call sub.KERNEL32.DLL_LoadResource
cmp eax, 0x1c
jne 0x413adf
cmp ebp, dword [esp + 8]
je 0x413ac2
mov byte [esp], 0
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x413b23
mov edx, ebx
mov eax, dword [esi + 0xc]
call fcn.00413ec4
mov edx, eax
cmp edx, ebp
jb 0x413b03
cmp edx, edi
jb 0x413b07
xor eax, eax
jmp 0x413b09
mov al, 1
test al, al
je 0x413b1d
xor ecx, ecx
mov edx, ebx
mov eax, dword [esi + 0xc]
call fcn.00413f20
mov byte [esp], 1
dec ebx
cmp ebx, 0xffffffff
jne 0x413aef
cmp byte [esp], 0
je 0x413b31
mov eax, dword [esi + 0xc]
call fcn.00413f70
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x413b75
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x413b75
mov ebx, eax
mov edx, ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, eax
cmp edx, ebp
jb 0x413b5b
cmp edx, edi
jb 0x413b5f
xor eax, eax
jmp 0x413b61
mov al, 1
test al, al
je 0x413b6f
mov edx, ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec ebx
cmp ebx, 0xffffffff
jne 0x413b47
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x413bdb
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x413bdb
mov ebx, eax
mov edx, ebx
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, eax
cmp edx, ebp
jb 0x413b9f
cmp edx, edi
jb 0x413ba3
xor eax, eax
jmp 0x413ba5
mov al, 1
test al, al
je 0x413bb3
mov edx, ebx
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec ebx
cmp ebx, 0xffffffff
jne 0x413b8b
jmp 0x413bdb
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esi + 4]
test eax, eax
je 0x413bcf
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [esi + 8]
test eax, eax
je 0x413bdb
mov edx, dword [eax]
call dword [edx + 0x44]
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x413be4
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x413bf3
add esp, 0xfffffff0
call fcn.00403c4c
mov ebx, edx
mov edi, eax
xor edx, edx
mov eax, edi
call fcn.004039ac
mov dl, 1
mov eax, dword [0x413264]
call fcn.004039ac
mov dword [edi + 4], eax
lea eax, [edi + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ecx, dword [0x413338]
mov dl, 1
mov eax, dword [0x413940]
call fcn.00413a08
mov esi, eax
mov eax, dword [edi + 4]
mov edx, esi
call fcn.00413d8c
mov byte [esi + 0x10], 1
mov eax, edi
test bl, bl
je 0x413c4f
call fcn.00403ca4
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x414098
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
test dl, dl
je 0x4140a6
add esp, 0xfffffff0
call fcn.00403c4c
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.004039ac
lea eax, [esi + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov dl, 1
mov eax, dword [0x413264]
call fcn.004039ac
mov dword [esi + 4], eax
mov byte [esi + 0x20], 0
mov eax, esi
test bl, bl
je 0x4140e4
call fcn.00403ca4
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x416fb0
Capabilities:
Get file attributes

Disassembly:
push 0x41ee18
call sub.KERNEL32.DLL_GetFileAttributesW
push 0x416fe0
push 0
push 0xffffffffffffffff
push 0
call sub.KERNEL32.DLL_LoadLibraryExW
mov dword [0x41ee00], eax
cmp dword [0x41ee00], 0
jne 0x416fdd
call fcn.0040e214
ret
Function at 0x10001400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x10], edx
xorps xmm0, xmm0
mov dword [ebp - 0xc], ebx
push edi
movq qword [ebp - 0x1c], xmm0
mov edi, ebx
mov dword [ebp - 0x14], 0
nop dword [eax]
mov al, byte [edi]
cmp al, 0xc3
je 0x1000146a
cmp al, 0xc2
je 0x10001461
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.10001080
add edi, eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10001452
cmp eax, 0xffffffff
je 0x1000145d
mov esi, edi
sub esi, ebx
cmp esi, 5
jb 0x10001430
jmp 0x1000146f
xor esi, esi
jmp 0x1000146f
mov esi, edi
sub esi, ebx
add esi, 3
jmp 0x1000146f
mov esi, edi
sub esi, ebx
inc esi
push 0x40
push 0x3000
lea eax, [esi + 5]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push dword [ebp - 0xc]
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push dword [ebp - 0xc]
push edi
call fcn.10044fa0
mov eax, dword [ebp - 0xc]
add edi, esi
sub eax, edi
push esi
add eax, 0xfffffffb
add eax, esi
mov byte [edi], 0xe9
mov esi, dword [ebp - 0xc]
push 0x90
push esi
mov dword [edi + 1], eax
call fcn.10044de0
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov ecx, dword [ebp - 4]
sub eax, esi
sub eax, 5
mov byte [esi], 0xe9
mov dword [esi + 1], eax
xor ecx, ebp
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.10041a84
mov esp, ebp
pop ebp
ret
Function at 0x100051d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1000521a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x30
push 0
push 0x10088154
call fcn.10044de0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [0x10088180], 0xfffffffb
call fcn.100035f0
push 0
push 0
push 0
push 0x10004d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x100054e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100055c6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100055b5
jg 0x10005520
test edx, edx
je 0x100055b5
nop dword [eax]
call fcn.10006be0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10005574
jg 0x10005537
test esi, esi
je 0x10005574
cmp ebx, eax
jg 0x10005547
jl 0x10005541
cmp edi, esi
jae 0x10005547
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.10044fa0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x10005599
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x100055af
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10005520
jl 0x100055af
test edi, edi
jne 0x10005520
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x100055e8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x100055ea
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10005668
jg 0x100055fd
test esi, esi
je 0x10005668
test eax, eax
jl 0x1000564c
jg 0x10005607
test ebx, ebx
je 0x1000564c
cmp edi, eax
jg 0x10005617
jl 0x10005611
cmp esi, ebx
jae 0x10005617
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.10044fa0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x10005668
jg 0x1000564f
test esi, esi
je 0x10005668
jmp 0x1000564f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10005668
push eax
push esi
push 1
push edx
call fcn.10048bf5
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10005c00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041a84
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10005c3c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10005c3c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041a84
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10005d23
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10005c64
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10005c97
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.10047f77
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041a84
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x10005d23
cmp eax, 1
jle 0x10005cf6
cmp eax, 3
jne 0x10005d23
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.10047f77
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041a84
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10005d13
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10048bf5
add esp, 0x10
cmp edi, eax
jne 0x10005d23
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10005c27
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041a84
mov esp, ebp
pop ebp
ret 4
Function at 0x10006a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10006aba
cmp byte [esi + 0x3d], 0
je 0x10006aba
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10006aa8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10006a70
sub eax, 1
je 0x10006a74
sub eax, 2
jne 0x10006aa8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041a84
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10006a91
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10048bf5
add esp, 0x10
cmp edi, eax
jne 0x10006aa8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041a84
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041a84
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10041a84
mov esp, ebp
pop ebp
ret

Function at 0x10006eb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068110
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008600c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10041c95
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10042eef
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100093d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x1000941c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x100093ff
cmp edi, 2
jb 0x100093ff
cmp byte [esi], cl
jne 0x100093ff
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10078c48]
test edi, edi
jne 0x100093e5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000944b
cmp cl, 0x23
jne 0x10009432
cmp byte [esi], cl
jne 0x10009432
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10078c48]
test cl, cl
jne 0x10009423
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x10009530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x10009543
mov dword [ebx], 0
mov edx, 0x1007cfbc
call fcn.10009460
mov esi, eax
test esi, esi
je 0x10009620
push esi
call fcn.10049f35
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10009617
push 2
push 0
push esi
call fcn.10049681
add esp, 0xc
test eax, eax
jne 0x10009617
push esi
call fcn.10049f35
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x10009617
push 0
push dword [ebp + 8]
push esi
call fcn.10049681
add esp, 0xc
test eax, eax
jne 0x10009617
mov eax, dword [0x100881b4]
test eax, eax
je 0x100095b6
inc dword [eax + 0x374]
push edi
call fcn.100501ef
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x10009617
push esi
push edi
push 1
push eax
call fcn.1004926f
add esp, 0x10
push esi
cmp eax, edi
je 0x10009601
call fcn.100485e6
mov eax, dword [0x100881b4]
add esp, 4
test eax, eax
je 0x100095ef
dec dword [eax + 0x374]
push dword [ebp + 8]
call fcn.10048e5d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.100485e6
add esp, 4
test ebx, ebx
je 0x1000960f
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.100485e6
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret