joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42db1e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42db4c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42db6a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042da88
jmp 0x42db6a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42db6a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042da88
test edi, edi
mov eax, edi
jne 0x42db54
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44617c]
test ecx, ecx
je 0x42dc1d
jmp 0x42db1d
ret 8

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 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 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x401bd7
pop dword [ebp - 0x30]
mov eax, 0x9d68ba47
add eax, 0x62d76190
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x9d1da2c3
add dword [ebp - 0x40], 0xb134a288
mov dword [ebp - 0x3c], 0x4511a3a2
add dword [ebp - 0x3c], 0xed21a8a3
mov dword [ebp - 0x38], 0x27c6c759
add dword [ebp - 0x38], 0x24857cd5
mov dword [ebp - 0x34], 0xcc5666db
sub dword [ebp - 0x34], 0xcc5666db
lea eax, [ebp - 0x40]
push eax
mov eax, 0x4f75ba2b
sub eax, 0x4f3549cb
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x3a4b2b31
sub dword [ebp - 0x40], 0xc5d8c1db
mov dword [ebp - 0x3c], 0x562c79c
add dword [ebp - 0x3c], 0x3c0999d9
mov dword [ebp - 0x38], 0xc0e3973
sub dword [ebp - 0x38], 0xa89ecd07
mov dword [ebp - 0x34], 0x35a3d7af
sub dword [ebp - 0x34], 0x35a3d7af
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xd2f8493b
sub eax, 0xd2b7d83b
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x36637
push 0
call eax
mov ecx, 0x147cfddc
sub ecx, 0x147cb69b
mov edx, eax
mov esi, 0xb35ae645
add esi, 0x4ce619bb
add esi, dword [ebp - 0x30]
mov ebx, 0x5c2412cc
xor dword [ebp - 0xc], esi
mov edi, dword [esi]
sub dword [ebp - 0x2c], ecx
add edi, ebx
add dword [ebp - 0x2c], 0x54cc866d
mov dword [edx], edi
xor dword [ebp - 0x14], 0x8948136e
add edx, 4
add esi, 0x3a7c39ba
sub esi, 0x3a7c39b6
loop 0x401cf3
add eax, 0x10fd7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x126a8b9e
add ecx, 0xedd57462
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4039a0
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x46b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2e4], ebx
je 0x4039e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x2e4]
add edx, 0x64
cmp edx, eax
jae 0x4039d8
mov ecx, esi
call fcn.00403a57
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00418187
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x2e0]
add ecx, 0x7530
cmp ecx, eax
jb 0x4039d1
cmp dword [esi + 0x2dc], ebx
je 0x4039d1
mov eax, dword [esi + 0x2d8]
test eax, eax
je 0x4039d1
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x403a49
cmp dword [ebp - 8], 0x103
jne 0x403a49
mov eax, dword [esi + 0x2dc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x403ab8
mov byte [ebp - 0xc], bl
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp - 0xc], bl
je 0x4039d8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x2e4], eax
jmp 0x4039d8

Function at 0x404a61
Capabilities:
Accept command line arguments

Disassembly:
push 0x50
mov eax, 0x4526b3
call fcn.00448aa8
mov esi, ecx
mov edi, dword [ebp + 8]
lea edx, [esi + 0xc8]
push str.Launcher_
lea ecx, [ebp - 0x40]
call fcn.0040c1a1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov dword [esp], str.Settings.json
call fcn.004097e3
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x58]
call fcn.004097e3
mov byte [ebp - 4], 2
cmp dword [esi + 0x19c], 0
je 0x404ae8
lea eax, [esi + 0x18c]
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x404ada
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x404ad0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a5a6
push str.Using_custom_name_for_Settings.json.
push 3
mov ecx, esi
call fcn.0040b710
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x404af4
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040ab80
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x404b0c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
mov ecx, esi
lea eax, [ebp - 0x5c]
push eax
push str.Settings_file_full_path:__s.
push 3
call fcn.0040bb93
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004066c1
lea ecx, [ebp - 0x58]
mov bl, al
call fcn.00401357
lea ecx, [ebp - 0x28]
call fcn.00401357
lea ecx, [ebp - 0x40]
call fcn.00401357
mov al, bl
call fcn.00448a57
ret 4
Function at 0x404f95
Capabilities:
Accept command line arguments

Disassembly:
push 0x10c
mov eax, 0x452779
call fcn.00448b14
mov esi, ecx
mov dword [ebp - 0x114], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edi, [esi + 0x128]
push eax
mov ecx, edi
call fcn.0040a581
cmp dword [esi + 0x138], 0
je 0x405036
and dword [ebp - 4], 0
push ecx
push str._______S___s
lea ecx, [ebp - 0x40]
call fcn.00407e91
push ecx
push str.___eac_launcher_settings__eac_launcher_settings___s__0_9a_zA_Z___.json__s_0_9a_zA_Z___.json__
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407e91
mov byte [ebp - 4], 2
lea esi, [ebp - 0x40]
lea eax, [ebp - 0x18]
cmp esi, eax
je 0x405020
push ecx
push ecx
push esi
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.0040c50a
add esp, 0xc
mov ecx, edi
push eax
call fcn.0040975c
lea ecx, [ebp - 0x58]
call fcn.00401357
add esi, 0x14
jmp 0x404ff4
push 0x407e80
push 2
push 0x14
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0
push eax
call fcn.0044876a
call fcn.00448a66
ret

Function at 0x4065e2
Capabilities:
Accept command line arguments

Disassembly:
push 0x74
mov eax, 0x4529a1
call fcn.00448aa8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x28]
call fcn.004097e3
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x40660f
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x68]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x406633
push str.Failed_in_parsing_command_line_arguments__custom_paths_will_not_be_supported_.
push 2
mov ecx, esi
call fcn.0040b710
jmp 0x4066b3
push 0x3c
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00419190
pop ecx
push edi
push dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
call fcn.0040893a
mov byte [ebp - 4], 1
jmp 0x406698
cmp dword [ebp - 0x30], 0
jne 0x406698
mov eax, dword [ebp - 0x58]
sub eax, 0
je 0x406679
sub eax, 1
jne 0x406698
push dword [ebp - 0x40]
lea ecx, [ebp - 0x80]
call fcn.004097e3
lea ecx, [esi + 0x174]
jmp 0x40668a
push dword [ebp - 0x40]
lea ecx, [ebp - 0x80]
call fcn.004097e3
lea ecx, [esi + 0x18c]
push eax
call fcn.0040975c
lea ecx, [ebp - 0x80]
call fcn.00401357
lea ecx, [ebp - 0x64]
call fcn.0040b470
test al, al
jne 0x406653
cmp dword [ebp - 0x2c], 0
je 0x4066b3
push dword [ebp - 0x2c]
call fcn.00421c7a
pop ecx
lea ecx, [ebp - 0x28]
call fcn.00401357
call fcn.00448a57
ret
Function at 0x406d61
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x204
mov eax, dword [0x46b004]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
mov ebx, dword [esp + 0x20c]
push ebp
push esi
push edi
push dword [ecx + 0x4a0]
mov ebp, dword [ebx + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call edi
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xffffff
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, 0xe0a924
push esi
push ebp
call dword [sym.imp.GDI32.dll_SetDCPenColor]
push esi
push ebp
call dword [sym.imp.GDI32.dll_SetDCBrushColor]
mov esi, dword [sym.imp.GDI32.dll_GetStockObject]
push 0x12
call esi
push eax
push ebp
call edi
push 0x13
call esi
push eax
push ebp
call edi
push 8
push 8
push dword [ebx + 0x28]
lea esi, [ebx + 0x1c]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [esi]
push ebp
call dword [sym.imp.GDI32.dll_RoundRect]
push 0x100
lea eax, [esp + 0x14]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x406e15
push 0x825
push esi
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418187
add esp, 0x204
ret 4

Function at 0x409e1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x409e76
cmp byte [esi + 0x3d], bl
je 0x409e76
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x409eaf
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x409e87
sub eax, 1
je 0x409e8a
dec eax
sub eax, 1
jne 0x409eaf
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418187
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x409ea7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041ef51
add esp, 0x10
cmp edi, eax
jne 0x409eaf
cmp byte [esi + 0x3d], bl
sete al
jmp 0x409e78
xor al, al
jmp 0x409e78
Function at 0x40a259
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x40a2b6
cmp byte [esi + 0x3e], bl
je 0x40a2b6
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
cmp di, ax
je 0x40a2ef
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x40a2c7
sub eax, 1
je 0x40a2ca
dec eax
sub eax, 1
jne 0x40a2ef
mov byte [esi + 0x3e], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418187
leave
ret
mov byte [esi + 0x3e], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40a2e7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041ef51
add esp, 0x10
cmp edi, eax
jne 0x40a2ef
cmp byte [esi + 0x3e], bl
sete al
jmp 0x40a2b8
xor al, al
jmp 0x40a2b8

Function at 0x40ec90
Capabilities:
Parse credit card information

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40ede2
mov ebp, 0x10000000
cmp eax, 0x7c
je 0x40ede2
cmp eax, 0x29
jne 0x40ecc9
cmp dword [esi + 0x10], 0
jne 0x40ede2
test dword [esi + 0x50], ebp
je 0x40edf0
cmp eax, 0x2e
jne 0x40ece4
push 5
lea ecx, [esi + 0x24]
call fcn.0040eecd
mov ecx, esi
call fcn.0040ec67
jmp 0x40edcd
cmp eax, 0x5c
jne 0x40ed39
mov ecx, esi
call fcn.0040ec67
test byte [esi + 0x50], 0x80
je 0x40ed2d
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x40ed15
push 4
lea ecx, [esi + 0x24]
call fcn.0040eecd
mov ecx, esi
call fcn.0040ec67
jmp 0x40edd4
cmp eax, 0x42
jne 0x40ed2d
push 4
lea ecx, [esi + 0x24]
call fcn.0040eecd
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x40ed09
mov ecx, esi
call fcn.0040f221
jmp 0x40edcd
cmp eax, 0x5b
jne 0x40ed59
mov ecx, esi
call fcn.0040ec67
mov ecx, esi
call fcn.0040f1d5
cmp dword [esi + 0x4c], 0x5d
je 0x40ecd8
push 4
jmp 0x40edf2
cmp eax, 0x28
jne 0x40ed76
mov ecx, esi
call fcn.0040ec67
mov ecx, esi
call fcn.0040f309
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x40edf0
jmp 0x40edc2
cmp eax, 0x5e
jne 0x40ed7f
push 2
jmp 0x40ed01
cmp eax, 0x24
jne 0x40ed8b
push 3
jmp 0x40ed01
cmp eax, 0x2a
je 0x40edec
cmp eax, 0x2b
je 0x40edec
cmp eax, 0x3f
je 0x40edec
cmp eax, 0x7b
je 0x40edec
cmp eax, 0x7d
jne 0x40eda9
test dword [esi + 0x50], ebp
je 0x40ede8
cmp eax, 0x5d
jne 0x40edb3
test dword [esi + 0x50], ebp
je 0x40ed52
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040f46f
mov bl, 1
mov ecx, esi
call fcn.0040ec67
test bl, bl
je 0x40edd4
mov ecx, esi
call fcn.0040f38a
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40eca8
pop esi
pop ebp
mov al, cl
pop ebx
ret
push 6
jmp 0x40edf2
push 0xa
jmp 0x40edf2
push 5
call fcn.0040e4d8
int3
Function at 0x416941
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x416949
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41695c
test al, 0x10
je 0x41695c
mov al, 1
ret
xor al, al
ret

Function at 0x41695f
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x46b004]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov esi, edx
push edi
mov eax, dword [esi]
mov dword [esi + 4], eax
test ecx, ecx
je 0x416a0e
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x416a0e
push ebx
push ebp
xor ebp, ebp
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 5
push 0x120089
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x416a02
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4169fb
cmp edi, dword [esp + 0x14]
jb 0x4169ca
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.0041649e
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
sub eax, dword [esi]
push ebp
push ecx
push eax
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4169f6
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp dword [esp + 0x10], eax
je 0x4169fb
mov eax, dword [esi]
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
pop ebp
setne al
pop ebx
jmp 0x416a10
xor al, al
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00418187
add esp, 0x10
ret

Function at 0x416a21
Capabilities:
Enumerate files on windows

Disassembly:
push 0x26c
mov eax, 0x453b40
call fcn.00448aa8
mov edi, edx
cmp dword [ecx + 0x14], 8
jb 0x416a3a
mov ecx, dword [ecx]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416a53
xor al, al
jmp 0x416ac2
cmp word [ebp - 0x234], 0x2e
je 0x416aa7
test byte [ebp - 0x260], 0x10
jne 0x416aa7
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x278]
call fcn.004097e3
and dword [ebp - 4], 0
mov ecx, dword [edi + 4]
push eax
cmp ecx, dword [edi + 8]
je 0x416a90
call fcn.0040977e
add dword [edi + 4], 0x18
jmp 0x416a98
push ecx
mov ecx, edi
call fcn.00416aed
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.00401357
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416a53
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
call fcn.00448a57
ret
Function at 0x417041
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov dword [esp], ecx
push ebx
mov ebx, edx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [ebp]
mov dword [ebp + 4], eax
test ecx, ecx
je 0x417119
cmp dword [edi + 0x10], 0
je 0x417119
cmp dword [ebx + 0x10], 0
je 0x417119
mov esi, dword [0x46d5e4]
cmp esi, dword [0x46d5e8]
je 0x417119
mov edx, edi
mov ecx, esi
call fcn.00411c01
test al, al
jne 0x41709f
add esi, 0x18
cmp esi, dword [0x46d5e8]
jne 0x417087
cmp esi, dword [0x46d5e8]
je 0x417119
cmp dword [edi + 0x14], 8
jb 0x4170af
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x4170b7
mov ebx, dword [ebx]
push edi
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x417119
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x417119
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x417119
mov ecx, dword [ebp + 8]
mov edi, dword [ebp]
sub ecx, edi
cmp esi, ecx
jbe 0x417104
push esi
mov ecx, ebp
call fcn.00417405
mov edi, dword [ebp]
push esi
push ebx
push edi
call fcn.0041abc0
lea eax, [edi + esi]
add esp, 0xc
mov dword [ebp + 4], eax
mov al, 1
jmp 0x41711b
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4254a5
Capabilities:
Set environment variable

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

Function at 0x42b3c9
Capabilities:
Read file on windows

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

Function at 0x42b3d4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b204
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x406ac2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x406ad1
pop dword [ebp - 0x34]
mov eax, 0x146f5132
sub eax, 0x142ee661
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x633240c3
sub dword [ebp - 0x44], 0x14dffb78
mov dword [ebp - 0x40], 0x2c65549a
add dword [ebp - 0x40], 0x5cdf7ab
mov dword [ebp - 0x3c], 0x7d590ec3
add dword [ebp - 0x3c], 0xcef3356b
mov dword [ebp - 0x38], 0x9b8a183e
sub dword [ebp - 0x38], 0x9b8a183e
lea eax, [ebp - 0x44]
push eax
mov eax, 0x767d9bdc
sub eax, 0x763ccb88
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x452397b4
add dword [ebp - 0x44], 0x2f4ed1a2
mov dword [ebp - 0x40], 0xeb494843
add dword [ebp - 0x40], 0x56231932
mov dword [ebp - 0x3c], 0x9cebe594
sub dword [ebp - 0x3c], 0x397c7928
mov dword [ebp - 0x38], 0x78a7eadb
add dword [ebp - 0x38], 0x87581525
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xf9a1e27e
add eax, 0x69eedce
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x39d76
push 0
call eax
mov ecx, 0xd135afae
add ecx, 0x2eca9888
mov edx, eax
mov ebx, 0x41b000
add ebx, dword [ebp - 0x34]
mov edi, 0xb025b540
sub edi, 0x46f145b2
mov esi, dword [ebx]
xor dword [ebp - 0x24], 0x64916b0b
sub esi, edi
add dword [ebp - 0x30], 0x9c429bce
mov dword [edx], esi
xor dword [ebp - 0x10], 0xa66beacb
add edx, 0x763de96a
sub edx, 0x763de966
add ebx, 4
loop 0x406bed
add eax, 0xba322c44
sub eax, 0xba311899
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe19e58a6
add ecx, 0x1ea1a75a
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x100100b7
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x1005827c
call fcn.10025a34
cmp byte [0x10093bd8], 0
push dword [0x10093bd4]
je 0x100100da
call dword [sym.imp.kernel32.dll_FlsGetValue]
jmp 0x100100e0
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10010128
push 0x14
call fcn.10035654
mov esi, eax
pop ecx
test esi, esi
je 0x10010130
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
push 8
pop ecx
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.10002cc8
mov dword [esi], eax
push esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov ecx, dword [esi]
mov dword [ecx], esi
mov ecx, 0x10093bd4
call fcn.10035654
mov eax, esi
call fcn.10025a05
ret
call fcn.10035654
int3
Function at 0x40b570
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40b73e
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40b59b
mov eax, 0x7000000
jmp 0x40b5a3
test eax, eax
je 0x40b719
mov dword [esp + 0x14], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
mov dword [ecx + 0x94], ebx
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
mov dword [ecx + 0x98], ebp
lea ecx, [ebp + ebx]
shr ecx, 6
inc ecx
mov dword [esp], ecx
call fcn.0045f7e0
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr eax, 0x14
and eax, 0x7ff
mov edx, eax
add eax, 0xfffffc01
mov ebx, ecx
shr ecx, 0xf
and ecx, 0x1f
mov ebp, ecx
add ecx, 1
mov esi, 0
adc esi, 0
shl ebx, 5
mov edi, dword [esp + 0x28]
shr edi, 0x1b
or edi, ebx
lea ebx, [0x83d900]
movsd xmm0, qword [ebx + ebp*8]
test esi, esi
jne 0x40b731
cmp ecx, 0x21
jae 0x40b725
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x10], edi
add edx, 0xfffffc01
mov edx, 0xffffffff
adc edx, 0
movsd xmm0, qword [ebx + ecx*8]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00459910
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
and eax, 0xfffff
mov dword [esp], eax
call fcn.004599e0
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x7027e8]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x7028c8]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40b6f4
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x702930]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, ecx
mov ecx, 0x21
call fcn.0045f8c0
mov eax, ecx
mov ecx, 0x21
call fcn.0045f990
nop
call fcn.0045e420
jmp fcn.0040b570