joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d970
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x55555556
imul ebx
push esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push edi
lea eax, [ecx + ecx*2]
sub ebx, eax
lea edi, [ecx*4]
mov dword [ebp + 0xc], ebx
je 0x1000d9a0
lea edi, [ecx*4 + 4]
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.1014dd53
mov esi, eax
add esp, 4
lea eax, [edi - 2]
xor edx, edx
mov dword [ebp - 4], eax
mov byte [esi + edi], 0
test eax, eax
jle 0x1000da3c
mov edi, dword [ebp + 8]
mov ebx, eax
inc edi
nop
movzx eax, byte [edi - 1]
lea edi, [edi + 3]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx], al
movzx ecx, byte [edi - 4]
movzx eax, byte [edi - 3]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 1], al
movzx ecx, byte [edi - 3]
movzx eax, byte [edi - 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 2], al
movzx eax, byte [edi - 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + edx + 3], al
add edx, 4
cmp edx, ebx
jl 0x1000d9d0
mov ebx, dword [ebp + 0xc]
dec ebx
je 0x1000da49
dec ebx
jne 0x1000da50
mov byte [edx + esi - 1], 0x3d
jmp 0x1000da50
mov word [edx + esi - 2], 0x3d3d
cmp byte [esi], 0
jne 0x1000da59
xor eax, eax
jmp 0x1000da69
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000da60
sub eax, edx
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.1001ec60
push esi
call fcn.1014dde5
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000da90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [edx]
mov byte [ecx], al
movzx eax, byte [edx + 1]
mov byte [ecx + 1], al
movzx eax, byte [edx + 2]
mov byte [ecx + 2], al
movzx eax, byte [edx + 3]
mov byte [ecx + 3], al
movzx eax, byte [edx + 4]
mov byte [ecx + 4], al
movzx eax, byte [edx + 5]
mov byte [ecx + 5], al
movzx eax, byte [edx + 6]
mov byte [ecx + 6], al
movzx eax, byte [edx + 7]
mov byte [ecx + 7], al
movzx eax, byte [edx + 8]
mov byte [ecx + 8], al
movzx eax, byte [edx + 9]
mov byte [ecx + 9], al
movzx eax, byte [edx + 0xa]
mov byte [ecx + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [ecx + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [ecx + 0xc], al
movzx eax, byte [edx + 0xd]
mov byte [ecx + 0xd], al
movzx eax, byte [edx + 0xe]
mov byte [ecx + 0xe], al
movzx eax, byte [edx + 0xf]
mov edx, 4
mov byte [ecx + 0xf], al
lea eax, [ecx + 0xd]
mov dword [ebp - 8], edx
push ebx
mov cl, byte [eax + 1]
mov bl, byte [eax - 1]
mov bh, byte [eax]
mov byte [ebp - 1], cl
mov cl, byte [eax + 2]
mov byte [ebp - 2], cl
test dl, 3
jne 0x1000db62
movzx ecx, bh
mov dl, bl
mov bl, byte [ecx + 0x101cf5d0]
movzx ecx, byte [ebp - 1]
mov bh, byte [ecx + 0x101cf5d0]
movzx ecx, byte [ebp - 2]
mov cl, byte [ecx + 0x101cf5d0]
mov byte [ebp - 1], cl
movzx ecx, dl
mov edx, dword [ebp - 8]
mov cl, byte [ecx + 0x101cf5d0]
mov byte [ebp - 2], cl
mov ecx, edx
shr ecx, 2
xor bl, byte [ecx + 0x101cf4c0]
mov cl, byte [eax - 0xd]
inc edx
xor cl, bl
mov dword [ebp - 8], edx
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, bh
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, byte [ebp - 1]
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, byte [ebp - 2]
mov byte [eax + 6], cl
add eax, 4
cmp edx, 0x2c
jb 0x1000db10
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000dba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
add ecx, 2
mov esi, 4
mov edi, edi
mov dl, byte [ecx + 1]
lea ecx, [ecx + 4]
mov bh, byte [ecx - 4]
mov dh, dl
mov al, byte [ecx - 6]
xor dh, bh
mov bl, byte [ecx - 5]
mov ah, 0x1b
mov byte [ebp - 2], al
mov byte [ebp - 3], dl
mov dl, dh
xor dl, al
xor dl, bl
mov byte [ebp - 1], dl
mov dl, al
xor dl, bl
mov al, dl
add dl, dl
shr al, 7
imul ah
mov ah, 0x1b
xor al, dl
mov dl, bl
xor al, byte [ebp - 2]
xor dl, bh
xor al, byte [ebp - 1]
mov byte [ecx - 6], al
mov al, dl
shr al, 7
add dl, dl
imul ah
xor al, dl
mov dl, 0x1b
xor al, bl
mov bl, byte [ebp - 1]
xor al, bl
mov byte [ecx - 5], al
mov al, dh
shr al, 7
add dh, dh
imul dl
mov dl, byte [ebp - 3]
mov ah, 0x1b
xor dl, byte [ebp - 2]
xor al, dh
xor al, bh
xor al, bl
mov byte [ecx - 4], al
mov al, dl
shr al, 7
add dl, dl
imul ah
xor al, dl
xor al, byte [ebp - 3]
xor al, bl
mov byte [ecx - 3], al
dec esi
jne 0x1000dbb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000dc50
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, edx
mov edi, ecx
mov dword [ebp - 0xc], eax
sub edx, edi
mov esi, edi
mov ebx, 4
lea esp, [esp]
mov ecx, 4
mov al, byte [edx + esi]
xor byte [esi], al
inc esi
dec ecx
jne 0x1000dc75
dec ebx
jne 0x1000dc70
mov esi, dword [ebp - 0xc]
add esi, 0x10
mov dword [ebp - 8], 9
mov edi, edi
mov ebx, edi
mov dword [ebp - 4], 4
lea esp, [esp]
mov ecx, ebx
mov edx, 4
jmp 0x1000dcb0
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x101cf5d0]
mov byte [ecx - 4], al
dec edx
jne 0x1000dcb0
inc ebx
dec dword [ebp - 4]
jne 0x1000dca0
mov cl, byte [edi + 1]
movzx eax, byte [edi + 5]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 7], cl
mov ecx, edi
mov byte [edi + 0xb], al
call fcn.1000dba0
mov eax, edi
mov ebx, 4
mov edx, 4
jmp 0x1000dd30
mov cl, byte [esi]
inc esi
xor byte [eax], cl
inc eax
dec edx
jne 0x1000dd30
dec ebx
jne 0x1000dd26
dec dword [ebp - 8]
jne 0x1000dc90
mov esi, edi
lea ebx, [edx + 4]
lea ebx, [ebx]
mov ecx, esi
mov edx, 4
jmp 0x1000dd60
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x101cf5d0]
mov byte [ecx - 4], al
dec edx
jne 0x1000dd60
inc esi
dec ebx
jne 0x1000dd50
mov cl, byte [edi + 1]
lea esi, [edx + 4]
movzx eax, byte [edi + 5]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 7], cl
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0xb], al
add ecx, 0xa0
mov edx, 4
mov al, byte [ecx]
inc ecx
xor byte [edi], al
inc edi
dec edx
jne 0x1000ddd7
dec esi
jne 0x1000ddd2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ddf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov dword [ebp - 4], eax
add eax, 0xb0
mov dword [ebp - 8], eax
mov esi, eax
push edi
mov edi, edx
test ebx, ebx
je 0x1000de41
dec ebx
shr ebx, 4
inc ebx
mov eax, edi
sub esi, edi
mov edx, 0x10
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x1000de20
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.1000dc50
mov esi, edi
add edi, 0x10
dec ebx
jne 0x1000de16
mov eax, dword [ebp - 8]
movdqu xmm0, xmmword [esi]
pop edi
pop esi
movdqu xmmword [eax], xmm0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000e0c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
push esi
lea esi, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x1000e0e0
sub edx, esi
pop esi
cmp edx, 0x1f4
jae 0x1000e117
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push str.STATUS_d_ErrMsg_s
push eax
call fcn.10018db0
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
lea eax, [edx - 1]
cmp eax, 3
ja case.default.0x1000e152
jmp dword [eax*4 + 0x1000e288]
mov ecx, dword [0x10203690]
lea eax, [ecx + 0x18]
mov dword [ecx + 0x24], 0
push eax
push dword [ecx + 0x34]
mov dword [ecx + 0x1c], 1
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x1000e1a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10203690]
cmp dword [ecx + 0x10], 0
je 0x1000e1a9
push eax
mov ecx, str.Stop_SetServiceStatus_error_n
call fcn.1000e0c0
mov eax, dword [0x10203690]
cmp dword [eax + 0x10], 0
je 0x1000e275
push 0
mov ecx, str.Service_Stop_n
call fcn.1000e0c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x10203690]
mov dword [ecx + 0x1c], 7
jmp 0x1000e22b
mov ecx, dword [0x10203690]
mov dword [ecx + 0x1c], 4
jmp 0x1000e22b
mov ecx, dword [0x10203690]
cmp dword [ecx + 0x10], 0
je 0x1000e22b
push str.Unrecognized_opcode_n
push edx
lea eax, [ebp - 0x204]
push str.STATUS_d_ErrMsg_s
push eax
call fcn.10018db0
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x10203690]
lea eax, [ecx + 0x18]
push eax
push dword [ecx + 0x34]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x1000e275
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10203690]
cmp dword [ecx + 0x10], 0
je 0x1000e275
push str.SetServiceStatus_error_n
push eax
lea eax, [ebp - 0x204]
push str.STATUS_d_ErrMsg_s
push eax
call fcn.10018db0
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret 4
Function at 0x1000eb00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
test esi, esi
je 0x1000eb6f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
test edi, edi
jne 0x1000eb60
mov dword [esp + 8], 0x101ceb20
mov dword [esp + 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [esp + 8]
push eax
push str._tasp::library_TerminateProcess_err:_lu
sub esp, 0xc
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.10005540
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 8], 0x101cebb0
mov dword [esp + 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movq xmm0, qword [esp + 8]
push eax
push str._tasp::library_OpenProcess_err:_lu
sub esp, 0xc
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], 3
call fcn.10005540
add esp, 0x14
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ebc0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ff82
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.10150280
mov eax, dword [0x101f7210]
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 edi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x103c], edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1024]
mov dword [ebp - 0x1028], 1
push eax
push 1
push 0
push 0
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesW]
mov ecx, dword [ebp - 0x1014]
xor esi, esi
test ecx, ecx
je 0x1000ed5d
mov ebx, dword [ebp - 0x1024]
mov edx, dword [ebp + 0xc]
lea eax, [ebx + 4]
cmp dword [eax], edx
je 0x1000ec78
inc esi
add eax, 0x10
cmp esi, ecx
jb 0x1000ec67
jmp 0x1000ed63
push 0x800
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x101c], 0x3ff
push 0
push eax
mov dword [ebp - 0x1018], 0x3ff
call fcn.10150100
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.10150100
add esp, 0x18
lea eax, [ebp - 0x1020]
add esi, esi
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebx + esi*8 + 0xc]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
cmp word [ebp - 0x810], 0
jne 0x1000ecf4
xor ecx, ecx
jmp 0x1000ed0f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ed00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, edi
push eax
call fcn.1001e640
cmp dword [edi + 0x10], 0
jne 0x1000ed5d
push str._tasp::library_WTSEnumerateProcessesW_AccountNameNULL._n
sub esp, 0xc
mov dword [ebp - 0x1038], 0x101cec50
mov eax, esp
mov dword [ebp - 0x1034], 2
movq xmm0, qword [ebp - 0x1038]
movq qword [eax], xmm0
mov dword [eax + 8], 3
call fcn.10005540
add esp, 0x10
mov ebx, dword [ebp - 0x1024]
test ebx, ebx
je 0x1000ed6e
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
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.1014aad2
mov esp, ebp
pop ebp
ret 8
Function at 0x1000fa40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018014b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x101f7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
push 0x6c
mov dword [ebp - 4], 0
call fcn.1002fb05
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1000fa92
mov ecx, eax
call fcn.1000fb60
mov esi, eax
jmp 0x1000fa94
xor esi, esi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [ebp + 0x18]
cmp dword [ebp + 0x2c], 0x10
push ecx
cmovae eax, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.100107f0
mov edx, eax
mov byte [ebp - 4], 2
lea eax, [esi + 8]
cmp dword [edx + 0x14], 8
jb 0x1000faca
mov edx, dword [edx]
cmp word [edx], 0
jne 0x1000fad4
xor ecx, ecx
jmp 0x1000faf2
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000fae0
sub ecx, ebx
lea eax, [esi + 8]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.1001e640
lea ecx, [ebp - 0x70]
call fcn.100024d0
mov eax, dword [ebp + 0x10]
push 0
push 0
push esi
push 0x1000f980
push 0
push 0
mov dword [esi + 0x68], eax
call fcn.1014ea78
add esp, 0x18
mov esi, eax
test edi, edi
je 0x1000fb29
mov dword [edi], esi
jmp 0x1000fb30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test esi, esi
setne bl
cmp dword [ebp + 0x2c], 0x10
jb 0x1000fb48
push dword [ebp + 0x18]
call fcn.1002fb32
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28

Function at 0x10010030
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10203748], 0
push esi
je 0x10010061
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret
push 0x101cf01c
xor esi, esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100100ba
push eax
push str.PAPI_WSAStartup_failed:__d_n
lea eax, [ebp - 0x1f8]
push eax
push 0x10203748
call fcn.10010fa0
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x100100a6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x1f8]
call fcn.100024d0
jmp 0x100100bf
mov esi, 1
mov ecx, dword [ebp - 4]
mov eax, esi
mov dword [0x10203748], esi
xor ecx, ebp
pop esi
call fcn.1014aad2
mov esp, ebp
pop ebp
ret
Function at 0x10010e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], 0
call fcn.10150100
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str._system32_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1014e602
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10002570
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1014aad2
mov esp, ebp
pop ebp
ret 4
Function at 0x10011a60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180691
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xd4]
push 0x101cf8dc
call fcn.10002570
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
mov eax, dword [ebp - 0xc4]
push esi
mov dword [ebp - 0x138], eax
call fcn.100026c0
mov byte [ebp - 4], 1
mov ebx, 1
xor edi, edi
jmp 0x10011ad0
cmp dword [ebp - 0xc0], 8
lea edx, [ebp - 0xd4]
cmovae edx, dword [ebp - 0xd4]
cmp word [edx], 0
jne 0x10011aee
xor eax, eax
jmp 0x10011b02
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10011af3
sub eax, esi
sar eax, 1
push eax
push edi
push edx
lea ecx, [ebp - 0x134]
call fcn.10014300
mov esi, eax
lea ecx, [ebp - 0x134]
cmp esi, 0xffffffff
je 0x10011bcb
push esi
push 0
lea eax, [ebp - 0x150]
push eax
call fcn.10012740
xor ecx, ecx
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], cx
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x5c], cl
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x44], cx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x10011b81
push 0xffffffffffffffff
push 0
push eax
call fcn.1001e2d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x13c], 8
jb 0x10011b9c
push dword [ebp - 0x150]
call fcn.1002fb32
add esp, 4
mov edi, dword [ebp - 0x138]
lea eax, [ebp - 0x74]
add edi, esi
cmp dword [ebp - 0x60], 8
push 0
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
lea ecx, [ebp - 0x74]
sbb eax, eax
and ebx, eax
call fcn.100024d0
jmp 0x10011ad0
call fcn.100024d0
lea ecx, [ebp - 0xd4]
call fcn.100024d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret 4
Function at 0x10011c00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101806e6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x101f7210]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x128]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test eax, eax
jne 0x10011c41
xor esi, esi
jmp 0x10011ced
push 0
push 0x101cf8e0
mov ecx, eax
call fcn.1001e640
mov esi, 0x80
xor ecx, ecx
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002fb37
add esp, 4
lea edi, [ebp + 0x12c]
cmp dword [ebp + 0x140], 8
lea edx, [ebp + 0xc8]
mov ebx, eax
lea ecx, [ebp + 0x68]
cmovae edi, dword [ebp + 0x12c]
lea eax, [ebp + 8]
cmp dword [ebp + 0xdc], 8
push edi
cmovae edx, dword [ebp + 0xc8]
cmp dword [ebp + 0x7c], 8
push esi
cmovae ecx, dword [ebp + 0x68]
cmp dword [ebp + 0x1c], 8
push ebx
cmovae eax, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, eax
push ebx
lea eax, [ecx + 1]
cmp esi, eax
jne 0x10011cd1
call fcn.1002fb32
add esp, 4
add esi, esi
jmp 0x10011c54
mov esi, dword [ebp - 0x10]
xor eax, eax
mov word [ebx + ecx*2], ax
mov ecx, esi
call fcn.10002620
push ebx
call fcn.1002fb32
mov esi, dword [esi + 0x10]
add esp, 4
lea ecx, [ebp + 8]
call fcn.100024d0
lea ecx, [ebp + 0x68]
call fcn.100024d0
lea ecx, [ebp + 0xc8]
call fcn.100024d0
lea ecx, [ebp + 0x12c]
call fcn.100024d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x184
Function at 0x1001c700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180eda
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x101f7210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.1016d860
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x1001c7a6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.1014d565
push 0x101f1700
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.1014fa60
push edi
push esi
call fcn.1016d733
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014aad2
mov esp, ebp
pop ebp
ret 4

Function at 0x1001e800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1001e815
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001e854
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1001e850
lea ebx, [ebx]
cmp esi, edx
jae 0x1001e854
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x1001e840
cmp esi, edx
jb 0x1001e859
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret