joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f3f
Capabilities:
Create directory
Set file attributes

Disassembly:
mov eax, 0x40fde0
call fcn.0040ef70
sub esp, 0x15c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
xor esi, esi
push 1
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4162ec
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
call fcn.0040ebd0
test bl, bl
je 0x407fb6
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040ebd0
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CStringArray::CStringArray
push 0x416cc8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x168]
push eax
mov byte [ebp - 4], 3
push dword [ebp + 8]
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x407ffc
cmp dword [ebp - 0x168], 0x10
jne 0x407ffc
mov bl, 1
jmp 0x4080ec
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CStringArray::SetSize
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jle 0x408066
mov al, byte [esi + eax]
cmp al, 0x5c
je 0x408027
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_2
jmp 0x408043
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x4162ec
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
dec ecx
cmp esi, ecx
jne 0x408060
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [ebp + 8]
inc esi
cmp esi, dword [eax - 8]
jl 0x408010
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop esi
cmp dword [ebp - 0x20], esi
jle 0x4080be
lea eax, [ebp - 0x14]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00408128
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040ebd0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4080b8
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc esi
cmp esi, dword [ebp - 0x20]
jl 0x408075
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CStringArray::SetSize
lea eax, [ebp - 0x168]
push eax
push dword [ebp + 8]
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4080ea
cmp dword [ebp - 0x168], 0x10
je 0x407ff5
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040ebd0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040ebf4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040ebd0
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x408149
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x409d79
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
mov esi, dword [ebp + 0xc]
shr esi, 3
shl esi, 3
cmp dword [ebp + 0x10], 0
jne 0x409dc5
xor cl, cl
lea eax, [ebp - 0x18c]
mov dl, cl
mov bl, cl
shr dl, 4
shl bl, 4
or dl, bl
xor dl, cl
inc cl
mov byte [eax], dl
inc eax
cmp cl, 0xff
jb 0x409d9b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18c]
push 0xff
push eax
jmp 0x409dcf
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004096ee
add esp, 0xc
mov ebx, 0x416710
lea eax, [ebp - 0x8c]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00409e5d
lea eax, [ebp - 0x20]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
test esi, esi
jle 0x409e59
add esi, 7
push edi
mov edi, dword [ebp + 8]
shr esi, 3
push 8
lea eax, [ebp - 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
xor byte [ebp + eax - 8], cl
inc eax
cmp eax, 8
jl 0x409e1e
push 0x416810
lea eax, [ebp - 0x8c]
push ebx
push eax
lea eax, [ebp - 8]
push edi
push eax
call fcn.00409f45
push 8
lea eax, [ebp - 0x10]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x20
add edi, 8
dec esi
jne 0x409e0d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409e5d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ebp - 0x78]
push 9
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
pop ecx
movsd dword es:[edi], dword [esi]
sub eax, 0xc
lea edx, [ecx + 1]
test dl, 7
jne 0x409e87
mov cx, word [eax + 0xe]
jmp 0x409e90
test cl, 7
jne 0x409e9d
mov cx, word [eax - 2]
mov si, word [eax]
shl cx, 9
shr si, 7
jmp 0x409ead
mov cx, word [eax + 0x10]
mov si, word [eax + 0xe]
shr cx, 7
shl si, 9
xor ecx, esi
mov word [eax + 0x1c], cx
mov ecx, edx
inc eax
lea edx, [ecx - 1]
inc eax
cmp edx, 0x36
jb 0x409e79
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], 0xa
lea edx, [ebp - 0x78]
mov ecx, 0xff
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 8]
add esi, 0xc
mov dword [ebp + 0x10], edi
mov dword [ebp - 0xc], 6
mov ebx, dword [ebp + 0xc]
mov edi, esi
and edi, ecx
and ebx, ecx
add dword [ebp + 0xc], 7
add esi, 0xb
movzx edi, byte [edi + eax]
movzx ebx, byte [ebx + eax]
movzx di, byte [edi + eax]
movzx bx, byte [ebx + eax]
shl edi, 8
add edi, ebx
mov ebx, dword [ebp + 0x10]
add di, word [edx]
add dword [ebp + 0x10], 0x12
inc edx
inc edx
dec dword [ebp - 0xc]
mov word [ebx], di
jne 0x409ef4
add dword [ebp + 8], 3
inc dword [ebp - 4]
add dword [ebp - 8], 2
cmp dword [ebp + 8], 0x22
jbe 0x409edb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a286
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push edi
mov edi, dword [ebp + 0xc]
shr edi, 3
shl edi, 3
cmp dword [ebp + 0x10], 0
jne 0x40a2d2
xor cl, cl
lea eax, [ebp - 0x18c]
mov dl, cl
mov bl, cl
shr dl, 4
shl bl, 4
or dl, bl
xor dl, cl
inc cl
mov byte [eax], dl
inc eax
cmp cl, 0xff
jb 0x40a2a8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18c]
push 0xff
push eax
jmp 0x40a2dc
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004096ee
add esp, 0xc
mov ebx, 0x416710
lea eax, [ebp - 0x8c]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00409e5d
lea eax, [ebp - 0x20]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
test edi, edi
jle 0x40a368
add edi, 7
push esi
mov esi, dword [ebp + 8]
shr edi, 3
push 8
lea eax, [ebp - 8]
push esi
push eax
call sub.MSVCRT.dll_memcpy
push 0x416810
lea eax, [ebp - 0x8c]
push ebx
push eax
lea eax, [ebp - 8]
push esi
push eax
call fcn.0040a36c
add esp, 0x20
xor eax, eax
mov cl, byte [ebp + eax - 0x10]
xor byte [esi + eax], cl
inc eax
cmp eax, 8
jl 0x40a342
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add esi, 8
dec edi
jne 0x40a31a
pop esi
pop edi
pop ebx
leave
ret
Function at 0x40b021
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ebx, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
sub ebx, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x40b0a9
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x40b06c
mov eax, dword [esi + 0x38]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x40b08e
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x40b104
mov ecx, dword [esi + 0x6c]
push ebx
add ecx, dword [esi + 0x64]
add ecx, dword [esi + 0x30]
push ecx
push eax
call fcn.0040b109
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x40b0f0
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x40b104
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x40b02d
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10116ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push 4
dec eax
dec eax
pop esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov ecx, 0x80000001
mov edx, 0x1003938
je 0x10116f0
dec eax
je 0x10116e9
sub eax, 3
jne 0x10116fa
mov edx, 0x10038c8
jmp 0x10116f5
mov edx, 0x1003850
jmp 0x10116f5
mov edx, 0x10037e8
mov ecx, 0x80000002
lea eax, [ebp - 4]
push eax
push 1
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1011711
jg 0x1011733
jmp 0x101173d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x1011741
jle 0x101173d
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x1011749
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
cmp dword [ebp - 4], edi
je 0x1011757
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x420260
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x3c], 0x10b2d
mov dword [ebp - 0x54], 0x87c2
mov dword [ebp - 0x58], 0x1739f
mov dword [ebp - 0x5c], 0x4cf9
mov dword [ebp - 0x4c], 0x229
mov dword [ebp - 0x60], 0xa977
mov dword [ebp - 0x20], 0x16a26
mov dword [ebp - 0x18], 0x1484b
mov dword [ebp - 0x64], 0x75e
mov dword [ebp - 0x68], 0x11404
mov dword [ebp - 0x44], 0xc871
mov dword [ebp - 0x48], 0x171b2
mov dword [ebp - 0x30], 0x5382
mov dword [ebp - 0x50], 0x10bf6
mov dword [ebp - 4], 0x109ea
mov dword [ebp - 0x40], 0x7dc0
mov dword [ebp - 0x6c], 0x7547
mov dword [ebp - 0x70], 0xe726
mov dword [ebp - 0x28], 0x1041e
mov dword [ebp - 0x34], 0x6425
mov dword [ebp - 0x74], 0xe88e
mov dword [ebp - 8], 0xfd60
mov dword [ebp - 0x38], 0x960b
call fcn.0040eef0
mov eax, dword [0x47f01c]
add eax, 0xf8e
push eax
mov ecx, dword [0x47f030]
add ecx, 0x1a3d
push ecx
mov edx, dword [ebp - 4]
add edx, 0x2ea7
push edx
mov eax, dword [ebp - 8]
sub eax, 0xc2f
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x315d
push ecx
mov edx, dword [0x47f004]
sub edx, 0xfdeb
push edx
mov eax, dword [0x47f030]
sub eax, 0x29c3
push eax
mov ecx, dword [0x47f008]
add ecx, 0x2947
push ecx
mov edx, dword [ebp - 0x40]
sub edx, 0x4438
push edx
call fcn.0040ff40
add esp, 0x24
mov dword [ebp - 0xc], 0
jmp 0x42038a
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0x960a
cmp dword [ebp - 0xc], ecx
jge 0x4203de
mov edx, dword [0x47f01c]
cmp edx, dword [ebp - 0x44]
jge 0x4203ac
mov dword [ebp - 0x2c], 1
jmp 0x4203b3
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x2c]
je 0x4203dc
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x4c]
jne 0x4203dc
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x30]
jne 0x4203dc
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x50]
jne 0x4203dc
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x34], ecx
jmp 0x420381
mov dword [ebp - 0x10], 0
jmp 0x4203f0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
sub eax, 0xfd5f
cmp dword [ebp - 0x10], eax
jge 0x420408
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4203e7
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42be1f
Capabilities:
Parse pe header

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

Function at 0x4384d4
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045802d
Function at 0x458c54
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47f1c0]
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 0x458c9f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004590f4
test al, al
jne 0x458c99
sub edx, 2
cmp edx, edi
jne 0x458c7f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x458cc1
lea eax, [edi + 2]
cmp edx, eax
je 0x458cc1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0045891b
add esp, 0x10
jmp 0x458dbb
push esi
lea ecx, [ebp - 0x255]
call fcn.004590f4
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 0x458d04
push dword [ebp - 0x25c]
jmp 0x458cb1
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 0x458d41
cmp word [ebp - 0x226], 0
je 0x458d62
cmp word [ebp - 0x226], ax
jne 0x458d41
cmp word [ebp - 0x224], 0
je 0x458d62
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0045891b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x458dae
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x458d1b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x458d96
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x458dbb
push 0x45836b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00463ed0
add esp, 0x10
jmp 0x458d8b
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.0042c399
leave
ret
Function at 0x45a63b
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 0x45a6d8
push ebx
push esi
call fcn.0045a5f7
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.0045a534
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x45a685
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45a6d7
push edi
push eax
call fcn.0045ce3e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x45a6a5
call fcn.00458319
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x45a6d6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0045a534
add esp, 0x20
test eax, eax
jne 0x45a6c4
push edi
call fcn.00458319
jmp 0x45a6cc
push ebx
call fcn.00458319
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 0x45a6db
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45a6ec
pop esi
ret
push ebx
push edi
push esi
call fcn.0045a5f7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0045ce3e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45a714
push ebx
push esi
push edi
call fcn.00434f40
add esp, 0xc
push 0
call fcn.00458319
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x45b003
Capabilities:
Set environment variable

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

Function at 0x45f156
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00457673
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 0x45f1c5
cmp esi, dword [ebp - 4]
je 0x45f1c0
cmp dword [ebp + 0xc], 0
je 0x45f1c0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x45f19d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0045eca8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45f1c7
xor eax, eax
inc eax
jmp 0x45f1c7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45f22c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47f1c0]
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.00457673
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.00457673
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 0x45f2a3
cmp word [ecx], dx
je 0x45f2a3
mov eax, dword [0x477b2c]
push edi
dec eax
push eax
push 0x477a18
call fcn.0045f1cb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45f316
cmp word [eax], dx
je 0x45f316
mov eax, dword [edi]
test eax, eax
je 0x45f2c7
cmp word [eax], dx
je 0x45f2c7
lea eax, [ebp - 0x10]
push eax
call fcn.0045ebae
jmp 0x45f2d0
lea eax, [ebp - 0x10]
push eax
call fcn.0045ec49
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x45f340
mov eax, dword [0x477a14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x477708
call fcn.0045f1cb
add esp, 0xc
test al, al
je 0x45f340
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x45f30b
cmp word [eax], di
je 0x45f30b
lea eax, [ebp - 0x10]
push eax
call fcn.0045ebae
pop ecx
jmp 0x45f342
lea eax, [ebp - 0x10]
push eax
call fcn.0045ec49
jmp 0x45f308
mov eax, dword [edi]
test eax, eax
je 0x45f32d
cmp word [eax], dx
je 0x45f32d
lea eax, [ebp - 0x10]
push eax
call fcn.0045eb45
pop ecx
jmp 0x45f340
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 0x45f40b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0045f050
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x45f40b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x45f40b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x45f40b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45f398
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00460119
test ebx, ebx
je 0x45f406
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00460119
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45f40b
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 0x45f40b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00465393
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45f40d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c399
leave
ret
Function at 0x45fd8b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x478d54
push 0x478d4c
push str.FlsAlloc
push 0x1f
call fcn.0045fa59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45fdbf
push dword [ebp + 8]
mov ecx, esi
call dword [0x47514c]
call esi
jmp 0x45fdc5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45fe09
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x478d64
push 0x478d5c
push str.FlsGetValue
push 0x21
call fcn.0045fa59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45fe40
push dword [ebp + 8]
mov ecx, esi
call dword [0x47514c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x45fe48
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x478d6c
push 0x478d64
push str.FlsSetValue
push 0x22
call fcn.0045fa59
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45fe82
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x47514c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]