joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408870
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408994
push ebp
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x408993
movzx eax, word [esi + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
push esi
push ebp
push eax
push 0
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x408993
mov eax, dword [esp + 0x20]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408992
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
push ebx
mov ebx, dword [esi + 0x14]
add eax, eax
add eax, eax
lea edx, [ecx + eax]
lea edx, [edx + ebx + 0xe]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x16], edx
xor edx, edx
push edx
lea eax, [ecx + eax + 0xe]
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x22], dx
mov word [esp + 0x24], dx
push 0xe
lea edx, [esp + 0x20]
push edx
push edi
mov word [esp + 0x28], 0x4d42
mov dword [esp + 0x32], eax
call ebx
test eax, eax
je 0x408991
cmp dword [esp + 0x10], 0xe
jne 0x408991
mov ecx, dword [esi + 0x20]
push 0
lea eax, [esp + 0x14]
push eax
lea edx, [ecx*4 + 0x28]
push edx
push esi
push edi
call ebx
test eax, eax
je 0x408991
mov eax, dword [esi + 0x20]
lea ecx, [eax*4 + 0x28]
cmp dword [esp + 0x10], ecx
jne 0x408991
mov esi, dword [esi + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push esi
push ebp
push edi
call ebx
test eax, eax
je 0x408991
cmp dword [esp + 0x10], esi
jne 0x408991
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x408991
mov eax, ebp
call fcn.00404c70
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x14
ret

Function at 0x4089a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push esi
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408a16
mov edx, dword [esp + 0x80c]
push edi
push 0
lea ecx, [esp + 0xc]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x408a16
cmp dword [esp + 4], ebx
jb 0x408a16
mov al, 1
pop esi
add esp, 0x804
ret
xor al, al
pop esi
add esp, 0x804
ret
Function at 0x408a20
Capabilities:
Create directory

Disassembly:
sub esp, 0x800
cmp byte [0x41a01e], 0
push ebx
mov ebx, eax
jne 0x408a96
mov eax, ecx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408a34
sub eax, ecx
sar eax, 1
sub eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x408a51
sub eax, 1
xor edx, edx
test eax, eax
jbe 0x408a65
cmp word [ecx + edx*2], 0x5c
je 0x408a96
add edx, 1
cmp edx, eax
jb 0x408a57
mov eax, dword [esp + 0x808]
push eax
push ecx
lea ecx, [esp + 0xc]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408aa1
lea ecx, [esp + 4]
push esi
mov eax, edi
call fcn.004089a0
add esp, 4
pop ebx
add esp, 0x800
ret

Function at 0x408ab0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x84c
push ebp
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x41c288]
push 0x1f
call fcn.00402950
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push ebx
lea ecx, [esp + 0x58]
push str._s_s
push ecx
mov dword [esp + 0x18], eax
call ebp
add esp, 0x10
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x408b38
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41c288]
push 7
call fcn.00402950
mov esi, eax
test esi, esi
je 0x408b38
push edi
push esi
push ebx
lea ecx, [esp + 0x5c]
push str._s_s_s
push ecx
call ebp
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408b9f
push 0x3c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00401100
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x14]
lea edx, [esp + 0x50]
push eax
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
add esp, 0x84c
ret
Function at 0x40c292
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.0040af51
push 0x447d6c
lea ecx, [esp + 0x1c]
call fcn.0040aec5
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x40c310
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40c338
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcd
call fcn.0040bfd0
mov edi, eax
jmp 0x40c337
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.0040c167
mov ebx, eax
test ebx, ebx
jns 0x40c33e
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xd3
call fcn.0040bf8a
pop ecx
mov edi, ebx
pop ecx
test esi, esi
je 0x40c352
jmp 0x40c34c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.0040c082
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004186ed
mov esp, ebp
pop ebp
ret
Function at 0x40d0a3
Capabilities:
Print debug messages

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

Disassembly:
push 0x5c
mov eax, 0x43cd43
call fcn.00418e8a
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.0040db72
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0040dd8d
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00401da8
cmp dword [ebp - 0x30], 7
lea eax, [ebp - 0x44]
push 0x447f50
cmova eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00426245
add esp, 0xc
cmp dword [ebp - 0x4c], 0
jne 0x40e161
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 0x40e1e7
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x40e1de
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 0x40e1de
mov ecx, ebx
call fcn.0040e03c
mov edi, eax
test edi, edi
je 0x40e194
xor eax, eax
lea ecx, [ebp - 0x2c]
push eax
push edi
call fcn.0040ea3e
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.00426465
add esp, 0x10
push dword [ebp - 0x4c]
call fcn.00426644
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 0x40e1e7
mov ecx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x40e1de
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.0041874e
pop ecx
pop ecx
mov eax, esi
call fcn.00418e39
ret
Function at 0x410dc7
Capabilities:
Read file via mapping

Disassembly:
push 0x64
mov eax, 0x43d335
call fcn.00418e8a
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.004079fa
mov esi, dword [ebp - 0x38]
cmp byte [esi + 0xd], 0
jne 0x410e14
lea eax, [esi + 0x10]
push eax
push ebx
call fcn.00403527
test al, al
jne 0x410e14
cmp esi, dword [edi]
je 0x410e14
mov eax, dword [esi + 0x30]
jmp 0x410ec8
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.0040db72
xor esi, esi
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [ebp - 4], esi
call fcn.0040dd8d
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 0x410ebe
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 0x410ebe
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x410ebc
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.00415fee
lea ecx, [ebp - 0x70]
call fcn.00401f37
jmp 0x410ebe
xor esi, esi
lea ecx, [ebp - 0x28]
call fcn.00401da8
mov eax, esi
call fcn.00418e39
ret 8

Function at 0x4196e0
Capabilities:
Parse pe header

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

Function at 0x4260cc
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 0x440c70
push esi
call fcn.0042cb04
pop ecx
pop ecx
test eax, eax
jne 0x4260fa
xor al, al
jmp 0x426177
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.00425e0d
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x426134
push dword [ebp - 0x210]
call fcn.00426a4e
xor al, al
jmp 0x426175
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42613a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x42615a
push edx
call fcn.00426003
pop ecx
test al, al
je 0x426125
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x426168
mov bl, 1
push dword [ebp - 0x210]
call fcn.00426a4e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004186ed
leave
ret
Function at 0x42c399
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44234c
push 0x442344
push str.FlsAlloc
push 0x1f
call fcn.0042c1c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c3cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e29c]
call esi
jmp 0x42c3d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42c417
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44235c
push 0x442354
push str.FlsGetValue
push 0x21
call fcn.0042c1c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c44e
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 0x42c456
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x442364
push 0x44235c
push str.FlsSetValue
push 0x22
call fcn.0042c1c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42c490
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 0x42d992
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 + 0x458388]
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 0x42d9d2
cmp byte [ebx], 0xa
jne 0x42d9d2
or byte [edi + eax + 0x28], 4
jmp 0x42d9d7
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 0x42dad6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42dab9
inc eax
cmp dl, 0xd
je 0x42da03
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42da29
cmp eax, ecx
jae 0x42da37
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 0x42d9eb
jmp 0x42dad6
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 0x42dab4
cmp dword [ebp - 0x10], 0
je 0x42dab4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x458388]
test byte [eax + edi + 0x28], 0x48
je 0x42da8e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42da79
mov byte [esi], dl
jmp 0x42da8a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x458388]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42dad6
cmp byte [ebp - 1], 0xa
jne 0x42da9d
cmp esi, ebx
jne 0x42da9d
mov byte [esi], 0xa
jmp 0x42dad5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00437d3a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42dad6
mov byte [esi], 0xd
jmp 0x42dad5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x458388]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42dad3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42dad6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42dadf
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 + 0x458388]
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 0x42db25
cmp word [ebx], dx
jne 0x42db25
or byte [eax + edi + 0x28], 4
jmp 0x42db2a
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 0x42dc8d
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 0x42dc6d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42db6b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42dba1
cmp eax, edx
jae 0x42dbaf
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 0x42db46
jmp 0x42dc8d
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 0x42dc68
cmp dword [ebp - 0x18], 0
je 0x42dc68
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x458388]
test byte [eax + edi + 0x28], 0x48
je 0x42dc3e
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 0x42dc02
mov word [esi], cx
jmp 0x42dc39
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x458388]
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 + 0x458388]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x458388]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42dc8d
pop eax
cmp word [ebp - 4], ax
jne 0x42dc4e
cmp esi, ebx
jne 0x42dc4e
mov word [esi], ax
jmp 0x42dc8a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00437d3a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42dc8d
push 0xd
pop eax
jmp 0x42dc49
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x458388]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42dc87
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42dc8d
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 0x431f55
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 0x431ff2
push ebx
push esi
call fcn.00431f1e
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.004304c4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431f9f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431ff1
push edi
push eax
call fcn.0042ab15
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431fbf
call fcn.0042aadb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x431ff0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004304c4
add esp, 0x20
test eax, eax
jne 0x431fde
push edi
call fcn.0042aadb
jmp 0x431fe6
push ebx
call fcn.0042aadb
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 0x431ff5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x432006
pop esi
ret
push ebx
push edi
push esi
call fcn.00431f1e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042ab15
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43202e
push ebx
push esi
push edi
call fcn.00419fb0
add esp, 0xc
push 0
call fcn.0042aadb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4323fe
Capabilities:
Set environment variable

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

Function at 0x4345e9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042a7f0
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 0x434658
cmp esi, dword [ebp - 4]
je 0x434653
cmp dword [ebp + 0xc], 0
je 0x434653
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x434630
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043413b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43465a
xor eax, eax
inc eax
jmp 0x43465a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4346bf
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.0042a7f0
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.0042a7f0
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 0x434736
cmp word [ecx], dx
je 0x434736
mov eax, dword [0x4429e4]
push edi
dec eax
push eax
push 0x4428d0
call fcn.0043465e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4347a9
cmp word [eax], dx
je 0x4347a9
mov eax, dword [edi]
test eax, eax
je 0x43475a
cmp word [eax], dx
je 0x43475a
lea eax, [ebp - 0x10]
push eax
call fcn.00434041
jmp 0x434763
lea eax, [ebp - 0x10]
push eax
call fcn.004340dc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4347d3
mov eax, dword [0x4428cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4425c0
call fcn.0043465e
add esp, 0xc
test al, al
je 0x4347d3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43479e
cmp word [eax], di
je 0x43479e
lea eax, [ebp - 0x10]
push eax
call fcn.00434041
pop ecx
jmp 0x4347d5
lea eax, [ebp - 0x10]
push eax
call fcn.004340dc
jmp 0x43479b
mov eax, dword [edi]
test eax, eax
je 0x4347c0
cmp word [eax], dx
je 0x4347c0
lea eax, [ebp - 0x10]
push eax
call fcn.00433ff6
pop ecx
jmp 0x4347d3
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 0x43489e
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004344e3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43489e
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43489e
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43489e
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43482b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042c596
test ebx, ebx
je 0x434899
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042c596
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43489e
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 0x43489e
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00439601
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4348a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004186ed
leave
ret