joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
nop
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x47f20f
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004b9300
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x47f1df
sub eax, esi
jmp 0x47f1e1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x47f1d0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x47f200
sub eax, esi
jmp 0x47f202
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x47f1f1
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x47f343
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x47f23c
xor eax, eax
jmp 0x47f28f
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x47f259
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00483190
jmp 0x47f271
cmp eax, 2
jne 0x47f277
mov edx, dword [ebx]
test edx, edx
jne 0x47f268
xor eax, eax
jmp 0x47f274
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0047fd70
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.004b9300
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x47f2b7
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x47f2cb
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x47f190
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x47f343
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x47f313
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp - 8], ecx
push 0
push eax
call fcn.004b9880
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x47f343
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.004b9880
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47fd50
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x47fd5b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0047fd70
Function at 0x4a36b0
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 0x4d5b0d
Capabilities:
Read file on windows

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

Function at 0x4dae24
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004daae4
Function at 0x4034a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0xff
mov word [ebp - 4], ax
mov dword [ebp - 8], 0
cmp dword [0x474024], 0xffffffff
je 0x40351f
push 1
push 0x4784f0
mov ecx, dword [0x474024]
push ecx
call sub.vxlapi.dll__xlSetNotification_12
mov word [ebp - 4], ax
cmp dword [0x4784e8], 0
je 0x403500
lea edx, [ebp - 8]
push edx
push 0
push 0
push section..text
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4784f4], eax
jmp 0x40351f
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4010d0
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4784f4], eax
movzx eax, word [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00401730
mov dword [ebp - 4], eax
mov eax, dword [0x478730]
push eax
push str.check_ptr_stDiagExtdSess.pArrRes__0x___n
call fcn.00404a30
add esp, 8
call fcn.00403750
mov ecx, dword [ebp + 8]
push ecx
push str.__print_txID:__d_n
call fcn.00404a30
add esp, 8
mov edx, dword [ebp + 8]
mov dword [0x478508], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [0x478510], eax
mov dword [0x478514], ecx
mov dword [0x478500], 1
push 0
push 0
push 0
push 0x4012e0
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4784f8], eax
mov esp, ebp
pop ebp
ret
Function at 0x404b50
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x6a09e667
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax], 0xbb67ae85
mov edx, 4
shl edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0x3c6ef372
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp + 8]
mov dword [eax + edx], 0xa54ff53a
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x510e527f
mov eax, 4
imul ecx, eax, 5
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x9b05688c
mov eax, 4
imul ecx, eax, 6
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x1f83d9ab
mov eax, 4
imul ecx, eax, 7
mov edx, dword [ebp + 8]
mov dword [edx + ecx], 0x5be0cd19
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
pop ebp
ret

Function at 0x407217
Capabilities:
Parse pe header

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

Function at 0x415007
Capabilities:
Parse pe header

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

Function at 0x4406db
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x474058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x46b5e0
push esi
call fcn.0044ec97
pop ecx
pop ecx
test eax, eax
jne 0x440709
xor al, al
jmp 0x440786
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0044031d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x440743
push dword [ebp - 0x210]
call fcn.004447b2
xor al, al
jmp 0x440784
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x440749
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x440769
push edx
call fcn.00440612
pop ecx
test al, al
je 0x440734
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x440777
mov bl, 1
push dword [ebp - 0x210]
call fcn.004447b2
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040691b
leave
ret

Function at 0x4468b3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46ceb4
push 0x46ceac
push str.FlsAlloc
push 0x1f
call fcn.00446581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4468e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x4661e0]
call esi
jmp 0x4468ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x446931
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46cec4
push 0x46cebc
push str.FlsGetValue
push 0x21
call fcn.00446581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x446968
push dword [ebp + 8]
mov ecx, esi
call dword [0x4661e0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x446970
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46cecc
push 0x46cec4
push str.FlsSetValue
push 0x22
call fcn.00446581
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4469aa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4661e0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x448756
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 + 0x479990]
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 0x448796
cmp byte [ebx], 0xa
jne 0x448796
or byte [edi + eax + 0x28], 4
jmp 0x44879b
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 0x44889a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44887d
inc eax
cmp dl, 0xd
je 0x4487c7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4487ed
cmp eax, ecx
jae 0x4487fb
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 0x4487af
jmp 0x44889a
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 0x448878
cmp dword [ebp - 0x10], 0
je 0x448878
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x479990]
test byte [eax + edi + 0x28], 0x48
je 0x448852
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44883d
mov byte [esi], dl
jmp 0x44884e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x479990]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44889a
cmp byte [ebp - 1], 0xa
jne 0x448861
cmp esi, ebx
jne 0x448861
mov byte [esi], 0xa
jmp 0x448899
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00458d93
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44889a
mov byte [esi], 0xd
jmp 0x448899
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x479990]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x448897
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44889a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4488a3
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 + 0x479990]
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 0x4488e9
cmp word [ebx], dx
jne 0x4488e9
or byte [eax + edi + 0x28], 4
jmp 0x4488ee
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 0x448a51
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 0x448a31
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44892f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x448965
cmp eax, edx
jae 0x448973
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 0x44890a
jmp 0x448a51
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 0x448a2c
cmp dword [ebp - 0x18], 0
je 0x448a2c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x479990]
test byte [eax + edi + 0x28], 0x48
je 0x448a02
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 0x4489c6
mov word [esi], cx
jmp 0x4489fd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x479990]
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 + 0x479990]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x479990]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x448a51
pop eax
cmp word [ebp - 4], ax
jne 0x448a12
cmp esi, ebx
jne 0x448a12
mov word [esi], ax
jmp 0x448a4e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00458d93
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x448a51
push 0xd
pop eax
jmp 0x448a0d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x479990]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x448a4b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x448a51
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 0x44fda6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044fc7a
Function at 0x4505e3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x474058]
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 0x45062e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004509b5
test al, al
jne 0x450628
sub edx, 2
cmp edx, edi
jne 0x45060e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x450650
lea eax, [edi + 2]
cmp edx, eax
je 0x450650
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004502aa
add esp, 0x10
jmp 0x45074a
push esi
lea ecx, [ebp - 0x255]
call fcn.004509b5
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 0x450693
push dword [ebp - 0x25c]
jmp 0x450640
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 0x4506d0
cmp word [ebp - 0x226], 0
je 0x4506f1
cmp word [ebp - 0x226], ax
jne 0x4506d0
cmp word [ebp - 0x224], 0
je 0x4506f1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004502aa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45073d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4506aa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x450725
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45074a
push 0x44fdc9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0045e760
add esp, 0x10
jmp 0x45071a
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.0040691b
leave
ret
Function at 0x451b7d
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 0x451c1a
push ebx
push esi
call fcn.00451b39
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.00451a76
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x451bc7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x451c19
push edi
push eax
call fcn.00445809
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x451be7
call fcn.00445f0a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x451c18
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00451a76
add esp, 0x20
test eax, eax
jne 0x451c06
push edi
call fcn.00445f0a
jmp 0x451c0e
push ebx
call fcn.00445f0a
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 0x451c1d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x451c2e
pop esi
ret
push ebx
push edi
push esi
call fcn.00451b39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00445809
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x451c56
push ebx
push esi
push edi
call fcn.00407810
add esp, 0xc
push 0
call fcn.00445f0a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x452545
Capabilities:
Set environment variable

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

Function at 0x454e46
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00445512
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 0x454eb5
cmp esi, dword [ebp - 4]
je 0x454eb0
cmp dword [ebp + 0xc], 0
je 0x454eb0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x454e8d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00454998
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x454eb7
xor eax, eax
inc eax
jmp 0x454eb7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x454f1c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x474058]
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.00445512
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.00445512
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 0x454f93
cmp word [ecx], dx
je 0x454f93
mov eax, dword [0x46d40c]
push edi
dec eax
push eax
push 0x46d2f8
call fcn.00454ebb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x455006
cmp word [eax], dx
je 0x455006
mov eax, dword [edi]
test eax, eax
je 0x454fb7
cmp word [eax], dx
je 0x454fb7
lea eax, [ebp - 0x10]
push eax
call fcn.0045489e
jmp 0x454fc0
lea eax, [ebp - 0x10]
push eax
call fcn.00454939
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x455030
mov eax, dword [0x46d2f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x46cfe8
call fcn.00454ebb
add esp, 0xc
test al, al
je 0x455030
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x454ffb
cmp word [eax], di
je 0x454ffb
lea eax, [ebp - 0x10]
push eax
call fcn.0045489e
pop ecx
jmp 0x455032
lea eax, [ebp - 0x10]
push eax
call fcn.00454939
jmp 0x454ff8
mov eax, dword [edi]
test eax, eax
je 0x45501d
cmp word [eax], dx
je 0x45501d
lea eax, [ebp - 0x10]
push eax
call fcn.00454835
pop ecx
jmp 0x455030
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 0x4550fb
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00454d40
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4550fb
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4550fb
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4550fb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x455088
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00446c41
test ebx, ebx
je 0x4550f6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00446c41
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4550fb
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 0x4550fb
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045fb63
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4550fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040691b
leave
ret
Function at 0x45d825
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x474058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x45d868
call fcn.00414a6a
mov dword [eax], 0xf
call fcn.00414a7d
mov dword [eax], 0xd
call fcn.00444c83
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040691b
leave
ret
test eax, eax
jne 0x45d86f
inc eax
jmp 0x45d85c
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x45d85a
xor eax, eax
cmp ecx, 1
setne al
jmp 0x45d85c