joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f9510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5797a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.004fb9d0
lea edi, [esi + 0x4c]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.CHHConnect.0
call fcn.004f6e90
mov dword [edi + 4], eax
mov byte [eax + 0x5c9], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
lea eax, [esi + 0x10]
push eax
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 8], 2
mov dword [esi + 0xc], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.HHNetClient.dll_Ordinal_1_6]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4f9780
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7ac
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x7a8], eax
push ebx
mov ebx, dword [ebp + 0x5c0]
push esi
push edi
mov ecx, 0x16e
lea esi, [ebp + 8]
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
cmp dword [esp + 0x23c], edi
mov dword [esp + 0x14], edi
jne 0x4f9821
lea eax, [esp + 0x620]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0xec]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x4f97fe
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7a8]
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x5bc
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0xec]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x4f9813
push 0x50
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00530d30
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x248]
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x174]
push ecx
push edx
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.HCNetSDK.dll_NET_DVR_Login_V30]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x10], esi
jge 0x4f986e
call dword [sym.imp.HCNetSDK.dll_NET_DVR_GetLastError]
jmp 0x4f98e3
movzx ecx, byte [esp + 0x48]
movzx edx, byte [esp + 0x49]
movzx eax, byte [esp + 0x4f]
mov dword [ebx + 0x320], ecx
movzx ecx, byte [esp + 0x4c]
add eax, ecx
mov dword [ebx + 0x324], edx
movzx edx, byte [esp + 0x4e]
mov dword [ebx + 0x318], eax
mov eax, 1
mov dword [ebx + 0x338], edi
mov dword [ebx + 0x330], edi
mov dword [ebx + 0x33c], edi
lea edi, [ebx + 0x2d8]
mov ecx, 0x10
lea esi, [esp + 0x18]
mov dword [ebx + 0x328], eax
mov dword [ebx + 0x32c], eax
mov dword [ebx + 0x31c], eax
mov eax, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x334], edx
mov ecx, dword [esp + 0x7b4]
mov dword [ebx + 0x1cc], eax
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x5bc
Function at 0x4fb300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5798de
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004fb9d0
lea edi, [esi + 0x48]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x20], ebp
mov dword [esi], vtable.CHKConnect.0
call fcn.0041c510
mov dword [edi + 4], eax
mov bl, 1
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x54]
mov ecx, edi
mov byte [esp + 0x20], bl
call fcn.0041c510
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea edi, [esi + 0x60]
mov ecx, edi
mov byte [esp + 0x20], 2
call fcn.0041c510
mov dword [edi + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
lea eax, [esi + 0x10]
mov dword [edi + 8], ebp
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push eax
call edi
lea ecx, [esi + 0x6c]
push ecx
call edi
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 8], 2
mov dword [esi + 0xc], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x34], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call dword [sym.imp.HCNetSDK.dll_NET_DVR_Init]
mov dword [0x5e2150], eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4fb783
Capabilities:
Create thread

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
push edi
xor edi, edi
test ecx, ecx
jle 0x4fb848
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0xb4]
push edx
add eax, 8
push eax
add ecx, 0xffffffff
push ecx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_PlayBackByName]
mov edi, eax
test edi, edi
jl 0x4fb848
mov ecx, dword [esp + 0x34]
lea eax, [edi + 1]
lea edx, [esp + 8]
mov dword [esp + 8], eax
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esi + 0x54]
call fcn.004adef0
mov ecx, dword [esp + 0x38]
push ecx
push 0x4fb580
push edi
call dword [sym.imp.HCNetSDK.dll_NET_DVR_SetPlayDataCallBack_V40]
push 0x10
call fcn.0050fcfd
mov edx, dword [esp + 0x34]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push ecx
push 1
push esi
push 0x4f9660
push 0
push 0
mov dword [esi + 4], edi
mov dword [esi], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4fb83b
push esi
call fcn.0050fd2d
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 0x1c
push 0
push 0
push 1
push edi
call dword [sym.imp.HCNetSDK.dll_NET_DVR_PlayBackControl]
lea eax, [edi + 1]
pop edi
pop esi
add esp, 0x14
ret 0x1c
Function at 0x4fc920
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x579943
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004fb9d0
xor edi, edi
push edi
push edi
push edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x24], edi
mov dword [esi], vtable.COnvifConnect.0
call fcn.0051ccf7
lea eax, [esi + 0x18]
push eax
mov byte [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 8], 2
mov dword [esi + 0xc], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.libonvifclient.dll_Ordinal_1_7]
push esi
push 0x4fbab0
call dword [sym.imp.libonvifclient.dll_Ordinal_6_4]
cmp eax, edi
mov dword [0x5e2158], eax
je 0x4fc9c9
push 0x400
lea ecx, [esi + 0x58]
push edi
push ecx
call fcn.00530d30
add esp, 0xc
mov dword [esi + 0x458], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4fdde7
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x88
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00530d30
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0xa8]
add esp, 0xc
push esi
push 0x4fdd50
sub esp, 0x88
mov dword [esp + 0xa0], ecx
mov edi, esp
mov dword [esp + 0xa4], edx
mov ecx, 0x22
lea esi, [esp + 0xa0]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.libonvifclient.dll_Ordinal_24_3]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
jg 0x4fde64
push str.NTDC__IsRealPlay___failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4fde95
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x5e215c
call fcn.00417e30
mov edx, dword [esp + 0xa8]
mov dword [eax], edx
lea eax, [esp + 0xc]
push eax
mov ecx, 0x5e215c
call fcn.00417e30
mov ecx, dword [esp + 0xac]
mov dword [eax + 4], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x8c
ret 0x14
Function at 0x4ff710
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x579b49
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
call fcn.004fb9d0
xor ebp, ebp
push ebp
push ebp
push ebp
lea ecx, [esi + 0x10]
mov dword [esp + 0x30], ebp
mov dword [esi], vtable.CXMConnect.0
call fcn.0051ccf7
lea edi, [esi + 0x58]
mov ecx, edi
mov byte [esp + 0x24], 1
call fcn.0041c510
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebp
lea ebx, [esi + 0x64]
mov ecx, ebx
mov byte [esp + 0x24], 2
call fcn.004eb000
lea eax, [esi + 0x18]
push eax
mov byte [esp + 0x28], 3
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 8], 2
mov dword [esi + 0xc], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 0x34], ebp
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, edi
call fcn.004f5d40
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], ebp
push ebp
mov dword [eax], eax
mov edi, dword [edi + 4]
push 1
push ebx
mov dword [edi + 8], edi
call fcn.004eb050
add esp, 0xc
test eax, eax
jge 0x4ff80c
push 0x5bbb50
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005313bb
push esi
push 0x4fdeb0
call dword [sym.imp.NetSDK.dll_Ordinal_1_1]
push esi
push 0x4fe620
mov edi, eax
call dword [sym.imp.NetSDK.dll_Ordinal_8]
push esi
push 0x4fdee0
call dword [sym.imp.NetSDK.dll_Ordinal_84]
mov dword [0x5e2170], edi
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x5104b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x579bbc
call fcn.0053999e
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0051cb2d
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x510502
call fcn.0051cb2d
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x510513
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x510520
or eax, 0xffffffff
jmp 0x51067c
mov ecx, esi
call fcn.00510009
mov dword [ebp - 0x14], eax
call fcn.005136df
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x51059e
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x51059e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x51059e
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0050fe98
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x51059e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x51059e
mov ecx, ebx
call fcn.00516d65
test eax, eax
je 0x51059e
push 0
mov ecx, ebx
call fcn.00516d80
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00515265
push dword [ebp - 0x14]
call fcn.00513637
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.005102bf
xor edi, edi
cmp eax, edi
je 0x5105fb
test byte [esi + 0x3c], 0x10
je 0x5105e5
push 4
pop edi
mov ecx, esi
call fcn.00516c22
test ax, 0x100
je 0x5105db
push 5
pop edi
push edi
mov ecx, esi
call fcn.005131ff
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x5105fb
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00516f6d
or dword [ebp - 4], 0xffffffff
jmp 0x510626
cmp dword [ebp - 0x28], edi
je 0x510634
push 1
mov ecx, ebx
call fcn.00516d80
cmp dword [ebp - 0x2c], edi
je 0x510644
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x51065d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x51065d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00510043
cmp dword [esi + 0x58], edi
je 0x510679
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00539a43
ret
Function at 0x514835
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x51486e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00406320
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00405e00
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x5164c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x516503
call fcn.0051cb2d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x516503
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x51651e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00516077
test ebx, ebx
mov esi, eax
je 0x51651c
test edi, edi
je 0x51651c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x51aefa
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5d72e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x51af3a
push 0x59a720
push 4
push eax
call fcn.00539f02
push eax
call fcn.00401c30
add esp, 0x10
jmp 0x51af4c
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x51afba
push edi
call fcn.00536f6e
mov edi, dword [eax]
call fcn.00536f6e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00530d09
add esp, 0x18
mov ebx, eax
call fcn.00536f6e
cmp dword [eax], 0
je 0x51af9a
call fcn.00536f6e
push dword [eax]
call fcn.0051093e
pop ecx
jmp 0x51afa1
call fcn.00536f6e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x51afba
cmp ebx, esi
jae 0x51afba
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x51afbc
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053042b
leave
ret
Function at 0x51d3f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x51d43a
call fcn.0051cb2d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x51d43a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x51d47d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x51d466
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x51d466
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x51d47a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5240c6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5240f4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x524112
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00524030
jmp 0x524112
mov eax, dword [esi + 0x14]
test eax, eax
je 0x524112
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00524030
test edi, edi
mov eax, edi
jne 0x5240fc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5e3d50]
test ecx, ecx
je 0x5241d5
jmp 0x5240c5
ret 8

Function at 0x53042b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d72e0]
jne 0x530435
repz ret
jmp fcn.0053bfdc

Function at 0x532814
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x532841
call fcn.00536f81
mov dword [eax], esi
call fcn.00536f6e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0053121b
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x53281d
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x532870
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00536f94
pop ecx
call fcn.00536f6e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x532897
test al, 1
je 0x532897
test byte [esp + 0xc], 2
je 0x532897
call fcn.00536f81
mov dword [eax], 5
call fcn.00536f6e
mov dword [eax], 0xd
jmp 0x532867
xor eax, eax
pop esi
ret
Function at 0x5368aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x5368e7
cmp dword [ebp + 0x14], edi
je 0x5368e7
cmp ecx, edi
jne 0x5368ee
call fcn.00536f6e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0053121b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x536902
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x536923
cmp ebx, 0xffffffff
je 0x536912
push ebx
push edi
push ecx
call fcn.00530d30
add esp, 0xc
cmp esi, edi
je 0x5368cf
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5368cf
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x53693f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x536946
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x536a37
test word [esi + 0xc], 0x10c
je 0x53699a
mov eax, dword [esi + 4]
test eax, eax
je 0x53699a
jl 0x536a98
cmp ebx, eax
mov edi, ebx
jb 0x53696b
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x536a3f
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0053047f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x536a2f
cmp ebx, dword [ebp - 0xc]
jb 0x536a07
cmp dword [ebp - 0xc], 0
je 0x5369c4
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x5369b9
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5369c0
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5369cf
mov eax, SysReAllocString
cmp ebx, eax
ja 0x5369cf
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x536a6b
push eax
push dword [ebp - 8]
push esi
call fcn.00543dff
pop ecx
push eax
call fcn.005394ee
add esp, 0xc
test eax, eax
je 0x536aaa
cmp eax, 0xffffffff
je 0x536a98
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x536a2f
push esi
call fcn.00545587
cmp eax, 0xffffffff
pop ecx
je 0x536a9c
cmp dword [ebp - 4], 0
je 0x536a6b
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x53694e
mov eax, dword [ebp + 0x14]
jmp 0x5368e9
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x536a56
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00530d30
add esp, 0xc
call fcn.00536f6e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5368df
cmp dword [ebp + 0xc], 0xffffffff
je 0x536a81
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00530d30
add esp, 0xc
call fcn.00536f6e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5368df
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5368e9
or dword [esi + 0xc], 0x10
jmp 0x536a9c