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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push ebp
push esi
push edi
push 0x32
mov ebx, ecx
xor esi, esi
lea ecx, [esp + 0x1e]
xor eax, eax
push esi
push ecx
mov word [esp + 0x24], ax
call fcn.00440000
mov edx, 0xffff
add esp, 0xc
mov ecx, ebx
mov word [esp + 0x4c], dx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], 0xade8bf
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0x99caa8
mov dword [esp + 0x60], esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00434d35
mov eax, dword [ebx + 0x274]
mov edx, dword [eax + 0x13c]
lea ebp, [ebx + 0x274]
lea ecx, [ebx + 0x220]
push ecx
push 0x91
mov ecx, ebp
call edx
mov esi, dword [ebx + 0x74]
add esi, 0x5c
mov ecx, 0x17
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x94]
mov ecx, esi
call fcn.00432398
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, esi
call fcn.00432340
mov esi, dword [ebx + 0x74]
mov ecx, 0x17
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x8c]
mov ecx, esi
call fcn.00432398
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, esi
call fcn.00432340
mov edx, dword [ebx + 0x74]
mov byte [ebx + 0x340], 0xff
call fcn.00409050
mov esi, eax
test esi, esi
jne 0x4213dc
lea esi, [esp + 0x18]
jmp 0x4213e4
movzx edx, word [esi + 0x34]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x348], eax
mov eax, dword [esi + 0x44]
mov edi, ebp
call fcn.00427be0
mov ecx, dword [esi + 0x38]
mov dword [ebx + 0x350], ecx
mov eax, dword [esi + 0x3c]
call fcn.00427c70
mov edx, dword [esi + 0x48]
push esi
lea ecx, [ebx + 0x1c8]
mov dword [ebx + 0x354], edx
call fcn.004311b0
mov eax, dword [ebx + 0x74]
movzx ecx, byte [eax + 0xbe]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x21c], ecx
mov edx, dword [eax + 0x10c]
mov dword [eax + 0x128], edx
mov ecx, dword [ebx + 0x74]
cmp dword [ecx + 0x128], 0
je 0x4214d8
mov eax, dword [ecx + 0x128]
test eax, eax
je 0x4214d3
mov edx, dword [eax]
mov dword [ecx + 0x128], edx
mov esi, dword [eax + 8]
test esi, esi
je 0x4214d8
mov eax, dword [ebx + 0x194]
push esi
push 0
push 0x180
push eax
call ebp
movzx ecx, word [esi + 0x34]
mov edx, dword [ebx + 0x194]
push ecx
mov edi, eax
push edi
push 0x19a
push edx
call ebp
movzx eax, word [esi + 0x34]
cmp eax, dword [esp + 0x14]
jne 0x42143f
mov ecx, dword [ebx + 0x194]
push 0
push edi
push 0x186
push ecx
call ebp
push 1
lea ecx, [ebx + 0xcc]
call fcn.00431294
push 1
lea ecx, [ebx + 0x78]
call fcn.00431294
push 1
lea ecx, [ebx + 0x120]
call fcn.00431294
jmp 0x42143f
call fcn.0042adb3
push 0
mov ecx, ebx
call fcn.0042d99e
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422d50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x45ae46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push edi
xor ebx, ebx
push ebx
push 0x46c334
lea ebp, [esi + 0x64]
push 0x50
mov ecx, ebp
call fcn.0043338b
mov ecx, dword [esi + 0x68]
lea eax, [esp + 0x34]
push eax
push 0x5c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x48], 0x2bc
lea edi, [esi + 0x6c]
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, edi
call fcn.00432340
push esi
lea ecx, [esp + 0x24]
call fcn.00432195
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0xa4], ebx
call fcn.0043242b
push str.Buscar:
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00404ea0
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
push 0xc00
lea edx, [esp + 0x14]
push edx
push ecx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x68]
lea ecx, [esp + 0x30]
call edx
mov byte [esp + 0xa0], bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422e2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x10]
mov dword [esi + 0x5c], ecx
push edi
lea ecx, [esp + 0x24]
mov dword [esi + 0x60], edx
call fcn.0043242b
cmp ebp, ebx
je 0x422e52
mov ebx, dword [ebp + 4]
mov eax, dword [esi + 0x94]
push 1
push ebx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x20]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004321e9
mov ecx, dword [esp + 0x98]
pop edi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98
ret
Function at 0x423f90
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45ae01
push eax
mov dword fs:[0], esp
sub esp, 0x2c8
push ebx
call fcn.0042ae70
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x423fcc
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 4], eax
mov dword [esp + 0x2d4], 0
call fcn.0042ae70
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x424001
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
lea ecx, [esp + 4]
mov byte [esp + 0x2d4], 1
mov edx, dword [edi + 0x54]
push ecx
push edx
mov ecx, esi
call fcn.0041d860
mov ecx, dword [edi + 0x54]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.0041d9f0
test al, al
je 0x4240d8
mov eax, dword [esp + 8]
push 0x100
push 0x2b4
lea edx, [esp + 0x18]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
lea ebx, [edi + 0xe0]
push edx
lea eax, [ebx + 0xd8]
push eax
mov ecx, esi
call fcn.00419bf0
mov eax, ebx
call fcn.00409a70
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [edi + 0x54]
push esi
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0041db80
push esi
push eax
lea edx, [edi + 0x5c]
mov ecx, esi
mov byte [esp + 0x2dc], 2
call fcn.004297f0
mov byte [esp + 0x2d4], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4240d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2d4], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424100
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2d4], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42412b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2cc]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424b60
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
movzx eax, cx
sub eax, 1
je 0x424b80
mov eax, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0042f3b7
pop esi
ret 8
shr ecx, 0x10
test ecx, ecx
jne 0x424bc7
mov eax, dword [esi + 0x54]
push edi
xor edi, edi
push 0x11
mov dword [eax + 0x34], edi
mov byte [eax + 0x64], 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x424bab
mov edi, 1
mov edx, dword [esi + 0x54]
mov eax, dword [0x47ea94]
mov ecx, dword [0x47eaa4]
push edi
push edx
mov edx, dword [ecx + 0x20]
push eax
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x425890
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45ad78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
call fcn.0042ae70
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4258c4
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov edx, dword [esi + 0x54]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
call fcn.0041d9f0
mov edi, dword [esp + 8]
test al, al
je 0x425922
push 1
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x425932
cmp eax, 0x1f
jne 0x425922
push 0x10
push 0
push str.Este_tipo_de_fichero_no_tiene_un_programa_asociado.
jmp 0x42592b
push 0x10
push 0
push 0x46c6d8
mov ecx, esi
call fcn.0042cf4c
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 8
Function at 0x429560
Capabilities:
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x459316
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [edx]
sub eax, 0x10
push eax
call fcn.004050d0
add eax, 0x10
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
mov dword [esp + 0x18], 0
push 0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], eax
call fcn.00434839
push 0
push 4
push 0
push 0
push esi
push 0x4296a0
mov byte [esp + 0x24], 1
call fcn.00436d36
mov dword [esi + 0x18], eax
mov dword [eax + 0x28], 0
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc

Function at 0x429b00
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x45abda
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
mov eax, dword [0x479e4c]
xor eax, esp
mov dword [esp + 0x518], eax
mov eax, dword [0x479e4c]
xor eax, esp
push eax
lea eax, [esp + 0x520]
mov dword fs:[0], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x528], 1
call fcn.0042ae70
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x429b68
push 0x80004005
call fcn.00405760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x124]
push eax
mov eax, dword [esp + 0x53c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push 0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x429be8
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x20]
push edx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x429be8
mov eax, dword [esp + 4]
push eax
mov ecx, esi
call fcn.00405440
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [esp + 0x528], 0
mov eax, dword [esp + 0x530]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x429c13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x520]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.0043f50e
add esp, 0x528
ret
Function at 0x429dd0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4599f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x479e4c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 1
push 0x46da20
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 1
call fcn.004045d0
mov eax, dword [esp + 0x38]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x429e29
mov eax, esi
push eax
lea ecx, [esp + 0x3c]
call fcn.004051d0
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov word [eax + esi*2 - 2], cx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
mov eax, 0x2000
push ecx
mov dword [esp + 0x10], 2
mov dword [esp + 0x18], edx
mov word [esp + 0x1c], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x429e82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429eaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x429ec0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
xor eax, eax
push edi
xor edi, edi
mov byte [esp + 0x13], al
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x18], eax
mov ecx, 3
mov dword [esp + 0x1c], 9
mov al, byte [esi]
movzx ebx, al
lea edx, [ecx - 2]
imul edx, ebx
add edi, edx
mov dl, byte [esi + 1]
movzx edx, dl
lea ebx, [ecx - 1]
imul ebx, edx
add dword [esp + 0x18], ebx
mov dl, byte [esi + 2]
movzx ebx, dl
imul ebx, ecx
add ebp, ebx
mov bl, byte [esi + 3]
xor bl, dl
xor bl, byte [esi + 1]
movzx edx, byte [esi + 3]
xor bl, al
xor byte [esp + 0x13], bl
lea eax, [ecx + 1]
imul eax, edx
add dword [esp + 0x14], eax
add ecx, 4
add esi, 4
sub dword [esp + 0x1c], 1
jne 0x429ee8
mov eax, dword [esp + 0x14]
movzx ecx, byte [esp + 0x13]
add eax, ebp
add eax, dword [esp + 0x18]
add edi, eax
mov eax, edi
pop edi
pop esi
shl eax, 8
pop ebp
add eax, ecx
pop ebx
add esp, 0x10
ret
Function at 0x430fdf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x431026
call fcn.004331c0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x431026
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x431042
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00430b57
mov esi, eax
test edi, edi
je 0x431040
test ebx, ebx
je 0x431040
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43ebfb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x43ec2c
call fcn.0043fd81
mov dword [eax], esi
call fcn.0043fd6e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00443fdc
add esp, 0x14
push 0x16
pop eax
jmp 0x43ec81
test dword [ebp + 0xc], 0xfffffff9
jne 0x43ec08
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43ec59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043fd94
pop ecx
call fcn.0043fd6e
mov eax, dword [eax]
jmp 0x43ec81
test al, 0x10
jne 0x43ec7f
test al, 1
je 0x43ec7f
test byte [ebp + 0xc], 2
je 0x43ec7f
call fcn.0043fd81
mov dword [eax], 5
call fcn.0043fd6e
mov dword [eax], 0xd
jmp 0x43ec50
xor eax, eax
pop esi
pop ebp
ret

Function at 0x43f50e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479e4c]
jne 0x43f518
repz ret
jmp fcn.0044b083
Function at 0x44e453
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.004433a1
and dword [ebp - 4], 0
cmp dword [0x47e9b4], 0
mov ebx, eax
jne 0x44e504
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44e5b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44e5b5
push eax
call fcn.0044332f
mov dword [esp], 0x4624c8
push edi
mov dword [0x47e9b4], eax
call esi
push eax
call fcn.0044332f
mov dword [esp], 0x4624b4
push edi
mov dword [0x47e9b8], eax
call esi
push eax
call fcn.0044332f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47e9bc], eax
call esi
push eax
call fcn.0044332f
pop ecx
mov dword [0x47e9c4], eax
test eax, eax
je 0x44e504
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044332f
pop ecx
mov dword [0x47e9c0], eax
mov eax, dword [0x47e9c0]
cmp eax, ebx
je 0x44e55c
cmp dword [0x47e9c4], ebx
je 0x44e55c
push eax
call fcn.004433aa
push dword [0x47e9c4]
mov esi, eax
call fcn.004433aa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44e55c
test edi, edi
je 0x44e55c
call esi
test eax, eax
je 0x44e553
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44e553
test byte [ebp - 0xc], 1
jne 0x44e55c
or dword [ebp + 0x10], 0x200000
jmp 0x44e595
mov eax, dword [0x47e9b8]
cmp eax, ebx
je 0x44e595
push eax
call fcn.004433aa
pop ecx
test eax, eax
je 0x44e595
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44e595
mov eax, dword [0x47e9bc]
cmp eax, ebx
je 0x44e595
push eax
call fcn.004433aa
pop ecx
test eax, eax
je 0x44e595
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47e9b4]
call fcn.004433aa
pop ecx
test eax, eax
je 0x44e5b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44e5b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100013f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
xor ebx, ebx
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0xffffffff
call dword [eax]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x100014c2
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
mov ebp, eax
test ebp, ebp
je 0x100014c2
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100014c2
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x28]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebx
push edx
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x100014be
cmp ebp, dword [esp + 0x10]
jne 0x100014be
mov eax, dword [esp + 0x2c]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x100014be
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x100014d3
push eax
call esi
test edi, edi
je 0x100014da
push edi
call esi
test ebx, ebx
je 0x100014e7
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
je 0x100014fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
add esp, 0x14
ret 8
Function at 0x10002440
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a87d0
push 0x1007e3d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x88], esi
mov ecx, 0x19
xor eax, eax
lea edi, [ebp - 0x84]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
cmp eax, 1
je 0x100025ef
push esi
push esi
push 3
push esi
push 7
push bind
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x90], eax
cmp eax, 0xffffffff
je 0x100025ef
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, esi
je 0x100025ef
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x8c], esi
mov ecx, ebx
xor eax, eax
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100025ed
push 0
lea edx, [ebp - 0x88]
push edx
call fcn.10019d30
push ebx
push esi
lea eax, [ebp - 0x88]
push eax
call fcn.10019d90
lea ecx, [ebp - 0x88]
push ecx
call fcn.1001a7d0
add esp, 0x18
mov esi, dword [ebp + 0x10]
cmp esi, 0x7fffffff
jbe 0x10002570
mov dword [ebp - 0xa0], 0x80070057
jmp 0x100025e3
lea edx, [ebp - 0x30]
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
xor edi, edi
mov dword [ebp - 0xa4], edi
test esi, esi
jne 0x100025a5
mov edi, 0x80070057
mov dword [ebp - 0xa4], edi
jmp 0x100025dd
test esi, esi
je 0x100025c8
mov cl, byte [edx]
test cl, cl
je 0x100025c4
mov byte [eax], cl
inc eax
mov dword [ebp - 0xa8], eax
inc edx
mov dword [ebp - 0xb0], edx
dec esi
mov dword [ebp - 0xac], esi
jmp 0x100025a1
test esi, esi
jne 0x100025da
dec eax
mov dword [ebp - 0xa8], eax
mov edi, 0x8007007a
mov dword [ebp - 0xa4], edi
mov byte [eax], 0
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x94], 1
xor esi, esi
mov dword [ebp - 4], 0xffffffff
call fcn.10002616
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10008dd0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x10008e0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x10008e16
xor al, al
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
ret