joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa496d4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a49650
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa4984c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa4984c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa497fb
jg 0xa4972d
test eax, eax
je 0xa497f1
push 1
push 0x1000
call fcn.00a3e179
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa49753
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa497e8
push 0x8000
push ebx
call fcn.00a31616
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xa4977f
jg 0xa4977a
cmp ecx, 0x1000
jb 0xa4977f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a48f50
add esp, 0x10
cmp eax, 0xffffffff
je 0xa497c4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0xa4977a
jl 0xa497ab
test ecx, ecx
jne 0xa4976c
push dword [ebp - 0xc]
push ebx
call fcn.00a31616
push esi
call fcn.00a3e0f1
add esp, 0xc
xor edi, edi
jmp 0xa4985d
cmp byte [edi + 0x24], 0
je 0xa497db
cmp dword [edi + 0x20], 5
jne 0xa497db
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa497e6
mov edi, dword [edi + 0x18]
jmp 0xa497e8
xor edi, edi
push esi
call fcn.00a3e0f1
pop ecx
jmp 0xa4985d
test ecx, ecx
jg 0xa497bd
jl 0xa497fb
test eax, eax
jae 0xa497bd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a3dfa7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa4981e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa497bd
jmp 0xa49855
push ebx
call fcn.00a42385
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa497bd
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0xa4985d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa4985a
mov edi, dword [edi + 0x18]
jmp 0xa4985d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a3dfa7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401b76
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401c0a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401bc5
cmp eax, 0x40
je 0x401bc5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401b69
cmp eax, 0x40
je 0x401b69
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401b69
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x402670
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
jae 0x402692
lea eax, [ebp + 8]
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push eax
lea eax, [ebp - 0x10c]
push str._s.mnth
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x4026d2
lea eax, [ebp + 8]
lea ecx, [ebp - 0x220]
push ecx
push eax
lea edx, [ebp - 0x10c]
push str._s_s
push edx
call edi
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call ebx
lea ecx, [ebp - 0x24c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4026c6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 0x10
jb 0x402720
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408550
mov esp, ebp
pop ebp
ret

Function at 0x402c10
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x220]
mov edi, ecx
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
mov esi, edx
mov dword [ebp - 0x220], 0x200
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0xc]
push 5
push eax
mov dword [ebp - 0x21c], 0x544547
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x402d2e
push 0
push 0
push 3
push 0
push 0
push 0x50
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
test edi, edi
je 0x402d27
mov ecx, 0x73fba157
lea eax, [ebp - 0x218]
call fcn.00407510
push 0
push 0x8404f700
push 0
push 0
push eax
push esi
lea edx, [ebp - 0xc]
push edx
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov byte [ebp - 0x210], al
test esi, esi
je 0x402d27
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x21c]
push eax
push 0x64
push 0x410078
push esi
mov dword [ebp - 0x21c], 0x64
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x21c]
push esi
mov byte [ecx + 0x410078], 0
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408550
mov esp, ebp
pop ebp
ret
Function at 0x406b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4092b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x406ce2
cmp byte [ebx + 0x49], 0
je 0x406ce2
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x406cd6
lea esi, [ebp - 0x2c]
call fcn.00406390
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x406bc3
lea edx, [ebp - 0x2c]
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x44]
push eax
lea eax, [ebx + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x406bfb
dec eax
je 0x406bff
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x406cdd
call fcn.00404d20
xor al, al
jmp 0x406ce4
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x406c0f
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x406c3d
cmp edi, 0x10
jae 0x406c1e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx + 0x54]
push edx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x406cce
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x406cda
test esi, esi
jne 0x406bb7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x406cff
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x406cff
cmp edi, esi
jae 0x406cb7
push ecx
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00406f70
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x406bb7
mov ecx, eax
cmp edi, 0x10
jae 0x406c93
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x406cae
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x406bb1
test esi, esi
jne 0x406c89
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x406cc6
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x406bb1
lea esi, [ebp - 0x2c]
call fcn.00404d20
xor al, al
jmp 0x406ce4
lea esi, [ebp - 0x2c]
call fcn.00404d20
mov al, 1
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.00408550
mov esp, ebp
pop ebp
ret
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x4083d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4093f8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x408433
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.00408190
mov ecx, esi
call fcn.00408240
mov ecx, edi
mov ebx, esi
call fcn.00408320
cmp dword [ebp + 0x1c], 0x10
jb 0x408462
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408550
mov esp, ebp
pop ebp
ret

Function at 0x408550
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d018]
jne 0x40855a
repz ret
jmp fcn.0040896d

Function at 0x4202d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x4202e3
pop dword [ebp - 0x24]
mov eax, 0x189484fd
sub eax, 0x1852821a
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3cf02
push 0
mov eax, 0xb79efbbf
sub eax, 0xb75caa9f
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xa6bd2cfc
add ecx, 0x594318b1
xor edx, edx
add edx, eax
mov esi, 0x55dcc43c
sub esi, 0x5599963c
add esi, dword [ebp - 0x24]
mov ebx, 0xc6e9c3ae
sub dword [ebp - 8], edi
mov edi, dword [esi]
add dword [ebp - 0x20], ecx
sub edi, ebx
xor dword [ebp - 0x1c], ebx
mov dword [edx], edi
sub dword [ebp - 0x20], 0x2dacbf69
add edx, 4
add esi, 0xccc23bef
sub esi, 0xccc23beb
loop 0x42033e
add eax, 0x10987
mov ebx, eax
add eax, 0x13fb7683
sub eax, 0x13fb767e
mov ecx, 0x49a874e5
add ecx, 0xb6978b1b
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x403e83
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44d060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 0x450dc8
push ebx
mov esi, ecx
call edi
test eax, eax
je 0x403ebc
push ebx
jmp 0x403ef5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00426910
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov ebx, str.7z.exe
call fcn.0040aaf2
lea eax, [ebp - 0x7c]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x7c]
jne 0x403ef4
mov eax, 0x442b64
push eax
call fcn.004021d2
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004241ea
add ebp, 0x190
leave
ret
Function at 0x4042b2
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43dd37
mov eax, dword fs:[0]
push eax
sub esp, 0x868
mov eax, dword [0x44d060]
xor eax, esp
mov dword [esp + 0x860], eax
push ebx
push esi
push edi
mov eax, dword [0x44d060]
xor eax, esp
push eax
lea eax, [esp + 0x878]
mov dword fs:[0], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [esp + 0x464], ax
lea eax, [esp + 0x466]
push eax
mov edi, ecx
call fcn.00426910
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [esp + 0x66c], ax
lea eax, [esp + 0x66e]
push eax
call fcn.00426910
add esp, 0xc
lea eax, [esp + 0x45c]
push eax
mov ebx, 0x442ddc
call fcn.0040aaf2
lea eax, [esp + 0x664]
push eax
mov ebx, str.cachedump
call fcn.0040aaf2
lea eax, [esp + 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4044d5
xor eax, eax
push esi
mov word [esp + 0x258], ax
xor ebx, ebx
lea eax, [esp + 0x25a]
push ebx
push eax
call fcn.00426910
add esp, 0xc
push 1
push ebx
lea eax, [esp + 0x25c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.client_log.zip
lea eax, [esp + 0x258]
push eax
call edi
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push esi
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebx
push eax
call fcn.00426910
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.client_log
lea eax, [esp + 0x50]
push eax
call edi
lea esi, [esp + 0x4c]
call fcn.0040a5e8
mov eax, esi
push eax
lea ebx, [esp + 0x460]
call fcn.0040a8f0
lea eax, [esp + 0x14]
push eax
call fcn.0040487c
mov eax, esi
xor ebx, ebx
push eax
lea esi, [esp + 0x34]
mov dword [esp + 0x884], ebx
call fcn.004021d2
mov byte [esp + 0x880], 1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov eax, esi
push eax
lea edi, [esp + 0x20]
call fcn.00404917
push ebx
push 1
mov byte [esp + 0x888], bl
call fcn.004026fe
lea eax, [esp + 0x664]
push eax
lea esi, [esp + 0x34]
call fcn.004021d2
mov byte [esp + 0x880], 2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov eax, esi
push eax
call fcn.00404917
push ebx
push 1
mov byte [esp + 0x888], bl
call fcn.004026fe
lea eax, [esp + 0x254]
push eax
mov ecx, edi
call fcn.00403f14
pop ecx
test eax, eax
jne 0x4044b9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [esp + 0x254]
call fcn.0040bee4
lea esi, [esp + 0x4c]
call fcn.0040aa7e
lea edi, [esp + 0x14]
call fcn.004049a0
push dword [esp + 0x14]
call fcn.00424223
pop ecx
mov ecx, dword [esp + 0x878]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x860]
xor ecx, esp
call fcn.004241ea
mov esp, ebp
pop ebp
ret
Function at 0x4046c8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11b8
call fcn.0042f9e0
mov eax, dword [0x44d060]
xor eax, esp
mov dword [esp + 0x11b4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push str.GlobalA51BB395_ECF3_4294_9A75_995BAB94ED74
mov dword [esp + 0xc], ebx
call fcn.00403d8f
test eax, eax
je 0x404705
push 2
pop eax
jmp 0x404866
cmp dword [0x44fb38], 2
je 0x404716
xor eax, eax
inc eax
jmp 0x404866
mov esi, str.17D54393_825C_44ab_B8AB_BC49A255D47B
push esi
call fcn.00403d8f
test eax, eax
jne 0x404864
push esi
push 0x12
push 0x12
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 1
push 2
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x190
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00426910
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 3
call dword [sym.imp.libcurl32.dll_curl_global_init]
pop ecx
mov byte [0x4509b2], 1
call fcn.00405037
call fcn.0041c95a
mov eax, dword [0x451ccc]
test eax, eax
jne 0x40479f
push 0x443308
call fcn.00408bf7
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x451ccc], eax
test eax, eax
je 0x4047a7
push 0x40102b
push ebx
call eax
call fcn.0041d5c2
lea ecx, [esp + 0xc]
call fcn.0041a23a
cmp dword [eax + 0x18], 8
jb 0x4047c0
mov eax, dword [eax + 4]
jmp 0x4047c3
add eax, 4
push eax
call fcn.004074b7
push 0
push 1
lea esi, [esp + 0x14]
call fcn.004026fe
call fcn.0040ab97
test eax, eax
je 0x40482c
push str._X64AgentProtectThread
push 0xaa
push str..poagent.cpp
push str._s._d:_s
lea eax, [esp + 0x1c8]
push 0x800
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [esp + 0x1b8]
push eax
mov eax, dword [0x44fb40]
push dword [eax + 4]
push 0x404147
call fcn.0040942c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40483b
mov eax, dword [0x44fb40]
push dword [eax + 4]
xor ebx, ebx
call fcn.00401d45
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041a1f9
test eax, eax
je 0x40485b
push 0
push str.CLIENT_ONLINE
call fcn.00408c78
mov eax, dword [esp + 8]
call fcn.0040461a
xor eax, eax
mov ecx, dword [esp + 0x11bc]
pop esi
pop ebx
xor ecx, esp
call fcn.004241ea
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404e36
Capabilities:
Get session user name

Disassembly:
push 0x474
mov eax, 0x43effb
call fcn.0042520a
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x218], ax
xor ebx, ebx
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00426910
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
mov edi, 0x104
push eax
mov dword [ebp - 0x42c], edi
call fcn.00426910
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov dword [ebp - 0x424], edi
call sub.Secur32.dll_GetUserNameExW
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push ebx
push ebx
lea eax, [ebp - 0x480]
call fcn.0041268d
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x448]
mov dword [ebp - 4], 2
call fcn.004021d2
mov eax, esi
push eax
lea edi, [ebp - 0x464]
mov byte [ebp - 4], 3
call fcn.00401378
sub esp, 0x14
mov byte [ebp - 4], 4
mov edx, eax
mov esi, esp
mov dword [ebp - 0x428], esp
call fcn.00411820
lea eax, [ebp - 0x480]
push eax
mov edx, str.user
mov byte [ebp - 4], 5
call fcn.0041292b
mov edi, eax
mov byte [ebp - 4], 4
call fcn.00411a73
push ebx
push 1
lea ecx, [ebp - 0x464]
call fcn.00402606
push ebx
push 1
lea esi, [ebp - 0x448]
mov byte [ebp - 4], 2
call fcn.004026fe
lea eax, [ebp - 0x420]
push eax
lea esi, [ebp - 0x448]
call fcn.004021d2
mov eax, esi
mov byte [ebp - 4], 6
push eax
lea edi, [ebp - 0x464]
call fcn.00401378
sub esp, 0x14
mov byte [ebp - 4], 7
mov edx, eax
mov esi, esp
mov dword [ebp - 0x428], esp
call fcn.00411820
lea eax, [ebp - 0x480]
push eax
mov edx, 0x442f2c
mov byte [ebp - 4], 8
call fcn.0041292b
mov edi, eax
mov byte [ebp - 4], 7
call fcn.00411a73
push ebx
push 1
lea ecx, [ebp - 0x464]
call fcn.00402606
push ebx
push 1
lea esi, [ebp - 0x448]
mov byte [ebp - 4], 2
call fcn.004026fe
lea eax, [ebp - 0x480]
push eax
lea ecx, [ebp - 0x448]
call fcn.00412d4f
push eax
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 9
call fcn.00401338
cmp dword [eax + 0x18], 8
pop ecx
jb 0x404ff0
mov eax, dword [eax + 4]
jmp 0x404ff3
add eax, 4
mov esi, eax
mov ebx, str.adDomainUser
mov edi, str.Softwareprojonepodlp_smpcache_
call fcn.0040baae
push 0
push 1
lea esi, [ebp - 0x464]
call fcn.004026fe
push 0
push 1
lea ecx, [ebp - 0x448]
call fcn.00402606
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x480]
call fcn.004119f0
call fcn.0042528d
ret
Function at 0x4074b7
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x4074d4
push 0x104
push dword [esp + 0xc]
push 0x451338
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [0x44ed98], esi
je 0x4074f9
push esi
push esi
push esi
push 0x4073f1
push esi
push esi
mov dword [0x44ed98], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret 4

Function at 0x40942c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x409465
push dword [ebp + 0x10]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.00408ec3
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x40a2be
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa94
mov eax, dword [0x44d060]
xor eax, esp
mov dword [esp + 0xa90], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x40a4bf
test eax, eax
jne 0x40a30e
test ecx, ecx
je 0x40a4bf
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x40a369
cmp ax, 0x5c
je 0x40a369
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x690], ax
lea eax, [esp + 0x692]
push eax
call fcn.00426910
add esp, 0xc
lea eax, [esp + 0x688]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [esp + 0x68c]
push eax
call edi
lea esi, [esp + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a4bf
test al, 0x10
je 0x40a4bf
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x484]
push eax
call ebx
push 0x443458
lea eax, [esp + 0x484]
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x40a4bf
mov dword [esp + 0x10], 1
push 0x44345c
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40a48e
push 0x443460
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40a48e
cmp dword [esp + 0x28], 0xffffffff
je 0x40a48e
push esi
lea eax, [esp + 0x27c]
push eax
call ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
test byte [esp + 0x28], 0x10
je 0x40a473
cmp dword [esp + 0x14], 0
je 0x40a440
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x40a4a7
cmp dword [ebp + 0xc], 0
je 0x40a48e
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [ebp + 0xc]
push eax
call fcn.0040a2be
push 2
pop ecx
cmp eax, ecx
jne 0x40a48e
mov dword [esp + 0x10], ecx
jmp 0x40a4af
cmp dword [esp + 0x18], 0
je 0x40a48e
push dword [esp + 0x1c]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x40a4a7
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a3c9
jmp 0x40a4af
mov dword [esp + 0x10], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x40a4c1
xor eax, eax
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004241ea
mov esp, ebp
pop ebp
ret 0x18