joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416122
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 + 0x4789a0]
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 0x416162
cmp byte [ebx], 0xa
jne 0x416162
or byte [eax + edi + 0x28], 4
jmp 0x416167
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416265
mov al, byte [edx]
cmp al, 0x1a
je 0x416247
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416196
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4161bb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4161c5
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 0x416178
jmp 0x416265
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 0x416242
cmp dword [ebp - 0xc], 0
je 0x416242
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4789a0]
test byte [eax + edi + 0x28], 0x48
je 0x41621c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416207
mov byte [esi], dl
jmp 0x416218
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4789a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416265
cmp byte [ebp - 1], 0xa
jne 0x41622b
cmp esi, ebx
jne 0x41622b
mov byte [esi], 0xa
jmp 0x416264
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416ca2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416265
mov byte [esi], 0xd
jmp 0x416264
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4789a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416261
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416265
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41626e
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 + 0x4789a0]
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 0x4162b1
cmp word [esi], dx
jne 0x4162b1
or byte [edi + eax + 0x28], 4
jmp 0x4162b6
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 0x416409
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 0x4163e9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4162f8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41632e
cmp eax, edx
jae 0x41633a
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 0x4162d0
jmp 0x416409
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 0x4163e5
cmp dword [ebp - 0x14], 0
je 0x4163e5
mov eax, dword [ebx*4 + 0x4789a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4163bd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x416386
mov word [esi], cx
jmp 0x4163b9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4789a0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4789a0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4789a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x416409
pop ebx
cmp word [ebp - 4], bx
jne 0x4163ce
cmp esi, dword [ebp + 0xc]
jne 0x4163ce
mov word [esi], bx
jmp 0x416406
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416ca2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x416409
push 0xd
jmp 0x416402
mov ecx, dword [ebx*4 + 0x4789a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416400
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416409
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 0x418bbb
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 0x418c58
push ebx
push esi
call fcn.00418b84
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.00417965
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x418c05
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418c57
push edi
push eax
call fcn.004137c3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x418c25
call fcn.00412a7b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418c56
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417965
add esp, 0x20
test eax, eax
jne 0x418c44
push edi
call fcn.00412a7b
jmp 0x418c4c
push ebx
call fcn.00412a7b
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 0x41e950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e97d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e97d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x420545
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 2
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x4205c5
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
jbe 0x4205c4
push ebx
mov ebx, 0x477fe8
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebx
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.00401eb7
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x421548
mov byte [edi + esi], al
call fcn.0040d3de
xor byte [edi + esi], al
add esp, 0x1c
inc esi
cmp esi, dword [ebp + 0x18]
jb 0x420567
pop ebx
pop esi
lea ecx, [ebp + 8]
call fcn.0040433b
pop edi
pop ebp
ret 0x14

Function at 0x4205d2
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x4205ee
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xa81adc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xa81ae6
pushal
call 0xa81aec
pop ebp
sub ebp, 0x10
sub ebp, 0x681adc
jmp 0xa81b02
mov eax, 0x681adc
add eax, ebp
add eax, 0x4c
mov ecx, 0x61a
mov edx, 0x58e111a6
xor byte [eax], dl
inc eax
dec ecx
jne 0xa81b19
jmp 0xa81b2c
sub eax, 0x9a2f2d6b
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
daa
pop esi
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
movsd dword es:[edi], dword [esi]
imul ebx, dword [esi], 0xffffffaf
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
sbb al, 0x8e
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
push ecx
inc esp
movsd dword es:[edi], dword [esi]
outsb dx, byte [esi]
sub eax, 0xa6a6aa27
cmpsb byte [esi], byte es:[edi]
movsd dword es:[edi], dword [esi]
arpl word [ebx], bp
ret 0x5a82
Function at 0x4018b0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push pe_nt_image_headers32
push 0x4426b0
push str.VIRTUAL_ENV
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401900
lea ecx, [edi*2 + 2]
push ecx
call fcn.0040e1e0
mov esi, eax
add esp, 4
test esi, esi
je 0x401a99
push edi
push esi
push str.VIRTUAL_ENV
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x40190d
test edi, edi
je 0x4019a1
mov esi, 0x4426b0
cmp word [esi], 0
je 0x4019a1
push esi
push str.Checking_for_Python_executable_in_virtual_env__ls_n
call fcn.00401130
push str.pythonw.exe
push esi
push str._lsScripts_ls
push 0xffffffffffffffff
push 0x104
push 0x481de0
call fcn.004010b0
add esp, 0x20
push 0x481de0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x481de0
cmp eax, 0xffffffff
jne 0x401965
push str.Python_executable__ls_missing_from_virtual_env_n
call fcn.00401130
add esp, 8
jmp 0x4019a1
mov eax, dword [0x42889c]
imul esi, eax, 0x424
inc eax
mov dword [0x42889c], eax
push 0x104
add esi, 0x4288a0
lea eax, [esi + 0x14]
push eax
call fcn.0040d0fe
push str.venv
push 8
push esi
mov dword [esi + 0x10], 0
call fcn.0040d0fe
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_IsWow64Process]
push eax
call edi
test eax, eax
je 0x401a04
cmp dword [ebp - 4], 0
je 0x401a04
push str.locating_Pythons_in_64bit_registry_n
call fcn.00401130
push 0
push 0
push 0x20119
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000001
call fcn.00401220
push 0
push 0
push 0x20119
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000002
call fcn.00401220
add esp, 0x1c
push str.locating_Pythons_in_native_registry_n
call fcn.00401130
push 0
push 0
push 0x20019
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000001
call fcn.00401220
push 0
push 0
push 0x20019
mov edx, str.SOFTWAREPythonPythonCore
mov ecx, 0x80000002
call fcn.00401220
add esp, 0x1c
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call esi
push eax
call edi
pop edi
pop esi
test eax, eax
je 0x401a78
cmp dword [ebp - 8], 0
je 0x401a78
push 1
push 0x40
push 0x20119
mov edx, str.SOFTWAREMicrosoftAppModelLookasideuserSoftwarePythonPythonCore
mov ecx, 0x80000002
call fcn.00401220
add esp, 0xc
push 0x401840
push 0x424
push dword [0x42889c]
push 0x4288a0
call fcn.0040d310
add esp, 0x10
mov esp, ebp
pop ebp
ret
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.00401180
int3
Function at 0x401b90
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebx
push esi
push edi
push str.pythonX
push str.py__ls
push 0xffffffffffffffff
push 0x400
push 0x4815e0
mov ebx, str.environment
call fcn.004010b0
add esp, 0x14
push pe_nt_image_headers32
push 0x4426b0
push 0x4815e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp edi, 0x100
jb 0x401c01
lea ecx, [edi*2 + 2]
push ecx
call fcn.0040e1e0
mov esi, eax
add esp, 4
test esi, esi
je 0x401cb3
push edi
push esi
push 0x4815e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x401c99
test edi, edi
jne 0x401c94
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor esi, esi
cmp word [0x4428b0], si
je 0x401c46
push 0x4428b0
push 0x400
push 0x4815e0
push esi
push str.pythonX
push str.defaults
call edi
test eax, eax
je 0x401c46
mov esi, 0x4815e0
mov ebx, 0x4428b0
jmp 0x401c99
cmp word [0x428690], si
je 0x401c7c
push 0x428690
push 0x400
push 0x4815e0
push 0
push str.pythonX
push str.defaults
call edi
test eax, eax
je 0x401c7c
mov esi, 0x4815e0
mov ebx, 0x428690
jmp 0x401c99
push str.pythonX
push str.found_no_configured_value_for__ls_n
call fcn.00401130
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov esi, 0x4426b0
push ebx
push esi
push str.pythonX
push str.found_configured_value__ls_ls_in__ls_n
call fcn.00401130
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
ret
push str.Could_not_allocate_environment_buffer
push 0x68
call fcn.00401180
int3
Function at 0x401e70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov edi, ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
push edi
push str.run_child:_about_to_run__ls_n
call fcn.00401130
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, eax
lea eax, [ebp - 0x7c]
push eax
push 0x70
lea eax, [ebp - 0x78]
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x40205b
cmp dword [ebp - 0x7c], 0x70
jne 0x40205b
test esi, esi
je 0x40205b
or dword [ebp - 0x68], 0x3000
lea eax, [ebp - 0x78]
push 0x70
push eax
push 9
push esi
call dword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x401f16
push str.Job_information_setting_failed
push 0x65
call fcn.00401180
push 0x44
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00404b40
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call ebx
lea edx, [ebp - 0xa0]
mov ecx, eax
call fcn.00401de0
test eax, eax
jne 0x401f5d
push str.stdin_duplication_failed
push 0x64
call fcn.00401180
push 0xfffffffffffffff5
call ebx
lea edx, [ebp - 0x9c]
mov ecx, eax
call fcn.00401de0
test eax, eax
jne 0x401f7e
push str.stdout_duplication_failed
push 0x64
call fcn.00401180
push 0xfffffffffffffff4
call ebx
lea edx, [ebp - 0x98]
mov ecx, eax
call fcn.00401de0
test eax, eax
jne 0x401f9f
push str.stderr_duplication_failed
push 0x64
call fcn.00401180
push 1
push 0x401e40
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x401fbc
push str.control_handler_setting_failed
push 0x65
call fcn.00401180
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xac], pe_nt_image_headers32
push eax
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401ffa
push edi
push str.Unable_to_create_process_using__ls
push 0x65
call fcn.00401180
push dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0xffffffffffffffff
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x402043
push str.Failed_to_get_exit_code_of_process
push 0x65
call fcn.00401180
push dword [ebp - 0x7c]
push str.child_process_exit_code:__d_n
call fcn.00401130
add esp, 8
push dword [ebp - 0x7c]
call fcn.00407391
push str.Job_information_querying_failed
push 0x65
call fcn.00401180
int3
Function at 0x4023b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041c390
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1004]
push edi
mov ebx, ecx
push ebx
push 0x400
push eax
push 0
push 0
push str.commands
call esi
cmp eax, 0x3ff
jne 0x4023ff
push ebx
push str.read_commands:__ls:_not_enough_space_for_names_n
call fcn.00401130
add esp, 8
cmp word [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x402514
push ebx
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
push edi
push str.commands
call esi
cmp eax, 0x3ff
jne 0x402440
push edi
push ebx
push str.read_commands:__ls:_not_enough_space_for__ls_n
call fcn.00401130
add esp, 0xc
mov ax, word [ebp - 0x804]
lea esi, [ebp - 0x804]
test ax, ax
je 0x402475
movzx ecx, ax
movzx eax, cx
push eax
call fcn.0040dca0
add esp, 4
test eax, eax
je 0x402475
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x402455
jmp 0x4024e6
cmp word [esi], 0
je 0x4024e6
mov ecx, edi
call fcn.00402280
mov esi, eax
test esi, esi
jne 0x4024bb
mov eax, dword [0x481fe8]
cmp eax, 0x64
jl 0x4024a9
lea eax, [ebp - 0x804]
push eax
push edi
push 0x423a68
call fcn.00401130
add esp, 0xc
jmp 0x4024e6
imul esi, eax, 0xa08
add esi, 0x442ac0
inc eax
mov dword [0x481fe8], eax
push 0xffffffffffffffff
push edi
push 0x104
push esi
call fcn.0040e2b9
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push eax
lea eax, [esi + 0x208]
push 0x400
push eax
call fcn.0040e2b9
add esp, 0x20
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024f0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x402413
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040374a
mov esp, ebp
pop ebp
ret
Function at 0x40724b
Capabilities:
Parse pe header

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

Function at 0x4116d1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ec9c
push 0x41ec94
push str.FlsAlloc
push 0x1f
call fcn.004115af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411705
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d198]
call esi
jmp 0x41170b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41174f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ecac
push 0x41eca4
push str.FlsGetValue
push 0x21
call fcn.004115af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411786
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d198]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41178e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ecb4
push 0x41ecac
push str.FlsSetValue
push 0x22
call fcn.004115af
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4117c8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d198]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41305f
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 + 0x428358]
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 0x41309f
cmp byte [ebx], 0xa
jne 0x41309f
or byte [edi + eax + 0x28], 4
jmp 0x4130a4
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 0x4131a3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x413186
inc eax
cmp dl, 0xd
je 0x4130d0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4130f6
cmp eax, ecx
jae 0x413104
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 0x4130b8
jmp 0x4131a3
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 0x413181
cmp dword [ebp - 0x10], 0
je 0x413181
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428358]
test byte [eax + edi + 0x28], 0x48
je 0x41315b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413146
mov byte [esi], dl
jmp 0x413157
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428358]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4131a3
cmp byte [ebp - 1], 0xa
jne 0x41316a
cmp esi, ebx
jne 0x41316a
mov byte [esi], 0xa
jmp 0x4131a2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a61
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4131a3
mov byte [esi], 0xd
jmp 0x4131a2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4131a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4131a3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret