joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41786a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x417875
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x417930
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45ae10]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45ae10]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45ae10]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45ae10]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45ae10]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45ae10]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45ae10]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x45ae10]
inc edx
sub edi, 8
dec esi
jne 0x417895
pop ebx
test edi, edi
je 0x417949
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x45ae10]
inc edx
dec edi
jne 0x417934
pop edi
not eax
pop esi
ret

Function at 0x417de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x417e14
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417e0f
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x417e3c
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x417e25
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004407a0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x418bd9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x418c83
movzx ecx, word [esi]
test cx, cx
je 0x418c83
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x418c17
cmp cx, 0x5c
jne 0x418c19
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x418c0b
cmp eax, esi
je 0x418c57
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00442bee
xor eax, eax
mov word [ebp + edi*2 - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00418bd9
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0044283c
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0044280b
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db8a
leave
ret
Function at 0x41a1b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x41a22f
cmp dword [esi + 4], 0xffffffff
jne 0x41a22f
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x45b40c
push edi
call fcn.0044280b
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x41a201
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x41a201
mov eax, 0x2000000
jmp 0x41a234
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00417bf6
add esp, 0x10
test eax, eax
jne 0x41a21f
mov eax, dword [ebp + 0x10]
jmp 0x41a234
push eax
call fcn.00419db0
mov dword [esi], eax
mov eax, dword [0x4760b8]
pop ecx
jmp 0x41a234
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x421a01
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x421a69
cmp dword [ebp + 8], 0x100
jne 0x421a58
cmp word [ebp + 0xc], 0xd
jne 0x421a58
cmp byte [esi + 0x4da], bl
je 0x421a3f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x421a58
cmp byte [esi + 0x4db], bl
jne 0x421a58
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x421a54
push ebx
push ebx
push ebx
push 0x45bc40
push esi
call fcn.0040ee33
xor eax, eax
jmp 0x421a6c
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x42b8c4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x42b935
cmp dword [esi + 0x10], ebx
je 0x42b935
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00442c40
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x42b935
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00411c23
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0040ee33
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043db8a
leave
ret 0x10
Function at 0x43735f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x437384
cmp eax, edi
jge 0x43737c
mov eax, esi
call fcn.00436d13
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4373a6
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x43738b
cmp ecx, 4
jge 0x4373c5
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4373b3
xor eax, eax
jmp 0x4373bb
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4373a9
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4373f7
mov eax, str.zlib_corrupt
call fcn.00434930
jmp 0x437432
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x437407
mov eax, str.read_past_buffer
jmp 0x4373f0
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x43741c
mov ecx, edi
call fcn.00436d3e
test eax, eax
je 0x437432
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004407a0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x43db8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4710b0]
jne 0x43db94
repz ret
jmp fcn.00445d7a

Function at 0x4506df
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4710b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00445658
and dword [ebp - 0x14], 0
cmp dword [0x476fa4], 0
mov dword [ebp - 0x18], eax
jne 0x450792
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45083a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x464fc8
push ebx
call edi
test eax, eax
je 0x45083a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x476fa4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x476fa8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x476fac], eax
call edi
push eax
call esi
mov dword [0x476fb4], eax
test eax, eax
je 0x450792
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x476fb0], eax
mov eax, dword [0x476fb0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4507eb
cmp dword [0x476fb4], ecx
je 0x4507eb
push eax
call esi
push dword [0x476fb4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4507eb
test ebx, ebx
je 0x4507eb
call edi
test eax, eax
je 0x4507e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4507e2
test byte [ebp - 8], 1
jne 0x4507eb
or dword [ebp + 0x10], 0x200000
jmp 0x45081e
mov eax, dword [0x476fa8]
cmp eax, dword [ebp - 0x18]
je 0x45081e
push eax
call esi
test eax, eax
je 0x45081e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45081e
mov eax, dword [0x476fac]
cmp eax, dword [ebp - 0x18]
je 0x45081e
push eax
call esi
test eax, eax
je 0x45081e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x476fa4]
call esi
test eax, eax
je 0x45083a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45083c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db8a
leave
ret
Function at 0x10018200
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x10018720
test edx, edx
je 0x10018720
call fcn.10018217
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x10018760
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.10018200
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x100187d1
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x10018796
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x100190e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp ebp, 0x80
je 0x10019164
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp ebp, 0xc0
je 0x1001913c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
jmp 0x10019144
mov ecx, eax
mov edx, ebx
not ecx
not edx
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
nop
call fcn.10019169
Function at 0x1004bb2f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x102a1e64]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
mov esi, edx
push 0x44
mov dword [ebp - 0x6c], esi
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
pop edi
push edi
push 0
push eax
call fcn.101ab280
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x28], 1
xor eax, eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], edi
push eax
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1004bbb6
push 0xffffffffffffffff
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x68]
call esi
xor eax, eax
jmp 0x1004bc00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
mov esi, eax
lea eax, [ebp - 0x58]
push eax
push 0x400
push esi
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 0x58]
mov ecx, str._null_
test ebx, ebx
mov eax, ecx
cmovne eax, ebx
push esi
push eax
mov eax, dword [ebp - 0x6c]
test eax, eax
cmovne ecx, eax
push ecx
push str.cimg::system___:_Command__s__module_name__s__failed_with_error__lu:__s
call fcn.1004badf
add esp, 0x14
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a966e
leave
ret
Function at 0x1004d461
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
mov esi, 0x1025dfb8
push edi
cmovne esi, eax
mov edi, ecx
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004d47c
sub ecx, edx
lea ebx, [ecx + 1]
test ebx, ebx
je 0x1004d4a5
push ebx
call fcn.101a9bdc
push ebx
push esi
push eax
mov dword [ebp - 4], eax
call fcn.101ab3e0
mov ebx, dword [ebp - 4]
add esp, 0x10
jmp 0x1004d4a7
xor ebx, ebx
cmp dword [edi + 0x18], 0
lea esi, [edi + 0x1c]
je 0x1004d4bc
cmp dword [esi], 0
je 0x1004d4bc
mov ecx, edi
call fcn.1004d580
call fcn.1004cbdb
mov ecx, dword [ebp + 8]
cmp eax, ecx
cmovb ecx, eax
mov dword [edi + 0x18], ecx
call fcn.1004cc18
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
push 3
cmovb ecx, eax
mov word [edi + 0xbc], 0x100
cmp dword [ebp + 0x14], 4
pop eax
cmovb eax, dword [ebp + 0x14]
mov dword [edi + 0x20], eax
mov al, byte [ebp + 0x18]
mov byte [edi + 0x30], al
mov eax, closesocket
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], eax
mov al, byte [ebp + 0x1c]
mov dword [esi], ecx
mov ecx, edi
mov byte [edi + 0x60], al
mov dword [edi + 0x34], ebx
call fcn.1004cb84
cmp byte [edi + 0x30], 0
je 0x1004d520
mov ecx, edi
call fcn.1004d3cd
push 8
call fcn.101a9bdc
pop ecx
mov esi, eax
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [esi], edi
mov eax, dword [edi + 0x34]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0xc8], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x1004d015
push ebx
push ebx
mov dword [edi + 0xc4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [edi + 0xc4]
mov dword [edi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1004d580
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x18], ebx
je 0x1004d638
cmp dword [esi + 0x1c], ebx
je 0x1004d638
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
push dword [esi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xdc]
call fcn.101a967c
push dword [esi + 0x34]
call fcn.101a967c
pop ecx
pop ecx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0x34], ebx
cmp byte [esi + 0x30], bl
je 0x1004d602
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x1004d5e5
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 0xd0], ebx
cmp word [esi + 0x124], bx
je 0x1004d602
push ebx
lea eax, [esi + 0xe0]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
and dword [esi + 0x2c], ebx
mov eax, closesocket
and dword [esi + 0x28], ebx
mov ecx, esi
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], eax
mov byte [esi + 0x30], bl
mov byte [esi + 0x60], 1
mov dword [esi + 0x34], ebx
call fcn.1004cb84
mov eax, esi
pop esi
pop ebx
ret
pop esi
pop ebx
jmp fcn.1004cb84

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004db04
xor eax, eax
push eax
push eax
push esi
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
je 0x1004db04
sub esp, 0xc
lea ecx, [esp + 0x1c]
push ebx
call fcn.10050ecf
push ebx
push dword [esp + 0x28]
push esi
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1004daf3
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [esp + 0x20], 0
jne 0x1004db04
push dword [esp + 0x24]
call fcn.101a967c
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004db0d
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x102a3fbc]
push ebx
push esi
xor ebx, ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x102a4b04]
push edi
cmp eax, dword [ecx + 4]
jle 0x1004db79
mov esi, 0x102a4b04
push esi
call fcn.101a970b
cmp dword [0x102a4b04], 0xffffffff
pop ecx
jne 0x1004db79
push 0x101d081c
mov dword [0x102a4aa0], ebx
mov dword [0x102a4aa4], ebx
mov dword [0x102a4aa8], ebx
mov dword [0x102a4aac], ebx
mov byte [0x102a4ab0], bl
mov dword [0x102a4ab4], ebx
call fcn.101a9bb9
pop ecx
push esi
call fcn.101a96ba
pop ecx
call fcn.1004b9db
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x102a4ab4], ebx
jne 0x1004dbf4
push 1
push 1
push 1
push 0x104
mov ecx, 0x102a4aa0
call fcn.100515e1
mov eax, dword [0x102a4ab4]
push ebx
push 0x26
mov byte [eax], bl
push dword [0x102a4ab4]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1004dbf4
push str.PROGRAMFILES
call fcn.101ba011
pop ecx
test eax, eax
je 0x1004dbe6
push 0x103
push eax
push dword [0x102a4ab4]
call fcn.101b3480
add esp, 0xc
jmp 0x1004dbf4
mov edi, dword [0x102a4ab4]
mov esi, str.C:PROGRA1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1004b9db
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x102a4ab4]
pop edi
pop esi
pop ebx
ret
Function at 0x10050733
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10050757
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x10050e2f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x1005075e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x102a1e64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov ecx, 0x24de
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.1006a416
mov esi, eax
push 0x24de
push edi
mov dword [ebx], esi
lea eax, [esi + 0x24de]
push esi
mov dword [ebx + 8], eax
call fcn.101ab280
lea eax, [esi + 0x24de]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 8
jb 0x100507c7
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0xbbd5
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x24de
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a966e
leave
ret
Function at 0x1006a009
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov eax, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x1006a082
cmp dword [ebp + 8], 0
je 0x1006a082
test edi, edi
jne 0x1006a038
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, edx
push dword [ebp + 8]
mov esi, 0x3f00000
cmp edi, esi
cmovb esi, edi
add eax, ebx
push esi
push 1
push eax
call fcn.101b9a49
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x1006a067
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x1006a03c
test edi, edi
mov edi, dword [esp + 0x14]
je 0x1006a07e
push edi
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.1004badf
add esp, 0xc
mov eax, ebx
jmp 0x1006a031
push eax
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102962f8
mov ecx, 0x1025dfb8
cmovbe eax, ecx
push eax
call fcn.1004b94e
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.1004b6c3
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029ead4
push eax
call fcn.101abedd
int3

Function at 0x1006a0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov eax, ecx
mov dword [esp + 0xc], eax
push edi
mov edi, edx
mov dword [esp + 0x14], edi
test eax, eax
je 0x1006a139
cmp dword [ebp + 8], 0
je 0x1006a139
test edi, edi
jne 0x1006a0ef
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov edi, edx
push dword [ebp + 8]
mov esi, 0x3f00000
cmp edi, esi
cmovb esi, edi
add eax, ebx
push esi
push 1
push eax
call fcn.101b9a49
add esp, 0x10
add ebx, eax
sub edi, eax
cmp esi, eax
jne 0x1006a11e
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x1006a0f3
test edi, edi
mov edi, dword [esp + 0x14]
je 0x1006a135
push edi
push ebx
push str.cimg::fread__:_Only__lu__lu_elements_could_be_read_from_file.
call fcn.1004badf
add esp, 0xc
mov eax, ebx
jmp 0x1006a0e8
push eax
push dword [ebp + 8]
cmp edi, 1
mov eax, 0x102962f8
mov ecx, 0x1025dfb8
cmovbe eax, ecx
push eax
call fcn.1004b954
push eax
push edi
lea eax, [esp + 0x2c]
push str.cimg::fread__:_Invalid_reading_request_of__u__s_s_from_file__p_to_buffer__p.
push eax
call fcn.1004b6c3
add esp, 0x1c
lea eax, [esp + 0x18]
push 0x1029ead4
push eax
call fcn.101abedd
int3