joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b0180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x66000]
push edi
or ebp, 0xffffffff
jmp 0x5b01a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5b01a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b0198
mov eax, 1
add ebx, ebx
jne 0x5b01bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5b01cc
jne 0x5b01eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b01eb
dec eax
add ebx, ebx
jne 0x5b01d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5b01b0
add ebx, ebx
jne 0x5b01e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5b023d
xor ecx, ecx
sub eax, 3
jb 0x5b0203
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5b0272
sar eax, 1
mov ebp, eax
jmp 0x5b020e
add ebx, ebx
jne 0x5b020e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b01dc
inc ecx
add ebx, ebx
jne 0x5b021c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5b01dc
add ebx, ebx
jne 0x5b0229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5b021e
jne 0x5b023a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5b021e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5b025c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5b024e
jmp 0x5b019e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5b025c
add edi, ecx
jmp 0x5b019e
pop esi
mov edi, esi
mov ecx, 0x403
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5b027a
cmp byte [edi], 1
jne 0x5b027a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5b027f
lea edi, [esi + 0x1a8000]
mov eax, dword [edi]
or eax, eax
je 0x5b02f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b2350]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1b242c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5b02ac
mov ecx, edi
jns 0x5b02db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1b2430]
or eax, eax
je 0x5b02f1
mov dword [ebx], eax
add ebx, 4
jmp 0x5b02c9
call dword [esi + 0x1b2440]
mov ebp, dword [esi + 0x1b2434]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5b032b
sub esp, 0xffffff80
jmp 0x40ad90
Function at 0x40c261
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x452040]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0040af28
push 0x447cdc
lea ecx, [esp + 0x1c]
call fcn.0040ae9c
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40c2df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40c307
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcd
call fcn.0040bfa0
mov edi, eax
jmp 0x40c306
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040c136
mov ebx, eax
test ebx, ebx
jns 0x40c30d
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xd3
call fcn.0040bf5b
pop ecx
mov edi, ebx
pop ecx
test esi, esi
je 0x40c321
jmp 0x40c31b
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.0040c051
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418181
mov esp, ebp
pop ebp
ret
Function at 0x40d06f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d1ac
Function at 0x40e05a
Capabilities:
Read file on windows

Disassembly:
push 0x5c
mov eax, 0x43c681
call fcn.0041891e
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x2c]
xor eax, eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x68]
call fcn.0040db3a
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0040dd55
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401da8
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
push 0x447eb8
cmova eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00425b75
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jne 0x40e129
xor eax, eax
lea ecx, [ebp - 0x44]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
call fcn.00401da8
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x40e1af
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x40e1a6
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401ec9
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
jmp 0x40e1a6
mov ecx, ebx
call fcn.0040e004
mov edi, eax
test edi, edi
je 0x40e15c
xor eax, eax
lea ecx, [ebp - 0x2c]
push eax
push edi
call fcn.0040ea0a
push dword [ebp - 0x4c]
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
push 1
cmova ecx, dword [ebp - 0x2c]
push edi
push ecx
call fcn.00425d95
add esp, 0x10
push dword [ebp - 0x4c]
call fcn.00425f74
pop ecx
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00401d13
lea ecx, [ebp - 0x44]
call fcn.00401da8
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x40e1af
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x40e1a6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401ec9
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.004181e2
pop ecx
pop ecx
mov eax, esi
call fcn.004188cd
ret
Function at 0x410e2e
Capabilities:
Read file via mapping

Disassembly:
push 0x64
mov eax, 0x43cc80
call fcn.0041891e
mov eax, dword [ebp + 0xc]
lea edi, [ecx + 0x84]
mov ebx, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 0x2c], edi
call fcn.004079d9
mov esi, dword [ebp - 0x38]
cmp byte [esi + 0xd], 0
jne 0x410e7b
lea eax, [esi + 0x10]
push eax
push ebx
call fcn.00403533
test al, al
jne 0x410e7b
cmp esi, dword [edi]
je 0x410e7b
mov eax, dword [esi + 0x30]
jmp 0x410f2f
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.0040db3a
xor esi, esi
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [ebp - 4], esi
call fcn.0040dd55
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00401da8
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push esi
cmova eax, dword [ebp - 0x28]
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x410f25
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x410f25
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x410f23
push ebx
lea ecx, [ebp - 0x70]
call fcn.00401e92
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], esi
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
call fcn.00415b01
lea ecx, [ebp - 0x70]
call fcn.00401f37
jmp 0x410f25
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00401da8
mov eax, esi
call fcn.004188cd
ret 8

Function at 0x419020
Capabilities:
Parse pe header

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

Function at 0x4259fc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x440be0
push esi
call fcn.0042c432
pop ecx
pop ecx
test eax, eax
jne 0x425a2a
xor al, al
jmp 0x425aa7
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.0042573d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x425a64
push dword [ebp - 0x210]
call fcn.0042637e
xor al, al
jmp 0x425aa5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x425a6a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x425a8a
push edx
call fcn.00425933
pop ecx
test al, al
je 0x425a55
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x425a98
mov bl, 1
push dword [ebp - 0x210]
call fcn.0042637e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00418181
leave
ret
Function at 0x42bcc7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4422bc
push 0x4422b4
push str.FlsAlloc
push 0x1f
call fcn.0042baf2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bcfb
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
jmp 0x42bd01
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42bd45
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4422cc
push 0x4422c4
push str.FlsGetValue
push 0x21
call fcn.0042baf2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bd7c
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42bd84
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4422d4
push 0x4422cc
push str.FlsSetValue
push 0x22
call fcn.0042baf2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bdbe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e29c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d2c0
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 + 0x458000]
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 0x42d300
cmp byte [ebx], 0xa
jne 0x42d300
or byte [edi + eax + 0x28], 4
jmp 0x42d305
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 0x42d404
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42d3e7
inc eax
cmp dl, 0xd
je 0x42d331
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42d357
cmp eax, ecx
jae 0x42d365
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 0x42d319
jmp 0x42d404
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 0x42d3e2
cmp dword [ebp - 0x10], 0
je 0x42d3e2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x458000]
test byte [eax + edi + 0x28], 0x48
je 0x42d3bc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42d3a7
mov byte [esi], dl
jmp 0x42d3b8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x458000]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42d404
cmp byte [ebp - 1], 0xa
jne 0x42d3cb
cmp esi, ebx
jne 0x42d3cb
mov byte [esi], 0xa
jmp 0x42d403
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00437668
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42d404
mov byte [esi], 0xd
jmp 0x42d403
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x458000]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42d401
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42d404
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d40d
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 + 0x458000]
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 0x42d453
cmp word [ebx], dx
jne 0x42d453
or byte [eax + edi + 0x28], 4
jmp 0x42d458
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 0x42d5bb
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 0x42d59b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42d499
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42d4cf
cmp eax, edx
jae 0x42d4dd
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 0x42d474
jmp 0x42d5bb
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 0x42d596
cmp dword [ebp - 0x18], 0
je 0x42d596
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x458000]
test byte [eax + edi + 0x28], 0x48
je 0x42d56c
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 0x42d530
mov word [esi], cx
jmp 0x42d567
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x458000]
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 + 0x458000]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x458000]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42d5bb
pop eax
cmp word [ebp - 4], ax
jne 0x42d57c
cmp esi, ebx
jne 0x42d57c
mov word [esi], ax
jmp 0x42d5b8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00437668
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42d5bb
push 0xd
pop eax
jmp 0x42d577
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x458000]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42d5b5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42d5bb
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 0x431883
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 0x431920
push ebx
push esi
call fcn.0043184c
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.0042fdf2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4318cd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43191f
push edi
push eax
call fcn.0042a445
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4318ed
call fcn.0042a40b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43191e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042fdf2
add esp, 0x20
test eax, eax
jne 0x43190c
push edi
call fcn.0042a40b
jmp 0x431914
push ebx
call fcn.0042a40b
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 0x431923
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x431934
pop esi
ret
push ebx
push edi
push esi
call fcn.0043184c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042a445
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43195c
push ebx
push esi
push edi
call fcn.004198f0
add esp, 0xc
push 0
call fcn.0042a40b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x431d2c
Capabilities:
Set environment variable

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

Function at 0x433f17
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042a120
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 0x433f86
cmp esi, dword [ebp - 4]
je 0x433f81
cmp dword [ebp + 0xc], 0
je 0x433f81
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x433f5e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00433a69
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x433f88
xor eax, eax
inc eax
jmp 0x433f88
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x433fed
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x452040]
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.0042a120
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.0042a120
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 0x434064
cmp word [ecx], dx
je 0x434064
mov eax, dword [0x442954]
push edi
dec eax
push eax
push 0x442840
call fcn.00433f8c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4340d7
cmp word [eax], dx
je 0x4340d7
mov eax, dword [edi]
test eax, eax
je 0x434088
cmp word [eax], dx
je 0x434088
lea eax, [ebp - 0x10]
push eax
call fcn.0043396f
jmp 0x434091
lea eax, [ebp - 0x10]
push eax
call fcn.00433a0a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x434101
mov eax, dword [0x44283c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x442530
call fcn.00433f8c
add esp, 0xc
test al, al
je 0x434101
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4340cc
cmp word [eax], di
je 0x4340cc
lea eax, [ebp - 0x10]
push eax
call fcn.0043396f
pop ecx
jmp 0x434103
lea eax, [ebp - 0x10]
push eax
call fcn.00433a0a
jmp 0x4340c9
mov eax, dword [edi]
test eax, eax
je 0x4340ee
cmp word [eax], dx
je 0x4340ee
lea eax, [ebp - 0x10]
push eax
call fcn.00433924
pop ecx
jmp 0x434101
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 0x4341cc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00433e11
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4341cc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4341cc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4341cc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x434159
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042bec4
test ebx, ebx
je 0x4341c7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042bec4
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4341cc
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 0x4341cc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00438f31
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4341ce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418181
leave
ret
Function at 0x4369d4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x436a17
call fcn.0042433b
mov dword [eax], 0xf
call fcn.0042434e
mov dword [eax], 0xd
call fcn.0041cf8f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418181
leave
ret
test eax, eax
jne 0x436a1e
inc eax
jmp 0x436a0b
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 0x436a09
xor eax, eax
cmp ecx, 1
setne al
jmp 0x436a0b