joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57e7e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e9608
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
cmp ebp, 0xa
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov ebx, edx
jle 0x57e933
mov al, byte [ebx + 2]
lea ecx, [ebx + 2]
movzx edx, al
xor eax, eax
add ecx, 1
cmp edx, eax
jne 0x57e933
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x3e], ax
mov dword [esp + 0x40], eax
mov word [esp + 0x3c], 2
mov al, byte [ecx]
movzx eax, al
add ecx, 1
cmp eax, 1
mov dword [esp + 0x14], ecx
jne 0x57e896
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.0057f170
jmp 0x57e8a9
cmp eax, 4
jne 0x57e8d8
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0057f1d0
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
sub ebx, eax
add ebx, ebp
push ebx
mov ecx, 7
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.0057edc0
jmp 0x57e933
mov al, byte [ecx]
add ecx, 1
mov edx, ebx
sub edx, ecx
movzx eax, al
add edx, ebp
cmp eax, edx
jg 0x57e933
lea edi, [eax + ecx]
mov eax, edi
lea esi, [esp + 0x58]
call fcn.00441740
mov dword [esp + 0x80], 0
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x57e912
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x18]
sub ebx, edi
add ebx, ebp
push ebx
push edi
push eax
mov eax, dword [esp + 0x28]
push eax
add ecx, 0x20
call fcn.0057ee40
lea ecx, [esp + 0x58]
call fcn.0040b130
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005b88a9
add esp, 0x70
ret 8
Function at 0x582450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ea1f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x10], esp
je 0x5824a4
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00581ea0
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x28]
test esi, esi
je 0x5824f2
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x5824f2
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5824f2
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x5872b0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x5872c5
mov edi, 0x2719
jmp 0x5872f5
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push 0xe
push 0
push edi
call sub.WS2_32.dll_setsockopt
mov edi, eax
call fcn.005d95d0
mov ebx, eax
call sub.WS2_32.dll_WSAGetLastError
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x5872ff
call fcn.005d95d0
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp + 4], eax
pop edi
mov dword [ebp], edx
mov eax, ebp
pop ebp
pop ebx
ret 8

Function at 0x5873c0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x5873d5
mov edi, 0x2719
jmp 0x58740b
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push 0x1002
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
mov edi, eax
call fcn.005d95d0
mov ebx, eax
call sub.WS2_32.dll_WSAGetLastError
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x587415
call fcn.005d95d0
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp + 4], eax
pop edi
mov dword [ebp], edx
mov eax, ebp
pop ebp
pop ebx
ret 8

Function at 0x587430
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x587445
mov edi, 0x2719
jmp 0x58747b
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push 0x1001
push 0xffff
push edi
call sub.WS2_32.dll_setsockopt
mov edi, eax
call fcn.005d95d0
mov ebx, eax
call sub.WS2_32.dll_WSAGetLastError
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x587485
call fcn.005d95d0
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp + 4], eax
pop edi
mov dword [ebp], edx
mov eax, ebp
pop ebp
pop ebx
ret 8
Function at 0x5875d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5dff68
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00405390
mov dword [esi], vtable.std::length_error.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x58761a
add edi, 0x28
jmp 0x58761c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x587634
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::length_error_.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::length_error_.1.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x588bb0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e55a9
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov edi, dword [esp + 0x34]
cmp edi, ecx
mov dword [esi], edx
mov edx, dword [eax]
mov dword [esi + 4], edx
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x28]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edi
je 0x588c1c
lea eax, [edi + 4]
mov edx, 1
lock xadd dword [eax], edx
cmp edi, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], 1
je 0x588c56
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x588c56
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x588c56
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret

Function at 0x5898b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df388
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.00559c90
mov esi, ebx
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.0054aae0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x58991d
test al, 1
jne 0x58991d
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x58991d
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x5958c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e1638
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 8], esi
je 0x59591a
lea eax, [esi + 8]
mov edx, 1
lock xadd dword [eax], edx
call fcn.00595d70
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x61cbc8
test esi, esi
mov dword [edi], eax
je 0x595958
lea eax, [esi + 8]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x595958
test eax, eax
je 0x595958
lea ecx, [eax - 8]
test ecx, ecx
je 0x595958
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10

Function at 0x595970
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e1638
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 8], esi
je 0x5959ca
lea eax, [esi + 8]
mov edx, 1
lock xadd dword [eax], edx
call fcn.00595d70
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x61cbd0
test esi, esi
mov dword [edi], eax
je 0x595a08
lea eax, [esi + 8]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x595a08
test eax, eax
je 0x595a08
lea ecx, [eax - 8]
test ecx, ecx
je 0x595a08
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10

Function at 0x595a20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e1638
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
sub esp, 0x10
test esi, esi
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
lea ecx, [edi + 8]
mov dword [esp + 0x18], esp
mov dword [eax + 8], esi
je 0x595a7a
lea eax, [esi + 8]
mov edx, 1
lock xadd dword [eax], edx
call fcn.00595d70
neg al
mov dword [esp + 0x14], 0xffffffff
sbb eax, eax
and eax, 0x61cbd8
test esi, esi
mov dword [edi], eax
je 0x595ab8
lea eax, [esi + 8]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x595ab8
test eax, eax
je 0x595ab8
lea ecx, [eax - 8]
test ecx, ecx
je 0x595ab8
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x599330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5de6a1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x34]
sub esp, 8
test edi, edi
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, esp
mov dword [esp + 0x4c], esp
mov dword [eax], edi
je 0x59939c
lea eax, [edi + 8]
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [esp + 0x20]
call fcn.00595080
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esi], edx
mov dword [esi + 4], ecx
mov ecx, dword [eax]
test ecx, ecx
mov dword [esi + 8], ecx
je 0x5993c7
add ecx, 8
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0xc], 1
je 0x599405
add eax, 8
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x599405
test eax, eax
je 0x599405
lea ecx, [eax - 8]
test ecx, ecx
je 0x599405
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
test edi, edi
mov byte [esp + 0x28], 0
je 0x599430
lea eax, [edi + 8]
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x599430
test eax, eax
je 0x599430
lea ecx, [eax - 8]
test ecx, ecx
je 0x599430
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret

Function at 0x5a0b3c
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 0x5a0b7f
call fcn.005a585b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5a0b7f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5a0b9a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.005a06f6
test ebx, ebx
mov esi, eax
je 0x5a0b98
test edi, edi
je 0x5a0b98
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x5a131b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x5da7ee
call fcn.005bea8a
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.005a585b
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x5a1366
call fcn.005a585b
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x5a1377
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x5a1384
or eax, 0xffffffff
jmp 0x5a14e0
mov ecx, esi
call fcn.005a0e6d
mov dword [ebp - 0x14], eax
call fcn.0059e053
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x5a1402
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x5a1402
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x5a1402
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0059cb9c
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x5a1402
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x5a1402
mov ecx, ebx
call fcn.005a28a8
test eax, eax
je 0x5a1402
push 0
mov ecx, ebx
call fcn.005a28c3
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0059fa22
push dword [ebp - 0x14]
call fcn.0059dfab
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.005a1123
xor edi, edi
cmp eax, edi
je 0x5a145f
test byte [esi + 0x3c], 0x10
je 0x5a1449
push 4
pop edi
mov ecx, esi
call fcn.005a27b9
test ax, 0x100
je 0x5a143f
push 5
pop edi
push edi
mov ecx, esi
call fcn.0059db41
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x5a145f
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.005a2a92
or dword [ebp - 4], 0xffffffff
jmp 0x5a148a
cmp dword [ebp - 0x28], edi
je 0x5a1498
push 1
mov ecx, ebx
call fcn.005a28c3
cmp dword [ebp - 0x2c], edi
je 0x5a14a8
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x5a14c1
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x5a14c1
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.005a0ea7
cmp dword [esi + 0x58], edi
je 0x5a14dd
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.005beb2f
ret
Function at 0x5a5f86
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 0x5a5fcc
call fcn.005a585b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5a5fcc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x5a600f
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 0x5a5ff8
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 0x5a5ff8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x5a600c
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 0x5ad0f2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x64c874]
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 - 0xc]
jne 0x5ad12f
push 0x600dc0
push 4
push eax
call fcn.005bc6d0
push eax
call fcn.0040ce30
add esp, 0x10
jmp 0x5ad141
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ad1ac
push edi
call fcn.005baa20
mov edi, dword [eax]
call fcn.005baa20
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.005bb0c6
add esp, 0x18
mov ebx, eax
call fcn.005baa20
cmp dword [eax], 0
je 0x5ad18c
call fcn.005baa20
push dword [eax]
call fcn.0059b87c
pop ecx
jmp 0x5ad193
call fcn.005baa20
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x5ad1ac
cmp ebx, esi
jae 0x5ad1ac
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x5ad1ae
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005b88a9
leave
ret
Function at 0x5ae967
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 0x5ae995
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5ae9b3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005ae8d1
jmp 0x5ae9b3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5ae9b3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.005ae8d1
test edi, edi
mov eax, edi
jne 0x5ae99d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x659050]
test ecx, ecx
je 0x5aea76
jmp 0x5ae966
ret 8

Function at 0x5b05e2
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x5b060b
call fcn.005a585b
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x5b062e
push eax
push dword [esi + 4]
call fcn.005b056d
push esi
push eax
mov ecx, 0x65908c
call fcn.005b0240
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x5b567f
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x5b5688
xor eax, eax
jmp 0x5b56f1
cmp dword [esp + 8], 0
jne 0x5b5694
call fcn.005a4ece
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.005ba628
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5b56cf
push dword [esi + 0x10]
call fcn.005bb72f
test eax, eax
pop ecx
jne 0x5b56cf
mov esi, dword [esi + 0xc]
call fcn.005baa33
push esi
push dword [eax]
push 1
call fcn.005b7601
push dword [esi + 0x10]
call fcn.005bb75e
test eax, eax
pop ecx
je 0x5b56ee
push dword [esi + 0x10]
call fcn.005c1a97
push eax
call fcn.0040ce30
pop ecx
pop ecx
jmp 0x5b56bd
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x5b56fa
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x5b5704
call fcn.005a4ece
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.005b9984
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x5b5731
mov esi, dword [esi + 0xc]
call fcn.005baa33
push esi
push dword [eax]
push 1
call fcn.005b7601
pop esi
ret 8

Function at 0x5b88a9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x64c874]
jne 0x5b88b3
repz ret
jmp fcn.005c361b