joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fc977
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004fcb1a
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4fcaef
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4fcaef
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4fca9e
jg 0x4fc9d0
test eax, eax
je 0x4fca94
push 1
push 0x1000
call fcn.004c3610
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4fc9f6
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4fca8b
push 0x8000
push ebx
call fcn.00501c13
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4fca22
jg 0x4fca1d
cmp ecx, 0x1000
jb 0x4fca22
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005049b5
add esp, 0x10
cmp eax, 0xffffffff
je 0x4fca67
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4fca1d
jl 0x4fca4e
test ecx, ecx
jne 0x4fca0f
push dword [ebp - 0xc]
push ebx
call fcn.00501c13
push esi
call fcn.004c3570
add esp, 0xc
xor edi, edi
jmp 0x4fcb00
cmp byte [edi + 0x24], 0
je 0x4fca7e
cmp dword [edi + 0x20], 5
jne 0x4fca7e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4fca89
mov edi, dword [edi + 0x18]
jmp 0x4fca8b
xor edi, edi
push esi
call fcn.004c3570
pop ecx
jmp 0x4fcb00
test ecx, ecx
jg 0x4fca60
jl 0x4fca9e
test eax, eax
jae 0x4fca60
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00500d15
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4fcac1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4fca60
jmp 0x4fcaf8
push ebx
call fcn.004ff90a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4fca60
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4fcb00
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4fcafd
mov edi, dword [edi + 0x18]
jmp 0x4fcb00
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00500d15
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50172a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5a1a08]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x50176a
cmp byte [ebx], 0xa
jne 0x50176a
or byte [eax + edi + 0x28], 4
jmp 0x50176f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x50186d
mov al, byte [edx]
cmp al, 0x1a
je 0x50184f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x50179e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5017c3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5017cd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x501780
jmp 0x50186d
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x50184a
cmp dword [ebp - 0xc], 0
je 0x50184a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5a1a08]
test byte [eax + edi + 0x28], 0x48
je 0x501824
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x50180f
mov byte [esi], dl
jmp 0x501820
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5a1a08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x50186d
cmp byte [ebp - 1], 0xa
jne 0x501833
cmp esi, ebx
jne 0x501833
mov byte [esi], 0xa
jmp 0x50186c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00500d15
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x50186d
mov byte [esi], 0xd
jmp 0x50186c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5a1a08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x501869
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x50186d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x501876
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5a1a08]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5018b9
cmp word [esi], dx
jne 0x5018b9
or byte [edi + eax + 0x28], 4
jmp 0x5018be
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x5019f7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x5019d7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x501900
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x501936
cmp eax, edx
jae 0x501942
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x5018d8
jmp 0x5019f7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5019d3
cmp dword [ebp - 0x14], 0
je 0x5019d3
mov eax, dword [ebx*4 + 0x5a1a08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5019ab
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x5019f1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5a1a08]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5a1a08]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5a1a08]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x5019f4
pop ebx
cmp word [ebp - 4], bx
jne 0x5019bc
cmp esi, dword [ebp + 0xc]
jne 0x5019bc
mov word [esi], bx
jmp 0x5019f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00500d15
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5019f7
push 0xd
jmp 0x5019f0
mov ecx, dword [ebx*4 + 0x5a1a08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5019ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5019f7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x506c2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004edde0
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004ff8b2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x506c6d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x506dc9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00511eb0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5a1a08]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00500d73
mov ecx, dword [esi*4 + 0x5a1a08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x506dc2
cmp eax, dword [edi + ecx + 0x24]
jne 0x506dc2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x506dc2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00500d73
add esp, 0x14
test edx, edx
jl 0x506dc2
jg 0x506d38
test eax, eax
jb 0x506dc2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x506dc2
jl 0x506d52
cmp dword [ebp - 0x1008], eax
ja 0x506dc2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x506d70
test ebx, ebx
je 0x506da9
cmp ecx, edi
jae 0x506da9
mov al, byte [ecx]
cmp al, 0xd
jne 0x506d8a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x506d96
cmp byte [ecx + 1], 0xa
jne 0x506d96
inc ecx
jmp 0x506d96
movzx eax, al
movsx eax, byte [eax + 0x59d290]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x506d70
cmp edx, ebx
jne 0x506d70
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x506dc7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004ed092
leave
ret

Function at 0x50c016
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5746f8
push 0x5746f0
push 0x5746f8
push 0x1e
call fcn.0050c572
mov esi, eax
add esp, 0x10
test esi, esi
je 0x50c04a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x50c050
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x50c094
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x57471c
push 0x574714
push 0x57471c
push 0x20
call fcn.0050c572
mov esi, eax
add esp, 0x10
test esi, esi
je 0x50c0cb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x510c12
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x510c5d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00510d88
test al, al
jne 0x510c57
sub edx, 2
cmp edx, edi
jne 0x510c3d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x510c7f
lea eax, [edi + 2]
cmp edx, eax
je 0x510c7f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00510b5e
add esp, 0x10
jmp 0x510d79
push esi
lea ecx, [ebp - 0x255]
call fcn.00510d88
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x510cc2
push dword [ebp - 0x25c]
jmp 0x510c6f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x510cff
cmp word [ebp - 0x226], 0
je 0x510d20
cmp word [ebp - 0x226], ax
jne 0x510cff
cmp word [ebp - 0x224], 0
je 0x510d20
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00510b5e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x510d6c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x510cd9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x510d54
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x510d79
push 0x510db0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00507f00
add esp, 0x10
jmp 0x510d49
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ed092
leave
ret
Function at 0x511f5a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x511ff7
push ebx
push esi
call fcn.00512048
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00511df5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x511fa4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x511ff6
push edi
push eax
call fcn.004818a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x511fc4
call fcn.004c3570
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x511ff5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00511df5
add esp, 0x20
test eax, eax
jne 0x511fe3
push edi
call fcn.004c3570
jmp 0x511feb
push ebx
call fcn.004c3570
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x511ffa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x51200b
pop esi
ret
push ebx
push edi
push esi
call fcn.00512048
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004818a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x512033
push ebx
push esi
push edi
call fcn.004efd90
add esp, 0xc
push 0
call fcn.004c3570
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x51208a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005122f3

Function at 0x5165ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005165d9
Function at 0x51fa10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x418
mov edi, dword [ebp + 8]
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x418], ecx
xor esi, esi
mov dword [ebp - 0x41c], esi
lea ebx, [ebp - 0x410]
push 0x400
push 0xff
push ebx
call fcn.004f0310
add esp, 0xc
mov dword [ebx - 4], esi
push 0x60
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test eax, eax
jne 0x51fa78
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test eax, eax
je 0x51fb52
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x51fb45
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x51fb45
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x420], 0x8007000e
cmp eax, 0xffffffff
je 0x51fad7
mov edi, eax
inc eax
js 0x51fb80
cmp edi, 0x200
jae 0x51fb1a
mov dword [ebp - 0x414], ebx
test ebx, ebx
jne 0x51fb2e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x414]
mov edi, dword [ebp - 0x420]
lea eax, [ebp - 0x410]
cmp esi, eax
jne 0x51fb0d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed092
mov eax, edi
add esp, 0x418
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea ecx, [ebp - 0x414]
call fcn.00520210
jmp 0x51faf4
add eax, eax
lea ebx, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.0051ff20
mov ebx, dword [ebx]
jmp 0x51fad3
push edi
push ebx
push edi
push dword [ebp - 0x424]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x51fb5d
call fcn.0051f810
mov dword [ebp - 0x420], eax
jmp 0x51fad7
xor esi, esi
call fcn.0051f810
mov edi, eax
jmp 0x51faea
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x414]
mov word [ecx + eax*2], 0
lea ecx, [ebp - 0x41c]
push edx
push dword [ebp - 0x414]
call fcn.0051fb90
jmp 0x51fb4a
push 0x80070216
call fcn.0053fe80
int3
Function at 0x528050
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
lea ecx, [esi + 0x70]
mov dword [ecx - 4], esp
xor edi, edi
dec edi
mov dword [ecx + 8], edi
mov dword [ecx + 4], 0x467590
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor ecx, ecx
lea eax, [esi + 0x19]
mov dword [eax + 3], ecx
mov dword [eax - 1], 0x25
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push dword [edx + 4]
push 1
push ecx
push eax
call fcn.00532a10
add esp, 0x10
mov dword [esi + 8], esp
lea ebx, [esi + 0x20]
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov byte [ebx + 0xc], 0xff
sub esp, 0x1c
mov edi, esp
lea eax, [edi + 8]
push eax
call fcn.004b0540
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 0xd
lea eax, [esi + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x18], eax
call fcn.00469e70
add esp, 0x1c
mov esp, dword [esi + 8]
lea edi, [esi + eax]
add edi, 0x20
push dword [ebp + 0x10]
push edi
push ebx
call fcn.00527dc0
add esp, 0xc
mov dword [esi + 8], eax
pcmpeqd xmm0, xmm0
lea ebx, [esi + 0x30]
movdqu xmmword [ebx + 0x1e], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea ecx, [esi + 0x14]
xor eax, eax
dec eax
mov dword [ecx], eax
lea ecx, [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004afe20
lea eax, [esi + 0x70]
xor ecx, ecx
mov dword [eax + 8], ecx
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push ebx
push edi
push dword [esi + 8]
lea eax, [esi + 0x20]
push eax
call fcn.00529010
add esp, 0x1c
mov ebx, dword [esi + 0xc]
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
mov edi, dword [ebp + 8]
movzx edx, word [ebp + 0x14]
test eax, eax
jne 0x52818b
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0x78], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
movzx edx, word [ebp + 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x78], 0xffffffff
movzx edx, dx
push edx
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [esi + 0x30]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00528e90
add esp, 0x1c
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
Function at 0x528230
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
lea ecx, [esi + 0xb0]
mov dword [ecx - 4], esp
xor edi, edi
dec edi
mov dword [ecx + 8], edi
mov dword [ecx + 4], 0x4675a0
mov eax, dword fs:[0]
mov dword [ecx], eax
mov dword fs:[0], ecx
xor ecx, ecx
lea eax, [esi + 0x19]
mov dword [eax + 3], ecx
mov dword [eax - 1], 0x25
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
push dword [edx + 4]
push 1
push ecx
push eax
call fcn.00532a10
add esp, 0x10
mov dword [esi + 8], esp
lea ebx, [esi + 0x20]
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], edi
pcmpeqd xmm0, xmm0
movdqa xmmword [ebx], xmm0
sub esp, 0x20
mov edi, esp
lea eax, [edi + 8]
push eax
call fcn.004b0540
add esp, 4
mov dword [edi], ebx
mov dword [edi + 4], 0x18
lea eax, [esi + 0x18]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x18], eax
call fcn.00469e70
add esp, 0x20
mov esp, dword [esi + 8]
lea edi, [esi + eax]
add edi, 0x20
push dword [ebp + 0x10]
push edi
push ebx
call fcn.00527dc0
add esp, 0xc
mov dword [esi + 8], eax
lea ebx, [esi + 0x40]
pcmpeqd xmm0, xmm0
movdqu xmmword [ebx + 0x4a], xmm0
movdqa xmmword [ebx + 0x40], xmm0
movdqa xmmword [ebx + 0x30], xmm0
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea ecx, [esi + 0x14]
xor eax, eax
dec eax
mov dword [ecx], eax
lea ecx, [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004afe20
lea eax, [esi + 0xb0]
xor ecx, ecx
mov dword [eax + 8], ecx
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0x14]
push eax
push ebx
push edi
push dword [esi + 8]
lea eax, [esi + 0x20]
push eax
call fcn.00529010
add esp, 0x1c
mov ebx, dword [esi + 0xc]
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
mov edi, dword [ebp + 8]
movzx edx, word [ebp + 0x14]
test eax, eax
jne 0x52838e
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov dword [esi + 0xb8], 0xffffffff
mov ecx, edi
call dword [section..00cfg]
mov ecx, ebx
call edi
movzx edx, word [ebp + 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xb8], 0xffffffff
movzx edx, dx
push edx
push dword [ebp + 0x10]
push eax
push ecx
lea eax, [esi + 0x40]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00528e90
add esp, 0x1c
mov eax, dword [esi + 0xb0]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c