joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4263c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x4263da
call fcn.004263bc
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x426404
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4263d5
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x4263d5
pop esi
pop ebx
ret

Function at 0x42640c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040488c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x426425
test al, 0x10
jne 0x426429
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x426430
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040487c
xor eax, eax
push ebp
push 0x4264b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
mov edx, 0x1e
call fcn.004065e4
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x14
lea eax, [ebp - 0x28]
mov ecx, 0x4264cc
mov edx, dword [ebp - 4]
call fcn.004046d8
mov eax, dword [ebp - 0x28]
call fcn.0040488c
mov dword [ebp - 0x1a], eax
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4264bd
lea eax, [ebp - 0x28]
call fcn.004043cc
lea eax, [ebp - 4]
call fcn.004043cc
ret

Function at 0x4264d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov ebp, edx
mov edi, eax
mov eax, dword [esp]
mov edx, ebp
call fcn.00404420
mov eax, edi
call fcn.0040468c
test eax, eax
jle 0x426532
mov eax, ebp
call fcn.0040468c
mov esi, eax
test esi, esi
jle 0x426532
mov ebx, 1
mov eax, edi
call fcn.0040468c
push eax
mov eax, ebx
dec eax
pop edx
mov ecx, edx
cdq
idiv ecx
inc edx
mov al, byte [edi + edx - 1]
mov dl, byte [ebp + ebx - 1]
xor al, dl
push eax
mov eax, dword [esp + 4]
call fcn.004048e4
pop edx
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x426503
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x426538
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4265c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004043cc
mov eax, dword [ebp - 4]
call fcn.0040468c
mov edi, eax
test edi, edi
jle 0x4265b0
mov esi, 1
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dl, byte [edx + esi - 1]
mov ecx, ebx
shr ecx, 8
xor dl, cl
call fcn.004045b4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.00404694
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
add ebx, eax
imul ebx, dword [ebp - 8]
add ebx, dword [ebp + 0xc]
inc esi
dec edi
jne 0x426577
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4265cd
lea eax, [ebp - 0xc]
call fcn.004043cc
ret

Function at 0x4267fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0040487c
mov eax, dword [ebp - 8]
call fcn.0040487c
xor eax, eax
push ebp
push 0x4268c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040488c
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4268a8
cmp dword [ebp - 8], 0
jne 0x42687a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
jmp 0x42689f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040488c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4268ca
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043f0
ret
Function at 0x426984
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040487c
mov eax, dword [ebp - 8]
call fcn.0040487c
xor eax, eax
push ebp
push 0x426a3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x10]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 4]
call fcn.0040488c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
sub eax, 1
jb 0x4269d9
dec eax
je 0x426a1d
jmp 0x426a21
xor eax, eax
push ebp
push 0x426a16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040488c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426a21
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426a43
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043f0
ret

Function at 0x426afc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040487c
xor eax, eax
push ebp
push 0x426bea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.004083b4
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402bfc
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.004083b4
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.004030a8
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x426bae
mov dword [ebp - 8], 0xffffffff
jmp 0x426bcc
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426bf1
lea eax, [ebp - 0xc]
call fcn.004043cc
lea eax, [ebp - 4]
call fcn.004043cc
ret

Function at 0x426cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x426d61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004043cc
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.004084bc
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00426bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426d68
lea eax, [ebp - 0x10c]
call fcn.004043cc
ret
Function at 0x426e8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040487c
mov eax, dword [ebp - 8]
call fcn.0040487c
xor eax, eax
push ebp
push 0x426f19
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x808]
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.0040488c
push eax
mov eax, dword [ebp - 4]
call fcn.0040488c
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x426ef7
mov eax, ebx
lea edx, [ebp - 0x808]
mov ecx, 0x800
call fcn.0040463c
jmp 0x426efe
mov eax, ebx
call fcn.004043cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426f20
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043f0
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x414de6
Capabilities:
Encode data using xor

Disassembly:
xor dword [esi], eax
or edx, ebx
sub ebx, 0xcbd64
sub edi, ebx
add esi, 4
inc ebx
cmp esi, ecx
jne fcn.00414de6
and edx, ebx
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d004]
jne 0x40100a
repz ret
jmp fcn.004013a0

Function at 0x40485b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403be3
and dword [ebp - 0x14], 0
cmp dword [0x44f930], 0
mov dword [ebp - 0x18], eax
jne 0x40490e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44f930], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44f934], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44f938], eax
call edi
push eax
call esi
mov dword [0x44f940], eax
test eax, eax
je 0x40490e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44f93c], eax
mov eax, dword [0x44f93c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404967
cmp dword [0x44f940], ecx
je 0x404967
push eax
call esi
push dword [0x44f940]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404967
test ebx, ebx
je 0x404967
call edi
test eax, eax
je 0x40495e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40495e
test byte [ebp - 8], 1
jne 0x404967
or dword [ebp + 0x10], 0x200000
jmp 0x40499a
mov eax, dword [0x44f934]
cmp eax, dword [ebp - 0x18]
je 0x40499a
push eax
call esi
test eax, eax
je 0x40499a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40499a
mov eax, dword [0x44f938]
cmp eax, dword [ebp - 0x18]
je 0x40499a
push eax
call esi
test eax, eax
je 0x40499a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44f930]
call esi
test eax, eax
je 0x4049b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x402580
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
mov ecx, dword [0x430360]
xor esi, esi
mov edx, dword [0x43035c]
cmp ecx, edx
jae 0x4025b5
nop dword [eax]
cmp esi, ebx
jge 0x4025af
mov al, byte [ecx]
inc esi
mov byte [edi], al
inc ecx
inc edi
cmp ecx, edx
jb 0x4025a0
mov dword [0x430360], ecx
add dword [0x43011c], esi
mov ebx, esi
sub edi, esi
sub esi, 1
js 0x4025f3
mov edx, dword [0x43036c]
nop word [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, edx
shr edx, 8
movzx eax, al
movzx ecx, word [eax*2 + 0x430150]
xor edx, ecx
sub esi, 1
jns 0x4025d0
mov dword [0x43036c], edx
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x402a20
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x42ac98
push ecx
mov ebp, edx
mov ebx, ecx
call fcn.00406340
add esp, 4
push eax
call fcn.0040b18b
mov esi, eax
add esp, 8
test esi, esi
jne 0x402a61
push ebx
push str.Error_opening_file:__s
push 1
push eax
push eax
call fcn.004040a0
add esp, 0x14
mov eax, 0x80000015
pop edi
pop esi
pop ebp
pop ebx
ret
push 2
push 0
push esi
call fcn.0040b72d
add esp, 0xc
push esi
call fcn.0040b0a4
add esp, 4
mov edi, eax
push 0
push 0
push esi
call fcn.0040b72d
add esp, 0xc
test edi, edi
je 0x402ac7
test ebp, ebp
je 0x402ac7
push esi
push 1
push edi
push ebp
call fcn.00410a11
add esp, 0x10
cmp eax, 1
je 0x402ac7
push ebx
push str.Error_reading_contents_of_input_file:__s
push 4
push 0
push 0
call fcn.004040a0
add esp, 0x14
push esi
call fcn.0040b413
add esp, 4
mov eax, 0x80000015
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040b413
mov eax, dword [esp + 0x18]
add esp, 4
xor ecx, ecx
test ebp, ebp
mov dword [eax], edi
mov eax, 0x80000005
pop edi
pop esi
pop ebp
cmovne eax, ecx
pop ebx
ret

Function at 0x405cf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
mov ecx, dword [0x432918]
xor esi, esi
mov edx, dword [0x432914]
cmp ecx, edx
jae 0x405d25
nop dword [eax]
cmp esi, ebx
jge 0x405d1f
mov al, byte [ecx]
inc esi
mov byte [edi], al
inc ecx
inc edi
cmp ecx, edx
jb 0x405d10
mov dword [0x432918], ecx
add dword [0x431ed8], esi
mov ebx, esi
sub edi, esi
sub esi, 1
js 0x405d63
mov edx, dword [0x432924]
nop word [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
xor eax, edx
shr edx, 8
movzx eax, al
movzx ecx, word [eax*2 + 0x432710]
xor edx, ecx
sub esi, 1
jns 0x405d40
mov dword [0x432924], edx
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x40ae3a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00423c20
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414781
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40ae7c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40afd8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00423b70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x42e058]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414991
mov ecx, dword [esi*4 + 0x42e058]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x40afd1
cmp eax, dword [edi + ecx + 0x24]
jne 0x40afd1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40afd1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414991
add esp, 0x14
test edx, edx
jl 0x40afd1
jg 0x40af47
test eax, eax
jb 0x40afd1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40afd1
jl 0x40af61
cmp dword [ebp - 0x1008], eax
ja 0x40afd1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40af7f
test ebx, ebx
je 0x40afb8
cmp ecx, edi
jae 0x40afb8
mov al, byte [ecx]
cmp al, 0xd
jne 0x40af99
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40afa5
cmp byte [ecx + 1], 0xa
jne 0x40afa5
inc ecx
jmp 0x40afa5
movzx eax, al
movsx eax, byte [eax + 0x42d1d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40af7f
cmp edx, ebx
jne 0x40af7f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40afd6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040702e
leave
ret
Function at 0x415036
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 + 0x42e058]
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 0x415076
cmp byte [ebx], 0xa
jne 0x415076
or byte [eax + edi + 0x28], 4
jmp 0x41507b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x415179
mov al, byte [edx]
cmp al, 0x1a
je 0x41515b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4150aa
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4150cf
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4150d9
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 0x41508c
jmp 0x415179
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 0x415156
cmp dword [ebp - 0xc], 0
je 0x415156
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x42e058]
test byte [eax + edi + 0x28], 0x48
je 0x415130
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41511b
mov byte [esi], dl
jmp 0x41512c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42e058]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x415179
cmp byte [ebp - 1], 0xa
jne 0x41513f
cmp esi, ebx
jne 0x41513f
mov byte [esi], 0xa
jmp 0x415178
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004149af
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x415179
mov byte [esi], 0xd
jmp 0x415178
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x42e058]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415175
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415179
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415182
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 + 0x42e058]
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 0x4151c5
cmp word [esi], dx
jne 0x4151c5
or byte [edi + eax + 0x28], 4
jmp 0x4151ca
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 0x415303
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 0x4152e3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41520c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415242
cmp eax, edx
jae 0x41524e
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 0x4151e4
jmp 0x415303
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 0x4152df
cmp dword [ebp - 0x14], 0
je 0x4152df
mov eax, dword [ebx*4 + 0x42e058]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4152b7
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4152fd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x42e058]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x42e058]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x42e058]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x415300
pop ebx
cmp word [ebp - 4], bx
jne 0x4152c8
cmp esi, dword [ebp + 0xc]
jne 0x4152c8
mov word [esi], bx
jmp 0x415300
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004149af
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415303
push 0xd
jmp 0x4152fc
mov ecx, dword [ebx*4 + 0x42e058]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4152fa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415303
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 0x416526
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4275f8
push 0x4275f0
push str.FlsAlloc
push 0x1e
call fcn.00416367
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41655a
push dword [ebp + 8]
mov ecx, esi
call dword [0x425130]
call esi
jmp 0x416560
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4165a4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427608
push 0x427600
push str.FlsGetValue
push 0x20
call fcn.00416367
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4165db
push dword [ebp + 8]
mov ecx, esi
call dword [0x425130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419443
Capabilities:
Read file on windows

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

Function at 0x4198e3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419865
Function at 0x41bd9e
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 0x41be3b
push ebx
push esi
call fcn.0041bd67
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.0041bcb0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41bde8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41be3a
push edi
push eax
call fcn.00416f00
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41be08
call fcn.004161c6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41be39
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041bcb0
add esp, 0x20
test eax, eax
jne 0x41be27
push edi
call fcn.004161c6
jmp 0x41be2f
push ebx
call fcn.004161c6
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 0x41be3e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41be4f
pop esi
ret
push ebx
push edi
push esi
call fcn.0041bd67
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00416f00
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41be77
push ebx
push esi
push edi
call fcn.00408e70
add esp, 0xc
push 0
call fcn.004161c6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41c5c3
Capabilities:
Set environment variable

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