joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f3c0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497c98
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ce4e0]
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
xor edi, edi
xor eax, eax
mov ebx, ecx
mov word [ebp - 0x2c], ax
mov eax, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x46f407
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.0040cf10
mov ecx, esi
mov dword [ebp - 4], edi
push ecx
mov edi, 1
call fcn.00470190
push 0x4a98b8
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00401ba0
or edi, 0xffffffff
mov byte [ebp - 4], 1
cmp esi, edi
je 0x46f51a
push esi
xor ecx, ecx
lea esi, [ebp - 0x48]
lea edx, [ebp - 0x2c]
call fcn.0046fe40
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], esi
jb 0x46f46f
mov edx, dword [eax]
jmp 0x46f471
mov edx, eax
test edx, edx
jne 0x46f479
xor eax, eax
jmp 0x46f48f
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f480
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x4c]
call fcn.00401aa0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], esi
jb 0x46f4ae
mov edx, dword [ebp - 0x48]
push edx
call fcn.004739a7
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f500
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ebx, 0x4a9e74
call fcn.00406650
mov eax, dword [eax]
add esp, 8
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f4fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x50]
push 0
push 0x80
push 2
push 0
push 5
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x46f51f
mov esi, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f542
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x18], esi
jb 0x46f553
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004739a7
add esp, 4
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.004739b2
mov esp, ebp
pop ebp
ret
Function at 0x46f830
Capabilities:
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.00488aa0
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x30], 8
lea ecx, [esi + 0x1c]
push ebx
push edi
mov dword [ebp - 0x2014], ecx
jb 0x46f85a
mov ecx, dword [ecx]
call fcn.0046f3c0
mov dword [ebp - 0x2010], eax
cmp eax, 0xffffffff
je 0x46f979
xor ebx, ebx
cmp dword [esi + 0x50], ebx
je 0x46f885
mov edi, dword [esi + 0x3c]
call fcn.0046fbc0
mov ecx, dword [esi + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push 0x1fff
lea eax, [ebp - 0x2007]
push ebx
push eax
mov byte [ebp - 0x2008], bl
call fcn.00478ba0
mov eax, dword [esi + 0x3c]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea ecx, [ebp - 0x200c]
push ecx
push 0x2000
lea edx, [ebp - 0x2008]
push edx
push eax
call edi
cmp eax, ebx
je 0x46f93e
mov ecx, dword [ebp - 0x200c]
cmp ecx, ebx
je 0x46f93a
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x46f8df
add dword [eax], ecx
adc dword [eax + 4], ebx
mov ecx, dword [ebp - 0x200c]
push ebx
lea edx, [ebp - 0x200c]
push edx
push ecx
mov ecx, dword [ebp - 0x2010]
lea eax, [ebp - 0x2008]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46f947
push 0x1fff
lea edx, [ebp - 0x2007]
push ebx
push edx
mov byte [ebp - 0x2008], bl
call fcn.00478ba0
mov edx, dword [esi + 0x3c]
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push 0x2000
lea ecx, [ebp - 0x2008]
push ecx
push edx
call edi
cmp eax, ebx
jne 0x46f8c3
jmp 0x46f93e
cmp eax, ebx
jne 0x46f98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x4c], eax
cmp dword [esi + 0x4c], 0xffffffff
jne 0x46f953
mov eax, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x2014]
cmp dword [eax + 0x14], 8
jb 0x46f961
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x2010]
cmp eax, ebx
je 0x46f979
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004739b2
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.0046f9c0
test eax, eax
je 0x46f947
mov eax, dword [ebp - 0x2010]
cmp eax, ebx
je 0x46f9a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004739b2
mov esp, ebp
pop ebp
ret

Function at 0x46f9c0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea ecx, [ebp - 4]
push ecx
lea esi, [eax + 0x48]
mov eax, dword [eax + 0x3c]
lea edx, [ebp - 8]
push edx
push esi
push 0x20000013
push eax
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov dword [esi], 0x194
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [esi]
cmp esi, 0xc8
je 0x46fa0f
cmp esi, 0x130
je 0x46fa0f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46fa20
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497838
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ce4e0]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x46fa70
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.0040cf10
mov dword [ebp - 4], ebx
mov ebx, edi
mov ecx, esi
call fcn.0046f2d0
test al, al
sete bl
cmp dword [ebp - 0x18], 8
jb 0x46faab
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004739a7
add esp, 4
test bl, bl
jne 0x46faf6
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x30]
push ecx
mov dword [edi + 0x40], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, dword [ebp - 0x30]
and dl, 4
sub dl, 4
movzx eax, dl
push 0
neg eax
push 0
sbb eax, eax
push 0
and eax, 4
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x38], eax
test eax, eax
jne 0x46fafa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x4c], eax
xor al, al
jmp 0x46fb01
call fcn.0046fb20
mov al, 1
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.004739b2
mov esp, ebp
pop ebp
ret 8

Function at 0x46fbc0
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
xor esi, esi
push 0x20000013
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x46fc4a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp ecx, 0xc8
jne 0x46fc0a
cmp eax, esi
je 0x46fc16
cmp ecx, 0x12e
jne 0x46fc4a
cmp eax, esi
jne 0x46fc4a
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x20000005
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x46fc4a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471f70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 0x206
mov dword [ebp - 0x214], eax
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], ecx
mov word [ebp - 0x20c], dx
call fcn.00478ba0
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
mov ebx, dword [ebx]
mov edi, dword [edi]
add esp, 0xc
push esi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
jmp 0x471ff0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x471ff0
sub eax, ecx
mov ecx, dword [ebp - 0x210]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00401aa0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004739b2
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4720d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49bbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ce4e0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
lea ebx, [esi + 4]
push ecx
mov dword [esp + 0x30], 0
call fcn.0040b870
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00404db0
xor bl, bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47215c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401530
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
call fcn.00403da0
add esp, 4
push eax
mov byte [esp + 0x30], bl
call fcn.00403f50
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4721b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4739b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ce4e0]
jne 0x4739bc
repz ret
jmp fcn.0047ce1a
Function at 0x487d18
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0047ee40
and dword [ebp - 0x14], 0
cmp dword [0x4d6f90], 0
mov dword [ebp - 0x18], eax
jne 0x487dcb
push 0x4a7da0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x487e73
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a7d94
push ebx
call edi
test eax, eax
je 0x487e73
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4a7d84
push ebx
mov dword [0x4d6f90], eax
call edi
push eax
call esi
push 0x4a7d70
push ebx
mov dword [0x4d6f94], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d6f98], eax
call edi
push eax
call esi
mov dword [0x4d6fa0], eax
test eax, eax
je 0x487dcb
push 0x4a7d3c
push ebx
call edi
push eax
call esi
mov dword [0x4d6f9c], eax
mov eax, dword [0x4d6f9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x487e24
cmp dword [0x4d6fa0], ecx
je 0x487e24
push eax
call esi
push dword [0x4d6fa0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x487e24
test ebx, ebx
je 0x487e24
call edi
test eax, eax
je 0x487e1b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x487e1b
test byte [ebp - 8], 1
jne 0x487e24
or dword [ebp + 0x10], 0x200000
jmp 0x487e57
mov eax, dword [0x4d6f94]
cmp eax, dword [ebp - 0x18]
je 0x487e57
push eax
call esi
test eax, eax
je 0x487e57
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x487e57
mov eax, dword [0x4d6f98]
cmp eax, dword [ebp - 0x18]
je 0x487e57
push eax
call esi
test eax, eax
je 0x487e57
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d6f90]
call esi
test eax, eax
je 0x487e73
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x487e75
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004739b2
leave
ret
Function at 0x48ff60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4932f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4ce4e0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ce4e0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x4cf6ec]
cmp eax, 0xffffffff
jne 0x48ffa0
xor esi, esi
jmp 0x48ffa9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], 0
test esi, esi
je 0x48fffd
nop
cmp dword [esi + 0x14], 0
jne 0x49004a
cmp dword [esi + 0x10], 0
jne 0x490050
push 0x48f5d0
push 0x4d6fbc
call fcn.0048f850
mov eax, dword [0x4cf6ec]
add esp, 8
cmp eax, 0xffffffff
je 0x490101
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x49002b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x49002b
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004739b2
add esp, 0x48
ret
cmp dword [esi + 0x10], 0
je 0x490092
mov ebp, dword [esi + 0x10]
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x490080
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x10], 0
jne 0x490050
cmp dword [esi + 0x14], 0
je 0x48ffca
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4900b7
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebp, dword [edi + 8]
test ebp, ebp
je 0x4900ea
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4900ea
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4900ea
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x14], 0
jne 0x49009c
jmp 0x48ffc0
call fcn.00490f00
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov edi, 0xb
mov dword [esp + 0x18], 0x4a95ec
call fcn.00473f94
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], vtable.boost::thread_resource_error.0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00405a50
int3
Function at 0x490250
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x493358
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ce4e0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
push edi
mov eax, dword [0x4ce4e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x490160
push 0
push 0
call fcn.00474672
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x4902f2
call fcn.00490f00
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
mov esi, eax
lea edi, [ebp + 0xb]
mov dword [esp + 0x14], 0x4a95ec
call fcn.00473f94
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
mov dword [esp + 0x14], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x54], ebp
call fcn.00405a50
mov ecx, dword [esi]
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x490315
cmp eax, 0xffffffff
je 0x490315
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004739b2
add esp, 0x44
ret
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x401055
push 0x40
push 0x402148
push 0x402160
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401170
mov esp, ebp
pop ebp
ret
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40108a
push 0x40
push 0x402148
push 0x402170
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401170
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call sub.MSVCR110.dll_memcpy
add esp, 0xc
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push 0x402180
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x4010d4
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010e8
push 0x40
push 0x402148
push 0x402198
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401170
mov esp, ebp
pop ebp
ret

Function at 0x401110
Capabilities:
Create process on windows

Disassembly:
push 0x4021a8
push 0
call dword [sym.imp.MSVCR110.dll_setlocale]
add esp, 8
push 0x402140
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x401157
push eax
push 0x402148
push 0x402150
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 5
push str.SystemV.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
ret 0x10
mov ecx, eax
call fcn.00401000
push 5
push str.SystemV.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
ret 0x10
Function at 0x476e64
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00477a24
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x477920
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x40
jle 0x477965
lea eax, [ebp - 0x60]
call fcn.00476e64
mov edx, ebx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.00476e8c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00476f60
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x477967
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0xe0]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x477990
movzx ebx, byte [esi]
xor bl, 0x36
mov byte [eax], bl
movzx ebx, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x477996
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x477975
lea eax, [ebp - 0x60]
call fcn.00476e64
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.00476e8c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
call fcn.00477800
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00476f60
lea eax, [ebp - 0x60]
call fcn.00476e64
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.00476e8c
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov ecx, 0x10
call fcn.00476e8c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00476f60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48eb1c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x48eb30
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x48eb2f
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.00401330
xor ebx, ebx
cmp esi, dword [esp]
jge 0x48ec94
inc ebx
mov eax, edi
call fcn.00401320
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x48ec4d
inc ebx
mov eax, edi
call fcn.00401320
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x48ec1c
inc ebx
mov eax, edi
call fcn.00401320
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00401320
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x48ec88
inc ebx
mov eax, edi
call fcn.00401320
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00401320
mov byte [eax + ebx - 1], 0x3d
jmp 0x48ec88
inc ebx
mov eax, edi
call fcn.00401320
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.00401320
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.00401320
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x48eb64
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret