joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b436
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425fe8]
jne 0x40b440
repz ret
jmp fcn.0040f921

Function at 0x4168b4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004117bd
and dword [ebp - 4], 0
cmp dword [0x428254], 0
mov ebx, eax
jne 0x416965
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416a16
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420b90
push edi
call esi
test eax, eax
je 0x416a16
push eax
call fcn.0041174b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428254], eax
call esi
push eax
call fcn.0041174b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428258], eax
call esi
push eax
call fcn.0041174b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42825c], eax
call esi
push eax
call fcn.0041174b
pop ecx
mov dword [0x428264], eax
test eax, eax
je 0x416965
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041174b
pop ecx
mov dword [0x428260], eax
mov eax, dword [0x428260]
cmp eax, ebx
je 0x4169bd
cmp dword [0x428264], ebx
je 0x4169bd
push eax
call fcn.004117c6
push dword [0x428264]
mov esi, eax
call fcn.004117c6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4169bd
test edi, edi
je 0x4169bd
call esi
test eax, eax
je 0x4169b4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4169b4
test byte [ebp - 0xc], 1
jne 0x4169bd
or dword [ebp + 0x10], 0x200000
jmp 0x4169f6
mov eax, dword [0x428258]
cmp eax, ebx
je 0x4169f6
push eax
call fcn.004117c6
pop ecx
test eax, eax
je 0x4169f6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4169f6
mov eax, dword [0x42825c]
cmp eax, ebx
je 0x4169f6
push eax
call fcn.004117c6
pop ecx
test eax, eax
je 0x4169f6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428254]
call fcn.004117c6
pop ecx
test eax, eax
je 0x416a16
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416a18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10024e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
cmp eax, 1
jne 0x10025007
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ntdll.dll
call esi
push str.RtlImageNtHeader
push eax
mov dword [0x10067e88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.steamclient.dll
mov dword [0x10066480], eax
call esi
mov esi, eax
test esi, esi
je 0x10024ed8
push esi
call dword [0x10066480]
push str.xxx____x____x____
push 0x1005bbcc
mov ecx, esi
mov edx, dword [eax + 0x50]
call fcn.10001d40
add esp, 8
mov dword [0x10072dc0], eax
test eax, eax
je 0x10024ed8
push ecx
lea edx, [ebp - 0xc]
mov word [ebp - 0xc], 0x18eb
call fcn.10001dc0
add esp, 4
lea eax, [ebp - 8]
mov dword [0x10066898], edi
push eax
push 0
push 2
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x10024f12
push 0x10
push str.GreenLuma_2024
push str.Unable_to_get_exe_path___1_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
push 0x10067958
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10024f46
push 0x10
push str.GreenLuma_2024
push str.Unable_to_get_exe_path___2_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x10024f6f
push 0x10
push str.GreenLuma_2024
push str.Unable_to_get_exe_path___3_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
push 0x10066068
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10024fa6
push 0x10
push str.GreenLuma_2024
push str.Unable_to_get_dll_path___1_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call esi
cmp eax, 0x7a
jne 0x10024fce
push 0x10
push str.GreenLuma_2024
push str.Unable_to_get_dll_path___2_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10067958
push 0x104
push 0x10068500
call fcn.10035f1d
push 0x10066068
push 0x104
push 0x10072ba8
call fcn.10035f1d
add esp, 0x18
xor ecx, ecx
call fcn.100230a0
jmp 0x1002506a
test eax, eax
jne 0x1002506a
cmp byte [0x10065c45], al
jne 0x1002506a
call fcn.10026af0
cmp dword [0x100731ec], 0
nop
je 0x10025029
xor ecx, ecx
call fcn.10026a60
xor eax, eax
mov ecx, 0x100731e8
xchg dword [ecx], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCreateUserProcess
push dword [0x10067e88]
call esi
mov ecx, eax
call fcn.10026f60
push str.NtResumeThread
push dword [0x10067e88]
call esi
mov ecx, eax
call fcn.10026f60
call fcn.10026b40
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1002bc62
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401050
Capabilities:
Terminate process

Disassembly:
call fcn.00401500
mov ecx, dword [eax*4 + 0x406030]
mov edx, dword [eax*4 + 0x406058]
push 0x23
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x40107b
push 0
call fcn.0040170d
cmp eax, 7
jne 0x401085
jmp 0x401670
ret
sub esp, 0x104
lea eax, [esp]
push eax
call fcn.004012e0
add esp, 4
test al, al
je 0x4016cf
push edi
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [str.Freedom_Fighters]
mov edx, dword [0x406688]
mov eax, dword [0x40668c]
dec edi
mov dword [edi], ecx
mov ecx, dword [0x406690]
mov dword [edi + 4], edx
mov dx, word [0x406694]
mov dword [edi + 8], eax
lea eax, [esp + 4]
push eax
mov dword [edi + 0xc], ecx
mov word [edi + 0x10], dx
call fcn.00401510
add esp, 4
pop edi
add esp, 0x104
ret

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

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
call fcn.00401270
add esp, 4
test al, al
jne 0x4010ac
call fcn.00401160
push esi
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4065d4]
repne scasb al, byte es:[edi]
mov ecx, dword [str.unwise.exe]
mov eax, dword [0x4065d8]
dec edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [edi], ecx
lea ecx, [esp + 8]
push ecx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
call esi
cmp eax, 0xffffffff
jne 0x4010ea
call fcn.00401190
lea edx, [esp + 8]
push edx
call fcn.00401270
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov eax, dword [0x4065c0]
mov ecx, dword [0x4065c4]
mov edx, dword [0x4065c8]
dec edi
mov dword [edi], eax
mov al, byte [0x4065cc]
mov dword [edi + 4], ecx
lea ecx, [esp + 8]
push ecx
mov dword [edi + 8], edx
mov byte [edi + 0xc], al
call esi
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x401137
call fcn.00401160
lea edx, [esp]
push edx
call fcn.00401270
lea eax, [esp + 4]
push eax
push str._Z__A_install.log
push 0x4065a0
call fcn.004013e0
add esp, 0x114
ret

Function at 0x401160
Capabilities:
Extract resource via kernel32 functions
Terminate process
Write file on windows

Disassembly:
call fcn.00401500
mov ecx, dword [eax*4 + 0x406030]
mov edx, dword [eax*4 + 0x40606c]
push 0x10
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0040170d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x401190
Capabilities:
Extract resource via kernel32 functions
Terminate process
Write file on windows

Disassembly:
mov eax, dword [0x408b20]
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0x4065ec
push 0x4065dc
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x408b20]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x408b20]
push esi
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
call fcn.00401270
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov ecx, dword [str.unwise.exe]
mov edx, dword [0x4065d4]
mov eax, dword [0x4065d8]
dec edi
push 0
push 0x80
mov dword [edi], ecx
push 2
push 0
push 0
mov dword [edi + 4], edx
lea ecx, [esp + 0x28]
push 0x40000000
push ecx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x10]
push 0
push edx
mov edi, eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop edi
cmp eax, esi
pop esi
pop ebp
pop ebx
je 0x401261
add esp, 0x108
jmp fcn.00401160
add esp, 0x108
ret

Function at 0x401270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareElectronic_ArtsFreedom
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401299
xor al, al
add esp, 8
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
lea ecx, [esp + 4]
push esi
push ecx
push edx
push 0
push 0
push str.InstallDir
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 8
ret
Function at 0x4012e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
lea eax, [esp]
mov dword [esp + 8], 0x104
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013b4
lea ecx, [esp + 8]
lea edx, [esp + 0x114]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push edx
push eax
push 0
push str.Personal
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401374
push edi
lea edx, [esp + 0x10]
push 0x106
lea eax, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x406620]
mov word [edi - 1], cx
pop edi
jmp 0x401385
xor eax, eax
mov cl, byte [eax + 0x406620]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x401376
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x220]
lea ecx, [esp + 0xc]
lea eax, [esp + 0xc]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4013a1
mov al, 1
add esp, 0x21c
ret
mov edx, dword [esp + 0x220]
mov eax, 0x406620
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4013c2
mov al, 1
add esp, 0x21c
ret
Function at 0x4013e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x15c
push ebx
mov ebx, dword [esp + 0x16c]
xor edx, edx
push ebp
push esi
cmp ebx, edx
push edi
mov byte [esp + 0x68], dl
je 0x40143d
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x406620]
mov word [edi - 1], ax
mov edi, dword [esp + 0x170]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], edx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
mov dword [esp + 0x20], edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
mov dword [esp + 0x24], edx
push ecx
mov ecx, dword [esp + 0x178]
push eax
push ebx
push edx
push edx
push 1
push edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov word [esp + 0x60], dx
mov word [esp + 0x62], dx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
push edx
lea edx, [esp + 0x88]
push ecx
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret
Function at 0x401510
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x34c
lea edx, [esp + 0x248]
push ebx
push esi
mov esi, dword [esp + 0x358]
push edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40152b
lea edi, [esp + 0x254]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
mov ax, word [0x406680]
mov cl, byte [0x406682]
dec edi
push edx
mov word [edi], ax
lea eax, [esp + 0x258]
push eax
mov byte [edi + 2], cl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40165a
push ebp
lea ebp, [esp + 0x14]
sub ebp, esi
jmp 0x401587
mov esi, dword [esp + 0x360]
mov eax, esi
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x401589
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
mov cx, word [0x406620]
mov word [edi - 1], cx
lea edi, [esp + 0x144]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40667c
lea esi, [esp + 0x144]
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
je 0x40162d
mov edi, 0x406678
lea esi, [esp + 0x144]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40162d
test byte [esp + 0x118], 0x10
je 0x401622
lea eax, [esp + 0x14]
push eax
call fcn.00401510
add esp, 4
jmp 0x40162d
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x118]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401580
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x34c
ret
Function at 0x4024bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406748
cmp edx, dword [eax]
je 0x4024df
add eax, 8
inc ecx
cmp eax, 0x4067d8
jl 0x4024d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406748]
jne 0x40260d
mov eax, dword [0x408b78]
cmp eax, 1
je 0x4025e7
test eax, eax
jne 0x402510
cmp dword [0x40669c], 1
je 0x4025e7
cmp edx, 0xfc
je 0x40260d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402547
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402aa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402c50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40258a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402c50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405400
push edi
call fcn.004042f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402aa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402ab0
lea eax, [ebp - 0xa0]
push 0x4053e0
push eax
call fcn.00402ab0
push dword [esi + 0x40674c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402ab0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404264
add esp, 0x2c
pop edi
jmp 0x40260d
lea eax, [ebp + 8]
lea esi, [esi + 0x40674c]
push 0
push eax
push dword [esi]
call fcn.00402c50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4023d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4023fa
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x4023fa
mov dword [ebp - 8], 1
jmp 0x402401
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x402410
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41fd30]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x40242f
cmp dword [ebp + 0xc], 0
jne 0x402439
mov eax, 2
jmp 0x402630
mov eax, dword [ebp + 8]
push eax
call fcn.00405bb0
add esp, 4
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
add ecx, 3
cmp ecx, 0x105
jbe 0x402466
mov eax, 2
jmp 0x402630
mov edx, dword [ebp - 0x250]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00405c40
add esp, 0xc
push 3
push 0x41fd1c
mov edx, dword [ebp - 0x250]
lea eax, [ebp + edx - 0x10c]
push eax
call fcn.00405c40
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00405bb0
add esp, 4
mov dword [ebp - 0x25c], eax
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0xffffffff
jne 0x4024dc
mov eax, 1
jmp 0x402630
mov dword [ebp - 0x264], 1
mov ecx, dword [ebp - 0x24c]
and ecx, 0x10
jne 0x4024f6
jmp 0x402601
lea edx, [ebp - 0x220]
push edx
call fcn.00405bb0
add esp, 4
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x250]
lea edx, [ecx + eax + 1]
mov eax, dword [ebp - 0x25c]
lea ecx, [edx + eax + 2]
cmp ecx, 0x105
jbe 0x402532
jmp 0x402601
mov edx, dword [ebp - 0x254]
push edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x250]
lea edx, [ebp + ecx - 0x10b]
push edx
call fcn.00405c40
add esp, 0xc
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x250]
lea edx, [ecx + eax + 1]
mov byte [ebp + edx - 0x10c], 0x5c
mov eax, dword [ebp - 0x25c]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x250]
lea eax, [ebp + edx - 0x10c]
mov ecx, dword [ebp - 0x254]
lea edx, [eax + ecx + 2]
push edx
call fcn.00405c40
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call fcn.004023d0
add esp, 4
test eax, eax
je 0x402601
mov ecx, dword [ebp - 0x254]
mov edx, dword [ebp - 0x250]
lea eax, [edx + ecx + 1]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0x105
jae 0x4025d3
jmp 0x4025d8
call fcn.004028cc
mov ecx, dword [ebp - 0x260]
mov byte [ebp + ecx - 0x10c], 0
lea edx, [ebp - 0x10c]
push edx
call fcn.00401b30
add esp, 4
mov dword [ebp - 0x264], 0
jmp 0x40261d
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4024e6
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004029a7
mov esp, ebp
pop ebp
ret
Function at 0x40ac14
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419a90
push 0x419a88
push str.FlsAlloc
push 0x1e
call fcn.0040aad5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ac48
push dword [ebp + 8]
mov ecx, esi
call dword [0x418164]
call esi
jmp 0x40ac4e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ac92
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419aa0
push 0x419a98
push str.FlsGetValue
push 0x20
call fcn.0040aad5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40acc9
push dword [ebp + 8]
mov ecx, esi
call dword [0x418164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40e194
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 0x40e231
push ebx
push esi
call fcn.0040e15d
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.0040e0a6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40e1de
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e230
push edi
push eax
call fcn.0040a5de
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40e1fe
call fcn.0040a5a4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40e22f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e0a6
add esp, 0x20
test eax, eax
jne 0x40e21d
push edi
call fcn.0040a5a4
jmp 0x40e225
push ebx
call fcn.0040a5a4
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 0x410a04
Capabilities:
Read file on windows

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

Function at 0x4143d9
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 + 0x421508]
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 0x414419
cmp byte [ebx], 0xa
jne 0x414419
or byte [eax + edi + 0x28], 4
jmp 0x41441e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41451c
mov al, byte [edx]
cmp al, 0x1a
je 0x4144fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41444d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x414472
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41447c
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 0x41442f
jmp 0x41451c
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 0x4144f9
cmp dword [ebp - 0xc], 0
je 0x4144f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x421508]
test byte [eax + edi + 0x28], 0x48
je 0x4144d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4144be
mov byte [esi], dl
jmp 0x4144cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x421508]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41451c
cmp byte [ebp - 1], 0xa
jne 0x4144e2
cmp esi, ebx
jne 0x4144e2
mov byte [esi], 0xa
jmp 0x41451b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414349
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41451c
mov byte [esi], 0xd
jmp 0x41451b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x421508]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414518
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41451c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret