joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5844d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x58c380
mov ebx, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp dword [ebx + 0xe8], 0
je 0x584640
push 0x48
call fcn.005d0220
add esp, 4
movzx edi, word [ebx + 0xe0]
mov dword [eax + 4], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov esi, eax
mov dword [eax + 0x1c], 0
lea eax, [eax + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [esi], vtable.CHtmlHost.0
mov dword [esi + 0x24], 0
call fcn.00575250
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov word [esi + 0x38], di
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [ebx + 8], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebx + 0xe8]
cmp dword [0x6cc1d4], 0
mov dword [ebp - 0x24], eax
jne 0x5845b1
mov dword [0x6cc1d4], 0
mov dword [ebp - 0x10], 0
sub esp, 0x14
mov al, byte [ebp - 0x20]
mov byte [esp + 0x10], al
mov dword [esp + 8], 0x6cc1a4
mov dword [esp + 4], 0x6c80b4
mov dword [esp], 0x6d3378
mov eax, dword [ebp - 0x30]
mov dword [esp + 0xc], eax
call fcn.0057da10
add esp, 0x14
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xffffffff
movzx eax, ax
lea edx, [esi + 0xc]
push 0
push eax
push 0
push 0
push 0x56000000
push str.HTML_Frame
push edx
push dword [ebp - 0x24]
call fcn.0057d780
xor eax, eax
cmp byte [esi + 0xdf], 0
mov ecx, dword [esi + 8]
sete al
lea eax, [eax + eax*4]
push eax
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push 0xffffffffffffffeb
push dword [esi + 0xe8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5860a0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x40
mov eax, dword [0x6ccc30]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [esi + 0x10], 0
je 0x586199
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x5860c9
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
xor ebx, ebx
test eax, eax
je 0x58619b
cmp dword [esi + 0x10], 0
je 0x58619b
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x5860ee
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x586199
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], 1
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x586171
mov esi, dword [esi]
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x586199
mov eax, dword [ebp - 0x3c]
lea ecx, [eax - 3]
cmp ecx, 2
setb cl
cmp eax, 9
sete bl
or bl, cl
jmp 0x58619b
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x40
pop esi
pop ebx
pop ebp
ret
Function at 0x58a7c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x6ccc30]
mov bl, byte [ebp + 8]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
push 5
push dword [ecx + 0xe8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0xe8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 5
push dword [esi + 0xe8]
call edi
push 0
push 0
push 7
push dword [esi + 0xe8]
call edi
test bl, bl
je 0x58a824
push dword [esi + 0xe8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x6ceda0]
test eax, eax
je 0x58a8da
mov dword [ebp - 0x14], eax
cmp byte [esi + 0xde], 0
je 0x58a8e8
lea ebx, [ebp - 0x30]
jmp 0x58a85d
cmp byte [esi + 0xde], 0
je 0x58a8e8
push 0x1cff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x14]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
ja 0x58a8e8
test eax, eax
jne 0x58a88e
jmp 0x58a8de
push ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 3
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x58a850
mov edi, dword [esi + 8]
test edi, edi
je 0x58a880
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0x24]
cmp ecx, eax
je 0x58a8c4
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x58a880
mov eax, dword [edi + 0x24]
push ebx
push 0
push 0x37f
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x58a88e
jmp 0x58a880
xor ebx, ebx
jmp 0x58a8f2
mov dword [esi + 0xc0], 2
cmp dword [esi + 0xc0], 1
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x58c720
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x58cd00
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp dword [esi + 0x10], 0
je 0x58c883
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x58c764
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x58c883
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x5c], 0x3c
mov ecx, esi
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 7
jbe 0x58c7e9
mov ecx, dword [esi]
lea edx, [ebp - 0x5c]
push edx
push 0
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x58c883
cmp dword [ebp - 0x50], 4
jne 0x58c883
movzx eax, word [ebp - 0x44]
xor ecx, ecx
cmp eax, 0x1bb
jne 0x58c885
xor eax, eax
lock cmpxchg dword [0x6d20a0], ecx
jne 0x58c864
push 0x68e5f0
push 0x40
call fcn.005db7f6
add esp, 8
test eax, eax
je 0x58c864
mov ecx, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
call fcn.004560e0
mov edi, dword [ebp - 0x20]
xor eax, eax
mov esi, dword [ebp + 8]
lock cmpxchg dword [0x6d20a0], edi
je 0x58c864
mov ecx, edi
call fcn.004c3b60
push edi
call fcn.005d31ac
add esp, 4
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [0x6d20a0], ecx
mov dword [ebp - 0x10], 0xffffffff
mov ecx, eax
push esi
call fcn.00519ff0
mov ecx, eax
jmp 0x58c885
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ecx
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x58cbb0
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x6ccc30]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x140], 0
je 0x58cbee
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
mov dword [ebp - 0x34], eax
je 0x58cc30
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x30], eax
jmp 0x58cc37
mov edi, dword [esi + 0xe8]
mov dword [ebp - 0x30], 0
test edi, edi
je 0x58cc27
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 5
push edi
call ebx
push 0
push 0
push 7
push edi
call ebx
mov dword [ebp - 0x34], 0
jmp 0x58cc45
mov dword [ebp - 0x30], 0
push 0
push dword [esi + 0xe8]
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [esi + 0xde], 0
mov dword [ebp - 0x38], eax
je 0x58ccba
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [ebp - 0x2c]
jmp 0x58cc87
push ebx
call dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0xde], 0
je 0x58ccba
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x58ccba
call edi
call edi
sub eax, dword [ebp - 0x38]
cmp eax, 0x493e0
ja 0x58ccba
cmp byte [esi + 0x140], 0
je 0x58cc70
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x58cc70
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x58ccd1
cmp byte [esi + 0x140], 0
je 0x58ccd1
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [esi + 0xc0], 1
mov ecx, dword [ebp - 0x10]
sete bl
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x58f9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x6ccc30]
lea edi, [ebp - 0x218]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x208
push 0
push edi
call fcn.0061e8c0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
test eax, eax
je 0x58fa88
cmp word [ebp - 0x218], 0
je 0x58fa88
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x58fa61
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 7
jbe 0x58fa18
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x58fa61
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x58fa61
mov esi, dword [ebp + 8]
push edi
call fcn.005d3244
mov ecx, esi
add esp, 4
mov esi, eax
mov eax, dword [ecx + 0x14]
cmp eax, esi
jae 0x58fa65
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
jmp 0x58fa86
xor ebx, ebx
jmp 0x58fa88
cmp eax, 7
mov ebx, ecx
jbe 0x58fa6e
mov ebx, dword [ecx]
mov eax, esi
mov dword [ecx + 0x10], esi
add eax, esi
push eax
push edi
push ebx
call fcn.0061e340
add esp, 0xc
mov word [ebx + esi*2], 0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x5915a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, 0x811c9dc5
sub edx, ecx
je 0x5915cf
nop word cs:[eax + eax]
nop dword [eax]
movzx esi, byte [ecx]
inc ecx
xor esi, eax
imul eax, esi, 0x1000193
dec edx
jne 0x5915c0
pop esi
pop ebp
ret 8
Function at 0x5915e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x598a20
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], edx
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebp - 0x10], 0
push 0x24
call fcn.005d0220
add esp, 4
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], 0x14
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.std::_Root_node.0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov esi, ebx
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], edx
and esi, 0x800
mov edi, esi
shr esi, 9
shr edi, 3
xor esi, 4
xor edi, 0x100
mov dword [ecx + 0x34], edi
mov dword [ecx + 0x38], esi
mov dword [ecx + 0x3c], edx
mov dword [ecx + 0x40], ebx
and ebx, 0x3f
cmp ebx, 1
ja 0x5916e1
mov dword [ecx + 0x50], 0x8775dfb
call fcn.005919b0
jmp 0x59172e
lea edx, [ebx - 2]
ror edx, 1
cmp edx, 7
ja case.0x5916eb.2
jmp dword [edx*4 + 0x5917bc]
mov dword [ecx + 0x50], 0x6e000300
jmp 0x591722
mov dword [ecx + 0x50], 0x7181a01b
jmp 0x591722
mov dword [ecx + 0x50], 0x7080001b
jmp 0x591722
mov dword [ecx + 0x50], 0x6e080304
jmp 0x591722
cmp ebx, 0x20
jne 0x591744
mov dword [ecx + 0x50], 0x7088001f
mov dword [eax + 8], 8
call fcn.005919b0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [ecx + 0x50], 0
call fcn.005919b0
jmp 0x59172e
Function at 0x595ff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x598ab0
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x18]
mov dword fs:[0], esi
mov esi, dword [ebp + 0xc]
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x50], esi
mov esi, dword [ebp + 8]
mov dword [ecx + 0x54], esi
mov esi, dword [ebp + 0x14]
mov dword [ecx + 0x58], esi
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x60], eax
mov byte [ecx + 0x64], 0
mov dword [ecx + 0x68], edi
mov edx, dword [esi + 8]
and edx, 8
test al, 0x10
mov eax, dword [ebp + 0x10]
sete bl
test edx, edx
cmove ebx, edx
mov byte [ecx + 0x6c], bl
mov dword [ecx + 0x70], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x596102
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
lea edx, [ecx + 0x20]
add ecx, 0x40
mov dword [ebp - 0x2c], edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x28], ecx
push edx
push eax
call fcn.004c70a0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x597000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
test byte [esi + 0x5d], 1
mov dword [ebp - 0x1c], esi
mov bl, byte [edx]
mov byte [ebp - 0xd], bl
je 0x597042
mov eax, dword [esi + 0x70]
mov edi, dword [eax + 4]
mov eax, dword [edi]
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [0x64689c]
movsx eax, byte [ebp - 0xd]
mov ecx, edi
push eax
call ebx
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov byte [ebp - 0xd], al
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x5970eb
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x18], eax
jmp 0x59706b
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x5970eb
mov eax, dword [ecx + 8]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x597060
mov ebx, dword [ecx]
xor edi, edi
mov dword [ebp - 0x20], ecx
nop dword [eax]
test ebx, ebx
mov esi, edx
je 0x5970bc
mov ecx, dword [ecx + 0xc]
mov eax, edx
mov dword [ebp - 0x14], edi
add ecx, edi
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax]
lea esi, [edi + 1]
cmp esi, ebx
jae 0x5970b2
movzx edx, byte [ecx + edi]
cmp byte [eax + edi], dl
mov edi, esi
je 0x5970a0
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
mov edx, eax
add esi, eax
cmp esi, dword [ebp - 0x18]
je 0x5970ca
add edi, ebx
cmp edi, dword [ebp - 0x24]
jb 0x597080
jmp 0x597060
cmp dword [ebp - 0x18], edx
je 0x5970eb
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
test byte [eax + 8], 1
mov eax, dword [ebp - 0x18]
jne 0x59716c
mov dword [esi], eax
mov al, 1
jmp 0x59716e
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x14], edx
mov edi, dword [ebx + 0x20]
test edi, edi
je 0x59713a
test byte [esi + 0x5d], 8
mov al, byte [ebp - 0xd]
je 0x597112
movsx eax, byte [ebp - 0xd]
mov ecx, dword [esi + 0x70]
push eax
call fcn.00593fe0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x59713a
mov edx, dword [edi + 8]
xor edi, edi
jmp 0x597127
add edi, 2
cmp edi, ecx
jae 0x59713a
cmp byte [edx + edi], al
ja 0x597120
cmp byte [edx + edi + 1], al
jb 0x597120
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x5970cf
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x597178
mov dl, byte [ebp - 0xd]
movzx ecx, dl
and dl, 7
shr ecx, 3
movzx eax, byte [eax + ecx]
movzx ecx, dl
bt eax, ecx
setb al
test byte [ebx + 8], 1
sete cl
xor cl, al
mov eax, dword [ebp - 0x14]
je 0x5970e2
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
test byte [ebx + 8], 1
mov eax, dword [ebp - 0x14]
je 0x59716c
jmp 0x5970e2
Function at 0x59cca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x59e640
mov ebx, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call fcn.005e3750
test eax, eax
je 0x59ce35
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
mov esi, dword [ebp + 8]
call edi
add eax, 0x10
test esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebx], eax
je 0x59cdfe
cmp esi, 0xffff
ja 0x59cdfe
mov ecx, 0x6d3378
push 0
call fcn.0061d81b
test eax, eax
je 0x59ce1f
movzx ecx, si
and esi, 0xf
mov dword [ebp - 0x28], ecx
shr ecx, 4
lea edx, [esi - 1]
mov dword [ebp - 0x30], esi
mov esi, 1
inc ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], ecx
jmp 0x59cd64
mov ecx, 0x6d3378
push esi
inc esi
call fcn.0061d81b
test eax, eax
je 0x59ce1f
push 0
push dword [ebp - 0x34]
push 6
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x59cd50
mov ebx, eax
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x59cd50
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x59cd50
mov edi, eax
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setg cl
cmp dword [ebp - 0x30], 0
je 0x59cdd5
test eax, eax
jle 0x59cdd5
mov edx, edi
add edx, eax
mov eax, dword [ebp - 0x2c]
nop word cs:[eax + eax]
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
cmp edi, edx
setb cl
add eax, 0xffffffff
jae 0x59cdd5
cmp edi, edx
jb 0x59cdc0
test cl, cl
je 0x59cd50
cmp word [edi], 0
je 0x59cd50
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call fcn.004ae128
jmp 0x59ce1f
test esi, esi
je 0x59ce0d
push esi
call fcn.005d3244
add esp, 4
jmp 0x59ce0f
xor eax, eax
mov dword [ebp - 0x10], 0
mov ecx, ebx
push eax
push esi
call fcn.0059e450
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x80004005
call fcn.005ef7e0
nop
push ebp
sub esp, 0x10
add ebp, 0xc
mov ecx, 0xffffffff
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
lock xadd dword [eax - 4], ecx
dec ecx
test ecx, ecx
jle fcn.0059ce60
add esp, 0x10
pop ebp
ret
Function at 0x5a20e0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5ae3e0
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
lea edi, [ebp - 0x34]
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x18]
mov dword fs:[0], edx
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edx
push ecx
push eax
push edi
call fcn.005a2240
add esp, 0x18
cmp dword [ebx], 6
je 0x5a218a
cmp dword [ebp - 0x24], 0
je 0x5a218a
cmp dword [esi + 0x14], 7
jbe 0x5a2141
mov esi, dword [esi]
cmp dword [ebp - 0x20], 7
jbe 0x5a214a
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x10], 0
push dword [ebp + 0xc]
push 0
push esi
push edi
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov esi, dword [ebp + 0x1c]
test eax, eax
je 0x5a216e
mov dword [esi], 6
jmp 0x5a218a
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x10], 0xffffffff
call dword [0x64689c]
push edi
call ecx
test eax, eax
je 0x5a2166
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x5a21c1
mov eax, dword [ebp - 0x34]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x5a21b7
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x5a21d2
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 1
call fcn.006207e0
nop
push ebp
sub esp, 0x18
add ebp, 0xc
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x5a221e
mov eax, dword [ebp - 0x34]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x5a2214
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x5a2223
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0x18
add ebp, 0xc
call fcn.0061de80
int3
Function at 0x5a7740
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5ae4e0
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], edx
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebp - 0x10], 0
push 0x24
call fcn.005d0220
add esp, 4
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], 0x14
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.std::_Root_node.0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov esi, ebx
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], edx
and esi, 0x800
mov edi, esi
shr esi, 9
shr edi, 3
xor esi, 4
xor edi, 0x100
mov dword [ecx + 0x34], edi
mov dword [ecx + 0x38], esi
mov dword [ecx + 0x3c], edx
mov dword [ecx + 0x40], ebx
and ebx, 0x3f
cmp ebx, 1
ja 0x5a7841
mov dword [ecx + 0x50], 0x8775dfb
call fcn.005a7b10
jmp 0x5a788e
lea edx, [ebx - 2]
ror edx, 1
cmp edx, 7
ja case.0x5a784b.2
jmp dword [edx*4 + 0x5a791c]
mov dword [ecx + 0x50], 0x6e000300
jmp 0x5a7882
mov dword [ecx + 0x50], 0x7181a01b
jmp 0x5a7882
mov dword [ecx + 0x50], 0x7080001b
jmp 0x5a7882
mov dword [ecx + 0x50], 0x6e080304
jmp 0x5a7882
cmp ebx, 0x20
jne 0x5a78a4
mov dword [ecx + 0x50], 0x7088001f
mov dword [eax + 8], 8
call fcn.005a7b10
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [ecx + 0x50], 0
call fcn.005a7b10
jmp 0x5a788e