joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ed7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x486f40]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41edbc
cmp byte [ebx], 0xa
jne 0x41edbc
or byte [eax + edi + 0x28], 4
jmp 0x41edc1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eebf
mov al, byte [edx]
cmp al, 0x1a
je 0x41eea1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edf0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee15
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee1f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41edd2
jmp 0x41eebf
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ee9c
cmp dword [ebp - 0xc], 0
je 0x41ee9c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486f40]
test byte [eax + edi + 0x28], 0x48
je 0x41ee76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee61
mov byte [esi], dl
jmp 0x41ee72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486f40]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eebf
cmp byte [ebp - 1], 0xa
jne 0x41ee85
cmp esi, ebx
jne 0x41ee85
mov byte [esi], 0xa
jmp 0x41eebe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eebf
mov byte [esi], 0xd
jmp 0x41eebe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eebb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eebf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eec8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x486f40]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ef0b
cmp word [esi], dx
jne 0x41ef0b
or byte [edi + eax + 0x28], 4
jmp 0x41ef10
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f063
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f043
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef52
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef88
cmp eax, edx
jae 0x41ef94
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef2a
jmp 0x41f063
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f03f
cmp dword [ebp - 0x14], 0
je 0x41f03f
mov eax, dword [ebx*4 + 0x486f40]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f017
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe0
mov word [esi], cx
jmp 0x41f013
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486f40]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486f40]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486f40]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f063
pop ebx
cmp word [ebp - 4], bx
jne 0x41f028
cmp esi, dword [ebp + 0xc]
jne 0x41f028
mov word [esi], bx
jmp 0x41f060
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f063
push 0xd
jmp 0x41f05c
mov ecx, dword [ebx*4 + 0x486f40]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f063
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10001ac9
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
xor edi, edi
cmp byte [0x10004014], 0
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
je 0x10001af3
mov al, 1
jmp 0x10001c27
push ebx
push esi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x10001bbc
mov ebx, 0xf01ff
push ebx
mov esi, 0x10001648
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10001b2f
push edi
push edi
push eax
jmp 0x10001c48
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100017a2
test al, al
je 0x10001bbc
push dword [ebp - 0x10]
call fcn.100016e5
test eax, eax
je 0x10001bbc
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 0x10001624
push dword [ebp - 4]
mov dword [ebp - 0x20], 8
call dword [0x10004018]
xor edi, edi
cmp eax, edi
je 0x10001b83
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001bbc
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0xc]
push 1
push 3
push 1
push ebx
push esi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x10001c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x10001bbc
mov byte [0x10004014], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.msvcrt.dll_free]
mov edi, eax
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 0x10]
call esi
mov ebx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
test ebx, ebx
je 0x10001c0e
cmp byte [0x10004014], 0
jne 0x10001c0b
lea eax, [ebp - 0x3c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call esi
cmp dword [ebp - 0x14], 0
je 0x10001c19
push dword [ebp - 0x14]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [0x10004014]
pop esi
pop ebx
pop edi
leave
ret
push edi
push dword [ebp - 4]
call dword [0x1000401c]
cmp eax, 0x57
jne 0x10001c3b
xor eax, eax
cmp eax, edi
jne 0x10001b7a
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10001bb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
sete al
mov byte [0x10004014], al
jmp 0x10001bbc
Function at 0x10001c73
Capabilities:
Delete service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp byte [0x10004014], bl
jne 0x10001c9f
xor al, al
jmp 0x10001d6b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100017a2
test al, al
je 0x10001c98
push dword [ebp - 8]
call fcn.100016e5
test eax, eax
je 0x10001c98
push esi
mov esi, 0x10001624
push esi
push dword [ebp - 4]
call dword [0x10004020]
test eax, eax
jne 0x10001d2b
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10001d2b
push 0xf01ff
push 0x10001648
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x10001d2b
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x10001d2b
push esi
push dword [ebp - 4]
call dword [0x10004024]
cmp eax, ebx
je 0x10001d25
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10001d2b
mov byte [0x10004014], bl
push dword [ebp - 0x10]
mov esi, dword [sym.imp.msvcrt.dll_free]
call esi
push dword [ebp - 0x14]
call esi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0x10
cmp edi, ebx
je 0x10001d55
push edi
call esi
cmp dword [ebp - 0xc], ebx
je 0x10001d5f
push dword [ebp - 0xc]
call esi
xor eax, eax
cmp byte [0x10004014], bl
pop esi
sete al
pop edi
pop ebx
leave
ret

Function at 0x1000244d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push dword [0x10004010]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x1000248f
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, ebx
jne 0x10002482
xor eax, eax
jmp 0x100024ea
push edi
push dword [0x10004010]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x20]
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x1c]
mov dword [ebp - 0xc], ebx
push dword [ebp + 0x18]
mov dword [ebp - 8], edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10001d74
test eax, eax
jne 0x100024e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000247e
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1000247e
cmp esi, ebx
je 0x100024e7
mov eax, dword [ebp - 4]
mov dword [esi], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x100031ab
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
sub esp, 0xb04
push ebx
and eax, 0xfffffbfc
or eax, ecx
push esi
push edi
jne 0x1000332e
mov eax, dword [ebp + 0x14]
and eax, 3
xor edi, edi
cmp eax, 3
jne 0x100031e1
cmp edi, edi
je 0x1000332e
cmp dword [ebp + 0xc], 1
jg 0x1000332e
lea eax, [ebp - 0xb04]
push eax
push dword [ebp + 0xc]
lea esi, [ebp + 8]
push dword [ebp + 8]
call fcn.1000313c
test eax, eax
je 0x1000332e
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0xffffffffffffffff
push 0x40000080
push 3
push edi
push edi
push 0xc0000000
mov ebx, 0x10001664
push ebx
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x10003287
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10003242
cmp eax, 3
jne 0x10003336
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.10001ac9
test al, al
jne 0x10003267
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10003336
push 0x6e
jmp 0x10003330
push 0xffffffffffffffff
push 0x40000080
push 3
push edi
push edi
push 0xc0000000
push ebx
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1000328e
jmp 0x10003336
mov byte [0x10004014], 1
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x100032b9
push edi
push edi
cdq
push edx
push eax
push edi
push 0x12242d
push dword [ebp - 4]
xor eax, eax
call fcn.1000244d
test eax, eax
jne 0x100032b9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10003336
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
je 0x100032dd
push edi
push edi
push dword [ebp + 0x18]
xor eax, eax
push dword [ebp + 0x14]
push edi
push 0x122435
push dword [ebp - 4]
call fcn.1000244d
test eax, eax
je 0x100032ae
movsx eax, word [ebp + 0x10]
mov ecx, 0x8000
add eax, ecx
cmp eax, ecx
je 0x10003304
push edi
push edi
push edi
push eax
push edi
push 0x122431
push dword [ebp - 4]
xor eax, eax
call fcn.1000244d
test eax, eax
je 0x100032ae
movzx eax, word [ebp + 8]
imul eax, eax, 0x16
push eax
lea eax, [ebp - 0xb04]
push eax
push edi
push edi
push edi
push 0x122429
push dword [ebp - 4]
xor eax, eax
call fcn.1000244d
test eax, eax
je 0x100032ae
mov eax, dword [ebp - 4]
jmp 0x10003339
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x100b140
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
inc edi
mov dword [esi + 8], edi
call fcn.0100af4e
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b166
push 0x1388
push dword [esi + 0x38]
call ebx
push dword [esi + 0x3c]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [esi + 0x64]
call ebx
cmp eax, 0x102
jne 0x100b191
push 0
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x64], 0
pop edi
pop esi
pop ebx
ret

Function at 0x100b6b6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
call fcn.0100b121
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x64], ebx
jne 0x100b70c
push edi
push dword [esi + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
push dword [esi + 0x3c]
call edi
lea eax, [esi + 0x68]
push eax
push ebx
push esi
push 0x100b228
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
pop edi
jmp 0x100b71e
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1013f95
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x228
mov eax, 0x101c62d
call fcn.01019f16
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x230], eax
call sub.MFC42u.dll_CString::CString
and dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea eax, [ebp - 0x218]
push eax
mov esi, 0x104
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jbe 0x1014037
push 0x10016f0
mov ecx, edi
call fcn.01019484
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.010194b4
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call fcn.010194b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.010194b4
xor eax, eax
call fcn.01019fa8
ret 0xc
push 0x4b6
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::LoadStringW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01019484
push dword [0x1024374]
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::CString_1
mov esi, eax
push 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::Right
push dword [esi]
mov ecx, eax
call fcn.01008914
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x228]
inc bl
call fcn.010194b4
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.010194b4
test bl, bl
je 0x10140e5
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
call sub.MFC42u.dll_operator
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call fcn.01019490
lea ecx, [ebp - 0x224]
jmp 0x101415a
push dword [0x1024374]
lea ecx, [ebp - 0x234]
call sub.MFC42u.dll_CString::CString_1
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.dll_operator
lea ecx, [ebp - 0x220]
push ecx
push eax
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 6
call sub.MFC42u.dll_operator
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 7
call fcn.01019490
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.010194b4
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.010194b4
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.010194b4
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x101417c
push dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
push eax
call fcn.01013492
push esi
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x10141e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10141e1
push 0x1002e05
mov ecx, edi
call fcn.01019808
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.010194b4
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call fcn.010194b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.010194b4
mov eax, esi
jmp 0x101402f
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.01019490
xor esi, esi
inc esi
jmp 0x10141ad
Function at 0x10145aa
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx + 8]
mov eax, ecx
lea edx, [eax + 2]
push esi
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10145b9
sub eax, edx
sar eax, 1
pop esi
jne 0x10145d8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x10145eb
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push ecx
push dword [eax]
push dword [ebp + 8]
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
leave
ret 8

Function at 0x1014f50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1014fb7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
jb 0x1014fb0
push esi
lea eax, [ebp + 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1014fb0
cmp dword [ebp + 8], 4
jne 0x1014fb0
cmp dword [ebp - 4], 0xe011cfd0
jne 0x1014fb0
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1015afe
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x58
mov eax, 0x101c74c
call fcn.01019ea3
mov esi, ecx
mov edi, dword [esi + 0x37c]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, edi
jne 0x1015b51
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1015b51
push dword [esi + 0x37c]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1015b51
push 0
push 0
push 0x301
push dword [esi + 0x37c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1015ca5
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
and dword [ebp - 4], 0
push 0x10016f0
lea ecx, [ebp - 0x10]
call fcn.01019484
mov ecx, esi
call fcn.010142a0
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1015c99
mov edx, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call dword [edx + 0x18]
and dword [ebp - 0x5c], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 2
mov dword [ebp - 0x64], 4
push 0xffffffffffffffff
mov ebx, 0x100c
jmp 0x1015c26
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0x104b
push dword [esi + 0x14]
call edi
test eax, eax
je 0x1015c21
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x20]
jge 0x1015c14
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
jle 0x1015c14
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
push 0
lea edx, [ebp - 0x28]
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x44]
call dword [eax + 0x28]
test eax, eax
je 0x1015c09
cmp dword [ebp - 0x14], 0
je 0x1015bfe
push 0x1002df0
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::operator_2
push dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::operator
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x1015bd3
push 0x10072ac
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::operator_2
push 2
push dword [ebp - 0x18]
push ebx
push dword [esi + 0x14]
call edi
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x1015ba7
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1015c99
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1015c93
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
lea edi, [eax + eax + 2]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1015c93
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1015c93
push edi
push dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.010194b4
call fcn.01019f8f
ret
Function at 0x1018d2e
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push edi
lea eax, [ebp - 0x10]
mov edi, ecx
and dword [edi + 0x3e0], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1018ead
mov eax, dword [ebp - 0x10]
push 2
pop ecx
cmp eax, ecx
jl 0x1018ead
push esi
xor esi, esi
inc esi
dec eax
cmp eax, esi
jl 0x1018eac
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + esi*4]
movzx ecx, word [eax]
cmp cx, 0x2d
je 0x1018d94
cmp cx, 0x2f
jne 0x1018eb6
inc eax
inc eax
push 0x10073c4
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1018ecb
push 0x10073b8
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1018ecb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jge 0x1018eac
push 0x10073b0
push dword [ebp - 8]
inc esi
inc dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1018e0c
mov dword [0x10268ac], 1
push dword [ebx + esi*4]
lea ecx, [edi + 0x3f0]
call fcn.01019484
or dword [ebp - 4], 2
jmp 0x1018e8e
push 0x10073a0
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1018e3e
mov dword [0x10268ac], 1
push dword [ebx + esi*4]
lea ecx, [edi + 0x3ec]
call fcn.01019484
or dword [ebp - 4], 4
jmp 0x1018e8e
push 0x100738c
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1018e70
mov dword [0x10268b0], 1
push dword [ebx + esi*4]
lea ecx, [edi + 0x3e4]
call fcn.01019484
or dword [ebp - 4], 8
jmp 0x1018e8e
push 0x1007378
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1018e8a
or dword [ebp - 4], 0x10
jmp 0x1018e8e
or dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
inc esi
inc dword [ebp - 0xc]
dec eax
cmp esi, eax
jle 0x1018d7e
cmp dword [ebp - 4], 0
je 0x1018eac
push dword [ebp - 4]
call fcn.01019309
pop esi
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret 4
cmp esi, 1
jne 0x1018e9e
push dword [ebx + 4]
lea ecx, [edi + 0x3e8]
call fcn.01019484
jmp 0x1018e9e
mov dword [edi + 0x3e0], 1
jmp 0x1018eac