joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d224b
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x568df8]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x568df8]
mov dword [edx + 8], eax
pop ebp
ret

Function at 0x4d4514
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4d4548
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d4543
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4d456f
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x4d4558
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.0050c050
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4d468c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4d469a
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4d4755
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
dec edi
jne 0x4d46b8
pop edi
test esi, esi
je 0x4d476e
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x568df8]
inc edx
dec esi
jne 0x4d4759
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x4e7722
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4e7746
cmp dword [esi + 8], edi
jge 0x4e773e
push esi
call fcn.004e2c77
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4e776c
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4e7752
mov dword [esi + 8], edx
jmp 0x4e7781
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4e7777
xor dl, dl
jmp 0x4e777c
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4e776c
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4e77b9
push str.zlib_corrupt
call fcn.004e2b9a
pop ecx
jmp 0x4e77f9
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4e77c9
push str.read_past_buffer
jmp 0x4e77b1
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4e77e3
push edi
push ecx
push esi
call fcn.004eaa75
add esp, 0xc
test eax, eax
je 0x4e77f9
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0050c050
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4edd3b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x69c], edi
je 0x4edda4
cmp dword [ebp + 8], 0x100
jne 0x4edd93
cmp dword [ebp + 0xc], 0xd
jne 0x4edd93
cmp byte [esi + 0x6a2], 0
je 0x4edd7a
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4edd93
cmp byte [esi + 0x6a3], 0
jne 0x4edd93
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4edd8f
push edi
push edi
push edi
push str.return
push esi
call fcn.004bc3bd
xor eax, eax
jmp 0x4edda7
mov eax, dword [esi + 0x69c]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4f7ef6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5a7774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4f7f7e
cmp dword [esi + 0x10], 0
je 0x4f7f7e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0051c650
mov ebx, esp
test ebx, ebx
je 0x4f7f7e
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1cc
call fcn.004be5a0
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004bc3bd
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b83f9
test al, al
je 0x4f7f7e
mov ecx, dword [esi + 0x10]
call fcn.004c08ba
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4fc890
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x55524c
call fcn.00519415
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x10], eax
mov dword [eax + 0x598], ebx
cmp dword [edi + 4], ebx
jne 0x4fc92a
lea eax, [ebp - 0xa8]
push eax
call fcn.004fc4a5
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b812d
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004bf343
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004eebb1
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7cd1
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004bebc8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004be508
test bl, bl
je 0x4fc967
mov eax, dword [edi + 0x10]
add eax, 0x588
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
call fcn.004fc9d6
test al, al
je 0x4fc97a
push 0x56e6fc
jmp 0x4fc97f
push str.yyyy_MM_dd
push 0
push 0x1032
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
mov ebx, 0x588
add eax, ebx
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.0050c050
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, ebx
push eax
push 0
push 0x1002
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.005193c4
ret 4
Function at 0x4fcf07
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x5a7774]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4fcf33
xor eax, eax
jmp 0x4fcfb0
push 0xfe
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.0050fef0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4fcf2f
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.0050c050
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret

Function at 0x4fd0ad
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x55423e
call fcn.00519415
mov edi, ecx
mov dword [ebp - 0x98], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 0x10], eax
mov dword [eax + 0x590], ebx
cmp dword [edi + 4], ebx
jne 0x4fd16a
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4fd142
lea eax, [ebp - 0xb0]
mov ecx, edi
push eax
call fcn.004fcc8c
mov ecx, dword [edi + 0x10]
lea esi, [ebp - 0xb0]
push ebx
sub esp, 0x10
mov edi, esp
mov eax, dword [ecx]
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b812d
mov edi, dword [ebp - 0x98]
mov ecx, edi
push eax
call fcn.004bf343
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.004eebb1
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7cd1
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004bebc8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004be508
test bl, bl
je 0x4fd1a6
call fcn.004fcf07
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.005193c4
ret 4
Function at 0x505871
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a7774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [ebp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp edi, 0x21
jb 0x5058bf
cmp edi, 0x28
jbe 0x5058b9
lea eax, [edi - 0x2d]
cmp eax, 1
ja 0x5058bf
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x5058cb
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0050fef0
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004be405
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x505bc5
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x555aa3
call fcn.00519415
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x505cd5
lea eax, [ebp - 0xa4]
push eax
call fcn.0050535b
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b812d
push eax
mov ecx, ebx
call fcn.004bf343
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x505cd5
mov esi, dword [ebx + 0x10]
mov ecx, esi
call fcn.004eebb1
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7cd1
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x7a6]
push eax
movzx eax, word [ecx + 0x7a4]
mov ecx, ebx
push eax
call fcn.00506100
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.005056bf
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1cc
push eax
call fcn.004be581
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004be508
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10c]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.005193c4
ret 4

Function at 0x5137d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x53cc76
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a7774]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0051cf9c
mov dword [ebp - 0x14], eax
cmp dword [0x5b3b40], esi
jne 0x53cd69
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x53ccf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x53ce49
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x53ce49
push 0x57bdd0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x53ce49
push eax
call ebx
push 0x57bddc
push edi
mov dword [0x5b3b40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5b3b44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5b3b48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b3b50], eax
test eax, eax
je 0x53cd66
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b3b4c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x53cd8e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x53cd81
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x53cda3
push 4
pop eax
jmp 0x53ce4b
cmp dword [ebp - 0x14], esi
je 0x53cda3
push dword [0x5b3b40]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x53cd88
mov eax, dword [0x5b3b4c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x53ce01
cmp dword [0x5b3b50], edi
je 0x53ce01
push eax
call ebx
push dword [0x5b3b50]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53ce01
test eax, eax
je 0x53ce01
call ecx
test eax, eax
je 0x53cdf6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x53cdf6
test byte [ebp - 8], 1
jne 0x53ce01
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x53ce31
mov eax, dword [0x5b3b44]
cmp eax, edi
je 0x53ce2e
push eax
call ebx
test eax, eax
je 0x53ce2e
call eax
mov esi, eax
test esi, esi
je 0x53ce2e
mov eax, dword [0x5b3b48]
cmp eax, edi
je 0x53ce2e
push eax
call ebx
test eax, eax
je 0x53ce2e
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5b3b40]
call ebx
test eax, eax
je 0x53ce49
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x53ce4b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret