joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e36b2
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x5494b1
call fcn.00520f04
mov ebx, ecx
mov dword [ebp - 0x12c], ebx
call fcn.00502b80
push 0x1c4
call fcn.00408020
pop ecx
mov dword [ebp - 0x128], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4e36f5
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.005031ad
jmp 0x4e36f7
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.00501ffb
call fcn.0040bc13
mov esi, 0x104
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x8c]
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call fcn.00520d50
mov edi, eax
pop ecx
mov byte [ebp + edi - 0x114], 0x5c
inc edi
cmp edi, esi
jae 0x4e3914
xor eax, eax
mov byte [ebp + edi - 0x114], 0
mov dword [ebp - 0x128], eax
test ebx, ebx
je 0x4e390e
xor esi, esi
mov dword [ebp - 0x120], esi
cmp dword [ebx + 4], eax
jle 0x4e390e
call fcn.0040844a
push eax
lea ecx, [ebp - 0x118]
call fcn.00404dd0
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x114]
push edi
push ecx
push esi
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x4e38ec
push 0x55ce80
mov esi, 0x55ce84
lea ecx, [ebp - 0x118]
push esi
call fcn.00430cf8
push esi
push 0x5542d0
lea ecx, [ebp - 0x118]
call fcn.00430cf8
push esi
push 0x55ce80
lea ecx, [ebp - 0x118]
call fcn.00430cf8
call fcn.0040844a
push eax
lea ecx, [ebp - 0x124]
call fcn.00404dd0
mov eax, dword [ebp - 0x128]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4e3818
push dword [ebp - 0x118]
lea eax, [ebp - 0x124]
push str.10__s
push eax
call fcn.004061b0
add esp, 0xc
jmp 0x4e384a
jge 0x4e3838
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x124]
push str._d__s
push eax
call fcn.004061b0
add esp, 0x10
jmp 0x4e384a
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x124]
call fcn.004083aa
push 0x1c4
call fcn.00408020
pop ecx
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4e3874
mov ecx, eax
call fcn.0048af03
mov ecx, eax
mov dword [ebp - 0x11c], eax
jmp 0x4e387c
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x124]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
add eax, 0xe110
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push dword [ebp - 0x120]
mov ecx, ebx
call fcn.0041afc2
mov ecx, dword [ebp - 0x11c]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.00501ffb
inc dword [ebp - 0x128]
lea ecx, [esi - 0x10]
call fcn.00401c90
mov esi, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401c90
inc esi
mov dword [ebp - 0x120], esi
cmp esi, dword [ebx + 4]
jl 0x4e376d
call fcn.00520eb3
ret
call fcn.00521de1
int3
Function at 0x534d98
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0052e113
mov dword [ebp - 0x14], eax
cmp dword [0x5a671c], esi
jne 0x534e8b
push 0x800
push esi
push 0x577510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x534e18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x534f6b
push esi
push esi
push 0x577510
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x534f6b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x534f6b
push eax
call ebx
push 0x577534
push edi
mov dword [0x5a671c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x577544
push edi
mov dword [0x5a6720], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a6724], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a672c], eax
test eax, eax
je 0x534e88
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a6728], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x534eb0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x534ea3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x534ec5
push 4
pop eax
jmp 0x534f6d
cmp dword [ebp - 0x14], esi
je 0x534ec5
push dword [0x5a671c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x534eaa
mov eax, dword [0x5a6728]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x534f23
cmp dword [0x5a672c], edi
je 0x534f23
push eax
call ebx
push dword [0x5a672c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x534f23
test eax, eax
je 0x534f23
call ecx
test eax, eax
je 0x534f18
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x534f18
test byte [ebp - 8], 1
jne 0x534f23
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x534f53
mov eax, dword [0x5a6720]
cmp eax, edi
je 0x534f50
push eax
call ebx
test eax, eax
je 0x534f50
call eax
mov esi, eax
test esi, esi
je 0x534f50
mov eax, dword [0x5a6724]
cmp eax, edi
je 0x534f50
push eax
call ebx
test eax, eax
je 0x534f50
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a671c]
call ebx
test eax, eax
je 0x534f6b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x534f6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e66d
mov esp, ebp
pop ebp
ret
Function at 0x10007baf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10007bbe
pop dword [ebp - 0x38]
mov eax, 0x9f3eb8e1
add eax, 0x70c1c2dd
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x80c038f
sub dword [ebp - 0x48], 0xb9b9be44
mov dword [ebp - 0x44], 0x1e081210
add dword [ebp - 0x44], 0x142b3a35
mov dword [ebp - 0x40], 0x81bf5bd0
add dword [ebp - 0x40], 0xca8ce85e
mov dword [ebp - 0x3c], 0x185960ba
add dword [ebp - 0x3c], 0xe7a69f46
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xe60515f
add dword [ebp - 0x48], 0x661217f7
mov dword [ebp - 0x44], 0x6e9636f0
add dword [ebp - 0x44], 0xd2d62a85
mov dword [ebp - 0x40], 0x2760f86a
sub dword [ebp - 0x40], 0xc3f18bfe
mov dword [ebp - 0x3c], 0x4009c6c0
sub dword [ebp - 0x3c], 0x4009c6c0
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x5aa438d5
sub eax, 0x4aa3b88d
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3644e
push 0
call eax
mov ecx, 0x4668
mov edi, eax
mov esi, 0x1000fa00
add esi, dword [ebp - 0x38]
mov ebx, 0x90263b84
mov edx, dword [esi]
sub edx, ebx
xor dword [ebp - 8], ebx
mov dword [edi], edx
xor dword [ebp - 0x2c], eax
add edi, 4
add esi, 4
loop 0x10007cc9
add eax, 0xb64feca3
add eax, 0x49b11fd0
mov ebx, eax
add eax, 0x2349e9b0
add eax, 0xdcb61655
mov ecx, 0x695be8d6
sub ecx, 0x595be8d6
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x100085d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5752
mov eax, dword fs:[0]
push eax
sub esp, 0xc34
mov eax, dword [0x100dcc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xc40], esi
mov dword [ebp - 0xc38], 0
mov dword [ebp - 0xc3c], esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0x800
lea eax, [ebp - 0xc10]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0xc38], 1
call fcn.1008e1a0
lea eax, [ebp - 0xc28]
mov dword [ebp - 0xc30], 0x800
push 0x10c
push eax
call fcn.1002f210
add esp, 0x14
cmp dword [eax + 0x14], 0xf
mov dword [ebp - 4], 1
jbe 0x1000868c
mov eax, dword [eax]
lea ecx, [ebp - 0xc34]
push ecx
push 0x101
push 0
push eax
push reloc.WS2_32.dll_bind
call fcn.100090c0
mov ecx, dword [ebp - 0xc14]
add esp, 0x14
mov byte [ebp - 4], 0
mov edi, eax
cmp ecx, 0xf
jbe 0x100086e8
mov edx, dword [ebp - 0xc28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100086de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008835
push ecx
push edx
call fcn.1008c3c5
add esp, 8
test edi, edi
jne 0x10008818
lea eax, [ebp - 0xc28]
push 0x113
push eax
call fcn.1002f210
add esp, 8
cmp dword [eax + 0x14], 0xf
jbe 0x1000870c
mov eax, dword [eax]
lea ecx, [ebp - 0xc30]
push ecx
lea ecx, [ebp - 0xc10]
push ecx
push 0
push 0
push eax
push dword [ebp - 0xc34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0xc14]
mov edi, eax
cmp ecx, 0xf
jbe 0x10008767
mov edx, dword [ebp - 0xc28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000875d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000883a
push ecx
push edx
call fcn.1008c3c5
add esp, 8
test edi, edi
jne 0x1000880c
push 0x3ff
lea eax, [ebp - 0x40f]
push edi
push eax
call fcn.1008e1a0
mov edi, dword [ebp - 0xc30]
add esp, 0xc
xor esi, esi
mov byte [ebp - 0x410], 0
test edi, edi
jle 0x100087f8
nop word [eax + eax]
mov al, byte [ebp + esi - 0xc10]
mov cl, al
and al, 0xf
shr cl, 4
cmp cl, 9
ja 0x100087b8
add cl, 0x30
jmp 0x100087bb
add cl, 0x37
mov byte [ebp - 0xc2c], cl
cmp al, 9
ja 0x100087c9
add al, 0x30
jmp 0x100087cb
add al, 0x37
mov byte [ebp - 0xc2b], al
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x410]
mov byte [ebp - 0xc2a], 0
push 0x400
push eax
call fcn.10094695
inc esi
add esp, 0xc
cmp esi, edi
jl 0x100087a0
mov esi, dword [ebp - 0xc3c]
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.10007730
push dword [ebp - 0xc34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
call fcn.1009189f
call fcn.1009189f
int3
Function at 0x1000a030
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b58f5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100dcc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x40]
mov byte [ebp - 0x44], 0
push 0x1b9
push eax
call fcn.1002f210
add esp, 8
cmp dword [esi + 0x14], 0xf
mov eax, esi
mov ecx, dword [esi + 0x28]
mov dword [ebp - 4], 0
jbe 0x1000a085
mov eax, dword [esi]
push 0
push 0
push 0
push 1
push eax
call ecx
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
mov edx, dword [esi + 0x2c]
cmova ecx, dword [ebp - 0x40]
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push ecx
push eax
mov dword [esi + 0x1c], eax
call edx
mov edx, eax
mov dword [esi + 0x20], edx
test edx, edx
je 0x1000a0c1
mov byte [esi + 0x18], 1
cmp byte [esi + 0x18], 0
je 0x1000a1fe
mov ax, word [0x100ba6cc]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x30]
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov al, byte [0x100ba6ce]
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
push 0
push 0x4883000
push 0
push 0
push str.HTTP_1.0
push 0x100ba6f4
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push edx
call ecx
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x1000a153
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a149
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a24c
push ecx
push edx
call fcn.1008c3c5
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
je 0x1000a1e4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 4
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [esi + 0x34]
push 0x1f
push edi
call eax
or dword [ebp - 0x48], 0x180
lea eax, [ebp - 0x48]
push 4
push eax
mov eax, dword [esi + 0x38]
push 0x1f
push edi
call eax
mov eax, dword [esi + 0x3c]
push 0
push 0
push 0
push 0
push edi
call eax
push 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], 4
push eax
mov eax, dword [esi + 0x4c]
push 0x20000013
push edi
call eax
mov eax, dword [ebp - 0x44]
mov ecx, 1
cmp dword [ebp - 0x4c], 0xc8
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x44]
push edi
call eax
cmp byte [esi + 0x18], 0
je 0x1000a1fe
push dword [esi + 0x20]
mov eax, dword [esi + 0x44]
call eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x44]
call eax
mov byte [esi + 0x18], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1000a22e
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a224
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a251
push ecx
push edx
call fcn.1008c3c5
add esp, 8
mov al, byte [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
call fcn.1009189f
call fcn.1009189f
int3
Function at 0x1000d100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5c4d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100dcc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.10096eb4
add esp, 4
mov dword [ebp - 0x54], eax
mov edi, eax
mov ecx, edx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], ecx
sub edi, 0xf53700
mov ebx, ecx
push eax
push 0x20119
push 0
push 0
push reloc.WS2_32.dll_bind
sbb ebx, 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d1fa
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push 0x10a
push eax
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x48], 4
call fcn.1002f500
add esp, 8
mov esi, eax
cmp dword [esi + 0x14], 7
mov dword [ebp - 4], 0
jbe 0x1000d19d
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push 0x190
push eax
call fcn.1002f500
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x1000d1b6
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push esi
push eax
push dword [ebp - 0x50]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.100076d0
lea ecx, [ebp - 0x40]
call fcn.100076d0
test esi, esi
jne 0x1000d1fa
mov ecx, dword [ebp - 0x44]
xor eax, eax
add ecx, dword [ebp - 0x54]
push esi
adc eax, dword [ebp - 0x58]
push 2
push eax
push ecx
call fcn.1008c960
jmp 0x1000d1fe
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
Function at 0x100115e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x5a4d
push ebx
push esi
push edi
mov ecx, dword [edx]
cmp word [ecx], ax
jne 0x1001163e
mov esi, dword [ecx + 0x3c]
add esi, ecx
cmp dword [esi], 0x4550
jne 0x1001163e
mov edx, dword [edx + 4]
mov edi, dword [esi + 0xa8]
sub edx, ecx
cmp edi, edx
ja 0x1001163e
mov ebx, dword [esi + 0xac]
lea eax, [ebx + edi]
cmp eax, edx
ja 0x1001163e
push ebx
lea eax, [ecx + edi]
push 0
push eax
call fcn.1008e1a0
add esp, 0xc
mov dword [esi + 0xac], 0
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x10011650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b629d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100dcc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x10011692
xor al, al
jmp 0x10011729
push 0x100ba764
push ecx
lea eax, [ebp - 0x40]
xor bl, bl
push eax
call fcn.1000c0d0
push edi
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.1000e810
add esp, 0x18
lea ecx, [ebp - 0x40]
call fcn.100076d0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001171f
mov edx, dword [esi]
lea eax, [ebp - 0x44]
mov ecx, dword [esi + 4]
push 0
push eax
sub ecx, edx
mov dword [ebp - 0x44], 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 4]
mov eax, 1
sub ecx, dword [esi]
cmp dword [ebp - 0x44], ecx
movzx ebx, bl
cmove ebx, eax
lea ecx, [ebp - 0x28]
call fcn.100076d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
Function at 0x10011750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b62eb
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x100dcc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x450], esi
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x1001179b
xor al, al
jmp 0x10011938
push 0x100ba764
push ecx
lea eax, [ebp - 0x440]
xor bl, bl
push eax
call fcn.1000c0d0
push edi
push eax
lea eax, [ebp - 0x428]
mov dword [ebp - 4], 0
push eax
call fcn.1000e810
add esp, 0x18
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 2
call fcn.100076d0
cmp dword [ebp - 0x414], 7
lea eax, [ebp - 0x428]
push 0
cmova eax, dword [ebp - 0x428]
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 0x448], edx
cmp edx, 0xffffffff
je 0x1001192b
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
je 0x10011954
add ecx, dword [ecx + 0x3c]
mov eax, 0x8664
mov ebx, dword [ebp + 0x14]
cmp word [ecx + 4], ax
jne 0x10011849
cmp dword [ecx], 0x4550
jne 0x10011849
mov eax, dword [ecx + 0xac]
test eax, eax
je 0x10011849
add eax, ebx
mov dword [ecx + 0xac], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x444], 0
sub eax, ecx
je 0x10011954
push 0
lea edi, [ebp - 0x444]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.1008e1a0
add esp, 0xc
test ebx, ebx
je 0x10011911
mov eax, 0x400
nop word [eax + eax]
cmp ebx, 0x400
mov dword [ebp - 0x44c], 0
mov edi, ebx
push 0
cmova edi, eax
call fcn.10096eb4
push eax
call fcn.10096f33
add esp, 8
xor esi, esi
test edi, edi
je 0x100118e5
nop dword [eax + eax]
call fcn.10096f12
and al, 0x7f
add al, 0x80
mov byte [ebp + esi - 0x410], al
inc esi
cmp esi, edi
jb 0x100118d0
push 0
lea eax, [ebp - 0x44c]
push eax
push edi
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x400
sub ebx, edi
jne 0x100118a0
mov esi, dword [ebp - 0x450]
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp dword [ebp - 0x444], eax
push dword [ebp - 0x448]
sete bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x428]
call fcn.100076d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret
call fcn.100119e0
int3
Function at 0x10012500
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b63c5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100dcc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov eax, dword [edi]
test eax, eax
je 0x10012663
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10012663
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push dword [ebp - 0x34]
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012659
mov ecx, dword [esi + 0x3c]
add ecx, esi
je 0x10012659
movzx eax, word [ecx + 0x14]
xor ebx, ebx
add eax, 0x28
add eax, ecx
movzx ecx, word [ecx + 6]
test ecx, ecx
je 0x100125b4
mov ebx, dword [eax + 4]
lea eax, [eax + 0x28]
add ebx, dword [eax - 0x28]
sub ecx, 1
jne 0x100125a6
push esi
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
cmp byte [edi + 0x1c], 0
je 0x10012654
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.1002f210
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100130e0
add esp, 0x10
push ebx
sub esp, 0xc
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x2c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
je 0x1001263b
push eax
mov ecx, esi
call fcn.10002400
mov edi, dword [esi]
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
sub esi, eax
push esi
push eax
push edi
call fcn.1008dc20
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + edi]
mov edi, dword [ebp - 0x38]
add esp, 0xc
mov dword [ecx + 4], eax
mov ecx, edi
call fcn.10012ea0
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.100024b0
lea ecx, [ebp - 0x28]
call fcn.100013f0
lea eax, [esi + ebx]
jmp 0x10012666
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_HeapFree]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008c3d3
mov esp, ebp
pop ebp
ret