joyce8/EMBER2024-capa huggingface dataset:
Function at 0x524500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x88548a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x14], 0x12c
push 0x12c
lea eax, [ebp - 0x144]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x144]
push ecx
call fcn.0083f840
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5245d8
mov edx, dword [ebp - 0x10]
mov byte [edx + 1], 0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x144]
sub eax, ecx
mov edx, 0x12c
sub edx, eax
push edx
push str.default.jpg
lea eax, [ebp - 0x144]
push eax
call fcn.0083e120
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x5245d8
lea ecx, [ebp - 0x170]
call fcn.005287e0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x170]
push edx
push 0
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x1b8]
call fcn.00524830
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.00528850
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x52b370
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x98], 0
push 0x90
push 0
lea eax, [ebp - 0x94]
push eax
call fcn.0083d630
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
ja 0x52b3d7
cmp dword [ebp - 0x94], 6
jne 0x52b3cb
cmp dword [ebp - 0x90], 0
jae 0x52b3d7
mov dword [ebp - 0xa0], 0
jmp 0x52b3e1
mov dword [ebp - 0xa0], 1
mov dl, byte [ebp - 0xa0]
mov byte [ebp - 0x99], dl
mov al, byte [ebp - 0x99]
mov esp, ebp
pop ebp
ret
Function at 0x52df80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov dword [ebp - 0x1d0], ecx
mov eax, dword [ebp - 0x1d0]
mov ecx, dword [eax + 0x238]
mov dword [ebp - 0x1b8], ecx
cmp dword [ebp - 0x1b8], 0
je 0x52e109
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 0x234]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
je 0x52e109
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 0x234]
mov dword [ebp - 0x1c0], edx
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x1ac]
sub edx, dword [ebp - 0x1b4]
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0x190
push 0x190
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 0x234]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1d0]
call fcn.0052e110
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
cmp ecx, dword [ebp - 8]
jle 0x52e109
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1d0]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 0x234]
mov dword [ebp - 0x1c4], eax
push 0x216
mov ecx, dword [ebp - 0x1a8]
sub ecx, dword [ebp - 0x1b0]
push ecx
mov edx, dword [ebp - 0x1a4]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c4]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ecx + 0x238]
mov dword [ebp - 0x1c8], edx
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 0x1c8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x1d0]
mov eax, dword [edx + 0x238]
mov dword [ebp - 0x1cc], eax
push 0x256
mov ecx, dword [ebp - 0x1a8]
sub ecx, dword [ebp - 0x1b0]
push ecx
mov edx, dword [ebp - 0x1a4]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1cc]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esp, ebp
pop ebp
ret
Function at 0x52e620
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov dword [ebp - 0x1b0], ecx
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [eax + 0x234]
mov dword [ebp - 0x1a4], ecx
cmp dword [ebp - 0x1a4], 0
je 0x52e72a
movzx edx, byte [ebp + 8]
test edx, edx
je 0x52e719
mov dword [ebp - 8], 0x190
push 0x190
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx + 0x234]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x1a0]
push eax
mov ecx, dword [ebp - 0x1b0]
add ecx, 0x1c0
mov edx, dword [ebp - 0x1b0]
mov eax, dword [edx + 0x1c0]
mov edx, dword [eax]
call edx
push 0
mov eax, dword [ebp - 0x1b0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1b0]
mov eax, dword [edx + 0x15c]
call eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x52e719
mov ecx, dword [ebp - 0x1b0]
add ecx, 0x1c4
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp - 0x1a8]
cmp dword [edx + 0x18], 0x10
jb 0x52e6f3
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1b4], ecx
jmp 0x52e702
mov edx, dword [ebp - 0x1a8]
add edx, 4
mov dword [ebp - 0x1b4], edx
mov eax, dword [ebp - 0x1b4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x8c]
call eax
mov ecx, dword [ebp - 0x1b0]
add ecx, 0x234
call fcn.0052da30
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx + 0x238]
mov dword [ebp - 0x1ac], edx
cmp dword [ebp - 0x1ac], 0
je 0x52e756
mov ecx, dword [ebp - 0x1b0]
add ecx, 0x238
call fcn.0052d910
mov eax, dword [ebp - 0x1b0]
cmp dword [eax + 0x1e4], 0
je 0x52e788
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx + 0x1e4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x1b0]
mov dword [eax + 0x1e4], 0
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1b0]
mov eax, dword [edx + 0x160]
call eax
push 1
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1b0]
mov eax, dword [edx + 0xe4]
call eax
mov esp, ebp
pop ebp
ret 4
Function at 0x533ea0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x7f
lea eax, [ebp - 0x88]
push eax
call fcn.008413b4
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x533ede
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x534100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x885f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push 0x936a78
mov eax, dword [ebp + 8]
push eax
call fcn.0083e107
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x534166
mov dword [ebp - 0x24], 0xffffffff
push 0xb69a64
lea ecx, [ebp - 0x24]
push ecx
call fcn.0083d8fb
push 2
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.008402bb
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.008401c3
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0083ff60
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call fcn.00822266
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x5341c7
mov dword [ebp - 0x2c], 0xffffffff
push 0xb69a64
lea edx, [ebp - 0x2c]
push edx
call fcn.0083d8fb
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
call fcn.0083ff43
add esp, 0x10
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0083deab
add esp, 4
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.005b7a80
mov byte [ebp - 0x11], 1
jmp 0x534233
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x534252
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.0082225b
add esp, 4
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x534270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
call fcn.008237ce
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
push str.IMAJ
movzx edx, word [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5342db
mov dword [ebp - 0x18], 0xfffffffe
push 0xb69a64
lea eax, [ebp - 0x18]
push eax
call fcn.0083d8fb
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x57f480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push ebp
push ebx
sub esp, 0x40
mov dword [esp + 0x20], esi
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
mov edi, dword [edi]
mov edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x7c]
mov esi, dword [esi]
mov eax, dword [eax]
mov ebx, dword [esp + 0x80]
mov ebx, dword [ebx]
mov ebp, dword [ebp]
mov dword [esp + 0xc], ebx
mov ebx, dword [ecx]
mov dword [esp + 0x38], eax
mov eax, dword [edx]
cmp eax, ebx
jge 0x57f51e
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], eax
dec ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x2c], eax
push eax
push eax
push edx
push ecx
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x3c]
push edx
push 0x22
push edi
push 0xb82c90
call fcn.00610460
add esp, 0x24
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp edx, ebx
jle 0x57f529
push edi
push 0xb82c90
call fcn.00610958
add esp, 8
mov esi, dword [esp + 0x20]
add esp, 0x40
pop ebx
pop ebp
pop edi
ret
mov dword [esp + 0x30], esi
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ebp
mov dword [esp], edi
mov dword [esp + 0x14], ecx
shl ebx, 4
mov dword [esp + 0x34], ebx
lea eax, [esi - 1]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
lea eax, [eax - 1]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
mov esi, dword [eax + 4]
add esi, dword [esp + 0x34]
mov ebx, edx
imul ebx, dword [eax + 0x10]
mov edi, ebp
neg edi
add esi, ebx
cmp ebp, dword [esp + 0x38]
mov ebx, ebp
lea ecx, [ecx + edi - 1]
jge 0x57f724
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 8]
mov edi, edx
neg edi
mov dword [esp + 0x10], edx
lea eax, [eax + edi - 1]
mov edi, dword [esp + 4]
cmp eax, edi
jl 0x57f5a3
mov eax, edi
xor edi, edi
test eax, eax
cmovl eax, edi
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x84]
mov edi, dword [edi]
cmp ecx, ebp
mov edx, ecx
jl 0x57f5bf
mov edx, ebp
xor eax, eax
test edx, edx
cmovl edx, eax
mov eax, dword [edi + 0x10]
imul eax, dword [esp + 0x3c]
shl edx, 4
add edx, dword [edi + 4]
mov edi, dword [eax + edx]
mov dword [esi], edi
mov edi, dword [eax + edx + 4]
mov dword [esi + 4], edi
mov edi, dword [eax + edx + 8]
mov dword [esi + 8], edi
mov edx, dword [eax + edx + 0xc]
mov dword [esi + 0xc], edx
add esi, 0x10
dec ecx
inc ebx
cmp ebx, dword [esp + 0x38]
jl 0x57f5ae
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc edx
cmp edx, dword [esp + 0x14]
jg 0x57f72f
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
jmp 0x57f55a
inc edx
cmp edx, dword [esp + 0x14]
jle 0x57f55a
mov edi, dword [esp]
jmp 0x57f510
Function at 0x5ba3b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5ba3e2
push esi
call fcn.005bce00
add esp, 4
cmp dword [esi + 0x40], 0
je 0x5ba3db
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5ba45f
mov eax, dword [esi + 0x1b4]
cmp dword [eax + 0x10], 0
je 0x5ba44c
mov eax, dword [esi + 8]
test eax, eax
je 0x5ba407
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1b4]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x5ba448
cmp eax, 2
je 0x5ba44c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5ba3f8
cmp eax, 3
je 0x5ba42f
cmp eax, 1
jne 0x5ba3f8
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x5ba3f8
mov edx, dword [esi + 0x140]
add dword [eax + 8], edx
jmp 0x5ba3f8
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
call fcn.005ba230
pop esi
ret
cmp eax, 0xcc
je 0x5ba481
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.005ba230
pop esi
ret
Function at 0x5c39e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
mov edi, dword [ebx + 0x1cc]
lea esi, [edi + 0x20]
push esi
push ebx
mov dword [esp + 0x3c], edi
call fcn.005c38f0
add esp, 8
cmp dword [ebx + 0x78], 3
mov ebp, eax
push 1
mov dword [esp + 0x30], ebp
push ebx
jne 0x5c3a3b
mov eax, dword [ebx]
add eax, 0x18
mov dword [eax], ebp
mov ecx, dword [esi]
mov dword [eax + 4], ecx
mov edx, dword [edi + 0x24]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0x28]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x5e
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
call ecx
jmp 0x5c3a50
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x5f
mov eax, dword [ebx]
mov dword [eax + 0x18], ebp
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
call edx
mov ecx, dword [ebx + 0x78]
mov eax, dword [ebx + 4]
mov edx, dword [eax + 8]
add esp, 8
push ecx
push ebp
push 1
push ebx
call edx
add esp, 0x10
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], 0
jle 0x5c3b37
mov edi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov esi, eax
test ecx, ecx
jle 0x5c3b03
lea eax, [ecx - 1]
mov dword [esp + 0x28], eax
cdq
sub eax, edx
sar eax, 1
xor ebx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
jmp 0x5c3ab9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add eax, ecx
cdq
idiv dword [esp + 0x28]
cmp ebx, ebp
mov edx, ebx
jge 0x5c3aee
lea ebx, [ebx]
xor ecx, ecx
test esi, esi
jle 0x5c3ae6
mov ebp, dword [edi]
add ebp, ecx
inc ecx
cmp ecx, esi
mov byte [edx + ebp], al
jl 0x5c3ad6
mov ebp, dword [esp + 0x2c]
add edx, dword [esp + 0x14]
cmp edx, ebp
jl 0x5c3ad0
add dword [esp + 0x10], 0xff
add ebx, esi
sub dword [esp + 0x1c], 1
jne 0x5c3ab5
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 4
inc eax
add edi, 4
cmp eax, dword [ebx + 0x78]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
jl 0x5c3a86
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
pop edi
pop esi
mov dword [eax + 0x14], ebp
pop ebp
mov dword [eax + 0x10], edx
pop ebx
add esp, 0x28
ret
mov dword [edi + 0x14], ebp
mov dword [edi + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x5c3b50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, dword [edi + 0x1cc]
mov eax, 1
mov dword [esp + 0x18], esi
cmp dword [edi + 0x58], eax
jne 0x5c3b7a
mov dword [esp + 8], 0x1fe
mov dword [esi + 0x1c], eax
jmp 0x5c3b83
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esi + 0x1c], ecx
mov edx, dword [edi + 0x78]
mov ecx, dword [edi + 4]
push edx
mov edx, dword [esp + 0xc]
add edx, 0x100
push edx
push eax
mov eax, dword [ecx + 8]
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x78], ecx
mov dword [esp + 0x14], ecx
jle 0x5c3c96
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x5c3bc8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x5c3be9
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x5c3c3f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x5c3c20
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x5c3c20
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x5c3c06
cmp dword [esp + 0x10], 0
je 0x5c3c7d
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x5c3c60
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x78]
mov dword [esp + 0x1c], ecx
jl 0x5c3bc0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x5fa210
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x5fa235
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
je 0x5fa235
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x610b6c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x610b8a
mov eax, dword [eax + 4]
test al, 8
jne 0x610d27
mov eax, dword [0xba7a44]
test eax, eax
je 0x610d31
mov eax, dword [0xba6e80]
mov edx, dword [ebp + 0xc]
mov edi, dword [eax + edx*4]
mov ebx, dword [edi + 0x180]
mov eax, dword [ebx + 0x40c]
test eax, eax
jne 0x610bcf
push 0x1ea
push str..._.._src_kmp_csupport.c
push str.assertion_failure
call fcn.0061921c
add esp, 0xc
mov eax, dword [ebx + 0x40c]
mov edx, dword [ebx + 0x484]
test edx, edx
je 0x610c37
cmp eax, dword [edx]
jne 0x610c37
push edx
mov ecx, dword [ebx + 0x400]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1a0]
mov ecx, dword [edx + 4]
mov dword [eax + 0x28], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x2c], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x34], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x38], ecx
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x3c], ecx
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x40], ecx
mov ecx, dword [edx + 0x20]
mov dword [eax + 0x44], ecx
mov ecx, dword [edx + 0x24]
mov dword [eax + 0x48], ecx
mov eax, dword [edx + 0x28]
mov dword [ebx + 0x484], eax
call fcn.00622f14
pop ecx
mov eax, dword [ebx + 0x40c]
add dword [ebx + 0x418], 0xffffffff
add eax, 0xffffffff
mov dword [ebx + 0x40c], eax
jne 0x610d10
push edi
mov eax, dword [ebx + 0x310]
mov dword [edi + 0x80], eax
mov edx, dword [ebx + 0x300]
mov dword [edi + 0x10], edx
mov ecx, dword [ebx + 0x310]
mov edx, dword [ecx + 0x388]
mov dword [edi + 0x90], edx
mov edx, dword [ebx + 0x310]
mov edx, dword [edx + 0x400]
mov edx, dword [edx]
mov dword [edi + 0x94], edx
mov edx, dword [eax + 0x40c]
mov dword [edi + 0x98], edx
mov ebx, dword [ebx + 0x300]
shl ebx, 9
add ebx, dword [eax + 0x318]
mov dword [edi + 0x8c], ebx
call fcn.00624938
pop ecx
mov edx, dword [edi + 0x1a0]
movzx eax, byte [edx + 6]
test al, 0x20
je 0x610cdf
push 0x233
push str..._.._src_kmp_csupport.c
push str.assertion_failure
call fcn.0061921c
add esp, 0xc
mov edx, dword [edi + 0x1a0]
movzx eax, byte [edx + 6]
or eax, 0x20
mov byte [edx + 6], al
mov eax, dword [0xb96bb0]
test eax, eax
je 0x610d10
mov eax, dword [edi + 0x80]
mov eax, dword [eax + 0x31c]
mov dword [edi + 0x19c], eax
test eax, eax
je 0x610d10
mov eax, dword [eax + 0x204]
mov dword [edi + 0x1a4], eax
mov eax, dword [0xba7b68]
test eax, eax
je 0x610d27
mov eax, dword [ebp + 0xc]
push 0
push eax
call fcn.00616af8
add esp, 8
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call fcn.00620588
jmp 0x610b97

Function at 0x611af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0xba6e74]
jmp dword [eax*4 + 0xb961ac]
Function at 0x63ad74
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0xba9634]
test eax, eax
jne 0x63ad9a
push 0x1ab
push str..._.._src_z_Windows_NT_util.c
push str.assertion_failure
call fcn.0061921c
add esp, 0xc
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
push edx
push dword [0xba7a38]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x63ae09
push 0x40074
lea eax, [ebp - 0x10]
push eax
call fcn.006228f4
add esp, 8
mov dword [esp], 2
mov eax, dword [ebp - 0x10]
lea ecx, [esp + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 8], eax
lea edx, [esp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ecx + 0xc], eax
lea eax, [0xba9518]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
call fcn.00621a50
mov esp, ebp
pop ebp
ret