joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42050d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x46fc90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42054d
cmp byte [ebx], 0xa
jne 0x42054d
or byte [eax + edi + 0x28], 4
jmp 0x420552
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420650
mov al, byte [edx]
cmp al, 0x1a
je 0x420632
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420581
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4205a6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4205b0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x420563
jmp 0x420650
push 0
lea eax, [ebp - 0xc]
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 0x42062d
cmp dword [ebp - 0xc], 0
je 0x42062d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46fc90]
test byte [eax + edi + 0x28], 0x48
je 0x420607
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4205f2
mov byte [esi], dl
jmp 0x420603
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46fc90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420650
cmp byte [ebp - 1], 0xa
jne 0x420616
cmp esi, ebx
jne 0x420616
mov byte [esi], 0xa
jmp 0x42064f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042108d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420650
mov byte [esi], 0xd
jmp 0x42064f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46fc90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42064c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420650
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420659
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46fc90]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42069c
cmp word [esi], dx
jne 0x42069c
or byte [edi + eax + 0x28], 4
jmp 0x4206a1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4207f4
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4207d4
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4206e3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420719
cmp eax, edx
jae 0x420725
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4206bb
jmp 0x4207f4
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4207d0
cmp dword [ebp - 0x14], 0
je 0x4207d0
mov eax, dword [ebx*4 + 0x46fc90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4207a8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420771
mov word [esi], cx
jmp 0x4207a4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46fc90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46fc90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46fc90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4207f4
pop ebx
cmp word [ebp - 4], bx
jne 0x4207b9
cmp esi, dword [ebp + 0xc]
jne 0x4207b9
mov word [esi], bx
jmp 0x4207f1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042108d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4207f4
push 0xd
jmp 0x4207ed
mov ecx, dword [ebx*4 + 0x46fc90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4207eb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4207f4
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423ec7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46dcc0]
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 0x423f12
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00424066
test al, al
jne 0x423f0c
sub edx, 2
cmp edx, edi
jne 0x423ef2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x423f34
lea eax, [edi + 2]
cmp edx, eax
je 0x423f34
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00423e13
add esp, 0x10
jmp 0x42402e
push esi
lea ecx, [ebp - 0x255]
call fcn.00424066
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 0x423f77
push dword [ebp - 0x25c]
jmp 0x423f24
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 0x423fb4
cmp word [ebp - 0x226], 0
je 0x423fd5
cmp word [ebp - 0x226], ax
jne 0x423fb4
cmp word [ebp - 0x224], 0
je 0x423fd5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00423e13
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x424021
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x423f8e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x424009
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42402e
push 0x423c43
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042adc0
add esp, 0x10
jmp 0x423ffe
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.0040bf55
leave
ret
Function at 0x409fc2
Capabilities:
Check mutex on windows

Disassembly:
push ebx
xor eax, eax
push eax
push eax
call fcn.00447c40
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.0040d000
mov dword [section..data], 0xe00007
mov dword [section..data], 0xe0000d
push dword [esp]
push 1
push 0
call sub.KERNEL32.dll_CreateMutexW
mov dword [esp + 4], eax
mov dword [section..data], 0xe0000f
mov ebx, dword [esp + 4]
and ebx, ebx
je 0x40a02a
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x40a02a
mov eax, 1
jmp 0x40a02c
xor eax, eax
and eax, eax
je 0x40a060
mov dword [section..data], 0xe00011
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [section..data], 0xe00013
mov eax, 1
jmp 0x40a08e
mov dword [section..data], 0xe00015
mov dword [section..data], 0xe00017
xor eax, eax
jmp 0x40a08e
push dword [esp]
call fcn.00447c10
add esp, 8
pop ebx
ret 4
Function at 0x40c107
Capabilities:
Set file attributes

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.00447c40
mov edx, dword [esp + 0x1c]
lea ecx, [esp]
call fcn.0040d000
mov dword [section..data], 0xd000b7
mov dword [section..data], 0xd000bb
push edx
call fcn.00447b00
pop edx
push eax
push edx
call fcn.00447b00
pop edx
push eax
push 1
push dword [esp + 0xc]
call fcn.00446080
call fcn.00447bf0
mov edx, 0x61dad6
pop ecx
push ecx
call fcn.0040d2b0
mov ecx, eax
call fcn.0040d270
je 0x40c1a6
mov dword [section..data], 0xd000bc
push edx
call fcn.00447b00
pop edx
push eax
push edx
call fcn.00447b00
pop edx
push eax
push dword [esp + 8]
call fcn.00445fe0
mov ebx, eax
dec ebx
push ebx
push dword [esp + 0xc]
call fcn.00445790
lea eax, [esp + 4]
push eax
call fcn.00447b80
mov dword [section..data], 0xd000bd
mov dword [section..data], 0xd000be
mov eax, 0x61dad6
push eax
push dword [esp + 4]
call fcn.004460f0
mov ebx, eax
inc ebx
mov dword [esp + 8], ebx
mov dword [section..data], 0xd000bf
mov dword [esp + 4], 1
jmp 0x40c1ee
mov dword [section..data], 0xd000bf
mov eax, dword [esp + 8]
cmp eax, dword [esp + 4]
jl 0x40c2d6
mov dword [section..data], 0xd000c0
mov edx, dword [esp + 0xc]
push edx
call fcn.00447b00
pop edx
push eax
push edx
call fcn.00447b30
push edx
call fcn.00447b00
pop edx
push eax
push edx
call fcn.00447b00
pop edx
push eax
mov eax, 0x61dad6
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.004461a0
pop eax
lea eax, [esp + 0x10]
push eax
call fcn.00447b80
mov dword [section..data], 0xd000c1
push dword [esp + 0xc]
call fcn.0043f3cb
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xfffffffe
jne 0x40c26b
cmp edi, 0xffffffff
jne 0x40c26b
xor eax, eax
jmp 0x40c270
mov eax, 1
or eax, eax
je 0x40c287
mov dword [section..data], 0xd000c2
push dword [esp + 0xc]
call fcn.0043f5ab
mov dword [section..data], 0xd000c3
mov dword [section..data], 0xd000c4
mov edx, dword [esp + 0xc]
push edx
call fcn.00447b00
pop edx
push eax
push edx
call fcn.00447b30
mov edx, 0x61dad6
push edx
call fcn.00447b30
lea eax, [esp + 0x10]
push eax
call fcn.00447b80
mov dword [section..data], 0xd000c5
inc dword [esp + 4]
jno 0x40c1e4
mov dword [section..data], 0xd000c7
mov ebx, dword [esp + 0x20]
cmp ebx, 0xffffffff
je 0x40c300
mov dword [section..data], 0xd000c8
push dword [esp + 0x20]
push dword [esp + 4]
call sub.KERNEL32.dll_SetFileAttributesW
mov dword [section..data], 0xd000c9
mov dword [section..data], 0xd000cb
push dword [esp]
call fcn.0043f3cb
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xfffffffe
jne 0x40c32a
cmp edi, 0xffffffff
je 0x40c32e
xor eax, eax
jmp 0x40c333
mov eax, 1
or eax, eax
je 0x40c348
mov dword [section..data], 0xd000cc
mov eax, 1
jmp 0x40c35e
mov dword [section..data], 0xd000cd
mov dword [section..data], 0xd000cf
xor eax, eax
push dword [esp + 0xc]
call fcn.00447c10
push dword [esp]
call fcn.00447c10
add esp, 0x10
pop edi
pop ebx
ret 8
Function at 0x411c47
Capabilities:
Parse pe header

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

Function at 0x414744
Capabilities:
Allocate thread local storage

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

Function at 0x4147c2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5eacc4
push str.FlsGetValue
push 0x21
call fcn.00414416
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4147f9
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 0x414801
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x5eacd8
push str.FlsSetValue
push 0x22
call fcn.00414416
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41483b
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 0x416e08
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6342ec]
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 0x416e53
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00417064
test al, al
jne 0x416e4d
sub edx, 2
cmp edx, edi
jne 0x416e33
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x416e75
lea eax, [edi + 2]
cmp edx, eax
je 0x416e75
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00416acf
add esp, 0x10
jmp 0x416f6f
push esi
lea ecx, [ebp - 0x255]
call fcn.00417064
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 0x416eb8
push dword [ebp - 0x25c]
jmp 0x416e65
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 0x416ef5
cmp word [ebp - 0x226], 0
je 0x416f16
cmp word [ebp - 0x226], ax
jne 0x416ef5
cmp word [ebp - 0x224], 0
je 0x416f16
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00416acf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x416f62
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x416ecf
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x416f4a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x416f6f
push 0x41651f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041e570
add esp, 0x10
jmp 0x416f3f
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.0040e6df
leave
ret

Function at 0x419c97
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412fbb
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 0x419d06
cmp esi, dword [ebp - 4]
je 0x419d01
cmp dword [ebp + 0xc], 0
je 0x419d01
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x419cde
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004197e9
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x419d08
xor eax, eax
inc eax
jmp 0x419d08
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x419d6d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6342ec]
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.00412fbb
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.00412fbb
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 0x419de4
cmp word [ecx], dx
je 0x419de4
mov eax, dword [0x5ebfac]
push edi
dec eax
push eax
push 0x5ebe98
call fcn.00419d0c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x419e57
cmp word [eax], dx
je 0x419e57
mov eax, dword [edi]
test eax, eax
je 0x419e08
cmp word [eax], dx
je 0x419e08
lea eax, [ebp - 0x10]
push eax
call fcn.004196ef
jmp 0x419e11
lea eax, [ebp - 0x10]
push eax
call fcn.0041978a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x419e81
mov eax, dword [0x5ebe94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5ebb88
call fcn.00419d0c
add esp, 0xc
test al, al
je 0x419e81
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x419e4c
cmp word [eax], di
je 0x419e4c
lea eax, [ebp - 0x10]
push eax
call fcn.004196ef
pop ecx
jmp 0x419e83
lea eax, [ebp - 0x10]
push eax
call fcn.0041978a
jmp 0x419e49
mov eax, dword [edi]
test eax, eax
je 0x419e6e
cmp word [eax], dx
je 0x419e6e
lea eax, [ebp - 0x10]
push eax
call fcn.00419686
pop ecx
jmp 0x419e81
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 0x419f4c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00419b91
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x419f4c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x419f4c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x419f4c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419ed9
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00414a1c
test ebx, ebx
je 0x419f47
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00414a1c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419f4c
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 0x419f4c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004208bf
add esp, 0x10
xor eax, eax
inc eax
jmp 0x419f4e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e6df
leave
ret
Function at 0x41abd9
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 0x41ac76
push ebx
push esi
call fcn.0041ab95
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.0041ae0b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ac23
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ac75
push edi
push eax
call fcn.004137cb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ac43
call fcn.00412800
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ac74
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ae0b
add esp, 0x20
test eax, eax
jne 0x41ac62
push edi
call fcn.00412800
jmp 0x41ac6a
push ebx
call fcn.00412800
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 0x41ac79
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41ac8a
pop esi
ret
push ebx
push edi
push esi
call fcn.0041ab95
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004137cb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41acb2
push ebx
push esi
push edi
call fcn.00427770
add esp, 0xc
push 0
call fcn.00412800
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41b5e0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b0d7
Function at 0x4227a6
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 + 0x63b3f8]
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 0x4227e6
cmp byte [ebx], 0xa
jne 0x4227e6
or byte [edi + eax + 0x28], 4
jmp 0x4227eb
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 0x4228ea
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4228cd
inc eax
cmp dl, 0xd
je 0x422817
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42283d
cmp eax, ecx
jae 0x42284b
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 0x4227ff
jmp 0x4228ea
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 0x4228c8
cmp dword [ebp - 0x10], 0
je 0x4228c8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x63b3f8]
test byte [eax + edi + 0x28], 0x48
je 0x4228a2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42288d
mov byte [esi], dl
jmp 0x42289e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x63b3f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4228ea
cmp byte [ebp - 1], 0xa
jne 0x4228b1
cmp esi, ebx
jne 0x4228b1
mov byte [esi], 0xa
jmp 0x4228e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042389f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4228ea
mov byte [esi], 0xd
jmp 0x4228e9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x63b3f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4228e7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4228ea
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret