joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432780
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x432936
lea eax, [ebp - 0x110]
push 0x2e
push eax
call fcn.004384c0
mov esi, eax
lea eax, [ebp - 0x110]
push 0x5c
push eax
call fcn.004384c0
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x432936
test ebx, ebx
je 0x432936
mov byte [esi], 0
lea eax, [ebp - 0x110]
mov byte [ebx], 0
inc ebx
push ebx
push eax
push str._s_s.lng
call fcn.00433750
add esp, 0xc
test eax, eax
jne 0x432938
mov eax, dword [0x478924]
test eax, eax
jne 0x432847
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.kernel32.dll
call esi
test eax, eax
je 0x432949
push str.GetUserPreferredUILanguages
push str.kernel32.dll
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x478924], eax
test eax, eax
je 0x432953
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push ecx
push 0
lea ecx, [ebp - 0x114]
push ecx
push 4
call eax
test eax, eax
je 0x432936
push 0
push 2
push dword [ebp - 0x118]
call fcn.004344b0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x118]
mov edi, esi
mov dword [ebp - 0x11c], edi
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push 4
call dword [0x478924]
test eax, eax
je 0x43292d
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x432926
push 0
push 0
dec eax
push 8
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call fcn.00436f60
add esp, 0x20
test eax, eax
jne 0x4328d9
mov byte [ebp - 5], al
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
push str._slang_s_s.lng
call fcn.00433750
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x432987
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432901
mov eax, dword [ebp - 0x114]
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
test eax, eax
jne 0x4328b2
mov edi, dword [ebp - 0x11c]
dec eax
mov dword [ebp - 0x114], eax
push edi
call fcn.00434320
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
mov dword [0x478924], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push ebx
push eax
lea eax, [ebp - 0x110]
push eax
push str._slang_04x_s.lng
call fcn.00433750
add esp, 0x10
test eax, eax
je 0x432936
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x11c]
call fcn.00434320
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00437271
mov esp, ebp
pop ebp
ret
Function at 0x4329b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
push dword [0x478900]
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov esi, eax
lea eax, [ebp - 0x184]
push 0xc0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x432a25
push 0xc0
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.00433250
add esp, 0xc
test eax, eax
je 0x432a25
lea eax, [ebp - 0x304]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00437271
mov esp, ebp
pop ebp
ret

Function at 0x432dc0
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
push ebp
mov ebp, esp
call fcn.00432270
test al, al
je 0x432dd2
pop ebp
jmp fcn.00433450
pop ebp
ret
Function at 0x433060
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x43308c
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
jne 0x43323d
mov ecx, str.PuTTY
lea eax, [ebp - 0x104]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4330e0
test dl, dl
je 0x4330dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4330e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4330c0
xor eax, eax
jmp 0x4330e5
sbb eax, eax
or eax, 1
test eax, eax
je 0x433156
mov ecx, str.PuTTYtel
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x433114
test dl, dl
je 0x433110
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x433114
add eax, 2
add ecx, 2
test dl, dl
jne 0x4330f4
xor eax, eax
jmp 0x433119
sbb eax, eax
or eax, 1
test eax, eax
je 0x433156
mov ecx, str.pterm
lea eax, [ebp - 0x104]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x433148
test dl, dl
je 0x433144
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x433148
add eax, 2
add ecx, 2
test dl, dl
jne 0x433128
xor eax, eax
jmp 0x43314d
sbb eax, eax
or eax, 1
test eax, eax
mov eax, 2
jne 0x43315b
mov eax, 1
cmp eax, 2
jne 0x4331b7
push 0xc0
lea eax, [ebp - 0x284]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x43323d
lea eax, [ebp - 0x284]
push 0xc0
push eax
push eax
call fcn.00433250
add esp, 0xc
test eax, eax
je 0x43323d
lea eax, [ebp - 0x284]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x43323d
push esi
push 0xc
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x43323c
push esi
push str.l10n
push edi
call dword [sym.imp.USER32.dll_SetPropA]
test eax, eax
jne 0x4331fb
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
movq xmm0, qword [0x47407c]
movq qword [esi], xmm0
mov eax, dword [0x474084]
push edi
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov ecx, eax
test ecx, ecx
push 0x433790
setne al
mov byte [esi], al
push 0xfffffffffffffffc
push edi
test ecx, ecx
je 0x433233
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x433239
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00437271
mov esp, ebp
pop ebp
ret
Function at 0x433250
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00432270
test al, al
je 0x43343e
mov edx, dword [ebp + 8]
mov ecx, edx
movzx eax, word [edx]
test ax, ax
je 0x43328a
mov esi, eax
cmp si, 0x7e
ja 0x43343e
movzx eax, word [ecx + 2]
add ecx, 2
mov esi, eax
test ax, ax
jne 0x433272
xor ecx, ecx
lea esi, [ecx + 0x25]
nop
movzx eax, word [edx]
test ax, ax
je 0x4332f4
test ecx, ecx
jne 0x4332a1
cmp eax, 0x20
je 0x4332b0
cmp eax, 0x20
jb 0x4332b0
cmp eax, 0x3d
je 0x4332b0
cmp eax, 0x25
jne 0x4332e0
mov word [ecx*2 + 0x478928], si
movzx eax, word [edx]
shr eax, 4
and eax, 0xf
movsx eax, byte [eax + str.0123456789ABCDEF]
mov word [ecx*2 + 0x47892a], ax
add ecx, 2
movzx eax, word [edx]
and eax, 0xf
movsx eax, byte [eax + str.0123456789ABCDEF]
mov word [ecx*2 + 0x478928], ax
add edx, 2
inc ecx
cmp ecx, 0x1bb
jb 0x433290
test ecx, ecx
jle 0x43331e
cmp word [ecx*2 + 0x478926], 0x20
jne 0x43331e
mov dword [ecx*2 + 0x478926], 0x320025
mov eax, 0x30
mov word [ecx*2 + 0x47892a], ax
add ecx, 2
add ecx, ecx
cmp ecx, 0x380
jae 0x433446
push dword [0x474078]
mov esi, dword [ebp + 0x10]
xor eax, eax
mov edi, dword [ebp + 0xc]
push esi
push edi
push 0x46629c
push 0x478928
push 0x478840
mov word [ecx + 0x478928], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esi - 1]
cmp eax, ecx
je 0x4333fe
cmp word [edi], 0xa
je 0x4333fe
movzx eax, word [edi]
mov esi, edi
mov dword [ebp - 4], 0
mov word [edi], ax
test ax, ax
je 0x43343e
xor eax, eax
push ebx
cmp word [edi], 0x25
jne 0x4333e1
movzx ecx, word [edi + 2]
lea eax, [ecx - 0x30]
cmp eax, 9
ja 0x43339f
add ecx, 0xffffffd0
jmp 0x4333aa
lea eax, [ecx - 0x41]
cmp eax, 5
ja 0x4333de
add ecx, 0xffffffc9
test ecx, ecx
js 0x4333de
movzx edx, word [edi + 4]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x4333bf
add edx, 0xffffffd0
jmp 0x4333ca
lea eax, [edx - 0x41]
cmp eax, 5
ja 0x4333de
add edx, 0xffffffc9
mov eax, dword [ebp - 4]
test edx, edx
js 0x4333e1
shl ecx, 4
add ecx, edx
add edi, 4
mov word [esi], cx
jmp 0x4333e1
mov eax, dword [ebp - 4]
movzx ecx, word [edi + 2]
add edi, 2
add esi, 2
inc eax
mov dword [ebp - 4], eax
mov word [esi], cx
test cx, cx
jne 0x433388
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x47891c]
test edx, edx
jle 0x43343e
mov ecx, 0x478928
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433410
sub ecx, esi
sar ecx, 1
cmp ecx, edx
jle 0x43343e
push dword [0x474078]
push 0x478928
push 0x478928
push 0x478840
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00437b4a
int3
Function at 0x433750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00434620
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x433776
mov eax, esi
pop esi
pop ebp
ret
push esi
call fcn.00434320
add esp, 4
xor eax, eax
pop esi
pop ebp
ret
Function at 0x435190
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43522a
cmp dword [ebp - 8], 1
jne 0x43522a
mov eax, dword [ebp - 4]
push esi
push 0
inc eax
push 1
push eax
mov dword [ebp - 0xc], eax
call fcn.004344b0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43521a
cmp dword [ebp - 8], 1
jne 0x43521a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x43520f
push 0x6c
push str._srcwindowsutils_registry.c
push str.size___allocsize
call fcn.0043cc3e
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [esi + eax], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00434320
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x435230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00435300
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x435256
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4352e7
cmp dword [ebp - 8], 1
jne 0x4352e7
mov eax, dword [ebp - 4]
push 0
inc eax
push 1
push eax
mov dword [ebp - 0xc], eax
call fcn.004344b0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4352de
cmp dword [ebp - 8], 1
jne 0x4352de
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jb 0x4352cb
push 0x6c
push str._srcwindowsutils_registry.c
push str.size___allocsize
call fcn.0043cc3e
mov eax, dword [ebp - 4]
add esp, 0xc
push edi
mov byte [esi + eax], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00434320
add esp, 4
push edi
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x435600
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4747c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x435632
movsx eax, cl
sub eax, 0x41
jmp 0x435674
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x435641
movsx eax, cl
sub eax, 0x47
jmp 0x435674
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x435650
movsx eax, cl
add eax, 4
jmp 0x435674
cmp cl, 0x2b
jne 0x43565c
mov eax, 0x3e
jmp 0x435674
cmp cl, 0x2f
jne 0x435668
mov eax, 0x3f
jmp 0x435674
cmp cl, 0x3d
jne 0x4356f1
or eax, 0xffffffff
mov dword [ebp + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0x435620
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x4356f1
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x4356f1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x4356a2
cmp eax, ecx
jne 0x4356f1
lea ebx, [ecx + 2]
jmp 0x4356ad
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x4356d6
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x4356de
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437271
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437271
mov esp, ebp
pop ebp
ret

Function at 0x436a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
je 0x436a95
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, eax
nop word [eax + eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or edi, edx
sub esi, 1
jne 0x436a80
pop ebx
mov eax, 0x100
sub eax, edi
pop edi
shr eax, 8
pop esi
pop ebp
ret

Function at 0x437110
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x478cb4]
test eax, eax
jne 0x437167
push esi
push dword [0x478cb8]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push eax
call esi
cmp eax, dword [0x478cb8]
jb 0x437161
push 0
push 1
push eax
push 1
push 0x478cb8
push dword [0x478cb4]
call fcn.00434340
add esp, 0x18
mov dword [0x478cb4], eax
push dword [0x478cb8]
push eax
call esi
cmp eax, dword [0x478cb8]
jae 0x437131
mov eax, dword [0x478cb4]
pop esi
ret

Function at 0x4380c5
Capabilities:
Parse pe header

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

Function at 0x44d74d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044d6cf
Function at 0x44dcb2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469f98
push 0x469f90
push str.FlsAlloc
push 0x1f
call fcn.0044daf1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44dce6
push dword [ebp + 8]
mov ecx, esi
call dword [0x45b35c]
call esi
jmp 0x44dcec
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44dd30
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469fa8
push 0x469fa0
push str.FlsGetValue
push 0x21
call fcn.0044daf1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44dd67
push dword [ebp + 8]
mov ecx, esi
call dword [0x45b35c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x44dd6f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x469fb0
push 0x469fa8
push str.FlsSetValue
push 0x22
call fcn.0044daf1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44dda9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45b35c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44e9b5
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 + 0x479490]
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 0x44e9f5
cmp byte [ebx], 0xa
jne 0x44e9f5
or byte [edi + eax + 0x28], 4
jmp 0x44e9fa
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 0x44eaf9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44eadc
inc eax
cmp dl, 0xd
je 0x44ea26
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44ea4c
cmp eax, ecx
jae 0x44ea5a
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 0x44ea0e
jmp 0x44eaf9
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 0x44ead7
cmp dword [ebp - 0x10], 0
je 0x44ead7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x479490]
test byte [eax + edi + 0x28], 0x48
je 0x44eab1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44ea9c
mov byte [esi], dl
jmp 0x44eaad
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x479490]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44eaf9
cmp byte [ebp - 1], 0xa
jne 0x44eac0
cmp esi, ebx
jne 0x44eac0
mov byte [esi], 0xa
jmp 0x44eaf8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00455984
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44eaf9
mov byte [esi], 0xd
jmp 0x44eaf8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x479490]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44eaf6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44eaf9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44eb02
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 + 0x479490]
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 0x44eb48
cmp word [ebx], dx
jne 0x44eb48
or byte [eax + edi + 0x28], 4
jmp 0x44eb4d
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 0x44ecb0
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 0x44ec90
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44eb8e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44ebc4
cmp eax, edx
jae 0x44ebd2
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 0x44eb69
jmp 0x44ecb0
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 0x44ec8b
cmp dword [ebp - 0x18], 0
je 0x44ec8b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x479490]
test byte [eax + edi + 0x28], 0x48
je 0x44ec61
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 0x44ec25
mov word [esi], cx
jmp 0x44ec5c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x479490]
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 + 0x479490]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x479490]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44ecb0
pop eax
cmp word [ebp - 4], ax
jne 0x44ec71
cmp esi, ebx
jne 0x44ec71
mov word [esi], ax
jmp 0x44ecad
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00455984
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44ecb0
push 0xd
pop eax
jmp 0x44ec6c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x479490]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44ecaa
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44ecb0
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 0x452c1d
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 0x452cba
push ebx
push esi
call fcn.00452be6
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.0044a762
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x452c67
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x452cb9
push edi
push eax
call fcn.0044a5c2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x452c87
call fcn.0044a588
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x452cb8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044a762
add esp, 0x20
test eax, eax
jne 0x452ca6
push edi
call fcn.0044a588
jmp 0x452cae
push ebx
call fcn.0044a588
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 0x452cbd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x452cce
pop esi
ret
push ebx
push edi
push esi
call fcn.00452be6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044a5c2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x452cf6
push ebx
push esi
push edi
call fcn.00438600
add esp, 0xc
push 0
call fcn.0044a588
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4530c6
Capabilities:
Set environment variable

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