joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100afdae
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x10152d8e
call fcn.10147df8
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10191e8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100ab64a
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.1009b955
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1007acd9
pop ecx
pop ecx
push eax
call fcn.1007acd9
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call fcn.1007acd9
add esp, 0x18
test al, al
je 0x100afe21
cmp dword [esi + 0x5a], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x52], eax
call fcn.1007acd9
mov eax, esi
call fcn.10147dc1
ret 8

Function at 0x100affb0
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x101509dd
call fcn.10147df8
mov esi, ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.1008f6a9
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1009b803
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.1007acd9
push 0
xor ecx, ecx
lea eax, [esi + 0x56]
cmp dword [esi + 0x5a], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x100b004b
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100b004b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100b004d
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.1007acd9
lea ecx, [ebp - 0x1c]
call fcn.1007acd9
mov al, bl
call fcn.10147dc1
ret 8
Function at 0x10127680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1012771b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x101276d2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x101276d2
cmp esi, ebx
jge 0x101276d2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10127715
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10127715
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x10155aa8]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1012772d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10127950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
mov eax, dword [ebp + 8]
je 0x10127978
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10127992
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1007acd9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10147db0
leave
ret 4

Function at 0x10127b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10127b96
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10127bf5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1007acd9
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1007acd9
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1007acd9
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10147db0
leave
ret 0x10
Function at 0x10127c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10127c3c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10127c6d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10127c6b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1007acd9
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10127c6d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10147db0
leave
ret 8
Function at 0x10136c00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
xor ebx, ebx
inc edx
mov edi, dword [esi]
cmp dword [edi + 0x254], ebx
je 0x10136c60
cmp dword [edi + 0x264], ebx
je 0x10136c59
cmp byte [0x107d44f4], 0
push edi
push dword [edi + 0x250]
je 0x10136c48
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x10136c4e
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
xor edx, edx
inc edx
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
jmp 0x10136d40
mov eax, dword [edi + 0x25c]
test eax, eax
je 0x10136dcf
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x260], ebx
je 0x10136cae
lea eax, [ebp - 0x234]
push eax
call fcn.1007acd9
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
mov ecx, dword [esi]
add esp, 0xc
test byte [ecx + 0x268], 1
push 0x10
pop eax
lea edx, [eax + 0x70]
cmove eax, edx
mov dword [ecx], eax
cmp byte [0x107d44f4], 0
je 0x10136cda
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x10136cfc
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.1007acd9
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10136d2a
mov dword [eax + 0x250], ebx
mov eax, dword [esi]
xor edx, edx
inc edx
mov dword [eax + 0x254], edx
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10136d40
mov dword [esi + 4], edx
mov ecx, eax
cmp dword [eax + 0x264], ebx
je 0x10136d67
cmp byte [0x107d44f4], 0
jne 0x10136d67
push dword [eax + 0x258]
add eax, 0x2c
push eax
call fcn.1007acd9
mov ecx, dword [esi]
xor edx, edx
inc edx
mov eax, dword [ecx]
mov dword [ecx + 0x26c], eax
mov edi, dword [esi]
mov ebx, dword [edi + 0x26c]
shr ebx, 4
and ebx, edx
je 0x10136d9c
push esi
xor ebx, ebx
call fcn.1007acd9
xor edx, edx
inc edx
cmp word [eax], 0x2e
je 0x10136d98
test byte [edi + 0x268], 3
jne 0x10136da6
mov ebx, edx
jmp 0x10136da6
test byte [edi + 0x268], 1
cmovne ebx, edx
mov eax, dword [edi + 0x264]
test eax, eax
je 0x10136dca
push 0
test ebx, ebx
pop ebx
jne 0x10136c20
test byte [edi + 0x26c], 2
jne 0x10136c20
test eax, eax
setne al
jmp 0x10136dd1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10147db0
leave
ret 4
Function at 0x406881
Capabilities:
Encode data using xor

Disassembly:
invalid
mul dword [edx + edx*8 + 0x4629c1eb]
shr dword [ecx], 0x46
xchg ebx, eax
push eax
outsd dx, dword [esi]
add bh, dl
sbb edi, dword [edi]
and al, 0x7a
inc eax
mov ch, byte [ebx + 0x4ad97603]
xchg esp, eax
in al, 0x41
xor dword [edi - 0x1e0c7330], 0x23
pop edx
test dl, bl
adc byte [edi - 0x5f], 0xa9
or edi, esi
jbe 0x40684a
retf
wait
outsd dx, dword [esi]
das
clc
cmp eax, 0x2c184669
scasb al, byte es:[edi]
jo 0x40681b
mov bl, 0x76
sbb dword [edx*8 - 0x5bb7e2ff], edx
jl 0x4068f1
and byte [edi + 0x11], ch
sar byte [eax + 0x67], cl
imul edx, dword [edi + 0x7b40894a], 0xad41e1b8
xchg edi, eax
cmp edx, edx
repne outsb dx, byte [esi]
imul ebp, esi, 0xbc1b7069
cmpsb byte [esi], byte es:[edi]
test ebp, esi
aaa
aaa
or byte [edx], ah
aad 0x84
loop 0x406927
jge 0x406846
dec ebx
mov bl, 0xd5
test byte [esi + ebp*8], cl
dec eax
adc byte [edi], cl
inc ecx
pushal
sub ebp, ecx
and al, 0x6e
inc edx
mov eax, dword [0x5a6c7d1e]
add eax, 0xb8dcfe07
xlatb
feni8087_nop
or ecx, dword [eax - 0x1e]
sub ebx, 0x1f
dec ecx
sti
sal byte [esi + 0xe], 0x85
rcr dh, cl
pop es
test al, 0x16
cmpsb byte [esi], byte es:[edi]
call 0x6689e8e1
and dword [esi + 0x35], edi
lodsd eax, dword [esi]
in al, 0xc0
outsd dx, dword [esi]
pop ds
cwde
and dword [ebx + 0x6f], ebx
je 0x406899
das
invalid
scasb al, byte es:[edi]
test dl, bh
push eax
enter 0xffffffffffffe12a, 2
hlt
Function at 0x407fc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408050
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408050
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408003
test edx, 3
jne 0x407ff2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x407ffd
jmp 0x408003
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408003
cmp dword [ecx - 8], 1
je 0x40800d
mov edx, ebx
or edx, 3
call fcn.00404d94
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40801f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404648

Function at 0x40805c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4080ec
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4080ec
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40809f
test edx, 3
jne 0x40808e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408099
jmp 0x40809f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40809f
cmp dword [ecx - 8], 1
je 0x4080a9
mov edx, ebx
or edx, 3
call fcn.00404d94
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4080bb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404648
Function at 0x7e5413f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x7e54d004]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push 0x400
lea eax, [esp + 0xc]
push 0
push eax
call fcn.7e545a80
mov edx, dword [esp + 0x41c]
lea ecx, [esp + 0x420]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x3ff
push eax
call fcn.7e5428e3
add esp, 0x1c
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push str.debug.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 8]
lea edx, [eax + 1]
jmp 0x7e541470
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x7e541470
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x408]
pop esi
xor ecx, esp
call fcn.7e5414aa
add esp, 0x408
ret

Function at 0x7e5414aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7e54d004]
jne 0x7e5414b4
repz ret
jmp fcn.7e541719
Function at 0x7e546263
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.7e5437a8
and dword [ebp - 4], 0
cmp dword [0x7e54e894], 0
mov ebx, eax
jne 0x7e546314
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x7e5463c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x7e54a9b8
push edi
call esi
test eax, eax
je 0x7e5463c5
push eax
call fcn.7e543736
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x7e54e894], eax
call esi
push eax
call fcn.7e543736
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x7e54e898], eax
call esi
push eax
call fcn.7e543736
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x7e54e89c], eax
call esi
push eax
call fcn.7e543736
pop ecx
mov dword [0x7e54e8a4], eax
test eax, eax
je 0x7e546314
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.7e543736
pop ecx
mov dword [0x7e54e8a0], eax
mov eax, dword [0x7e54e8a0]
cmp eax, ebx
je 0x7e54636c
cmp dword [0x7e54e8a4], ebx
je 0x7e54636c
push eax
call fcn.7e5437b1
push dword [0x7e54e8a4]
mov esi, eax
call fcn.7e5437b1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x7e54636c
test edi, edi
je 0x7e54636c
call esi
test eax, eax
je 0x7e546363
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x7e546363
test byte [ebp - 0xc], 1
jne 0x7e54636c
or dword [ebp + 0x10], 0x200000
jmp 0x7e5463a5
mov eax, dword [0x7e54e898]
cmp eax, ebx
je 0x7e5463a5
push eax
call fcn.7e5437b1
pop ecx
test eax, eax
je 0x7e5463a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x7e5463a5
mov eax, dword [0x7e54e89c]
cmp eax, ebx
je 0x7e5463a5
push eax
call fcn.7e5437b1
pop ecx
test eax, eax
je 0x7e5463a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x7e54e894]
call fcn.7e5437b1
pop ecx
test eax, eax
je 0x7e5463c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x7e5463c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10341980
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.1012172f
mov eax, dword [0x10411580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10420d80]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x10341b58
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x10341aa7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x10341aa7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x10341a85
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x10341a09
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10341b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x10341b78
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x10341b53
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x10341b78
jmp 0x103419e2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10123674
mov esp, ebp
pop ebp
ret
Function at 0x10341c10
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.1012172f
mov eax, dword [0x10411580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10420d80]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x10341dfb
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x10341d46
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x10341d46
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x10341d22
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x10341c99
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10341db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x10341e1b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x10341df6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x10341e1b
jmp 0x10341c72
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10123674
mov esp, ebp
pop ebp
ret
Function at 0x4051c9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push edx
or al, byte [eax + 0x55]
rol byte [eax], 1
call 0x154070d0
cmp eax, 0xffffffff
jne 0x4051f3
mov eax, dword [edi + 0x20]
cmp eax, dword [ebx + 0xc6a0774]
call eax
xor eax, 0x5e5f04c4
xor eax, eax
pop ebx
mov esp, dword [eax]
pop ebp
lodsb al, byte [esi]
or al, 0
mov eax, dword [ebp - 0x1e]
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
sub eax, edx
bound edx, qword [ebp + 0x10]
add eax, 8
and al, 0x3d
add eax, edx
mov dword [ecx + 0x10], eax
inc eax
jne 0x405205
ror byte [eax], 0x24
cmp eax, 0x4189c203
adc byte [eax + 0x75], al
hlt
cmp esi, ebx
je 0x409db9
mov edi, dword [edi + 0x18]
mov eax, dword [edi + 0x16]
add eax, eax
je 0x405229
push eax
call fcn.0040a2d0
mov ebx, eax
add al, 0x8b
dec ebp
mov dword [ebp - 4], edx
nop
push edi
adc byte [ecx + 0x68b0c4d], cl
mov eax, dword [esi]
std
dec ebp
cld
mov dword [ebp + 0x77], eax
mov eax, dword [esi + 8]
test dword [eax], eax
je 0x405250
inc dl
inc ecx
ror byte [ecx - 0x142174e2], 1
das
cmp eax, 0x14
jae 0x40526d
out dx, al
dec esp
xchg dword [eax*4 - 0x3ff17637], edx
or byte [ebx], bh
inc ebp
or al, 0x76
add ecx, dword [ecx + 0x5f890c21]
and edx, dword [esp + edi*2]
or byte [ebx + 0xe89144f], cl
mov ecx, dword [edi + 0x14]
mov dword [esi], ecx
mov dword [edi + 0x14], esi
aas
sal byte [edx + 4], 1
sub edx, eax
jmp 0x40527f
mov ebp, esp
out dx, eax
test esi, esi
jne 0x405237
mov esp, dword [ecx + 0x857890c]
mov dword [edi], eax
mov ebx, esi
mov word [ebp + 0x5706745e], es
inc ebx
pop es
push es
scasb al, byte es:[edi]
sti
mov byte [0x17c79faf], al