joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbf6d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e3180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00434ea4
mov edi, eax
add esp, 4
test edi, edi
je 0x4233cd
push 1
mov dword [ebp - 4], 0
call fcn.004337fd
add esp, 4
mov dword [edi + 4], eax
jmp 0x4233cf
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.004110c0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
not ecx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [ebp - 4], 1
shl ecx, 2
mov edx, ecx
or edx, 2
test bl, 2
cmovne edx, ecx
mov ecx, edx
or ecx, 8
test bl, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
test bl, 4
cmove eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp dword [ecx + 0x14], 0xf
mov ebx, dword [ecx + 0x10]
jbe 0x423428
mov ecx, dword [ecx]
mov dword [ebp + 8], ecx
cmp ebx, 0x7fffffff
ja 0x4234ee
test ebx, ebx
je 0x4234ce
and eax, 6
cmp al, 6
je 0x4234cb
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [esi + 0x40]
push eax
call fcn.004054b0
push ebx
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.00436db0
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + edi]
mov dword [esi + 0x38], ecx
add esp, 0x14
mov ecx, eax
and ecx, 4
mov dword [ebp + 8], ecx
jne 0x42348b
mov eax, dword [esi + 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
test al, 2
jne 0x4234c6
mov edx, dword [esi + 0x38]
test al, 0x18
mov eax, dword [esi + 0x10]
mov ecx, edi
cmovne ecx, edx
sub edx, ecx
cmp dword [ebp + 8], 0
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
je 0x4234c3
mov eax, dword [esi + 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
or eax, 1
jmp 0x4234d5
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004324d1
int3
Function at 0x4332a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4332cf
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4332d2
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00433284
pop esi
leave
ret 8

Function at 0x4360c6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x436105
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x436105
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x436105
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x436105
cmp dword [ecx + 0x74], 0xe
jbe 0x436105
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44b4c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c558c
push 0x4c5584
push str.FlsAlloc
push 0x1f
call fcn.0044b2f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b4fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c0354]
call esi
jmp 0x44b501
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44b545
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c559c
push 0x4c5594
push str.FlsGetValue
push 0x21
call fcn.0044b2f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b57c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4c0354]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44b584
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c55a4
push 0x4c559c
push str.FlsSetValue
push 0x22
call fcn.0044b2f2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b5be
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4c0354]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44e864
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00436380
mov eax, dword [0x4e3180]
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.0044bce1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44e8a6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44ea02
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004355d0
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 + 0x4e5610]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0044f695
mov ecx, dword [esi*4 + 0x4e5610]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x44e9fb
cmp eax, dword [ecx + edi + 0x24]
jne 0x44e9fb
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e9fb
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044f695
add esp, 0x14
test edx, edx
jl 0x44e9fb
jg 0x44e971
test eax, eax
jb 0x44e9fb
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44e9fb
jl 0x44e98b
cmp dword [ebp - 0x1008], eax
ja 0x44e9fb
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44e9a9
test ebx, ebx
je 0x44e9e2
cmp ecx, edi
jae 0x44e9e2
mov al, byte [ecx]
cmp al, 0xd
jne 0x44e9c3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44e9cf
cmp byte [ecx + 1], 0xa
jne 0x44e9cf
inc ecx
jmp 0x44e9cf
movzx eax, al
movsx eax, byte [eax + 0x4e3448]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44e9a9
cmp edx, ebx
jne 0x44e9a9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44ea00
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00434db6
leave
ret
Function at 0x44eb2d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4e5610]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44eb6d
cmp byte [ebx], 0xa
jne 0x44eb6d
or byte [edi + eax + 0x28], 4
jmp 0x44eb72
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x44ec71
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44ec54
inc eax
cmp dl, 0xd
je 0x44eb9e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44ebc4
cmp eax, ecx
jae 0x44ebd2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x44eb86
jmp 0x44ec71
push 0
lea eax, [ebp - 0x10]
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 0x44ec4f
cmp dword [ebp - 0x10], 0
je 0x44ec4f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e5610]
test byte [eax + edi + 0x28], 0x48
je 0x44ec29
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44ec14
mov byte [esi], dl
jmp 0x44ec25
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e5610]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44ec71
cmp byte [ebp - 1], 0xa
jne 0x44ec38
cmp esi, ebx
jne 0x44ec38
mov byte [esi], 0xa
jmp 0x44ec70
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044f6b3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44ec71
mov byte [esi], 0xd
jmp 0x44ec70
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e5610]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44ec6e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44ec71
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44ec7a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4e5610]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44ecc0
cmp word [ebx], dx
jne 0x44ecc0
or byte [eax + edi + 0x28], 4
jmp 0x44ecc5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44ee28
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44ee08
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44ed06
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44ed3c
cmp eax, edx
jae 0x44ed4a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44ece1
jmp 0x44ee28
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44ee03
cmp dword [ebp - 0x18], 0
je 0x44ee03
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4e5610]
test byte [eax + edi + 0x28], 0x48
je 0x44edd9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x44ed9d
mov word [esi], cx
jmp 0x44edd4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4e5610]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4e5610]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4e5610]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44ee28
pop eax
cmp word [ebp - 4], ax
jne 0x44ede9
cmp esi, ebx
jne 0x44ede9
mov word [esi], ax
jmp 0x44ee25
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044f6b3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44ee28
push 0xd
pop eax
jmp 0x44ede4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4e5610]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44ee22
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44ee28
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x453249
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 0x4532e6
push ebx
push esi
call fcn.00453212
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.0044fda7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x453293
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4532e5
push edi
push eax
call fcn.0044d3ff
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4532b3
call fcn.0044a9ea
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4532e4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044fda7
add esp, 0x20
test eax, eax
jne 0x4532d2
push edi
call fcn.0044a9ea
jmp 0x4532da
push ebx
call fcn.0044a9ea
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 0x4532e9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4532fa
pop esi
ret
push ebx
push edi
push esi
call fcn.00453212
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044d3ff
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x453322
push ebx
push esi
push edi
call fcn.00436db0
add esp, 0xc
push 0
call fcn.0044a9ea
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x453a7c
Capabilities:
Set environment variable

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

Function at 0x4560e9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0044ad62
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x456158
cmp esi, dword [ebp - 4]
je 0x456153
cmp dword [ebp + 0xc], 0
je 0x456153
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x456130
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00455c3b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45615a
xor eax, eax
inc eax
jmp 0x45615a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4561bf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e3180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0044ad62
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0044ad62
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x456236
cmp word [ecx], dx
je 0x456236
mov eax, dword [0x4c604c]
push edi
dec eax
push eax
push 0x4c5f38
call fcn.0045615e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4562a9
cmp word [eax], dx
je 0x4562a9
mov eax, dword [edi]
test eax, eax
je 0x45625a
cmp word [eax], dx
je 0x45625a
lea eax, [ebp - 0x10]
push eax
call fcn.00455b41
jmp 0x456263
lea eax, [ebp - 0x10]
push eax
call fcn.00455bdc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4562d3
mov eax, dword [0x4c5f34]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4c5c28
call fcn.0045615e
add esp, 0xc
test al, al
je 0x4562d3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45629e
cmp word [eax], di
je 0x45629e
lea eax, [ebp - 0x10]
push eax
call fcn.00455b41
pop ecx
jmp 0x4562d5
lea eax, [ebp - 0x10]
push eax
call fcn.00455bdc
jmp 0x45629b
mov eax, dword [edi]
test eax, eax
je 0x4562c0
cmp word [eax], dx
je 0x4562c0
lea eax, [ebp - 0x10]
push eax
call fcn.00455af6
pop ecx
jmp 0x4562d3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x45639e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00455fe3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45639e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45639e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45639e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45632b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044b760
test ebx, ebx
je 0x456399
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044b760
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45639e
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45639e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045a5e9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4563a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434db6
leave
ret
Function at 0x45ac0f
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0045ab8b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45ad7e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45ad7e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x45ad33
jg 0x45ac6b
test eax, eax
je 0x45ad29
push 1
push 0x1000
call fcn.0044a98d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x45ac8e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x45ad20
push 0x8000
push ebx
call fcn.004487d8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x45acb7
jg 0x45acb2
cmp ecx, 0x1000
jb 0x45acb7
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0044cc46
add esp, 0x10
cmp eax, 0xffffffff
je 0x45acfc
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 0x45acb2
jl 0x45ace3
test ecx, ecx
jne 0x45aca4
push dword [ebp - 0xc]
push ebx
call fcn.004487d8
push esi
call fcn.0044a9ea
add esp, 0xc
xor ebx, ebx
jmp 0x45ad8c
cmp byte [edi + 0x24], 0
je 0x45ad13
cmp dword [edi + 0x20], 5
jne 0x45ad13
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x45ad1e
mov ebx, dword [edi + 0x18]
jmp 0x45ad20
xor ebx, ebx
push esi
call fcn.0044a9ea
pop ecx
jmp 0x45ad8c
test ecx, ecx
jg 0x45acf5
jl 0x45ad33
test eax, eax
jae 0x45acf5
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044f6b3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45ad53
cmp byte [edi + 0x1c], 0
je 0x45acf5
jmp 0x45ad84
push ebx
call fcn.004540ba
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45acf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x45ad8c
cmp byte [edi + 0x1c], 0
je 0x45ad89
mov ebx, dword [edi + 0x18]
jmp 0x45ad8c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044f6b3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x464d10
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x464dbb
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.00466e20
mov ecx, eax
add esp, 0xc
cmp ecx, 4
jne 0x464d78
cmp byte [0x4e5b10], 0
jne 0x464d82
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
test ecx, ecx
jne 0x464dbb
mov eax, dword [esp + 0x1c]
jmp 0x464d9f
imul eax, dword [0x4e5b0c], 0x41c64e6d
add eax, 0x3039
mov dword [0x4e5b0c], eax
ror eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x464db3
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x464da3
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x464d30
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x464dd0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x464e68
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00466e20
add esp, 0xc
cmp eax, 4
jne 0x464e2c
cmp byte [0x4e5b10], 0
jne 0x464e36
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x464e6d
mov eax, dword [esp + 0x1c]
jmp 0x464e51
imul eax, dword [0x4e5b0c], 0x41c64e6d
add eax, 0x3039
mov dword [0x4e5b0c], eax
ror eax, 0x10
mov dword [esp + 0x1c], eax
cmp eax, 0xfffffffc
jae 0x464df0
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x464df0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x464e80
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.00437330
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret