joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b840
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
sub edi, ebx
jne 0x44b858
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
cmp edi, 0xffffffff
jne 0x44b869
call fcn.0044bae0
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
lea ecx, [edi + 1]
or eax, 0xffffffff
xor edx, edx
div ecx
cmp edx, edi
lea ecx, [eax + 1]
cmovne ecx, eax
mov dword [ebp + 8], ecx
nop
cmp dword [esi + 0x9c0], 0x270
jne 0x44b893
mov ecx, esi
call fcn.0044bf70
mov eax, dword [esi + 0x9c0]
xor edx, edx
mov ecx, dword [esi + eax*4]
inc eax
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
div dword [ebp + 8]
cmp eax, edi
ja 0x44b880
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
Function at 0x44bf70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor edx, edx
cmp dword [0x4d6b08], 2
push edi
mov edi, ecx
jl 0x44c02c
movaps xmm3, xmmword [0x4bfd70]
lea ecx, [edx + 0x1b]
movaps xmm4, xmmword [0x4bfd90]
mov eax, 1
movaps xmm6, xmmword [0x4bfda0]
mov edx, 0xd8
movaps xmm7, xmmword [0x4bfd30]
movd xmm5, eax
lea eax, [edi + 4]
lea eax, [eax + 0x20]
movups xmm2, xmmword [eax - 0x20]
movups xmm1, xmmword [eax - 0x24]
movaps xmm0, xmm2
pand xmm2, xmm7
pand xmm1, xmm4
pand xmm0, xmm3
por xmm1, xmm0
movups xmm0, xmmword [eax + 0x610]
psrld xmm1, xmm5
pmulld xmm2, xmm6
pxor xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x24], xmm1
movaps xmm1, xmm4
movups xmm0, xmmword [eax - 0x14]
movups xmm2, xmmword [eax - 0x10]
pand xmm1, xmm0
movaps xmm0, xmm2
pand xmm2, xmm7
pand xmm0, xmm3
por xmm1, xmm0
movups xmm0, xmmword [eax + 0x620]
psrld xmm1, xmm5
pmulld xmm2, xmm6
pxor xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x14], xmm1
sub ecx, 1
jne 0x44bfb3
lea eax, [edi + 4]
mov esi, 0xde
lea eax, [eax + edx*4]
sub esi, edx
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor edx, ecx
and edx, 0x7ffffffe
and ecx, 1
xor edx, dword [eax - 8]
imul ecx, ecx, 0x9908b0df
shr edx, 1
xor edx, ecx
xor edx, dword [eax + 0x62c]
mov dword [eax - 8], edx
sub esi, 1
jne 0x44c040
mov esi, dword [edi + 0x37c]
mov eax, esi
mov ecx, dword [edi + 0x378]
and eax, 1
xor ecx, esi
mov edx, dword [edi + 0x380]
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [edi + 0x378]
shr ecx, 1
xor ecx, eax
mov eax, edx
xor ecx, dword [edi + 0x9ac]
and eax, 1
mov dword [edi + 0x378], ecx
mov ecx, esi
xor ecx, edx
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, dword [edi + 0x384]
shr ecx, 1
xor ecx, eax
mov eax, esi
xor ecx, dword [edi + 0x9b0]
and eax, 1
mov dword [edi + 0x37c], ecx
mov ecx, esi
xor ecx, edx
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, edx
mov edx, dword [edi + 0x388]
shr ecx, 1
xor ecx, eax
mov eax, edx
xor ecx, dword [edi + 0x9b4]
and eax, 1
mov dword [edi + 0x380], ecx
mov ecx, edx
xor ecx, esi
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, 0x18c
shr ecx, 1
xor ecx, eax
mov eax, dword [edi + 0x38c]
xor ecx, dword [edi + 0x9b8]
mov dword [edi + 0x384], ecx
mov ecx, eax
xor ecx, edx
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, edx
lea edx, [edi + 0x390]
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x9bc]
mov dword [edi + 0x388], ecx
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
mov eax, dword [edx - 4]
xor ecx, eax
and ecx, 0x7ffffffe
and eax, 1
xor ecx, dword [edx - 8]
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edx - 0x394]
mov dword [edx - 8], ecx
sub esi, 1
jne 0x44c161
mov ecx, dword [edi + 0x9bc]
mov eax, dword [edi]
xor ecx, eax
and ecx, 0x7ffffffe
mov dword [edi + 0x9c0], esi
xor ecx, dword [edi + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x630]
mov dword [edi + 0x9bc], ecx
pop edi
pop esi
ret
Function at 0x451a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4cb210
push 0x480260
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d1088]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004514f0
mov edi, eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0xffffffff
test edi, edi
jne 0x451ae8
xor ecx, ecx
call fcn.00451530
xor eax, eax
jmp 0x451bba
mov dword [ebp - 4], 0
call fcn.004515c0
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
je 0x451ba9
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x26]
push ecx
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
push str.__04u__02u__02u__02u:_02u:_02u._04u_t_
push 0x800
push edi
call fcn.00451320
add esp, 0x28
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x451b47
sub edx, ecx
push 0
lea eax, [ebp - 0x24]
push eax
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, ebx
call fcn.00451560
mov ebx, eax
test ebx, ebx
je 0x451b90
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451b71
sub ecx, edx
push 0
lea eax, [ebp - 0x24]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov word [ebp - 0x20], 0xa0d
push 0
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xfffffffe
call fcn.00451bdc
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047aa96
mov esp, ebp
pop ebp
ret
Function at 0x451c00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x53b7d0]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test dword [ebp + 8], eax
je 0x451c62
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x53b7cc]
ja 0x451c62
mov edi, 0x53bb08
mov ecx, edi
call fcn.0041e180
call fcn.004514f0
mov esi, eax
test esi, esi
jne 0x451c6a
mov eax, connect
lock xadd dword [edi], eax
test eax, 0x40000000
jne 0x451c62
cmp eax, 0x80000000
jle 0x451c62
lock bts dword [edi], 0x1e
jb 0x451c62
mov ecx, edi
call fcn.0041e0e0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
lea eax, [ebp + 0x20]
push eax
push ecx
push dword [ebp + 0x1c]
push ecx
mov ecx, esi
call fcn.00452250
add esp, 0x10
call fcn.004514f0
mov edi, eax
test edi, edi
jne 0x451ca1
mov ecx, esi
call fcn.00451530
mov ecx, 0x53bb08
call fcn.0041d040
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp dword [0x53bad0], 0
jne 0x451cb1
mov eax, str.empty
jmp 0x451cc4
cmp dword [0x53bad4], 8
mov eax, 0x53bac0
cmovae eax, dword [0x53bac0]
push esi
push dword [ebp + 0x14]
push ebx
push eax
push str.__s_t___S:_d_t___s
push 0x800
push edi
call fcn.004512a0
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [ebp + 0x18], 0
jne 0x451cf3
cmp dword [0x53b7cc], 1
jne 0x451cfa
mov ecx, edi
call fcn.00451a90
mov ecx, esi
call fcn.00451530
mov ecx, edi
call fcn.00451530
mov ecx, 0x53bb08
call fcn.0041d040
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
pop ebp
ret
Function at 0x4560b0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acb5b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4d1088]
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 0x45611b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x45623b
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [ebp - 0x218], 0
jne 0x45613d
xor ecx, ecx
jmp 0x456155
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456146
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00449b00
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 0x4561f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x4561e0
test byte [eax + 0x1c], 1
je 0x4561e0
cmp byte [eax + 0x19], 3
jb 0x4561e0
push esi
push dword [eax + 0x14]
mov edx, 0x4bf8a4
mov ecx, 0x25
push dword [eax + 0x10]
call fcn.00401a90
add esp, 0xc
push esi
push str.CreateService_Failed__08x_n
call fcn.0045dfd0
add esp, 8
jmp 0x456234
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x4d1a00]
cmp eax, 0x4d1a00
je 0x456227
test byte [eax + 0x1c], 1
je 0x456227
cmp byte [eax + 0x19], 3
jb 0x456227
push dword [eax + 0x14]
mov edx, 0x4bf8a4
mov ecx, 0x26
push dword [eax + 0x10]
call fcn.00401a70
add esp, 8
push str.CreateService_Succeed_n
call fcn.0045dfd0
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x456259
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00432db0
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.0047aa96
mov esp, ebp
pop ebp
ret
Function at 0x456280
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4562b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.OpenSCManager_Failed__08x_n
call fcn.0045dfd0
add esp, 8
mov eax, esi
pop edi
pop esi
ret
push ebx
push 0xf01ff
push str.ss_conn_service2
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4562ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.OpenService_Failed__08x_n
call fcn.0045dfd0
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push edi
call ebx
pop ebx
pop edi
mov eax, esi
pop esi
ret
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x456322
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.DeleteService_Failed__08x_n
call fcn.0045dfd0
add esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
pop ebx
pop edi
mov eax, esi
pop esi
ret
push str.DeleteService_Succeed_n
call fcn.0045dfd0
add esp, 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
push edi
call ebx
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x4578a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8276
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d1088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0047aaa7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0045f5a7
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 eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4760d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a89c0
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4d1088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4d1064]
cmp eax, 0xffffffff
je 0x47613e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47613e
mov eax, dword [0x4d1064]
cmp eax, 0xffffffff
jne 0x476115
xor eax, eax
jmp 0x47611c
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 0x47613e
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 0x476700
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae8ee
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d1088]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4d1064]
cmp eax, 0xffffffff
jne 0x476736
xor ebx, ebx
jmp 0x47673f
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 0x476781
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x4767c0
test esi, esi
jne 0x4767c4
push 0x475570
push 0x4d66dc
call fcn.00475260
mov eax, dword [0x4d1064]
add esp, 8
cmp eax, 0xffffffff
je 0x476781
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4767ae
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x4767ae
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 0x476806
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4767ef
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 0x4767c4
cmp dword [ebx + 0x18], 0
je 0x476750
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x476829
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x476829
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.0042e720
cmp dword [ebx + 0x18], 0
jne 0x476810
jmp 0x476750
Function at 0x476850
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 0x4768b0
push 0
push 0
call fcn.0048f519
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x476879
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 0x476897
cmp eax, 0xffffffff
je 0x476897
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 0x4780c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aec08
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4d1088]
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 0x4780fb
mov eax, dword [edi]
jmp 0x4780fd
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x478123
test esi, esi
je 0x47811c
mov dword [esi], 0
call fcn.00477590
mov dword [esi + 4], eax
mov al, 1
jmp 0x4781a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x64], 0
call fcn.00477590
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.004788f0
add esp, 0xc
cmp dword [ebp - 0x6c], 3
sete al
test al, al
je 0x478167
test esi, esi
je 0x4781a7
mov dword [esi], 0
call fcn.00477590
jmp 0x4781a4
test esi, esi
jne 0x47819d
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x28]
call fcn.0041a990
mov dword [ebp - 4], esi
call fcn.00477590
push eax
push ebx
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00477860
push 0x4cdc90
lea eax, [ebp - 0x5c]
push eax
call fcn.0047dc73
call fcn.00477590
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.0047aa96
mov esp, ebp
pop ebp
ret
Function at 0x4788f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aee22
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d1088]
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 0x478931
mov eax, dword [edi]
jmp 0x478933
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x478952
push esi
push edi
push ebx
call fcn.004786e0
add esp, 0xc
jmp 0x478a4e
test eax, 0x400
je 0x478a0d
cmp dword [edi + 0x14], 8
jb 0x478967
mov eax, dword [edi]
jmp 0x478969
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00477a60
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.00432d70
cmp esi, 0xffffffff
jne 0x4789c2
push dword [ebp - 0x34]
push edi
push ebx
call fcn.004786e0
add esp, 0xc
jmp 0x478a4e
push edi
call fcn.00478250
add esp, 4
test al, al
jne 0x4789f5
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.00478330
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 0x478a4e
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 0x478a1f
mov dword [esi], 0
call fcn.00477590
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x478a36
mov dword [ebp - 0x30], 2
call fcn.00478330
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.0047aa96
mov esp, ebp
pop ebp
ret

Function at 0x49fe8d
Capabilities:
Set environment variable

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

Function at 0x49fe98
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049fa36
Function at 0x4a3f5e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
invalid
invalid
inc ebp
Function at 0x402a3d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a1fb0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a8e
cmp dword [ebp + 0x10], ebx
jne 0x402ac5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3d
test eax, eax
jne 0x402aa0
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ea3
cmp eax, ebx
je 0x402ad8
push ebx
push dword [0x7a1fb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a1fb0], ebx
jne 0x402ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ace
jmp 0x402ad1
Function at 0x40532b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x79fd00], 0x44
push eax
xor eax, eax
push 0x79fd00
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405366
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053f0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004057e4
mov edi, eax
cmp edi, 0xffffffff
je 0x405431
test byte [esp + 0x10], 1
push esi
je 0x405413
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405419
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405422
xor eax, eax
inc eax
jmp 0x405433
test byte [esp + 0x10], 4
jne 0x405431
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8