joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409dc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ClearCommError]
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
lea ecx, [esp + 0x14]
mov edx, dword [esi]
push eax
push ecx
push edx
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x409e79
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea edi, [esi + 0xc]
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x409e5e
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea ecx, [esp + 0x10]
push 1
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x409e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x409e66
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push 1
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x409e32
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov dword [esp + 0x10], 0
mov ecx, dword [esi]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8

Function at 0x40a6f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c0eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x42c678
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x40a780
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x40a747
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x40a771
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40a786
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x40a786
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x42c650
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x42c2d0
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040b060
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4168c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4168e7
cmp dword [edi + 0x54], 0
jne 0x4168e7
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041887a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00416884
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41acac
Capabilities:
Create http request

Disassembly:
mov edi, edi
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]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x41acd7
call fcn.0041887a
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]
mov dword [esi + 8], eax
test eax, eax
jne 0x41acfa
push eax
push dword [esi + 4]
call fcn.0041ac32
push esi
push eax
mov ecx, 0x457b54
call fcn.0041a8df
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x429f2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454740]
jne 0x429f36
repz ret
jmp fcn.0043098e
Function at 0x438f94
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.004302f2
and dword [ebp - 4], 0
cmp dword [0x4589d8], 0
mov ebx, eax
jne 0x439045
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4390f6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4390f6
push eax
call fcn.00430280
mov dword [esp], 0x446e18
push edi
mov dword [0x4589d8], eax
call esi
push eax
call fcn.00430280
mov dword [esp], 0x446e04
push edi
mov dword [0x4589dc], eax
call esi
push eax
call fcn.00430280
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4589e0], eax
call esi
push eax
call fcn.00430280
pop ecx
mov dword [0x4589e8], eax
test eax, eax
je 0x439045
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00430280
pop ecx
mov dword [0x4589e4], eax
mov eax, dword [0x4589e4]
cmp eax, ebx
je 0x43909d
cmp dword [0x4589e8], ebx
je 0x43909d
push eax
call fcn.004302fb
push dword [0x4589e8]
mov esi, eax
call fcn.004302fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43909d
test edi, edi
je 0x43909d
call esi
test eax, eax
je 0x439094
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x439094
test byte [ebp - 0xc], 1
jne 0x43909d
or dword [ebp + 0x10], 0x200000
jmp 0x4390d6
mov eax, dword [0x4589dc]
cmp eax, ebx
je 0x4390d6
push eax
call fcn.004302fb
pop ecx
test eax, eax
je 0x4390d6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4390d6
mov eax, dword [0x4589e0]
cmp eax, ebx
je 0x4390d6
push eax
call fcn.004302fb
pop ecx
test eax, eax
je 0x4390d6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4589d8]
call fcn.004302fb
pop ecx
test eax, eax
je 0x4390f6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4390f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40228a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x40f0d4], 0
jne 0x402298
call fcn.00402260
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4022c5
test cl, 7
je 0x4022c5
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
dec esi
inc ecx
jmp 0x4022a6
cmp esi, 8
jb 0x402349
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x40f0d0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x40f0d0]
dec edi
jne 0x4022cf
xor edx, edx
test esi, esi
jbe 0x402369
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x40f0d0]
inc edx
cmp edx, esi
jb 0x402350
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x4ffc40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x481bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x48df20
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4ffcd0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4ffc97
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [fcn.0048a0c4]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4ffcc1
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.00541b40
jmp 0x4ffcd6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.00541b40
jmp 0x4ffcd6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x48b594
mov ecx, edi
mov byte [esp + 0x1c], 2
call fcn.00541516
mov ecx, esi
mov dword [edi], 0x48b5a8
mov dword [esp + 0x1c], 0xffffffff
call fcn.005416a2
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x50eb90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48214b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
call fcn.00541588
mov dword [esi], 0x48be98
lea edi, [esi + 0x48]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.0054148c
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
mov byte [esp + 0x20], 2
mov dword [esi], 0x48e1f0
call fcn.005414b6
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor eax, eax
cmp ebp, 1
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x44], edx
setne al
mov dword [esi + 0x50], eax
mov eax, ecx
mov dword [esi + 0x4c], ebx
lea edx, [esi + 0x54]
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + 4]
mov dword [edx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
or eax, 0x50800080
push ebx
push ecx
push eax
mov ecx, esi
call fcn.00541bf4
test eax, eax
je 0x50ed5c
mov eax, dword [ebx + 0x20]
mov ebx, dword [fcn.0048af20]
push 0
push 0
push 0x31
push eax
call ebx
push eax
call fcn.00541abc
test eax, eax
je 0x50ec69
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x20]
push 1
push eax
push 0x30
push ecx
call ebx
mov edx, dword [esp + 0x3c]
mov ecx, esi
push edx
call fcn.00541336
mov ecx, esi
call fcn.005415a0
lea eax, [ebp - 1]
cmp eax, 0x27
ja 0x50ed19
xor ecx, ecx
mov cl, byte [eax + 0x425194]
jmp dword [ecx*4 + 0x425184]
mov edx, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call ebx
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb7
push eax
call ebx
cmp ebp, 0x80
push 0
push ebp
jae 0x50ed4d
mov ecx, dword [esi + 0x20]
push 0x102
push ecx
jmp 0x50ed56
mov edx, dword [esi + 0x20]
push 0x286
push edx
call dword [fcn.0048aeec]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00541342
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x511570
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4825b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 4], 0x48e660
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0xa
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], edi
call fcn.0054148c
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 1
call fcn.0054148c
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 2
call fcn.0054148c
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 3
call fcn.0054148c
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 4
call fcn.0054148c
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x50], edi
mov dword [esi + 0x38], edi
mov word [esi + 0x30], di
mov dword [esi], 0x48e65c
mov dword [esi + 0x24], 1
mov dword [esi + 0x34], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x514340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x482957
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [esp + 0x30]
push edi
xor edi, edi
cmp si, 0x8000
mov dword [esp + 0x14], edi
jbe 0x51445b
mov dword [esp + 0x18], 0x48cbe8
mov dword [esp + 0x1c], edi
push 0xd1
mov ebx, 1
push 4
push 0xd1
mov dword [esp + 0x34], ebx
call fcn.00541630
push eax
call dword [fcn.0048aea4]
push eax
lea ecx, [esp + 0x1c]
call fcn.005419ba
mov eax, dword [esp + 0x1c]
push edi
push eax
call dword [fcn.0048aea0]
push eax
call fcn.005419b4
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.0054148c
push 0x400
push 0x100
push 0x100
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.00541648
mov ecx, dword [edi + 4]
and esi, 0xffff
sub esi, 0x8001
push eax
push esi
push ecx
call dword [fcn.0048af94]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00541a92
lea ecx, [esp + 0x18]
call fcn.005419a8
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.005414c2
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00541342
mov dword [esp + 0x18], 0x48cbe8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 3
call fcn.005419a8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0xc]
call fcn.0054148c
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 4
call fcn.0054148c
mov bl, 5
push 0x6e
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], bl
call fcn.00541486
and esi, 0xffff
lea eax, [esp + 0x34]
push esi
push 0x4a5724
push eax
call fcn.0054152e
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
lea ecx, [esp + 0x10]
call fcn.00541540
cmp eax, edi
jge 0x5144cd
push esi
call dword [fcn.0048acd0]
push eax
lea edx, [esp + 0x3c]
push 0x4a571c
push edx
call fcn.0054152e
add esp, 0x10
jmp 0x514518
push eax
push 0xa
lea ecx, [esp + 0x14]
call fcn.005418f4
mov esi, eax
lea ecx, [esp + 0xc]
inc esi
push esi
push 0xa
call fcn.005418f4
dec eax
lea ecx, [esp + 0xc]
sub eax, esi
inc eax
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.005418ee
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 6
call fcn.005414b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00541342
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.005414c2
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], 1
mov byte [esp + 0x28], 4
call fcn.00541342
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00541342
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x51f5f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x484008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x20]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x64], edi
call dword [fcn.0048aee8]
push edi
lea ecx, [esp + 0x44]
call fcn.005417b6
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 1
call fcn.005416c0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x48c6b8
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
mov byte [esp + 0x5c], 3
and eax, ecx
push eax
call dword [fcn.0048a0bc]
push eax
lea ecx, [esp + 0x34]
call fcn.005416ba
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edi
sub ecx, edx
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
call dword [fcn.0048a0ec]
push eax
lea ecx, [esp + 0x1c]
call fcn.0054150a
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, ebp
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.00541b40
push 1
push ecx
lea edx, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov edi, eax
call fcn.005414c2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x28]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x48]
push eax
push ecx
mov ecx, esi
call fcn.0051fb30
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
test edi, edi
je 0x51f701
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x34]
push edi
push edx
call fcn.00541b40
lea ecx, [esp + 0x30]
call fcn.00541ad4
lea ecx, [esp + 0x18]
call fcn.00541516
mov esi, dword [esp + 0x64]
mov dword [esp + 0x18], 0x48b594
mov dword [esi], ebp
mov dword [esi + 4], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 4
call fcn.00541516
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 0x48b5a8
mov byte [esp + 0x5c], 1
call fcn.005416a2
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 0
call fcn.005417b0
lea ecx, [esp + 0x68]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00541342
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x50
ret 8
Function at 0x523190
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x484320
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], ebx
call fcn.0054148c
mov eax, dword [esp + 0x70]
mov byte [esp + 0x68], 1
cmp eax, ebx
jne 0x5231cf
mov dword [esp + 0x1c], ebx
jmp 0x5231d6
mov eax, dword [eax + 0x20]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x74]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], edx
call fcn.005414b6
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], ebx
cmp eax, ebx
je 0x523231
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [fcn.0048aefc]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jmp 0x52323c
lea eax, [esp + 0x24]
push eax
call dword [fcn.0048afb0]
mov ecx, dword [esp + 0x1c]
sub esp, 0x44
mov esi, esp
mov dword [esp + 0xb4], esp
mov dword [esi], ecx
mov edx, dword [esp + 0x64]
mov dword [esi + 4], edx
mov ecx, dword [esp + 0x68]
lea eax, [esi + 8]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x7c]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x78]
push ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
call fcn.005414c2
mov edx, dword [esp + 0x80]
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x84]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x88]
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0x8c]
mov dword [esi + 0x2c], edx
mov eax, dword [esp + 0x90]
mov dword [esi + 0x30], eax
mov cl, byte [esp + 0x94]
mov byte [esi + 0x34], cl
mov edx, dword [esp + 0x98]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0x9c]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0xa0]
mov dword [esi + 0x40], ecx
mov ecx, edi
call fcn.00523320
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], bl
call fcn.00541342
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], 0xffffffff
call fcn.00541342
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 0x14
Function at 0x523830
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x484398
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
push edi
mov edi, dword [esp + 0x5c]
mov esi, ecx
push edi
call fcn.00523980
test eax, eax
jne 0x52386d
pop edi
pop esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
lea eax, [esp + 8]
push edi
push eax
lea ecx, [esi + 0x40]
call fcn.00523f80
mov esi, eax
mov edi, dword [esp + 0x60]
mov ecx, dword [esi]
lea eax, [esi + 8]
mov dword [esp + 0x54], 0
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov edx, dword [eax]
lea ecx, [edi + 8]
mov dword [edi + 8], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
lea edx, [esi + 0x1c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x18]
mov dword [edi + 0x18], ecx
push edx
lea ecx, [edi + 0x1c]
call fcn.005414b6
mov eax, dword [esi + 0x20]
mov dword [esp + 0x54], 0xffffffff
mov dword [edi + 0x20], eax
mov ecx, dword [esi + 0x24]
mov dword [edi + 0x24], ecx
mov edx, dword [esi + 0x28]
mov dword [edi + 0x28], edx
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov ecx, dword [esi + 0x30]
mov dword [edi + 0x30], ecx
mov dl, byte [esi + 0x34]
mov byte [edi + 0x34], dl
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov ecx, dword [esi + 0x3c]
mov dword [edi + 0x3c], ecx
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x24]
mov dword [edi + 0x40], edx
call fcn.00541342
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret 8

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x484488
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x18]
lea esi, [eax + edx*4]
mov dword [esi], ecx
mov edx, dword [esp + 0x1c]
mov dword [esi + 4], edx
mov ecx, dword [esp + 0x20]
lea eax, [esi + 8]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
call fcn.005414b6
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], 0xffffffff
mov dword [esi + 0x20], edx
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x24], eax
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x28], ecx
mov edx, dword [esp + 0x44]
mov dword [esi + 0x2c], edx
mov eax, dword [esp + 0x48]
mov dword [esi + 0x30], eax
mov cl, byte [esp + 0x4c]
mov byte [esi + 0x34], cl
mov edx, dword [esp + 0x50]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0x54]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x40], ecx
lea ecx, [esp + 0x34]
call fcn.00541342
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 0x48