joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e9ee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c560
push 0x42c558
push str.FlsAlloc
push 0x1f
call fcn.0041e88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ea22
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
jmp 0x41ea28
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ea6c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c570
push 0x42c568
push str.FlsGetValue
push 0x21
call fcn.0041e88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eaa3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41eaab
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c578
push 0x42c570
push str.FlsSetValue
push 0x22
call fcn.0041e88a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eae5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281d0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4010b3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4031b4
cmp dword [edi], ebx
je 0x401158
push str._mozilla.org_observer_service_1
mov edx, 0x403594
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.00401b5c
mov eax, dword [ebp - 4]
test eax, eax
je 0x401138
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.00401c49
mov eax, dword [ebp - 4]
test eax, eax
je 0x401158
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40118f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x40118f
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.004017df
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.00401899
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4011ab
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4011b8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x4011c4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4011d4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x401260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.00401070
push ebx
call fcn.00401140
mov edi, eax
add esp, 8
test edi, edi
js 0x401321
push 0x444434
push dword [ebp + 0xc]
call fcn.00426528
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0x401321
push ebx
call fcn.00401710
push 0x8000
mov dword [ebp - 8], eax
call fcn.0042861d
add esp, 8
mov ebx, eax
test edi, edi
je 0x4012ee
nop
push dword [ebp - 8]
mov esi, 0x8000
cmp edi, esi
cmovl esi, edi
push esi
push ebx
call fcn.00401330
push dword [ebp - 4]
push esi
push 1
push ebx
call fcn.004272ab
add esp, 0x1c
cmp eax, esi
jl 0x4012eb
sub edi, esi
jne 0x4012c0
mov esi, dword [ebp - 4]
cmp dword [0x456b5c], 0
jne 0x401305
push dword [0x456d18]
call fcn.004262a9
add esp, 4
push esi
call fcn.004262a9
push ebx
call fcn.00428618
add esp, 8
test edi, edi
jne 0x401321
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401330
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x456b5c], 0
push esi
je 0x40137e
mov esi, dword [ebp + 0xc]
mov edx, dword [0x456004]
mov ecx, dword [0x456008]
lea eax, [edx + esi]
cmp eax, ecx
jl 0x401358
mov esi, ecx
sub esi, edx
test esi, esi
jle 0x401377
mov ecx, dword [section..data]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00423fa0
add esp, 0xc
add dword [0x456004], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push esi
call fcn.0042670b
add esp, 0x10
mov edi, eax
cmp dword [0x456cf8], 0
je 0x4013e3
test edi, edi
jle 0x4013e3
mov eax, dword [0x456d00]
mov edx, edi
mov cl, byte [0x456d14]
push ebx
mov ebx, dword [0x456cfc]
add ebx, dword [0x456d0c]
add eax, dword [0x456d10]
movzx eax, al
mov dword [ebp - 4], eax
mov al, byte [esi]
lea esi, [esi + 1]
xor al, bl
sub al, byte [ebp - 4]
add cl, al
mov byte [esi - 1], cl
sub edx, 1
jne 0x4013c8
mov byte [0x456d14], cl
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00401070
mov ebx, dword [ebp + 0x14]
xor esi, esi
add esp, 4
test ebx, ebx
cmovns esi, ebx
cmp dword [0x456b5c], 0
je 0x4017e5
push edi
call fcn.00401710
push 0
push dword [ebp + 0x10]
mov dword [0x456004], esi
push dword [ebp + 0xc]
call fcn.00401330
add esp, 0x10
mov esi, eax
cmp dword [0x456b5c], 0
jne 0x4018a3
push dword [0x456d18]
call fcn.004262a9
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [0x456b58], 0
je 0x40185e
push edi
call fcn.004019f0
add esp, 4
test eax, eax
jne 0x40185e
push dword [0x456d18]
mov ebx, dword [0x456cf0]
call fcn.004262a9
push 0x444420
push 0x456be8
call fcn.00426528
mov edi, eax
add esp, 0xc
test edi, edi
je 0x401872
mov ecx, dword [0x456cf4]
add ecx, esi
add ecx, dword [0x456cec]
push 0
push ecx
push edi
call fcn.00426af6
cmp dword [ebp + 0x10], ebx
push edi
cmovl ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.00401330
push edi
mov esi, eax
call fcn.004262a9
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x444420
push edi
call fcn.00426528
mov edi, eax
add esp, 8
test edi, edi
jne 0x40187a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
test ebx, ebx
js 0x40188a
push 0
push esi
push edi
call fcn.00426af6
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0042670b
push edi
mov esi, eax
call fcn.004262a9
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x4018b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00401140
mov esi, eax
add esp, 4
test esi, esi
jns 0x4018d0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
push ebx
push eax
call fcn.00422d60
push edi
mov ebx, eax
call fcn.00401070
add esp, 8
cmp dword [0x456b5c], 0
je 0x401932
push edi
call fcn.00401710
push 0
push esi
push ebx
mov dword [0x456004], 0
call fcn.00401330
add esp, 0x10
cmp dword [0x456b5c], 0
jne 0x4019df
push dword [0x456d18]
call fcn.004262a9
add esp, 4
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x456b58], 0
je 0x4019ae
push edi
call fcn.004019f0
add esp, 4
test eax, eax
jne 0x4019ae
mov eax, dword [0x456cf0]
push dword [0x456d18]
mov dword [ebp - 4], eax
call fcn.004262a9
push 0x444420
push 0x456be8
call fcn.00426528
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4019df
mov ecx, dword [0x456cf4]
add ecx, dword [0x456cec]
push 0
push ecx
push edi
call fcn.00426af6
mov eax, dword [ebp - 4]
cmp esi, eax
push edi
cmovl eax, esi
push eax
push ebx
call fcn.00401330
push edi
call fcn.004262a9
add esp, 0x1c
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x444420
push edi
call fcn.00426528
mov edi, eax
add esp, 8
test edi, edi
je 0x4019df
push 0
push 0
push edi
call fcn.00426af6
push edi
push esi
push 1
push ebx
call fcn.0042670b
push edi
call fcn.004262a9
add esp, 0x20
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410ee0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00423460
push esi
push edi
call fcn.00405990
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00422e20
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00422970
push dword [ebp - 4]
lea eax, [edi + 0x368]
push eax
call fcn.0040c110
lea eax, [ebp - 4]
push eax
call fcn.00422a90
add esp, 0x18
lea eax, [ebp - 0x1004]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00422cc0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.00422970
push dword [ebp - 4]
lea esi, [edi + 0x338]
push esi
call fcn.0040c110
push 0x5c
push dword [esi]
call fcn.00422530
push dword [esi]
lea eax, [edi + 0x384]
push eax
call fcn.0040c110
mov eax, dword [esi]
add esp, 0x2c
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x410f90
mov ecx, dword [str.hsptv_]
mov dword [eax], ecx
mov ecx, dword [0x44466c]
mov dword [eax + 4], ecx
lea eax, [ebp - 4]
push eax
call fcn.00422a90
push dword [esi]
lea eax, [edi + 0x388]
push eax
call fcn.0040c110
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4120f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ecx*4]
not eax
and eax, 8
or eax, 2
cmp byte [edx], 0
je 0x4121a6
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
movlpd qword [ebp - 0x30], xmm0
push eax
push edx
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], 0
call fcn.00422970
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00422970
add esp, 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
lea eax, [ebp - 4]
push eax
je 0x412229
call fcn.00422a90
lea eax, [ebp - 8]
push eax
call fcn.00422a90
add esp, 8
mov esp, ebp
pop ebp
ret
push esi
push eax
lea eax, [ebp - 4]
test cl, 0x10
je 0x4121d3
push 0x444437
push 0x444437
push eax
push dword [ebp + 8]
call fcn.00422970
add esp, 8
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x412211
test cl, 0x20
je 0x4121fe
push 0x444437
push 0x444437
push eax
push dword [ebp + 8]
call fcn.00422970
add esp, 8
push eax
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x412211
push eax
push dword [ebp + 8]
call fcn.00422970
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.00422a90
add esp, 4
cmp esi, 0x20
pop esi
jl 0x41223a
mov esp, ebp
pop ebp
ret
call fcn.00422a90
lea eax, [ebp - 8]
push eax
call fcn.00422a90
add esp, 8
push 0x4533b8
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0xe
push eax
call fcn.00424aac
int3
Function at 0x412250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00423460
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1004], 0
push esi
cmp eax, 6
ja case.default.0x412271
jmp dword [eax*4 + 0x412378]
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.0042e9ce
add esp, 8
jmp 0x412318
mov eax, dword [0x457b28]
mov esi, dword [eax + 0x384]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x412318
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x412318
mov eax, dword [0x457b28]
mov esi, dword [eax + 0x368]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x444437
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x457b28]
add esi, 0x390
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x10000
je 0x412361
push 0
movzx eax, ax
push eax
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00422970
mov eax, dword [0x457b28]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.0040c110
lea eax, [ebp + 8]
push eax
call fcn.00422a90
mov eax, dword [0x457b28]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.00422530
add esp, 0x1c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x4533b8
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.00424aac
nop
js 0x41239c
inc ecx
add byte [ecx - 0x5cffbede], dl
and al, byte [ecx]
mov bh, 0x22
inc ecx
add bl, cl
and al, byte [ecx]
frstor dword [edx]
inc ecx
add cl, ch
and al, byte [ecx]
int3
int3
Function at 0x4159d0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443c60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x457bdc]
test byte [eax + 0x30c], 2
je 0x415a54
mov eax, dword [esi + 4]
cmp eax, 0x200
jne 0x415aa9
cmp dword [0x457bf0], 0
movzx ecx, word [esi + 0xc]
movzx eax, word [esi + 0xe]
jne 0x415a49
cmp dword [0x457bf4], ecx
jne 0x415acc
cmp dword [0x457bf8], eax
jne 0x415acc
jmp 0x415a54
mov dword [0x457bf4], ecx
mov dword [0x457bf8], eax
cmp dword [esi + 4], 0x100
jne 0x415a98
cmp dword [esi + 8], 9
jne 0x415a68
call fcn.00415120
push 2
call fcn.004065a0
add esp, 4
test eax, eax
je 0x415a98
push dword [esi + 0xc]
mov eax, dword [esi + 8]
push eax
push 2
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00406780
add esp, 0x10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x100
jne 0x415a54
cmp dword [0x457bf0], 0
je 0x415ae1
jmp 0x415a54
push 0x4533b8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call fcn.00424aac
push 0x4533b8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call fcn.00424aac
int3
Function at 0x417fd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x14]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
push dword [edi + 8]
call esi
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp + 0xc]
test eax, eax
js 0x418063
mov ecx, dword [ebp - 0x18]
push eax
mov ecx, dword [ecx + 0x130]
call fcn.0041a360
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
sub ecx, 1
je 0x418035
sub ecx, 1
je 0x41802b
movzx ecx, word [edi + 0x14]
movzx edx, word [edi + 0x16]
jmp 0x41803d
movzx ecx, word [edi + 0x18]
movzx edx, word [edi + 0x1a]
jmp 0x41803d
movzx ecx, word [edi + 0x1c]
movzx edx, word [edi + 0x1e]
push 0xcc0020
movsx eax, dx
push eax
movsx eax, cx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, 0x200
test word [edi + 2], ax
je 0x418090
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x118]
push eax
push 0xff
push 0xd
push dword [edi + 8]
call esi
push 0
push 0
push 0x31
push dword [edi + 8]
call esi
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
push 1
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00422970
add esp, 8
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextA]
lea eax, [ebp - 4]
push eax
call fcn.00422a90
add esp, 4
push esi
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x444434
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov esi, ecx
push eax
push dword [ebp + 8]
mov ebx, dword [esi + 0x40]
call fcn.00422970
add esp, 8
push eax
call fcn.00426528
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00422a90
add esp, 0xc
test edi, edi
jne 0x419a7d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x3c]
mov eax, 0x4d42
mov word [ebp - 0x14], ax
lea eax, [ebx + 0xe]
add eax, ecx
mov dword [ebp - 0x12], eax
lea eax, [ecx + 0xe]
mov dword [ebp - 0xa], eax
xor eax, eax
push edi
push 0xe
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004272ab
push edi
push dword [esi + 0x3c]
push 1
push dword [esi + 0x18]
call fcn.004272ab
push edi
push ebx
push 1
push dword [esi + 0x14]
call fcn.004272ab
push edi
call fcn.004262a9
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41a8a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.0041a210
mov eax, dword [edi + 0x324]
xor ebx, ebx
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x41a8e1
mov ebx, dword [ecx + 0x34]
push 1
call fcn.00419270
mov eax, dword [edi + 0x324]
push 0
push ebx
mov dword [eax + esi*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1a4
call fcn.00422f9a
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
test esi, esi
je 0x41a909
mov dword [esi], 0
mov dword [esi + 0xc4], 0
jmp 0x41a90b
xor esi, esi
mov eax, dword [edi + 0x324]
mov ecx, dword [ebp + 8]
mov dword [eax + ecx*4], esi
mov eax, dword [ebp + 0x14]
and eax, 1
mov dword [esi + 0x48], ecx
push eax
push dword [ebp + 0x10]
mov dword [esi + 0x130], edi
mov ecx, esi
push dword [ebp + 0xc]
mov dword [esi + 0x44], 1
push ebx
push dword [edi + 0x320]
call fcn.0041a5e0
pop edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x422980
Capabilities:
Get common file path
Set current directory

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

Function at 0x4229a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
and ecx, 1
mov eax, ebx
shl ecx, 4
mov edx, ecx
or edx, 6
and al, 2
push esi
lea eax, [ebp - 0x144]
cmove edx, ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4229e7
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
and ebx, 4
nop
mov ecx, dword [ebp - 4]
xor eax, eax
and ecx, dword [ebp - 0x144]
cmp eax, ecx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x422a0c
xor eax, eax
cmp eax, ecx
sbb eax, eax
inc eax
test eax, eax
je 0x422a58
mov al, byte [ebp - 0x118]
xor ecx, ecx
test al, al
setne cl
cmp al, 0x2e
jne 0x422a38
mov al, byte [ebp - 0x117]
test al, al
je 0x422a58
cmp al, 0x2e
jne 0x422a38
cmp byte [ebp - 0x116], 0
je 0x422a58
test ecx, ecx
je 0x422a58
lea eax, [ebp - 0x118]
inc esi
push eax
push edi
call fcn.0040c090
push 0x4445c8
push edi
call fcn.0040c090
add esp, 0x10
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4229f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4229f0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x422d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
mov ecx, 0x444434
test esi, esi
mov eax, 0x4450e0
push edi
cmovs eax, ecx
push eax
push dword [ebp + 8]
call fcn.00426528
mov edi, eax
add esp, 8
test edi, edi
jne 0x422db0
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
test esi, esi
js 0x422dc0
push 0
push esi
push edi
call fcn.00426af6
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004272ab
push edi
mov esi, eax
call fcn.004262a9
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x432699
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432518
Function at 0x4021a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9bda
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 2
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x402215
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov byte [ebp - 4], 3
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x402239
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 4
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x40225d
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 5
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x402281
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
lea esi, [edi + 0x28]
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004042e0
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret