joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4529a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x452aaa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.0040684c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 5
lea eax, [ebp - 4]
mov ecx, 0x452ac0
mov edx, dword [ebx + 0xc]
call fcn.004042bc
lea edx, [ebp - 0x60]
mov eax, 1
call fcn.004029f4
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00407a78
mov eax, dword [ebp - 0x5c]
mov edx, 0x452ad8
call fcn.004043bc
jne 0x452a2f
lea eax, [ebp - 4]
mov edx, 0x452aec
call fcn.00404278
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebx + 0xc]
call fcn.00404470
push eax
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404470
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x452a68
xor ebx, ebx
jmp 0x452a87
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452ab1
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00403fd4
lea eax, [ebp - 4]
call fcn.00403fb0
ret

Function at 0x452af8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
xor edx, edx
mov dword [ebp - 0x134], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x452b94
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402a54
lea eax, [ebp - 0x12d]
push eax
push 0x12b
call sub.kernel32.dll_GetTempPathA
lea eax, [ebx + 0xc]
lea edx, [ebp - 0x12d]
mov ecx, 0x12d
call fcn.00404220
push dword [ebx + 0xc]
push 0x452ba8
mov eax, 0x7fffffff
call fcn.00402c98
lea edx, [ebp - 0x134]
call fcn.00407d24
push dword [ebp - 0x134]
lea eax, [ebx + 0xc]
mov edx, 3
call fcn.00404330
mov eax, dword [ebx + 0xc]
call fcn.00408558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452b9b
lea eax, [ebp - 0x134]
call fcn.00403fb0
ret
Function at 0x452bac
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
xor edx, edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404460
lea eax, [ebp - 0x15c]
mov edx, dword [0x406e20]
call fcn.0040491c
xor eax, eax
push ebp
push 0x452d54
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x160]
mov ecx, 0x452d68
mov edx, dword [ebp - 4]
call fcn.004042bc
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.00408314
test eax, eax
jne 0x452d12
mov eax, dword [ebp - 0x150]
mov edx, 0x452d78
call fcn.004043bc
je 0x452c4e
mov eax, dword [ebp - 0x150]
mov edx, 0x452d84
call fcn.004043bc
jne 0x452c5e
lea eax, [ebp - 0x15c]
call fcn.00408364
jmp 0x452d0a
cmp dword [ebp - 0x154], 0x10
jne 0x452cc0
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x452d90
push dword [ebp - 0x150]
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.00404330
mov eax, dword [ebp - 0x164]
call fcn.00452bac
pop ecx
push dword [ebp - 4]
push 0x452d90
push dword [ebp - 0x150]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404330
mov eax, dword [ebp - 0x168]
call fcn.00408574
jmp 0x452cff
push 0x80
mov eax, dword [ebp - 0x150]
call fcn.00404470
push eax
call sub.kernel32.dll_SetFileAttributesA
push dword [ebp - 4]
push 0x452d90
push dword [ebp - 0x150]
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00404330
mov eax, dword [ebp - 0x16c]
call fcn.004083a4
lea eax, [ebp - 0x15c]
call fcn.00408364
test eax, eax
je 0x452c2a
lea eax, [ebp - 0x15c]
call fcn.00408388
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452d5b
lea eax, [ebp - 0x16c]
mov edx, 4
call fcn.00403fd4
lea eax, [ebp - 0x15c]
mov edx, dword [0x406e20]
call fcn.004049e0
lea eax, [ebp - 4]
call fcn.00403fb0
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x500008], 0x8088405
inc edx
mov dword [ebx + 0x500008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f04c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4e453a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f09b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
jmp 0x41f0ba
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ba
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f12c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f115
test esi, esi
jbe 0x41f12c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f107
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f12c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0e4
jmp 0x41f12c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f12c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e4541
ret
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4e589f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x502348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x502348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x501178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e58a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4eebc1
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c33e9
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push esi
push edi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, eax
lea esi, [edi + 0x11c]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
mov dword [esp + 0x18], esi
test eax, eax
je 0x4eed99
push 0
push 0
push 0x130b
push dword [edi + 0xf4]
call dword [fcn.004cf4ac]
push eax
mov dword [esp + 0x18], eax
call fcn.004ef960
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004ef584
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
and dword [esp + 0xf8], 0
lea ecx, [esp + 0x3c]
lea esi, [edi + 0x24]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov byte [esp + 0xf8], 1
push dword [esp + 0x1c]
push eax
push 0x138d
lea eax, [esp + 0x64]
push eax
call fcn.005670ea
mov byte [esp + 0xf8], 2
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 8]
mov byte [esp + 0xf8], 1
lea eax, [esp + 0x58]
push eax
call fcn.004edac0
mov byte [esp + 0xf8], 0
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.004ecf11
or dword [esp + 0xf8], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.004ecf11
push ebx
push dword [edi + 0x100]
lea eax, [esp + 0xac]
push eax
call fcn.0056a72d
mov dword [esp + 0xf8], 3
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx]
push 0
mov edi, ecx
call dword [eax + 4]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push eax
lea ecx, [esp + 0xb0]
call fcn.0056ab57
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov edi, eax
mov byte [esp + 0xf8], 4
push dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
call fcn.004ef960
push eax
push edi
push 0x138d
lea eax, [esp + 0x64]
push eax
call fcn.005670ea
mov byte [esp + 0xf8], 5
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 8]
mov byte [esp + 0xf8], 4
lea eax, [esp + 0x58]
push eax
call fcn.004edac0
mov byte [esp + 0xf8], 3
push 0
push 1
lea ecx, [esp + 0x28]
call fcn.004ecf11
or dword [esp + 0xf8], 0xffffffff
lea eax, [esp + 0xa4]
push eax
call fcn.004eedbd
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00588b82
mov esp, ebp
pop ebp
ret
Function at 0x4eee75
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c335b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4d2fa4
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004ed9aa
xor ebx, ebx
mov dword [esp + 0xa8], ebx
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
call fcn.004ecf97
mov byte [esp + 0xa8], 1
mov ecx, dword [esi + 0x100]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x3c]
push edx
call dword [eax + 0xc]
mov byte [esp + 0xa8], bl
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.004ecf11
or dword [esp + 0xa8], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.004ecf11
push dword [esp + 0x18]
lea eax, [esp + 0x58]
push dword [esi + 0x100]
push eax
call fcn.0056a72d
mov dword [esp + 0xa8], 2
mov ecx, dword [esi + 0x38]
mov eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [ecx]
call dword [eax]
push eax
lea ecx, [esp + 0x60]
call fcn.0056ab57
push edi
lea ecx, [esp + 0x3c]
call fcn.004ed9aa
mov byte [esp + 0xa8], 3
mov esi, dword [esi + 0x100]
mov eax, dword [esi]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax]
mov byte [esp + 0xa8], 4
cmp dword [eax + 0x14], ebx
setne byte [esp + 0x17]
mov byte [esp + 0xa8], 3
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.004ecf11
mov byte [esp + 0xa8], 2
push ebx
push 1
lea ecx, [esp + 0x40]
call fcn.004ecf11
or dword [esp + 0xa8], 0xffffffff
lea eax, [esp + 0x54]
push eax
call fcn.004eedbd
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00588b82
mov esp, ebp
pop ebp
ret
Function at 0x4ff9e2
Capabilities:
Hash data using fnv

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x4ff9ed
mov ecx, dword [eax + 4]
jmp 0x4ff9f0
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
push esi
mov eax, 0x811c9dc5
lea edx, [ecx + edx*2]
jmp 0x4ffa0b
movzx esi, word [ecx]
imul eax, eax, 0x1000193
xor eax, esi
inc ecx
inc ecx
cmp ecx, edx
jne 0x4ff9fe
mov esi, 0x7fffffff
and eax, esi
push 0x1f31d
push eax
call fcn.0058943d
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
pop ecx
sub edx, eax
pop ecx
mov eax, edx
jns 0x4ffa37
add eax, esi
pop esi
ret

Function at 0x519570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bb0f5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 8
jb 0x5195a9
mov eax, dword [eax + 4]
jmp 0x5195ac
add eax, 4
push eax
lea esi, [esp + 0x30]
call fcn.0051ee05
and dword [esp + 0x48], 0
push 3
pop eax
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 0xe
mov byte [esp + 0x48], 1
lea eax, [esp + 0xc]
push eax
call dword [0x4cf414]
mov byte [esp + 0x48], 2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x110]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push edx
push edx
lea edx, [esp + 0x28]
push edx
mov edx, esi
push edx
push eax
call dword [ecx + 0xd0]
test eax, eax
setge bl
mov byte [esp + 0x48], 1
mov esi, dword [fcn.004cf418]
lea eax, [esp + 0xc]
push eax
call esi
mov byte [esp + 0x48], 0
lea eax, [esp + 0x1c]
push eax
call esi
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x2c]
push eax
call esi
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x519646
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4c84
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x30]
push eax
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, eax
lea ecx, [esp + 8]
call fcn.0051f09b
pop ecx
and dword [esp + 0x30], 0
lea eax, [esp + 4]
push eax
push esi
call fcn.00519570
or dword [esp + 0x30], 0xffffffff
push 0
push 1
lea ecx, [esp + 0xc]
call fcn.004ecf11
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00588b82
mov esp, ebp
pop ebp
ret 4
Function at 0x533737
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc0b3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x4cf978
mov dword [esp + 0x14], 1
push esi
call fcn.00587c5c
add esp, 4
mov byte [esp + 0x14], 0
cmp dword [esi + 0x30], 0x10
jb 0x53378d
mov eax, dword [esi + 0x1c]
push eax
call fcn.00588b77
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], 0x4cf958
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x53b0a7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4601
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov ebx, 1
mov dword [esp + 0x30], ebx
lea eax, [esp + 0x1c]
push eax
call fcn.0053c4b7
mov edx, dword [0x504d64]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x504d64
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x30], bl
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
cmp ebx, esi
jle 0x53b1a9
mov ebp, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x53b179
lea ecx, [eax - 1]
test ecx, ecx
jl 0x53b22a
cmp ecx, eax
jg 0x53b22a
movzx ecx, word [edx + ecx*2]
cmp cx, 0x5d
je 0x53b179
test eax, eax
jle 0x53b179
lea ecx, [eax - 1]
test ecx, ecx
jl 0x53b22a
cmp ecx, eax
jg 0x53b22a
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x53b179
push 0x5c
call fcn.0053aed7
test esi, esi
jl 0x53b234
cmp esi, ebx
jge 0x53b234
mov eax, ebp
call fcn.0053d197
mov eax, dword [ebp]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, edi
call fcn.00524b0b
inc esi
add ebp, 4
cmp esi, ebx
jl 0x53b12b
xor esi, esi
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x53b20c
cmp ebx, esi
jle 0x53b1ff
mov esi, eax
mov ebp, ebx
jmp 0x53b1c7
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 0
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53b1f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub ebp, 1
jne 0x53b1c7
mov eax, dword [esp + 0x1c]
xor esi, esi
push eax
call fcn.00588c73
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.004f1a31
push 0
push 0
push 1
push 0xc000008c
call dword [fcn.004cf3cc]
int3
Function at 0x541e97
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0d66
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push edi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00539497
add esp, 8
xor ebx, ebx
mov dword [esp + 0x15c], ebx
cmp dword [esp + 0x40], ebx
jne 0x541fa1
push 0x103
lea ecx, [esp + 0x4d]
push ebx
push ecx
mov byte [esp + 0x54], bl
call fcn.00589607
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [0x4cf374]
lea eax, [esp + 0x48]
push eax
call fcn.005892c7
add esp, 4
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004f0af7
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x30]
mov byte [esp + 0x10], 0x5c
call fcn.00542547
cmp eax, 0xffffffff
je 0x541fa1
push eax
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
mov edx, edi
call fcn.005424d7
mov byte [esp + 0x15c], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.004f0e9f
mov byte [esp + 0x15c], bl
cmp dword [esp + 0x28], 0x10
jb 0x541f91
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00588b77
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x541fb0
lea eax, [esp + 0x30]
mov edx, dword [esi]
push eax
push edx
call dword [0x4cf694]
cmp eax, 1
sete byte [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x541fe1
mov eax, dword [esp + 0x30]
push eax
call fcn.00588b77
add esp, 4
mov al, byte [esp + 0xc]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00588b82
add esp, 0x154
ret 4