joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451980
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a832b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4cf084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x21c], 7
xor eax, eax
mov dword [ebp - 0x220], esi
mov word [ebp - 0x230], ax
push 0xf003f
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4519eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x451b05
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451a10
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00445d70
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push 0
push 0
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.SAMSUNG_Mobile_Connectivity_Service_V2
push str.ss_conn_service2
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x451aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x451aaa
test byte [eax + 0x1c], 1
je 0x451aaa
cmp byte [eax + 0x19], 3
jb 0x451aaa
push esi
push dword [eax + 0x14]
mov edx, 0x4bcf6c
mov ecx, 0x25
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
push esi
push str.CreateService_Failed__08x_n
call fcn.00458ac0
add esp, 8
jmp 0x451afe
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x451af1
test byte [eax + 0x1c], 1
je 0x451af1
cmp byte [eax + 0x19], 3
jb 0x451af1
push dword [eax + 0x14]
mov edx, 0x4bcf6c
mov ecx, 0x26
push dword [eax + 0x10]
call fcn.00401940
add esp, 8
push str.CreateService_Succeed_n
call fcn.00458ac0
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x451b41
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451b37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451b5e
push edx
push ecx
call fcn.00477197
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.00477156
mov esp, ebp
pop ebp
ret
call fcn.004822a9
int3
Function at 0x4523e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a83cf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4cf084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
xor eax, eax
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov byte [ebx + 0x28], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 7
mov word [ebx + 0x2c], ax
mov byte [ebp - 4], 2
lea edi, [ebx + 0x48]
mov byte [ebx + 0x44], 0xff
push 8
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00477167
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 3
call fcn.00459eaf
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.boost::io::basic_altstringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], 0
mov byte [edi + 0x3c], 0
mov dword [edi + 0x40], 3
mov byte [ebx + 0x90], 0
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 5
test edx, edx
je 0x4525ae
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452550
sub eax, esi
lea ecx, [ebp - 0x2c]
sar eax, 1
push eax
push edx
call fcn.00445d70
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00453110
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4525ae
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4525a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4525c4
push edx
push ecx
call fcn.00477197
add esp, 8
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 4
call fcn.004822a9
int3
Function at 0x4525d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8400
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4cf084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
sub esi, edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x452636
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.004588a0
mov eax, dword [ebp - 0x34]
jmp 0x45278f
mov edx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x24]
cmp edx, eax
jge 0x45264a
test byte [ecx + 0x44], 2
jne 0x4527ac
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
mov ecx, dword [ecx + 0x3c]
test esi, esi
je 0x45268d
nop dword [eax]
add ecx, dword [edi + 0x14]
cmp dword [edi], 0xfffffffe
jne 0x452682
mov eax, dword [edi + 0x38]
cmp ecx, eax
cmovae eax, ecx
mov ecx, eax
add ecx, dword [edi + 0x2c]
add edi, 0x78
sub esi, 1
jne 0x452670
push ecx
lea ecx, [ebp - 0x28]
call fcn.00442b10
mov esi, dword [ebp - 0x2c]
cmp dword [esi + 0x40], 8
lea ecx, [esi + 0x2c]
jb 0x4526a5
mov ecx, dword [esi + 0x2c]
push dword [esi + 0x3c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00458710
mov edi, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov eax, 0x88888889
mov ecx, dword [esi + 4]
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x452769
xor eax, eax
mov dword [ebp - 0x2c], eax
nop dword [eax + eax]
add eax, edi
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
jb 0x4526ee
mov ecx, dword [eax + 4]
push dword [eax + 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00458710
mov eax, dword [ebp - 0x2c]
cmp dword [edi + eax], 0xfffffffe
jne 0x452722
mov ecx, dword [edi + eax + 0x38]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jbe 0x452722
movzx eax, word [edi + eax + 0x48]
sub ecx, edx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00453050
mov eax, dword [ebp - 0x2c]
add eax, edi
cmp dword [eax + 0x30], 8
lea ecx, [eax + 0x1c]
jb 0x452730
mov ecx, dword [eax + 0x1c]
push dword [eax + 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00458710
mov ecx, dword [esi + 4]
mov eax, 0x88888889
mov edi, dword [esi]
sub ecx, edi
inc dword [ebp - 0x30]
add dword [ebp - 0x2c], 0x78
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
jb 0x4526e0
mov eax, dword [ebp - 0x34]
movups xmm0, xmmword [ebp - 0x28]
mov byte [esi + 0x28], 1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
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.00477156
mov esp, ebp
pop ebp
ret 4
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.004587a0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00453600
int3
Function at 0x465010
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00464bf9
push eax
push esi
push dword [ebp + 8]
call fcn.00464bae
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00464be9
and eax, 0x88665e22
popfd
jl 0x46506e
invalid
invalid

Function at 0x4652f1
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4652c0
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4652de
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x46533c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x465323
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x46532c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x465336
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x465318
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4652a2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x465389
dec eax
je 0x465380
sub eax, 3
je 0x465377
mov dword [ebp - 4], 0x40
jmp 0x4653a6
mov dword [ebp - 4], 4
jmp 0x46538c
mov dword [ebp - 4], 0x20
jmp 0x46538c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4653d8
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x465358
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00464be9
test dword [ecx], ebp
mov ebp, dword [edi - 1]
jne 0x4653e3
push 1
push esi
call edi
mov eax, esi
jmp 0x4653e4
rcr byte [edi + 0x5e], 0x5b
Function at 0x46532a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4652c0
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4652de
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x46533c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x465323
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x46532c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x465336
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x465318
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4652a2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x465389
dec eax
je 0x465380
sub eax, 3
je 0x465377
mov dword [ebp - 4], 0x40
jmp 0x4653a6
mov dword [ebp - 4], 4
jmp 0x46538c
mov dword [ebp - 4], 0x20
jmp 0x46538c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4653d8
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x465358
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00464be9
test dword [ecx], ebp
mov ebp, dword [edi - 1]
jne 0x4653e3
push 1
push esi
call edi
mov eax, esi
jmp 0x4653e4
rcr byte [edi + 0x5e], 0x5b
Function at 0x4715f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a46e0
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4cf084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4cf060]
cmp eax, 0xffffffff
je 0x47165e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47165e
mov eax, dword [0x4cf060]
cmp eax, 0xffffffff
jne 0x471635
xor eax, eax
jmp 0x47163c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x47165e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa17e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4cf084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4cf060]
cmp eax, 0xffffffff
jne 0x471c56
xor ebx, ebx
jmp 0x471c5f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x471ca1
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x471ce0
test esi, esi
jne 0x471ce4
push 0x470a40
push 0x4d4660
call fcn.00470730
mov eax, dword [0x4cf060]
add esp, 8
cmp eax, 0xffffffff
je 0x471ca1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x471cce
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x471cce
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x471d26
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x471d0f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x471ce4
cmp dword [ebx + 0x18], 0
je 0x471c70
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x471d49
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x471d49
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.0042cac0
cmp dword [ebx + 0x18], 0
jne 0x471d30
jmp 0x471c70
Function at 0x471d70
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x471dd0
push 0
push 0
call fcn.0048b40a
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x471d99
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
lock inc dword [eax]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x471db7
cmp eax, 0xffffffff
je 0x471db7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret

Function at 0x473ab0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4cf084]
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]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x473aeb
mov eax, dword [edi]
jmp 0x473aed
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x473b13
test esi, esi
je 0x473b0c
mov dword [esi], 0
call fcn.00472b60
mov dword [esi + 4], eax
mov al, 1
jmp 0x473b99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x64], 0
call fcn.00472b60
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00474a10
add esp, 0xc
cmp dword [ebp - 0x6c], 3
sete al
test al, al
je 0x473b57
test esi, esi
je 0x473b97
mov dword [esi], 0
call fcn.00472b60
jmp 0x473b94
test esi, esi
jne 0x473b8d
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x28]
call fcn.0046fd90
mov dword [ebp - 4], esi
call fcn.00472b60
push eax
push ebx
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00472e30
push 0x4cb91c
lea eax, [ebp - 0x5c]
push eax
call fcn.004796c3
call fcn.00472b60
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
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.00477156
mov esp, ebp
pop ebp
ret
Function at 0x474a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa6a2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4cf084]
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 + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x474a51
mov eax, dword [edi]
jmp 0x474a53
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x474a72
push esi
push edi
push ebx
call fcn.004741e0
add esp, 0xc
jmp 0x474b6e
test eax, 0x400
je 0x474b2d
cmp dword [edi + 0x14], 8
jb 0x474a87
mov eax, dword [edi]
jmp 0x474a89
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00473030
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004308c0
cmp esi, 0xffffffff
jne 0x474ae2
push dword [ebp - 0x34]
push edi
push ebx
call fcn.004741e0
add esp, 0xc
jmp 0x474b6e
push edi
call fcn.00473d50
add esp, 4
test al, al
jne 0x474b15
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.00473e30
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x474b6e
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x474b3f
mov dword [esi], 0
call fcn.00472b60
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x474b56
mov dword [ebp - 0x30], 2
call fcn.00473e30
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
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 - 0x10]
xor ecx, ebp
call fcn.00477156
mov esp, ebp
pop ebp
ret

Function at 0x498775
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004985f4

Function at 0x49c9dd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049c34b

Function at 0x49c9e8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049c586
Function at 0x100f304a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101126e0], 0x82b
mov dword [0x101126e8], 0
mov dword [0x101126ec], 0
mov dword [0x101126f8], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x100f31a6
jmp 0x100f30c6
mov eax, dword [0x101126e8]
mov ecx, dword [0x101126ec]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101126e8], edx
mov dword [0x101126e0], 0x2616
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101126ec], edx
mov dword [0x101126e0], 0x10e9
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101126f0], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x101126f0]
mov edx, dword [0x101126ec]
mov byte [edi + edx], cl
mov dword [0x101126e0], 0x16fa
mov edx, dword [0x101126e8]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101126ec]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x101126e0], 0x205d
and ebx, 0xff
mov dword [0x101126f8], ebx
mov dword [0x101126e4], 0x8a6
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x2c], edx
jne 0x100f30af
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10008c8b
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 8]
lea eax, [eax + 0xed]
pushfd
mov dword [esp + 0x18], eax
mov byte [esp], bl
push 0xfe8c6da2
jmp 0x10007b8e
Function at 0x100014b0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1008
call fcn.1000dbd0
mov eax, dword [0x10013040]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1014]
push esi
push edi
xor eax, eax
push 0xffe
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.10008da0
add esp, 0xc
xor edi, edi
xor ebx, ebx
test esi, esi
jne 0x100014fb
xor eax, eax
jmp 0x10001545
push esi
push 0x800
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
xor esi, esi
cmp word [esp + 0x10], 0
je 0x100014f7
cmp word [esp + esi*2 + 0x10], 0
jne 0x10001539
mov eax, esi
sub eax, edi
lea edx, [esp + eax*2 + 0x10]
mov ecx, ebp
or edi, 0xffffffff
call fcn.10001560
inc ebx
cmp word [esp + esi*2 + 0x12], 0
je 0x10001543
inc esi
inc edi
cmp esi, 0x800
jl 0x1000150e
mov eax, ebx
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100062d6
add esp, 0x1008
ret 4