joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0e5a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x581a60]
xor eax, esp
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 0x20]
push ebx
push edi
lea eax, [esp + 0x2c]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [0x536724]
fld qword [esi + 0x88]
mov eax, dword [esp + 0x34]
fmul qword [0x560e70]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
lea ebx, [eax - 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
call fcn.005b372a
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x7c], edi
jg 0x4a0f22
mov eax, dword [esi + 0x7c]
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul qword [esi + 0x88]
call fcn.005b372a
mov ecx, dword [esp + 0x3c]
pop edi
pop ebx
xor ecx, esp
call fcn.005ad405
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test edi, edi
js 0x4a0fc8
cmp edi, dword [esi + 0x7c]
jge 0x4a0fc8
mov edx, dword [esi + 0x78]
mov ecx, dword [edx + edi*4]
mov edx, dword [esp + 0x10]
push 1
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
sub ebx, eax
push ebx
push edx
mov dword [esp + 0x18], ecx
push eax
add ecx, 0x138
call fcn.004b586c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004b586c
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.005b372a
mov ebx, dword [0x536728]
push eax
push 0
lea eax, [esp + 0x14]
push eax
call ebx
fld qword [esi + 0x88]
fmul qword [0x560e70]
call fcn.005b372a
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
inc edi
cmp edi, dword [esi + 0x7c]
jl 0x4a0f1a
jmp 0x4a0eea
call fcn.004b9a93
int3
Function at 0x4ac33a
Capabilities:
Encode data using xor

Disassembly:
ror cl, 0x45
frstor dword [edi - 0xb5b85cf]
in al, 0xc5
cmp eax, 0x2a495ba0
salc
popal
mov al, byte [0x41503b7]
in al, 0xb
invalid
in eax, dx
push edi
xor dword [ebp + 0x3a], edx
dec ecx
loopne 0x4ac366
in eax, dx
push cs
sbb al, 0x19
lodsd eax, dword [esi]
test dword [ecx], esi
aam 0xf0
sbb dword [ebp - 0xf2bce7b], ebp
pop eax
movsb byte es:[edi], byte [esi]
inc esp
loope 0x4ac2d5
pop ds
xchg esp, eax
std
push esp
rol ebp, 0x8d
pop esi
les ebx, [eax + 0x3b]
pop eax
adc byte [eax], dh
adc byte [eax - 0x2e7ea733], dl
std
sub byte [ecx + 0x36], dh
jno 0x4ac39e
rcr dword [eax - 0x10], 1
pop eax
adc dl, byte [eax - 0xe]
add eax, 0x332450a
adc al, 0x4f
jno 0x4ac3e1
adc byte [ecx + 0x45bd5751], dl
xor byte [0x85ed8fd0], al
lodsd eax, dword [esi]
lds esi, [eax - 0x42]
adc dword [ebp - 0x13], edx
test ebx, ebx
or dword [edx], 0xed9dd084
push esp
add eax, 0x711070c5
adc ebp, ebp
inc ebp
sbb ah, byte [ebp - 0x7121677]
mov ecx, ebp
in eax, dx
clc
cmp ebp, dword [eax + 0x10]
js 0x4ac384
adc byte [eax - 0x23], bh
cmp byte [eax - 0x727a0f14], dh
test dword [edx], esi
add al, 0x45
jae 0x4ac378
ror byte [edx + 0x4590b70d], 1
loope 0x4ac345
sub dl, byte [edi + edx*8 - 0x1e0b3ee1]
je 0x4ac3a4
pop es
or ah, ah
pop ds
outsb dx, byte [esi]
das
daa
mov edi, edx
invalid
ret 0x5411
Function at 0x4b1caa
Capabilities:
Encode data using xor

Disassembly:
retf 0x9e42
aas
aam 0xd1
inc eax
add dword [ebx - 0xabbebdf], esp
repne lodsb al, byte [esi]
sub eax, 0x3e31617f
jg 0x4b1d1a
xor dword [esi], edi
clc
sub eax, dword [ecx - 0xd7dd20d]
test byte [ecx + 0x6654daf9], 0x71
sbb ebx, dword [eax + 0x487b971a]
lodsd eax, dword [esi]
mov dh, 0xfc
jno 0x4b1ce5
cwde
sbb dl, byte [edi - 0x4952b785]
cld
inc ebp
push ebp
adc ebx, esi
dec ebp
sar byte [edi - 0x52], 0xd1
cmp bl, byte [edx]
mov byte [0xf96d04b0], al
pop eax
xor dword [edi + esi + 0x387f3f1d], edx
adc byte [ebp + 0x7133da85], bh
xchg esp, eax
aaa
sbb eax, 0x10387f3f
mov ebp, 0x7133da85
test edx, ebx
xor esi, dword [ecx + 0x12]
outsd dx, dword [esi]
mov eax, fs
rol dword [ebx - 0x2e02bf48], 0xbc
xor eax, 0x669813eb
adc ch, byte [edi - 0x74]
loopne 0x4b1cb7
cmp dword [eax - 0x432e02c0], 0x65
xor eax, 0x669813eb
xchg dword [0xffa4c7c2], ebx
jg 0x4b1cc8
xchg ecx, eax
pop ss
loopne 0x4b1cab
sub eax, 0x775c151e
ja 0x4b1ca2
in eax, dx
mov al, 0x5b
xchg byte [ecx], al
mov ebx, 0x943eae1c
push 0xffffffffffffff96
insb byte es:[edi], dx
jp 0x4b1ced
fimul dword [ecx - 0x407ee3be]
sbb dword ss:[esi + 0x4f46f2dd], ecx
xchg ebx, eax
aam 0x79
xor dword [ebp + 0x111c9fd8], esi
pop es
cmp eax, 0x8f287b6d
mov edi, 0xf09cb24f
mov ebp, 0x5d0bcc5
cdq
push ebx
outsb dx, byte [esi]
int 0xe
jo 0x4b1d5b
or dword [ecx + 0x7c], esi
jno 0x4b1dd0
push ebx
inc ebx
mov word [ebp + edi*2 - 0x34], gs
aaa
dec esi
not dh
inc esp
or al, 0x80
jb 0x4b1dc9
invalid
in al, dx
cmp al, 0xdf
idiv dword [ebx]
sub ah, dl
adc eax, 0x46e06dcb
aam 0x88
mov bl, 0xaf
sbb byte [esi + eax*2], 0xf5
sbb al, 0x46
cmc
arpl word [edx], bx
jb 0x4b1d7b
scasd eax, dword es:[edi]
cmp dword [ecx], esp
out dx, eax
jae 0x4b1dfa
invalid
cmp eax, 0x1850738e
mov ebx, ecx
push edi
cmpsd dword [esi], dword es:[edi]
inc ecx
xchg ecx, eax
push 0xffffffffffffff96
nop
mov bh, 0x7c
sbb ebp, dword [esi - 0x2c]
sar byte [ecx + ebx*8 - 0x4f], 0xa2
jae 0x4b1dd4
out 0x62, al
pop esi
bnd jb 0x4b1d51
jb 0x4b1d51
jb 0x4b1d69
mov dh, 0xe7
lahf
mov word [esi], ds
sub al, 0x77
arpl word [ecx], sp
mov esp, 0x106f893d
jno 0x4b1dcb
mov ecx, 0x73ae24ab
in eax, dx
xor dl, cl
daa
pop ebx
push edi
cld
insd dword es:[edi], dx
jecxz 0x4b1da8
js 0x4b1dc6
fdiv dword [ecx + 0x154aae3d]
loope 0x4b1d89
scasb al, byte es:[edi]
dec edx
adc eax, 0xa01ab4e1
push ebp
pop esp
xor eax, 0xee68a970
mov ebx, 0x29b028a8
mov ah, 0x1a
mov al, byte [0x355c55f3]
sbb ah, byte [eax + 0x355c55f3]
jo 0x4b1d86
push 0x28a8bbee
mov al, 0x29
mov ah, 0x3b
push es
cmp ch, byte [eax + 0x5bb69ebf]
xchg ecx, eax
jns 0x4b1e06
scasb al, byte es:[edi]
xchg ebp, eax
xchg ecx, eax
test dword [esi - 0x49e480ce], 0xed334c80
sub esp, esp
out dx, al
or byte [ebx + esi - 0x13], 0x29
in al, 0xee
test eax, 0xd31ff9c9
xchg edx, eax
lahf
test dword [edi + 0x18], ecx
mov esi, 0xef2ff040
notrack jmp 0xa6faa7fc
Function at 0x4b68dc
Capabilities:
Encode data using xor

Disassembly:
lcall 0xdb8e, 0xab31e269
popal
mov byte ss:[esi + 0x4e], cl
invalid
cli
xchg esp, eax
dec esi
daa
mov eax, dword gs:[0x723df175]
dec ebp
jnp 0x4b6857
invalid
mov dword [0xb0e97707], eax
imul ch
rol byte [ecx + 0xc], 1
mov dh, 0x3d
add al, 0xbf
loopne 0x4b68c0
pop edx
sub dh, byte [ecx]
out dx, al
inc ebx
push esp
iretd

Function at 0x4b731c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd570
push 0x4b71f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4c4d10], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4c4d0c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4c4d08], ecx
dec ebp
dec esp
add cl, al
call 0x4d501635
dec esp
add byte [edx + 1], ch
call fcn.004b83e7
pop ecx
test eax, eax
jne 0x4b733b
push 0x1c
call fcn.004b73fd
pop ecx
call fcn.004b81a4
test eax, eax
jne 0x4b734c
push 0x10
call fcn.004b73fd
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004b7fe8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c53d4], eax
call fcn.004b7eb6
push eax
or eax, dword [eax]
add byte [ebx + 0x4c4cf4], ah
call fcn.004b7c69
call fcn.004b7bb0
call fcn.004b78c0
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004b7b58
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x4b739b
movzx eax, word [ebp - 0x2c]
jmp 0x4b739e
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004b78ed
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.004b79e0
pop ecx
pop ecx
ret
Function at 0x4b7362
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd570
push 0x4b71f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x4c4d10], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4c4d0c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4c4d08], ecx
dec ebp
dec esp
add cl, al
call 0x4d501635
dec esp
add byte [edx + 1], ch
call fcn.004b83e7
pop ecx
test eax, eax
jne 0x4b733b
push 0x1c
call fcn.004b73fd
pop ecx
call fcn.004b81a4
test eax, eax
jne 0x4b734c
push 0x10
call fcn.004b73fd
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
call fcn.004b7fe8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c53d4], eax
call fcn.004b7eb6
push eax
or eax, dword [eax]
add byte [ebx + 0x4c4cf4], ah
call fcn.004b7c69
call fcn.004b7bb0
call fcn.004b78c0
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004b7b58
mov dword [ebp - 0x64], eax
test byte [ebp - 0x30], 1
je 0x4b739b
movzx eax, word [ebp - 0x2c]
jmp 0x4b739e
push 0xa
pop eax
push eax
push dword [ebp - 0x64]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004b78ed
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
push eax
push ecx
call fcn.004b79e0
pop ecx
pop ecx
ret

Function at 0x4b7931
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 0xc], 0
push ebx
mov ebx, dword [esp + 0x14]
mov dword [0x4c4d3c], edi
mov byte [0x4c4d38], bl
jne 0x4b7985
mov eax, dword [0x4c53d0]
test eax, eax
je 0x4b7974
mov ecx, dword [0x4c53cc]
push esi
lea esi, [ecx - 4]
cmp esi, eax
jb 0x4b7973
mov eax, dword [esi]
test eax, eax
je 0x4b7968
call eax
sub esi, 4
cmp esi, dword [0x4c53d0]
jae 0x4b7960
pop esi
push 0x4c0018
push 0x4c0014
call fcn.004b79c6
pop ecx
pop ecx
push 0x4c0020
push 0x4c001c
call fcn.004b79c6
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x4b79a2
call fcn.004b79bd
pop edi
ret
push dword [esp + 8]
mov dword [0x4c4d40], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x47cf60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 1
jne 0x47cfef
xor eax, eax
cmp dword [edi + 0x60], 8
mov word [ebp - 8], ax
mov dword [ebp - 4], eax
lea eax, [edi + 0x4c]
jb 0x47cf8b
mov eax, dword [eax]
push str.rb__ccsUTF_8
push eax
lea eax, [ebp - 4]
push eax
call fcn.0061a6ff
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
je 0x47cfef
push eax
push 2
lea eax, [ebp - 8]
push 1
push eax
call fcn.0061abd4
push dword [ebp - 4]
call fcn.0061a7df
mov cl, byte [ebp - 8]
add esp, 0x14
mov al, byte [ebp - 7]
cmp cl, 0xff
jne 0x47cfcc
cmp al, 0xfe
je 0x47cfef
cmp al, 0xff
jne 0x47cfd5
cmp cl, 0xfe
je 0x47cfef
mov eax, dword [ebx]
test eax, eax
je 0x47cfe8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
mov ecx, edi
call fcn.0047e560
cmp dword [edi + 0x60], 8
lea esi, [edi + 0x4c]
jb 0x47cffc
mov eax, dword [esi]
jmp 0x47cffe
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x47d09c
cmp dword [esi + 0x14], 8
jb 0x47d026
mov esi, dword [esi]
push 0
push 0x80
push 1
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x47d051
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x8c], 1
push 0
jne 0x47d081
mov ecx, 0xfeff
mov word [ebp - 4], cx
lea ecx, [ebp - 8]
push ecx
push 2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 8]
mov word [ebp - 4], 0xbbef
push ecx
push 3
lea ecx, [ebp - 4]
mov byte [ebp - 2], 0xbf
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47d650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47d660
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
sar esi, 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
add esi, esi
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
push 0x73783c
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47d6c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x47d6d0
push 2
push 0
push 0
push dword [ebx + 0x68]
sub esi, ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
push dword [ebp + 8]
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 2
push 0x737844
push dword [ebx + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x482dd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a040
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x7994f4]
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_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.006051c2
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005f28b4
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 0x486100
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
lea esi, [eax + 0x4c]
mov dword [ebp - 0xc], eax
xor bl, bl
cmp dword [esi + 0x14], 8
push edi
jb 0x48611d
mov eax, dword [esi]
jmp 0x48611f
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48614a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x486169
mov eax, dword [ebp - 0x14]
mov bl, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x486175
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4861eb
cmp dword [ebp - 4], 0
jl 0x4861eb
jg 0x486191
cmp dword [ebp - 8], 0xa00000
jb 0x4861eb
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x68]
lea edi, [ebx + 0x68]
test eax, eax
je 0x4861a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x4861ad
mov esi, dword [esi]
push 0
push 0x80
push 5
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
test eax, eax
je 0x4861d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov eax, dword [ebx]
mov ecx, ebx
push edi
mov eax, dword [eax]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x486cc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x486d23
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x486d23
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x486cf2
pop edi
shr eax, 4
pop esi
and al, 1
pop ebx
pop ebp
ret 4
push esi
call fcn.00624d15
mov edi, eax
push 0x5c
push edi
call fcn.006891a2
add esp, 0xc
test eax, eax
je 0x486d41
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
push edi
call fcn.00486cc0
push edi
test al, al
jne 0x486d2c
call fcn.00619f90
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
call fcn.00619f90
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x486d23
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
Function at 0x48d3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68aa88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x7994f4]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x20], 0x10
lea edx, [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
lea edi, [ebp + 0xc]
cmovae edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
add ebx, edx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x18], 0
cmovae edi, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x14], 7
push eax
call fcn.00483b30
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push ebx
push edi
call fcn.0048a840
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
cmovae edx, dword [ebp - 0x28]
mov eax, edx
lea esi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48d450
sub eax, esi
lea ecx, [ebp - 0x2c]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
push edx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48d49d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IPC_Server_:_Failed_to_send_data.__d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7ad850]
call fcn.0049dca0
add esp, 0x18
xor bl, bl
jmp 0x48d49f
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x48d4d5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48d4cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d537
push edx
push ecx
call fcn.006051f2
add esp, 8
mov edx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x48d519
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48d50f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48d537
push edx
push ecx
call fcn.006051f2
add esp, 8
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.0060565a
mov esp, ebp
pop ebp
ret
call fcn.00611192
int3
Function at 0x48e1f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x7994f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x81], 1
push ecx
lea ecx, [ebp - 0x81]
mov dword [ebp - 0x70], 0
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x6c], 0xf
push ecx
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x80], 0
push ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov byte [ebp - 0x88], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
call fcn.0048df50
add esp, 0x18
mov byte [ebp - 0x8c], al
cmp byte [ebp - 0x81], 0
je 0x48e312
push dword [ebp - 0x88]
lea eax, [ebp - 0x20]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0047f3d0
sub esp, 0x60
lea eax, [ebp - 0x80]
mov esi, esp
mov ecx, esi
push eax
call fcn.0047f3d0
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x18]
call fcn.0047f3d0
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x30]
call fcn.0047f3d0
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x48]
call fcn.0047f3d0
push dword [ebp - 0x8c]
call fcn.0048de40
mov ecx, eax
call fcn.0048d730
call fcn.0048de40
call fcn.0048d6e0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x48e342
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48e338
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48e36f
push edx
push ecx
call fcn.006051f2
add esp, 8
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
call fcn.0048d5a0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0060565a
mov esp, ebp
pop ebp
ret 0x10
call fcn.00611192
int3