joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0f7b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ecx + 4]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
cmp ecx, ebx
je 0x417849
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], esi
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4177a3
call fcn.00401250
cmp eax, ebx
jne 0x417849
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push 2
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41771e
call fcn.00401250
xor eax, eax
lea edx, [ebp - 0x24]
xor ecx, ecx
push edx
mov word [ebp - 0x24], cx
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x16]
movzx ecx, word [ebp - 0x18]
movzx edx, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push ecx
movzx ecx, word [ebp - 0x1e]
push edx
movzx edx, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push ecx
push edx
push eax
lea ecx, [ebp - 0x14]
push str._d__02d__02d__02d:_02d:_02d._03d
push ecx
call fcn.00410ba0
mov eax, dword [ebp + 8]
add esp, 0x24
push 0xfde9
lea edx, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xb4], edx
call fcn.00410410
mov edi, dword [ebp - 0xb4]
mov byte [ebp - 4], 3
cmp edi, ebx
jne 0x4177ad
xor eax, eax
jmp 0x4177bb
mov esi, eax
mov dword [ebp - 0x28], esi
jmp 0x4176e7
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4177b2
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00414980
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x4177e2
push eax
call fcn.00493cbb
add esp, 4
push 2
push 0x4b45ec
lea ecx, [ebp - 0x14]
call fcn.00414980
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
push ebx
lea edx, [ebp + 8]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x41780e
call fcn.00401250
cmp esi, ebx
je 0x41781e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x28], esi
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41783e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x417849
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 0x4180e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b1038
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
lea ebx, [edi + 0xd4]
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x18], 1
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
xor esi, esi
add edi, 0xec
push ecx
mov ecx, edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], esi
call fcn.00414180
lea edx, [esp + 0x4c]
push edx
mov ecx, edi
call fcn.00417a00
mov ecx, dword [esp + 0x50]
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
push ebx
mov dword [eax + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x4190f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4b1319
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
lea eax, [esp + 0xe]
xor edi, edi
push eax
lea edx, [esp + 0x13]
lea ecx, [esi + 0x18]
push edx
mov dword [esi], vtable.CSessionLog.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.00411610
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x15]
lea ecx, [esi + 0x38]
push edx
mov dword [esp + 0x30], edi
call fcn.004045e0
lea eax, [esp + 0x12]
push eax
lea edx, [esp + 0x17]
lea ecx, [esi + 0x58]
push edx
mov byte [esp + 0x30], 1
call fcn.004045e0
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov byte [esp + 0x28], 2
call edx
add eax, 0x10
mov dword [esi + 0x78], eax
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov byte [esp + 0x28], 3
call edx
add eax, 0x10
mov dword [esi + 0x7c], eax
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov byte [esp + 0x28], 4
call edx
add eax, 0x10
mov dword [esi + 0x80], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xc0], edi
lea ecx, [esi + 0xd4]
xor eax, eax
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], 0x32
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [esp + 0x28], 5
mov dword [ecx + 0x14], eax
call fcn.004011c0
cmp eax, edi
jge 0x419256
push eax
call fcn.004010b0
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x19]
lea ecx, [esi + 0xec]
push edx
mov byte [esp + 0x30], 6
call fcn.00416800
lea eax, [esp + 0x16]
push eax
lea edx, [esp + 0x1b]
lea ecx, [esi + 0x10c]
push edx
mov byte [esp + 0x30], 7
call fcn.00411610
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov byte [esp + 0x28], 8
call edx
add eax, 0x10
mov dword [esi + 0x12c], eax
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov byte [esp + 0x28], 9
call edx
add eax, 0x10
mov dword [esi + 0x130], eax
mov eax, 0xa
mov byte [esp + 0x28], al
mov dword [esi + 0x134], eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x1d]
lea ecx, [esi + 0x138]
push edx
call fcn.00416800
lea eax, [esp + 0x1a]
push eax
lea ecx, [esp + 0x1f]
push ecx
lea ecx, [esi + 0x158]
mov byte [esp + 0x30], 0xb
call fcn.00411610
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 0x419f65
Capabilities:
Query environment variable

Disassembly:
push 0x8000
push 0
push 0x4cb990
call fcn.00494780
mov eax, dword [esp + 0x10]
add esp, 0xc
push 0x8000
push 0x4cb990
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x419f9a
cmp eax, 0x8000
ja 0x419f9a
mov eax, 0x4cb990
ret
xor eax, eax
ret

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

Disassembly:
test byte [eax + 0x1c], 0x20
je 0x42085b
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
push ebx
push esi
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
push edi
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0x18]
mov eax, dword [ecx + 0x98]
mov edi, dword [esi]
push edx
cdq
push edx
push eax
push 0
dec ebx
push ebx
call fcn.00497c80
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
pop edi
pop esi
pop ebx
ret
jmp fcn.0041eca0

Function at 0x423d20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
test dword [ebx - 7], edx
invalid
dec dword [ebx]
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
invalid
test dword [esi - 7], ebx
Function at 0x42a0b0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
mov dword [ebp], 0
cmp dword [0x4c90b0], 0
push esi
je 0x42a112
mov eax, dword [0x4d3d78]
test eax, eax
je 0x42a0de
push eax
call dword [0x4c910c]
add esp, 4
lea eax, [esp + 0x10]
push eax
mov eax, 0x14
call fcn.00429a50
mov eax, dword [0x4d3d78]
add esp, 4
test eax, eax
je 0x42a103
push eax
call dword [0x4c9114]
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x42a121
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
ret
push 0x14
call dword [0x4c90dc]
add esp, 4
mov esi, eax
jmp 0x42a107
cmp dword [0x4c90b4], 0
je 0x42a165
mov eax, dword [0x4c91b4]
test eax, eax
je 0x42a141
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x42a165
lea ecx, [esi + 4]
push ecx
push 0
push esi
push 0x41cc10
push 0
push 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.00495c0d
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x42a175
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x42a18d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebx
add esp, 4
mov dword [esi + 0x10], eax
mov dword [ebp], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov al, byte [ebx + 0x44]
test al, al
jl 0x42ccb9
push ebp
push esi
push edi
xor edi, edi
test al, al
jle 0x42cc59
lea ebp, [ebx + 0x78]
lea ecx, [ecx]
mov eax, dword [ebp]
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x42cc48
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.00497c80
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
mov ebx, dword [esp + 0x28]
add esp, 0x10
jmp 0x42cc4d
call fcn.0041eca0
movsx ecx, byte [ebx + 0x44]
inc edi
add ebp, 4
cmp edi, ecx
jl 0x42cbf0
mov edx, dword [ebx + 0x74]
mov eax, dword [edx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x42ccad
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov ebp, dword [eax + 0x18]
mov eax, dword [ecx + 0x98]
mov edi, dword [esi]
push edx
cdq
push edx
push eax
push 0
dec ebp
push ebp
call fcn.00497c80
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
pop edi
pop esi
pop ebp
mov byte [ebx + 0x44], 0xff
pop ebx
pop ecx
ret
call fcn.0041eca0
pop edi
pop esi
mov byte [ebx + 0x44], 0xff
pop ebp
pop ebx
pop ecx
ret
Function at 0x42f270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea ecx, [ecx]
xor edi, edi
cmp dword [ebp + 0x14], edi
mov dword [esp + 0x10], edi
jle 0x42f304
jmp 0x42f290
cmp edi, 2
mov esi, edi
jge 0x42f29a
xor esi, 1
test ebx, ebx
je 0x42f356
mov edx, dword [ebp + 0x10]
mov eax, esi
shl eax, 4
mov edi, dword [eax + edx]
mov dl, byte [ebx]
movzx ebp, byte [edi]
movzx ebp, byte [ebp + 0x4b7678]
movzx eax, dl
movzx eax, byte [eax + 0x4b7678]
sub eax, ebp
mov ecx, ebx
jne 0x42f2f2
sub edi, ebx
jmp 0x42f2d0
test dl, dl
je 0x42f34a
movzx eax, byte [edi + ecx + 1]
movzx ebp, byte [eax + 0x4b7678]
mov dl, byte [ecx + 1]
inc ecx
movzx eax, dl
movzx eax, byte [eax + 0x4b7678]
sub eax, ebp
je 0x42f2d0
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
inc edi
cmp edi, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
jl 0x42f290
mov ecx, dword [esp + 0x1c]
mov al, byte [ecx]
movzx edx, al
movzx edx, byte [edx + 0x4b7678]
sub edx, 0x73
jne 0x42f342
mov edx, str.sqlite_master
sub edx, ecx
test al, al
je 0x42f37e
mov al, byte [ecx + 1]
movzx esi, byte [edx + ecx + 1]
movzx esi, byte [esi + 0x4b7678]
inc ecx
movzx edi, al
movzx edi, byte [edi + 0x4b7678]
sub edi, esi
je 0x42f320
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test eax, eax
jne 0x42f2f2
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
shl esi, 4
mov eax, dword [esi + ecx + 0xc]
push 0
add eax, 8
push edx
call fcn.0041ddf0
mov eax, dword [eax + 8]
add esp, 8
test eax, eax
jne 0x42f344
jmp 0x42f2fa
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
test ebx, ebx
jne 0x42f38e
neg eax
sbb eax, eax
jmp 0x42f399
test eax, eax
je 0x42f342
mov ecx, ebx
call fcn.0041ce50
test eax, eax
jne 0x42f342
mov dword [esp + 0x1c], str.sqlite_temp_master
jmp 0x42f280
Function at 0x453470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, eax
mov ebx, dword [esi + 8]
push edi
mov edi, dword [esi]
mov dword [esp + 0x14], edi
test ebx, ebx
jne 0x4534a7
cmp dword [esi + 0x78], ebx
jne 0x453494
test byte [edi + 0x44], 8
jne 0x453494
mov byte [esi + 0x17], 1
push esi
call fcn.00437d10
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45364a
mov eax, dword [esp + 0x28]
shl eax, 4
add eax, dword [edi + 0x10]
push ebp
mov dword [esp + 0x14], eax
xor edi, edi
jmp 0x4534c4
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov ebp, dword [edi*8 + 0x4b811c]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call fcn.0042f270
add esp, 0xc
test eax, eax
jne 0x453511
mov eax, dword [edi*8 + 0x4b8120]
test eax, eax
je 0x453570
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx]
push ebp
push eax
push str.CREATE_TABLE__Q._s__s_
push esi
call fcn.00442570
mov ecx, dword [esi + 0x64]
mov dword [esp + edi*4 + 0x30], ecx
mov byte [esp + edi + 0x24], 0x10
jmp 0x45356d
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x2c]
push ebp
push 1
push eax
mov dword [esp + edi*4 + 0x28], eax
push edx
mov eax, esi
mov byte [esp + edi + 0x20], 0
call fcn.00434380
mov eax, dword [esp + 0x44]
add esp, 0x10
test eax, eax
je 0x453556
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ebp
push edx
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.00442570
add esp, 0x18
jmp 0x453570
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + edi*4 + 0x1c]
push 0
push eax
push ecx
push 0x87
push ebx
call fcn.00432730
add esp, 0x14
inc edi
cmp edi, 3
jl 0x4534c0
cmp dword [str.tbl_idx_stat], 0
je 0x453649
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x10]
lea edx, [esp + 0x1c]
sub eax, edi
mov ebp, 0x4b8120
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x4535cb
mov ecx, dword [esp + 0x2c]
push ecx
push edx
push edi
push 0x6b
mov esi, ebx
call fcn.004326f0
add esp, 0x10
jmp 0x4535fc
mov esi, dword [ebx + 0x58]
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x2c]
xor esi, esi
mov byte [eax], 0x6b
mov word [eax + 2], si
mov dword [eax + 4], edi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [ebx]
cmp byte [ecx + 0x49], 0
jne 0x453618
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 3
mov eax, dword [ebx + 0x88]
test eax, eax
jle 0x453636
mov ecx, dword [esp + 0x18]
movzx dx, byte [ecx + edi]
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], dx
add dword [esp + 0x14], 4
add ebp, 8
inc edi
cmp dword [ebp], 0
jne 0x4535a2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4612b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [ebx + 0x14]
mov eax, dword [esi + 0x94]
xor edx, edx
div dword [esi + 0x98]
or byte [esi + 0x14], 4
mov edx, dword [ebx + 0x18]
lea ecx, [edx - 1]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
lea ebp, [eax - 1]
not ebp
and ebp, ecx
mov ecx, dword [esi + 0x18]
inc ebp
cmp edx, ecx
jbe 0x4612f6
mov ebx, edx
sub ebx, ebp
inc ebx
jmp 0x461307
lea edx, [eax + ebp - 1]
cmp edx, ecx
jbe 0x461305
sub ecx, ebp
inc ecx
mov ebx, ecx
jmp 0x461307
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x1c], edi
jle 0x4614b7
mov edi, ebp
cmp dword [esp + 0x10], 0
jne 0x4614b7
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 0x18]
je 0x461388
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x461388
mov eax, edi
call fcn.0041e930
test eax, eax
je 0x461388
mov eax, dword [esi + 0xd4]
mov ecx, dword [eax + 0x2c]
push 0
push edi
push ecx
call dword [0x4c913c]
add esp, 0xc
test eax, eax
je 0x46137e
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
mov edx, dword [esi + 0xd4]
jne 0x461370
push eax
push edi
push edx
call fcn.0041ec30
add esp, 0xc
jmp 0x46137e
mov eax, 1
add dword [edx + 0xc], eax
add word [ecx + 0x1e], ax
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4613d9
jmp 0x4613c6
mov eax, dword [0x4c91c8]
cdq
idiv dword [esi + 0x98]
inc eax
cmp edi, eax
je 0x4613d9
mov eax, dword [esi + 0xcc]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push esi
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4613d9
mov eax, dword [esp + 0x14]
call fcn.004611f0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
test byte [eax + 0x1c], 8
je 0x4613d4
mov dword [esp + 0x18], 1
call fcn.00420810
mov eax, dword [esp + 0x1c]
inc eax
inc edi
cmp eax, ebx
mov dword [esp + 0x1c], eax
jl 0x461315
cmp dword [esp + 0x10], 0
jne 0x4614b7
cmp dword [esp + 0x18], 0
je 0x4614b7
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 0xd4]
mov ecx, dword [eax + 0x2c]
push 0
push ebp
push ecx
call dword [0x4c913c]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4614ab
mov eax, dword [ecx + 4]
cmp dword [eax], 0
mov edx, dword [esi + 0xd4]
jne 0x461440
push ecx
push ebp
push edx
call fcn.0041ec30
add esp, 0xc
jmp 0x46144c
mov ecx, 1
add dword [edx + 0xc], ecx
add word [eax + 0x1e], cx
test eax, eax
je 0x4614ab
or word [eax + 0x1c], 8
movzx ecx, word [eax + 0x1c]
test cl, 0x20
je 0x4614a6
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [edi]
dec eax
push edx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.00497c80
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4614ab
call fcn.0041eca0
inc ebp
sub dword [esp + 0x24], 1
jne 0x461405
and byte [esi + 0x14], 0xfb
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x493ffe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ca1d0]
jne 0x494008
repz ret
jmp fcn.0049d9bd

Function at 0x4aa294
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0049c260
and dword [ebp - 4], 0
cmp dword [0x4d4adc], 0
mov ebx, eax
jne 0x4aa345
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4aa3f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4aa3f6
push eax
call fcn.0049c1ee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d4adc], eax
call esi
push eax
call fcn.0049c1ee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d4ae0], eax
call esi
push eax
call fcn.0049c1ee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d4ae4], eax
call esi
push eax
call fcn.0049c1ee
pop ecx
mov dword [0x4d4aec], eax
test eax, eax
je 0x4aa345
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049c1ee
pop ecx
mov dword [0x4d4ae8], eax
mov eax, dword [0x4d4ae8]
cmp eax, ebx
je 0x4aa39d
cmp dword [0x4d4aec], ebx
je 0x4aa39d
push eax
call fcn.0049c269
push dword [0x4d4aec]
mov esi, eax
call fcn.0049c269
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4aa39d
test edi, edi
je 0x4aa39d
call esi
test eax, eax
je 0x4aa394
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4aa394
test byte [ebp - 0xc], 1
jne 0x4aa39d
or dword [ebp + 0x10], 0x200000
jmp 0x4aa3d6
mov eax, dword [0x4d4ae0]
cmp eax, ebx
je 0x4aa3d6
push eax
call fcn.0049c269
pop ecx
test eax, eax
je 0x4aa3d6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4aa3d6
mov eax, dword [0x4d4ae4]
cmp eax, ebx
je 0x4aa3d6
push eax
call fcn.0049c269
pop ecx
test eax, eax
je 0x4aa3d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d4adc]
call fcn.0049c269
pop ecx
test eax, eax
je 0x4aa3f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4aa3f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret