joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x498dd4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x64
call ebx
push 1
push dword [edi]
call dword [sym.imp.WS2_32.dll_shutdown]
push 0x64
call ebx
xor esi, esi
lea eax, [ebp - 0x404]
push esi
push 0x400
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x498dc6
push 0x64
call ebx
mov eax, esi
inc esi
cmp eax, 0x64
jg 0x498dc6
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x498da0
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x64
call ebx
pop esi
pop ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004b3f28
mov esp, ebp
pop ebp
ret

Function at 0x498df0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0xff
push 0
push eax
mov esi, ecx
call fcn.004b90a0
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
pop esi
cmp eax, 0xffffffff
jne 0x498e6f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Winsock_Error__error_code___d_n
call fcn.004153c0
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f28
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
movsx eax, byte [ebp - 0x104]
xor ecx, ebp
call fcn.004b3f28
mov esp, ebp
pop ebp
ret

Function at 0x498e90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x498ee0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jle 0x498ec2
push 0
push esi
push edi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x498eca
sub esi, eax
add edi, eax
test esi, esi
jg 0x498ea7
jmp 0x498ec5
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x498ede
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Winsock_Error__error_code___d_n
call fcn.004153c0
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x499470
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, ecx
push esi
call fcn.00442df0
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x4994d4
push 0x4fda68
push esi
call fcn.004cf85c
mov esi, eax
add esp, 8
test esi, esi
je 0x4994d4
push edi
push ebx
call fcn.00417230
push esi
push ebx
mov edi, eax
push 1
push edi
call fcn.004c37de
push esi
call fcn.004c35d5
add esp, 0x18
mov ecx, ebp
push edi
call fcn.004994e0
push edi
mov esi, eax
call fcn.00417300
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
Function at 0x499a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9dbd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x52de04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x499ca0
push str.rXYZ
call fcn.00499460
push eax
mov ecx, ebx
call fcn.00499310
push 0x14
push 0
push str.rXYZ
mov ecx, ebx
call fcn.00499460
push eax
lea ecx, [ebp - 0x24]
call fcn.00499260
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
push 0
push esi
mov dword [ebp - 4], 0
call fcn.004b90a0
add esp, 0xc
mov dword [esi], 0x205a5958
movsd xmm0, qword [edi]
push 0x73663332
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 8], eax
movsd xmm0, qword [edi + 8]
push 0x73663332
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 0xc], eax
movsd xmm0, qword [edi + 0x10]
push 0x73663332
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 0x10], eax
mov ecx, ebx
push str.gXYZ
call fcn.00499460
push eax
mov ecx, ebx
call fcn.00499310
push 0x14
push 0
push str.gXYZ
mov ecx, ebx
call fcn.00499460
push eax
lea ecx, [ebp - 0x54]
call fcn.00499260
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
push 0
push esi
mov byte [ebp - 4], 1
call fcn.004b90a0
add esp, 0xc
mov dword [esi], 0x205a5958
movsd xmm0, qword [edi + 0x18]
push 0x73663332
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 8], eax
movsd xmm0, qword [edi + 0x20]
push 0x73663332
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 0xc], eax
push 0x73663332
movsd xmm0, qword [edi + 0x28]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 0x10], eax
mov ecx, ebx
push str.bXYZ
call fcn.00499460
push eax
mov ecx, ebx
call fcn.00499310
push 0x14
push 0
push str.bXYZ
mov ecx, ebx
call fcn.00499460
push eax
lea ecx, [ebp - 0x3c]
call fcn.00499260
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
push 0
push esi
mov byte [ebp - 4], 2
call fcn.004b90a0
add esp, 0xc
mov dword [esi], 0x205a5958
movsd xmm0, qword [edi + 0x30]
push 0x73663332
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 8], eax
movsd xmm0, qword [edi + 0x38]
push 0x73663332
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 0xc], eax
movsd xmm0, qword [edi + 0x40]
push 0x73663332
sub esp, 8
movsd qword [esp], xmm0
call fcn.0049bd60
add esp, 0xc
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x24]
lea ecx, [ebx + 0x80]
push eax
call fcn.00499660
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebx + 0x80]
call fcn.00499660
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 0x80]
call fcn.00499660
lea ecx, [ebp - 0x3c]
call fcn.004992a0
lea ecx, [ebp - 0x54]
call fcn.004992a0
lea ecx, [ebp - 0x24]
call fcn.004992a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49b140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9f05
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52de04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x14
call fcn.00417230
mov edi, dword [ebp + 8]
mov esi, eax
push edi
call fcn.00442df0
push eax
call fcn.00417230
push 0x4fda68
push edi
mov dword [esi], eax
call fcn.004cf85c
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x49b30e
push ebx
push edi
call fcn.00442df0
add esp, 4
push eax
push 1
push dword [esi]
call fcn.004c37de
push ebx
call fcn.004c35d5
add esp, 0x14
call fcn.0049a720
mov edi, eax
mov ecx, edi
call fcn.00499620
push eax
call fcn.00417230
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
push eax
call fcn.0049a3e0
test edi, edi
je 0x49b1f4
lea ecx, [edi + 0x80]
call fcn.004853a0
push 0x88
push edi
call fcn.004b3acc
add esp, 8
push 0x88
call fcn.0049c406
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x49b23c
push 0x20
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
call fcn.0049c406
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0x80], eax
jmp 0x49b23e
xor edi, edi
push dword [esi]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.004994e0
mov ecx, edi
call fcn.00499370
mov dword [esi + 0x10], eax
test edi, edi
je 0x49b275
lea ecx, [edi + 0x80]
call fcn.004853a0
push 0x88
push edi
call fcn.004b3acc
add esp, 8
push 0x60
call fcn.0049c406
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x49b29d
push 1
push 3
push dword [esi + 0x10]
mov ecx, eax
call fcn.004836d0
jmp 0x49b29f
xor eax, eax
mov edi, dword [ebp + 0xc]
mov ecx, eax
push edi
push dword [esi + 4]
mov dword [ebp - 4], 0xffffffff
push dword [esi]
mov dword [esi + 8], eax
call fcn.00483a90
push 0x60
call fcn.0049c406
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x49b2e1
push 1
push dword [esi + 0x10]
mov ecx, eax
push 3
call fcn.004836d0
jmp 0x49b2e3
xor eax, eax
push edi
push dword [esi]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
push dword [esi + 4]
mov dword [esi + 0xc], eax
call fcn.00483a90
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
push dword [esi]
call fcn.00417300
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d30c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x49d354
call fcn.0049c879
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49d354
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49d361
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x49d39d
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x49d380
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x49d389
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x49d39b
test di, di
jne 0x49d39b
test dx, dx
je 0x49d39d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49d6f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4f9fd4
call fcn.004b479a
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.0049c879
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x49d755
call fcn.0049c879
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49d769
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x49d765
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x49d771
or eax, 0xffffffff
jmp 0x49d8c3
mov ecx, edi
call fcn.0049dd00
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.004a3684
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x49d7fd
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x49d7fd
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x49d7fd
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.0049d276
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x49d7fa
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x4fd690]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x49d7fa
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.004a8ea8
test eax, eax
je 0x49d7fa
push 0
mov ecx, esi
call fcn.004a8da0
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.004a34d5
push ebx
call fcn.004a4995
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0049d699
test eax, eax
jne 0x49d846
cmp dword [edi + 0x9c], eax
jne 0x49d846
call fcn.0049c879
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.004a4995
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0049d699
and dword [edi + 0x9c], 0
jmp 0x49d871
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x49d885
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.004a8da0
test esi, esi
je 0x49d892
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x49d8a8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x49d8a8
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x4fd690]
mov ecx, edi
call esi
mov ecx, edi
call fcn.0049dcb7
mov eax, dword [edi + 0x68]
call fcn.004b46ff
ret
Function at 0x4a0642
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4a0695
push esi
push dword [ebp + 8]
call fcn.004a082b
mov edi, eax
test edi, edi
je 0x4a0690
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4a0690
mov eax, dword [ebp - 8]
jmp 0x4a06a7
mov eax, dword [ebp + 0x10]
jmp 0x4a06a7
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x4a06ad
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa2a7
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.004b3f40
mov eax, dword [0x52de04]
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]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x4a07de
push ebx
push edx
call fcn.004a082b
mov ebx, eax
test ebx, ebx
jne 0x4a0715
push esi
jmp 0x4a0806
lea ecx, [ebp - 0x2014]
call fcn.0049c477
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x4a079d
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.0049c964
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.004a0967
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x4a07cb
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.0049f3ff
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.0049bf60
jmp 0x4a080d
push esi
mov ecx, edi
call fcn.0049ebba
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x4a07c4
test esi, esi
jne 0x4a07e7
mov esi, 0x4ffbfc
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.0049ebba
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.004b3f28
leave
ret 0x10
Function at 0x4a4928
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4a4967
call fcn.0049c879
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4a4967
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a496f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0049be19
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4a4fd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4a5060
cmp dword [esi + 0x20], 0
je 0x4a5060
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a5060
cmp dword [ebp + 8], 0
je 0x4a5060
xor edi, edi
mov ebx, edi
call fcn.0049c879
push 0x50bbc0
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4a5044
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a5060
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004b0347
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4a505c
mov ecx, esi
call fcn.004a4dae
mov eax, edi
jmp 0x4a5062
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a99af
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x4a9a26
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4a99ec
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x4a99ec
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x4a9a19
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4a9a1c
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4a9a12
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4fd690]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x4a99cf
test eax, eax
je 0x4a9a68
lea esi, [ecx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp - 8]
push edi
lea ecx, [ebx + 0x14]
call fcn.004a9c99
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4fd690]
mov ecx, edi
call esi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a9ceb
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x4fa7e2
call fcn.004b479a
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4a9de2
cmp edi, dword [ebx + 0xc]
jge 0x4a9de2
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4a9d42
cmp edi, dword [esi + 8]
jl 0x4a9dd0
cmp dword [ebp + 0xc], 0
je 0x4a9dd0
xor edi, edi
jmp 0x4a9d74
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.004a97ae
mov esi, eax
test esi, esi
je 0x4a9d5c
mov dword [esi], vtable.CThreadData.0
jmp 0x4a9d5e
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.004a1c36
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4a9d90
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4a9d9c
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4a9e09
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.004b90a0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4a9de2
cmp edi, dword [esi + 8]
jge 0x4a9de2
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004b46ff
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004a1768
int3
Function at 0x4b4af5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4b4b34
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b4b34
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b4b34
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4b4b34
cmp dword [ecx + 0x74], 0xe
jbe 0x4b4b34
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4b6b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb2b8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52de04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::exception_detail::clone_base.0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
lea eax, [edi + 8]
xorps xmm0, xmm0
mov dword [edi + 4], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 8]
mov byte [ebp - 4], 1
push eax
call fcn.004b8bf4
mov dword [edi + 4], vtable.boost::system::system_error.0
add esp, 8
movq xmm0, qword [ebx + 0x10]
movq qword [edi + 0x10], xmm0
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov dword [edi + 4], vtable.boost::lock_error.0
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 2
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x20]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x4b6baa
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x14], eax
mov eax, edi
mov dword [edi], vtable.boost::wrapexcept_class_boost::lock_error_.0
mov dword [edi + 4], vtable.boost::wrapexcept_class_boost::lock_error_.1.0
mov dword [esi], vtable.boost::wrapexcept_class_boost::lock_error_.2.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b6bf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb2e0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x52de04]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::exception_detail::clone_base.0
mov esi, dword [ebp + 8]
lea eax, [edi + 8]
xorps xmm0, xmm0
mov dword [edi + 4], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [esi + 4]
mov dword [ebp - 4], 0
push eax
call fcn.004b8bf4
mov dword [edi + 4], vtable.boost::system::system_error.0
add esp, 8
movq xmm0, qword [esi + 0xc]
movq qword [edi + 0x10], xmm0
mov eax, dword [esi + 0x14]
mov dword [edi + 0x18], eax
mov eax, edi
mov dword [edi + 4], vtable.boost::lock_error.0
mov dword [edi + 0x1c], vtable.boost::exception.0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x30], 0xffffffff
mov dword [edi], vtable.boost::wrapexcept_class_boost::lock_error_.0
mov dword [edi + 4], vtable.boost::wrapexcept_class_boost::lock_error_.1.0
mov dword [edi + 0x1c], vtable.boost::wrapexcept_class_boost::lock_error_.2.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4