joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa20d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa20d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa20d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa20d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa20d94
push eax
push esi
call fcn.00a2320b
add esp, 8
pop esi
ret 0x10

Function at 0xa20da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa20e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa20e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa39320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a22dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa20dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa20e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa20ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa20eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa39320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a22dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa20eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa20e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa21000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa21131
push esi
call fcn.00a24145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a13080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa21131
push 0
push ebp
call fcn.00a133a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a13260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa2108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a132f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa21121
push 0xa39918
push edi
call fcn.00a223f0
push eax
push ebx
push esi
call fcn.00a20f60
push 0xa398f8
push edi
call fcn.00a223f0
push eax
push ebx
push esi
call fcn.00a20f60
push 0xa398d8
push edi
call fcn.00a223f0
push eax
push ebx
push esi
call fcn.00a20f60
push 0xa398c0
push edi
call fcn.00a223f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a20f60
push 0xa398a0
push edi
call fcn.00a223f0
push eax
push ebx
push esi
call fcn.00a20f60
push 0xa39888
push edi
call fcn.00a223f0
push eax
push ebx
push esi
call fcn.00a20f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa221b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a22140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a22140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a22140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a22140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa22bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa22c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa3487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa22c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa22c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401150
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], 0xbb8
cmp dword [esi + 4], ebx
je 0x4011a6
cmp dword [esi], ebx
je 0x4011a6
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x401185
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
je 0x401198
push eax
call edi
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x4011a3
push eax
call edi
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x14]
cmp edi, ebx
jne 0x4011b4
xor eax, eax
jmp 0x4011d0
mov eax, edi
lea edx, [eax + 2]
mov dword [ebp - 8], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4011c0
sub eax, dword [ebp - 8]
sar eax, 1
push eax
push edi
call fcn.00403140
mov edi, dword [ebp + 0xc]
lea ecx, [esi + 0x18]
cmp edi, ebx
jne 0x4011e5
xor eax, eax
jmp 0x401200
mov eax, edi
lea edx, [eax + 2]
mov dword [ebp - 8], edx
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4011f0
sub eax, dword [ebp - 8]
sar eax, 1
push eax
push edi
call fcn.00403140
mov edi, dword [ebp + 0x10]
lea ecx, [esi + 0x1c]
cmp edi, ebx
jne 0x401215
xor eax, eax
jmp 0x401230
mov eax, edi
lea edx, [eax + 2]
mov dword [ebp + 0x10], edx
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x401220
sub eax, dword [ebp + 0x10]
sar eax, 1
push eax
push edi
call fcn.00403140
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x20], 0x7d2
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x24], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
cmp eax, ebx
jne 0x401266
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 4], ebx
jle 0x40127a
push 4
lea ecx, [ebp - 4]
push ecx
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [esi]
push 0x401760
push edx
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
push esi
push 0x8000000
push 1
push edi
push eax
push 0x7d2
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
xor ecx, ecx
cmp eax, ebx
setne cl
pop edi
mov dword [esi + 4], eax
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4012c0
Capabilities:
Connect to http server
Create http request

Disassembly:
cmp dword [esi + 4], 0
je 0x4012d1
cmp dword [esi], 0
je 0x4012d1
mov eax, 1
ret
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x401350
mov ecx, dword [esi + 0x18]
cmp dword [ecx - 0xc], 0
je 0x401350
mov edx, dword [esi + 0x1c]
cmp dword [edx - 0xc], 0
je 0x401350
cmp dword [esi + 0x20], 0
je 0x401350
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
je 0x401350
push 0x401760
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp dword [esi + 0x24], 1
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push esi
jne 0x40132b
push 0x8000000
jmp 0x40132d
push 0
push 1
push eax
movzx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esi]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4012cb
mov edx, dword [esi]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
ret
Function at 0x401360
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5638d8
mov eax, dword fs:[0]
push eax
mov eax, 0x10020
call fcn.0053b080
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1001c], eax
mov dword [ebp - 4], 0
cmp dword [ebx + 4], 0
je 0x4013ac
cmp dword [ebx], 0
jne 0x4013bb
mov esi, ebx
call fcn.004012c0
test eax, eax
je 0x40154a
mov eax, dword [ebp + 8]
push 0
push 2
push SysReAllocStringLen
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x10018], esp
mov esi, esp
push eax
call fcn.00402eb0
add esp, 4
add eax, 0x10
push ebx
lea edi, [ebp - 0x10018]
mov dword [esi], eax
call fcn.00401580
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
push eax
push ecx
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov edi, eax
mov eax, dword [ebp - 0x10018]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40141e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x40154a
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1001c]
call fcn.00402100
push 0xffff
xor esi, esi
lea ecx, [ebp - 0x1000f]
push esi
push ecx
mov byte [ebp - 0x10010], 0
call fcn.00538700
add esp, 0xc
mov dword [ebp - 0x10014], esi
mov dword [ebp - 0x10024], esi
mov edi, edi
lea edx, [ebp - 0x10014]
push edx
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401520
mov eax, dword [ebp - 0x10014]
test eax, eax
je 0x4014d1
mov edx, dword [ebp - 0x1001c]
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x10010]
push ecx
add eax, esi
push eax
call fcn.0053b1b0
mov ecx, dword [ebx + 0xc]
add esp, 0xc
add esi, dword [ebp - 0x10014]
push 0
adc dword [ebp - 0x10024], 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401543
cmp dword [ebp - 0x10014], 0
ja 0x401460
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4014fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 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.0053129a
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x401564
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x401503
Function at 0x402a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402aab
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ae2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402ade
jmp 0x402ad0
cmp esi, eax
jae 0x402ae2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ad0
cmp esi, eax
jb 0x402ae9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403340
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5c4920]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, edx
mov edx, dword [eax]
mov dword [ebx + 4], edx
mov edx, dword [eax + 4]
mov dword [ebx + 8], edx
mov edx, dword [eax]
mov dword [ebx + 0xc], edx
mov eax, dword [eax + 4]
mov dword [ebx + 0x10], eax
mov eax, 0x38
push esi
push edi
mov dword [ebp - 0x48], ebx
cmp dword [ebp + 8], eax
jbe 0x40337e
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
push edx
push ecx
lea eax, [ebp - 0x3c]
push eax
call fcn.0053b1b0
mov dword [ebx], 0
lea edi, [ebx + 0x14]
push 0x1000
add ebx, 0x5c
push 0x597eb8
mov ecx, 0x12
mov esi, 0x597e70
mov dword [ebp - 0x44], edi
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x54], ebx
call fcn.0053b1b0
mov edi, dword [ebp - 0x44]
add esp, 0x18
lea ecx, [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x40], 0x12
lea esp, [esp]
xor edx, edx
mov esi, 4
movzx ebx, byte [ecx]
shl edx, 8
inc eax
dec esi
or edx, ebx
inc ecx
cmp eax, dword [ebp + 8]
jne 0x4033ec
xor eax, eax
lea ecx, [ebp - 0x3c]
test esi, esi
jne 0x4033d7
xor dword [edi], edx
add edi, 4
dec dword [ebp - 0x40]
jne 0x4033d0
mov edi, dword [ebp - 0x48]
xor ebx, ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
add edi, 0x14
jmp 0x403410
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x50]
call fcn.00403490
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [edi], ecx
mov dword [edi + 4], edx
add ebx, 2
add edi, 8
cmp ebx, 0x12
jb 0x403410
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 4
mov edi, dword [ebp - 0x40]
xor ebx, ebx
mov eax, dword [ebp - 0x48]
lea esi, [ebp - 0x50]
call fcn.00403490
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [edi], ecx
mov dword [edi + 4], edx
add ebx, 2
add edi, 8
cmp ebx, 0x100
jl 0x403443
add dword [ebp - 0x40], 0x400
dec dword [ebp - 0x44]
jne 0x40343e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053129a
mov esp, ebp
pop ebp
ret 8
Function at 0x408000
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408040
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp + 8], edi
call fcn.00552c50
mov dword [esp + 0xc], eax
test edi, edi
je 0x408040
lea eax, [esp + 8]
push eax
mov ecx, 0x59915c
call fcn.00407eb0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408320
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5ce880
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x40836d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.COleException.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x408390
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
jne 0x4083e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x10], ebx
call fcn.00552c50
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x4083e7
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.00407eb0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], 0
jne 0x408439
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x10], ebx
call fcn.00552c50
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x408436
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.00407eb0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x4084e0
push eax
push 0
mov dword [esp + 0x24], 0
call fcn.005331d5
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x4084b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test edi, edi
je 0x408482
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x408490
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.00552c50
mov dword [esp + 0x14], eax
test esi, esi
je 0x4084b4
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread
call fcn.00407eb0
test edi, edi
je 0x4084c8
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408590
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56625f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.00408dd0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
lea eax, [esi + 0x38]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 0x34], edi
call fcn.00408060
mov ebx, eax
call fcn.00552c50
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, edi
je 0x408621
lea ecx, [ebp - 0x14]
push ecx
mov ecx, str.mutex
call fcn.00407eb0
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
cmp eax, 0xffffffff
jb 0x408639
or eax, 0xffffffff
push eax
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x408670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call fcn.00552c50
mov dword [ebp - 0x10], eax
cmp ebx, edi
je 0x408670
lea edx, [ebp - 0x14]
push edx
mov ecx, str.iocp
call fcn.00407eb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566450
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5c4920]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x408990
mov eax, esi
call fcn.00408a30
xor esi, esi
call fcn.00552c50
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x5cee30]
lea ecx, [ebp - 0x10]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x5cee30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00408b50
test eax, eax
je 0x4089e2
cmp ebx, 0xffffffff
je 0x4089d6
inc ebx
push edi
mov ecx, esi
call fcn.00408b50
test eax, eax
jne 0x4089d0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5cee30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408a02
push eax
call fcn.0043dbc0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret