joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aec40
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4aed9f
sub esp, 0x5c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.00465377
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4aec7a
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
jmp 0x4aeca3
lea eax, [0x4ec960]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call fcn.0044cc90
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x200
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x38]
mov ebx, eax
xor eax, eax
call fcn.00465377
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x6c]
mov dword [esp], ecx
call fcn.004ad470
movzx ecx, word [esp + 4]
movzx edx, word [esp + 6]
mov word [esp + 0x46], cx
mov word [esp + 0x48], dx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + 0xc]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x38]
cmp ebx, edx
jae 0x4aed49
mov dword [esp + 0x24], ecx
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0xc
lea eax, [0x4ec960]
mov dword [esp + 0x10], eax
call fcn.0044cd30
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
lea eax, [ebp + ecx]
mov dword [esp], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call fcn.00465a70
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 1
lea edi, [esp + 0x7c]
lea esi, [esp + 0x38]
call fcn.00465836
add esp, 0x5c
ret
call fcn.00463e70
jmp fcn.004aec40
Function at 0x1002819
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x100b6dc], eax
mov ecx, 0x23f
xor eax, eax
mov edi, 0x100ade0
rep stosd dword es:[edi], eax
mov ecx, 0xcb
mov edi, 0x100aaa0
rep stosd dword es:[edi], eax
push 0x41
mov edi, 0x100b720
pop ecx
mov esi, 0x100adf4
rep stosd dword es:[edi], eax
push 1
xor ebx, ebx
pop edi
mov dword [ebp - 4], ebx
push 0x7f
push esi
push 0x10013a4
mov dword [0x100b08c], edi
call fcn.01003e0b
cmp eax, ebx
je 0x1002a38
cmp eax, 0x80
ja 0x1002a38
push ebx
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x100aa7c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x100b6d4
push 0x1001398
call fcn.01003e0b
test eax, eax
je 0x10028d6
test byte [0x100b6d4], 0xc0
je 0x1002966
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0x1001388
call fcn.01003e0b
test eax, eax
jne 0x10028f5
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003cb8
mov dword [0x100b704], 0x80070714
jmp 0x1002a48
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x100aa80], eax
je 0x1002966
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002966
test byte [0x100b6d4], 0x80
je 0x1002935
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.01003cb8
jmp 0x100294b
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.01003cb8
cmp eax, 6
je 0x1002966
push dword [0x100aa80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100b704], 0x800700b7
jmp 0x1002a48
push dword [ebp + 0xc]
mov dword [0x100b824], ebx
call fcn.010051f9
test eax, eax
jne 0x1002987
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1002a42
cmp byte [0x100aaba], bl
je 0x100299e
push 0x100aaba
call fcn.01001f8c
jmp 0x1002a48
push 0xa
push 0x100137c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x10029bf
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [0x100a2f8], ebx
je 0x10029cd
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100aaa4], ebx
jne 0x1002a34
push dword [ebp - 4]
call fcn.0100313c
test eax, eax
je 0x1002a48
mov ax, word [0x100bc04]
cmp ax, di
je 0x10029f2
cmp ax, 2
jne 0x1002a34
test byte [0x100b6d5], 1
je 0x1002a34
test byte [0x100aab8], 1
jne 0x1002a34
call fcn.01001600
test eax, eax
jne 0x1002a34
push 0x83e
push 0x547
push 0x100170a
push ebx
push 0x7d6
push dword [0x100b6dc]
call fcn.0100592b
cmp eax, 0x83d
jne 0x1002a48
mov eax, edi
jmp 0x1002a4a
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.01003cb8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1003446
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1003481
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1003468
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1003479
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1003483
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100345e
xor eax, eax
pop edi
pop esi
ret

Function at 0x1003a1a
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
ror dword [ebx + 0x408b1448], 0xc
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.01003377
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x1003943
call fcn.01003406
sub bh, bl
dec esi
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x1003bf5
invalid
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x10039ab
cmp dword [eax + 0xc], ebx
je 0x1003a4e
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.01003406
jns 0x1003953
pushal
lahf
cmp dword [ebp + 0xc], ebx
jne 0x10039da
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1003bf5
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x10039ee
mov dword [ebp + 0x10], edi
jmp 0x10039f3
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.01003406
cmp byte [eax + 5], al
jo 0x1003988
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x1003a3c
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x1003a17
and eax, 0xffff
push eax
jmp 0x1003a1b
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010033cb
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x1003bf5
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x10039fc
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x100399d
call fcn.01003406
inc esi
pop ebx
clc
mov eax, dword [bx + 0xa0]
add byte [eax], al
cmp eax, ebx
je 0x1003aba
add eax, esi
Function at 0x1003ab8
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1003aba
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1003ab5
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1003a9f
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1003aa7
cmp edx, ebx
jne 0x1003bf5
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1003a76
add eax, dword [eax + 4]
jmp 0x1003a63
mov dword [ebp + 0xc], ebx
jmp 0x1003ac5
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1003add
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1003afb
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1003b59
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1003b40
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1003b49
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1003b53
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1003b35
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1003abf
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1003ba6
dec eax
je 0x1003b9d
sub eax, 3
je 0x1003b94
mov dword [ebp - 4], 0x40
jmp 0x1003bc3
mov dword [ebp - 4], 4
jmp 0x1003ba9
mov dword [ebp - 4], 0x20
jmp 0x1003ba9
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1003bf5
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1003b75
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.01003406
jnp 0x1003c24
jecxz 0x1003ba9
push dword [ebp + 0x14]
push 1
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x1003c01
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
invalid

Function at 0x10056af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10056ec
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.01003cb8
call fcn.010056fe
mov dword [0x100b704], eax
xor eax, eax
leave
ret
push 2
lea eax, [ebp - 0x104]
push 2
push eax
call fcn.01004f82
leave
ret
Function at 0x10059fd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005a10
xor eax, eax
jmp 0x1005a18
not eax
shr eax, 4
and eax, 1
ret 4
Function at 0x40783f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x407845
call fcn.0044a560
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.0040d000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.0040d000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.0040d000
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov eax, str.runas
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 1
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.dll_ShellExecuteExW
jmp 0x4078c1
push dword [esp + 4]
call fcn.0044a5d0
push dword [esp]
call fcn.0044a5d0
push dword [esp + 8]
call fcn.0044a5d0
add esp, 0x48
pop ebp
ret 0xc

Function at 0x4111f7
Capabilities:
Parse pe header

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

Function at 0x413cbd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x4bcca0
push str.FlsAlloc
push 0x1f
call fcn.0041398f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413cf1
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x413cf7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x413d3b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4bccc4
push str.FlsGetValue
push 0x21
call fcn.0041398f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413d72
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x413d7a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x4bccd8
push str.FlsSetValue
push 0x22
call fcn.0041398f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x413db4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x416220
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x500a38]
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 0x41626b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041647c
test al, al
jne 0x416265
sub edx, 2
cmp edx, edi
jne 0x41624b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41628d
lea eax, [edi + 2]
cmp edx, eax
je 0x41628d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00415ee7
add esp, 0x10
jmp 0x416387
push esi
lea ecx, [ebp - 0x255]
call fcn.0041647c
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 0x4162d0
push dword [ebp - 0x25c]
jmp 0x41627d
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 0x41630d
cmp word [ebp - 0x226], 0
je 0x41632e
cmp word [ebp - 0x226], ax
jne 0x41630d
cmp word [ebp - 0x224], 0
je 0x41632e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00415ee7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41637a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4162e7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x416362
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x416387
push 0x415937
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041d920
add esp, 0x10
jmp 0x416357
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.0040dc8f
leave
ret

Function at 0x41908a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041256b
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 0x4190f9
cmp esi, dword [ebp - 4]
je 0x4190f4
cmp dword [ebp + 0xc], 0
je 0x4190f4
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4190d1
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00418bdc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4190fb
xor eax, eax
inc eax
jmp 0x4190fb
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x419160
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x500a38]
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.0041256b
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.0041256b
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 0x4191d7
cmp word [ecx], dx
je 0x4191d7
mov eax, dword [0x4bdfac]
push edi
dec eax
push eax
push 0x4bde98
call fcn.004190ff
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41924a
cmp word [eax], dx
je 0x41924a
mov eax, dword [edi]
test eax, eax
je 0x4191fb
cmp word [eax], dx
je 0x4191fb
lea eax, [ebp - 0x10]
push eax
call fcn.00418ae2
jmp 0x419204
lea eax, [ebp - 0x10]
push eax
call fcn.00418b7d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x419274
mov eax, dword [0x4bde94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4bdb88
call fcn.004190ff
add esp, 0xc
test al, al
je 0x419274
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41923f
cmp word [eax], di
je 0x41923f
lea eax, [ebp - 0x10]
push eax
call fcn.00418ae2
pop ecx
jmp 0x419276
lea eax, [ebp - 0x10]
push eax
call fcn.00418b7d
jmp 0x41923c
mov eax, dword [edi]
test eax, eax
je 0x419261
cmp word [eax], dx
je 0x419261
lea eax, [ebp - 0x10]
push eax
call fcn.00418a79
pop ecx
jmp 0x419274
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 0x41933f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00418f84
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41933f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41933f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41933f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4192cc
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00413eba
test ebx, ebx
je 0x41933a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00413eba
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41933f
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 0x41933f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041fc3a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x419341
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dc8f
leave
ret
Function at 0x419fcc
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 0x41a069
push ebx
push esi
call fcn.00419f88
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.0041a1fe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a016
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a068
push edi
push eax
call fcn.00412d7b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a036
call fcn.00411db0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a067
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a1fe
add esp, 0x20
test eax, eax
jne 0x41a055
push edi
call fcn.00411db0
jmp 0x41a05d
push ebx
call fcn.00411db0
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 0x41a06c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41a07d
pop esi
ret
push ebx
push edi
push esi
call fcn.00419f88
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00412d7b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41a0a5
push ebx
push esi
push edi
call fcn.00426ab0
add esp, 0xc
push 0
call fcn.00411db0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x41a9d3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a4ca
Function at 0x421b16
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 + 0x5047c0]
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 0x421b56
cmp byte [ebx], 0xa
jne 0x421b56
or byte [edi + eax + 0x28], 4
jmp 0x421b5b
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 0x421c5a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x421c3d
inc eax
cmp dl, 0xd
je 0x421b87
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x421bad
cmp eax, ecx
jae 0x421bbb
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 0x421b6f
jmp 0x421c5a
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 0x421c38
cmp dword [ebp - 0x10], 0
je 0x421c38
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5047c0]
test byte [eax + edi + 0x28], 0x48
je 0x421c12
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421bfd
mov byte [esi], dl
jmp 0x421c0e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5047c0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421c5a
cmp byte [ebp - 1], 0xa
jne 0x421c21
cmp esi, ebx
jne 0x421c21
mov byte [esi], 0xa
jmp 0x421c59
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422c0f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421c5a
mov byte [esi], 0xd
jmp 0x421c59
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5047c0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421c57
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421c5a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret