joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x41d350
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x41d372
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d368
mov eax, 1
add ebx, ebx
jne 0x41d38b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d380
jne 0x41d39c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d380
xor ecx, ecx
sub eax, 3
jb 0x41d3b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d422
mov ebp, eax
add ebx, ebx
jne 0x41d3bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d3c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d3ec
inc ecx
add ebx, ebx
jne 0x41d3d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d3cd
jne 0x41d3e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d3cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d40c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d3fd
jmp 0x41d36e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d40c
add edi, ecx
jmp 0x41d36e
pop esi
mov edi, esi
mov ecx, 9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d42a
cmp byte [edi], 1
jne 0x41d42a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41d42f
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41d4a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e04c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e088]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d45c
mov ecx, edi
jns 0x41d48b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e08c]
or eax, eax
je 0x41d4a1
mov dword [ebx], eax
add ebx, 4
jmp 0x41d479
call dword [esi + 0x1e09c]
mov ebp, dword [esi + 0x1e090]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41d4db
sub esp, 0xffffff80
jmp 0x40124c
Function at 0x406210
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x224]
test eax, eax
je 0x4062ab
push 1
call fcn.00406460
mov eax, dword [esi + 0x204]
mov ecx, dword [esi + 0x20c]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x220]
inc edx
test eax, eax
mov dword [esi + 0x20c], edx
je 0x4062ab
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4062ab
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esi + 0x21c]
push 2
push eax
push edi
call ebx
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x204]
lea ecx, [esp + 0xc]
push 0
push ecx
push edx
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [esi + 0x220]
mov edi, dword [sym.imp.MSVCRT.dll_free]
test eax, eax
je 0x4062c1
push eax
call edi
add esp, 4
mov esi, dword [esi + 0x204]
test esi, esi
je 0x4062d1
push esi
call edi
add esp, 4
pop edi
pop esi
pop ecx
ret
Function at 0x4064b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebp
mov ebp, ecx
mov eax, dword [ebp]
cmp dword [eax + 0xd0], 1
jle 0x4066e1
push ebx
push esi
lea esi, [ebp + 4]
push edi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
lea edi, [ebp + 0x104]
mov ecx, esi
xor ebx, ebx
sub ecx, edi
mov dword [esp + 0x10], ecx
lea eax, [edi + ebx]
xor edx, edx
mov dl, byte [ecx + eax]
mov esi, edx
xor edx, edx
mov dl, byte [eax]
shr esi, 7
shr edx, 7
cmp esi, edx
je 0x40655d
push 2
mov ecx, ebp
call fcn.00406460
test esi, esi
jne 0x40652a
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov byte [eax + ecx], 3
mov edx, dword [ebp + 0x204]
mov eax, dword [ebp + 0x20c]
mov byte [edx + eax + 1], bl
jmp 0x40654a
mov ecx, dword [ebp + 0x204]
mov edx, dword [ebp + 0x20c]
mov byte [ecx + edx], 2
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov byte [eax + ecx + 1], bl
mov eax, dword [ebp + 0x20c]
mov ecx, dword [esp + 0x10]
add eax, 2
mov dword [ebp + 0x20c], eax
inc ebx
cmp ebx, 0x100
jl 0x4064e3
mov ecx, 0x40
lea esi, [ebp + 4]
rep movsd dword es:[edi], dword [esi]
call fcn.0041cf90
mov esi, dword [ebp]
add esi, 0x2c
xor eax, eax
mov dl, byte [eax + ebp + 0x210]
mov cl, byte [esi + eax]
cmp dl, cl
jne 0x406597
inc eax
cmp eax, 4
jl 0x406581
jmp 0x4065e3
cmp eax, 4
jge 0x4065e3
push 5
mov ecx, ebp
call fcn.00406460
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov byte [eax + ecx], 4
xor eax, eax
mov edx, dword [ebp + 0x204]
mov edi, dword [ebp + 0x20c]
mov cl, byte [esi + eax]
add edx, edi
mov byte [edx + eax + 1], cl
mov dl, byte [esi + eax]
mov byte [eax + ebp + 0x210], dl
inc eax
cmp eax, 4
jl 0x4065b7
add dword [ebp + 0x20c], 5
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x1d0]
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp + 0x214]
mov eax, dword [esp + 0x14]
pop edi
pop esi
cmp edx, eax
pop ebx
jne 0x406629
mov eax, dword [ebp + 0x218]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
je 0x4066bb
push 5
mov ecx, ebp
call fcn.00406460
mov ecx, dword [ebp + 0x204]
mov edx, dword [ebp + 0x20c]
mov byte [ecx + edx], 5
mov eax, dword [esp + 8]
mov ecx, dword [ebp + 0x204]
mov edx, dword [ebp + 0x20c]
sar eax, 8
mov byte [ecx + edx + 1], al
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov dl, byte [esp + 8]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x204]
mov edx, dword [ebp + 0x20c]
sar eax, 8
mov byte [ecx + edx + 3], al
mov eax, dword [ebp + 0x204]
mov ecx, dword [ebp + 0x20c]
mov dl, byte [esp + 0xc]
mov byte [eax + ecx + 4], dl
mov eax, dword [ebp + 0x20c]
mov ecx, dword [esp + 0xc]
add eax, 5
mov dword [ebp + 0x20c], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0x214], eax
mov dword [ebp + 0x218], ecx
push 1
mov ecx, ebp
call fcn.00406460
mov edx, dword [ebp + 0x204]
mov eax, dword [ebp + 0x20c]
mov byte [edx + eax], 1
mov eax, dword [ebp + 0x20c]
inc eax
mov dword [ebp + 0x20c], eax
pop ebp
add esp, 0xc
ret
Function at 0x40b3c0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
sub esp, 0x58
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
push edx
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x2c], 0x440
mov dword [esp + 0x34], str.open
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 5
mov esi, 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40b4f3
push ebx
mov ebx, dword [esp + 0x74]
test bl, 1
je 0x40b4dc
call fcn.0041ae10
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
test bx, bx
je 0x40b465
mov eax, dword [0x452594]
push 0
mov ecx, dword [eax + 0x10]
push ecx
call edi
mov edx, dword [0x452594]
mov eax, dword [edx + 0x4c4]
test eax, eax
je 0x40b465
push 0
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x70]
push eax
push ecx
call ebp
test eax, eax
je 0x40b4af
cmp dword [esp + 0x70], 0x103
jne 0x40b4af
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00402760
add esp, 8
push 0xff
push 0xc8
push 0
push 0
push 0
call esi
jmp 0x40b472
test bx, bx
pop ebp
je 0x40b4d7
mov eax, dword [0x452594]
push 5
mov ecx, dword [eax + 0x10]
push ecx
call edi
mov edx, dword [0x452594]
mov eax, dword [edx + 0x4c4]
test eax, eax
je 0x40b4d7
push 5
push eax
call edi
call fcn.0041aef0
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
pop edi
pop esi
movsx eax, ax
add esp, 0x58
ret
movsx eax, si
pop edi
pop esi
add esp, 0x58
ret

Function at 0x415750
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x4525bc]
test eax, eax
je 0x4157b6
mov eax, dword [0x4525b4]
push esi
xor esi, esi
test eax, eax
jle 0x415794
push edi
mov edi, dword [sym.imp.MSVCRT.dll_remove]
mov eax, dword [0x4525bc]
mov ecx, dword [eax + esi*4]
push ecx
call edi
mov edx, dword [0x4525bc]
lea eax, [edx + esi*4]
push eax
call fcn.0041d1c0
mov eax, dword [0x4525b4]
add esp, 8
inc esi
cmp esi, eax
jl 0x41576c
pop edi
push 0x4525bc
call fcn.0041d1c0
add esp, 4
mov dword [0x4525b4], 0
mov dword [0x4525b8], 0
pop esi
ret
Function at 0x415e30
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
je 0x415faa
mov edi, dword [esp + 0x14]
test edi, edi
je 0x415fa7
cmp byte [edi], 0
je 0x415fa7
push edi
call fcn.00415d00
mov esi, eax
add esp, 4
test esi, esi
je 0x415f8b
mov eax, dword [esi + 0x108]
test eax, eax
je 0x415faa
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x415ea5
mov eax, dword [esi + 0x110]
mov edx, ebx
inc eax
mov dword [esi + 0x110], eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x415e8f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
push 1
push 0x104
call dword [sym.imp.MSVCRT.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x415faa
push edi
push 0
push 0x450824
call fcn.0042de90
add esp, 0xc
test eax, eax
je 0x415f78
push edi
call dword [sym.imp.MMFS2.dll_Ordinal_420]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x415f6e
mov eax, dword [0x45258c]
push 0
mov ecx, dword [eax + 0x84]
push ecx
call dword [sym.imp.MMFS2.dll_Ordinal_424]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415f67
mov edx, dword [esi + 0x10c]
push edx
push ebx
call dword [sym.imp.MMFS2.dll_Ordinal_430]
mov eax, dword [esi + 0x108]
push eax
push ebx
push ebp
call fcn.004166c0
add esp, 0xc
test eax, eax
push ebx
jne 0x415f61
mov ebx, dword [sym.imp.MMFS2.dll_Ordinal_419]
call ebx
push ebp
call ebx
mov dword [esi + 0x104], edi
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 0x18]
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x415f4b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
call dword [sym.imp.MMFS2.dll_Ordinal_419]
push ebp
call dword [sym.imp.MMFS2.dll_Ordinal_419]
push edi
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov edx, ebx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x415f91
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov byte [ebx], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x415fc0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x416017
cmp byte [eax], 0
je 0x416017
push eax
call fcn.00415d00
mov esi, eax
add esp, 4
test esi, esi
je 0x416017
mov eax, dword [esi + 0x104]
test eax, eax
je 0x416017
mov ecx, dword [esi + 0x110]
dec ecx
mov dword [esi + 0x110], ecx
jne 0x416017
push eax
call dword [sym.imp.MSVCRT.dll_remove]
mov eax, dword [esi + 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov dword [esi + 0x104], 0
pop esi
ret 4
Function at 0x416a40
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
push esi
push 1
push 0x104
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x416af6
push esi
push ebp
push 0x450828
call fcn.0042de90
mov al, byte [esi]
add esp, 0xc
test al, al
je 0x416ae7
push ebx
push edi
push esi
call dword [sym.imp.MSVCRT.dll_remove]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
je 0x416aa5
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ax, word [0x4508b8]
mov word [edi - 1], ax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ebx
push ecx
call fcn.0041d0f0
mov edx, dword [ebx]
add esp, 8
mov ecx, esi
pop edi
pop ebx
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x416ac5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop esi
pop ebp
ret
push esi
mov ebp, 0xe
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x416f60
Capabilities:
Delete directory
Get common file path
Set current directory

Disassembly:
push esi
push 1
push 0x104
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x416fa1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4508c0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call dword [sym.imp.MSVCRT.dll__rmdir]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
pop esi
ret
push 0x4508c0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop esi
ret

Function at 0x416fb0
Capabilities:
Delete file

Disassembly:
push ebx
push 1
push 0x118
call dword [sym.imp.MSVCRT.dll_calloc]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41703c
mov eax, dword [esp + 8]
push ebp
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__findfirst]
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x417031
push esi
push edi
test byte [ebx], 0x10
jne 0x417016
lea eax, [ebx + 0x14]
mov edi, 0x4508c4
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x417016
mov edi, 0x4508c0
mov esi, eax
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x417016
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll__findnext]
add esp, 8
test eax, eax
je 0x416fe0
push ebp
call dword [sym.imp.MSVCRT.dll__findclose]
add esp, 4
pop edi
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop ebp
pop ebx
ret
Function at 0x41c0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov ecx, dword [0x452594]
push edi
mov dword [esp + 8], 0
mov eax, dword [ecx + 0x3c]
mov edi, dword [ecx + 0x1278]
test eax, eax
mov dword [esp + 4], edi
jle 0x41c1a9
push ebx
push ebp
push esi
cmp dword [edi], 0
jne 0x41c0ed
mov eax, dword [edi + 8]
add edi, 8
test eax, eax
je 0x41c0df
mov dword [esp + 0x10], edi
mov esi, dword [edi]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x84]
je 0x41c104
cmp eax, 0xffffffff
jne 0x41c18b
mov eax, dword [esi + 0x78]
test ah, 2
je 0x41c18b
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x41c121
push 1
push eax
mov eax, dword [ecx]
push eax
call sub.MMFS2.dll_Ordinal_76
mov ebx, dword [esi + 0xbc]
mov eax, dword [esp + 0x20]
add ebx, esi
test eax, eax
je 0x41c176
test byte [ebx + 0x20], 0x20
je 0x41c17f
mov ecx, dword [esi + 0x84]
mov edx, dword [0x452590]
push esi
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x30]
mov ebp, dword [eax + ecx*4 + 0x2c]
lea edi, [eax + ecx*4]
mov ecx, ebp
and ecx, 0xfff9ffff
or ecx, 0x10
mov dword [edi + 0x2c], ecx
call fcn.00402110
mov dword [edi + 0x2c], ebp
mov edi, dword [esp + 0x14]
jmp 0x41c17c
push esi
call fcn.004020a0
add esp, 4
mov dword [ebx], 0
mov ecx, dword [0x452594]
mov eax, dword [esp + 0x14]
mov edx, dword [ecx + 0x3c]
add edi, 8
inc eax
cmp eax, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
jl 0x41c0da
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x41cf90
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x3c
push ebp
push esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [0x452594]
xor ebp, ebp
add ecx, 0x2c
mov dword [ecx], ebp
mov edx, dword [0x452594]
cmp eax, dword [edx + 0xc]
je 0x41cfbc
cmp eax, dword [edx + 0x10]
jne 0x41d0dd
push ebx
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov edx, dword [0x45258c]
xor eax, eax
xor ebx, ebx
mov ecx, dword [edx + 0x254]
mov edx, dword [esp + 0x14]
mov ax, word [edx + ecx]
test eax, eax
jle 0x41d0bb
cmp eax, 4
jle 0x41d024
cmp eax, 5
jne 0x41d0bb
lea esi, [ecx + ebp + 0x16]
mov edi, 8
xor eax, eax
add ebx, ebx
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x41d013
or ebx, 1
sub esi, 2
dec edi
jne 0x41cffd
mov ecx, dword [esp + 0x10]
mov byte [ecx], bl
jmp 0x41d0bb
lea edx, [esp + 0x18]
lea esi, [eax - 1]
push edx
push esi
mov dword [esp + 0x20], 0x34
mov dword [esp + 0x24], 0x83
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x41d0b5
mov ecx, dword [esp + 0x20]
shl esi, 5
mov edx, dword [esi + 0x4525c8]
mov eax, dword [esi + 0x4525cc]
sub eax, edx
sub ecx, edx
mov edx, eax
shr edx, 2
cmp ecx, edx
ja 0x41d06e
mov ebx, 4
jmp 0x41d07d
lea eax, [eax + eax*2]
shr eax, 2
cmp ecx, eax
jb 0x41d07d
mov ebx, 8
mov edx, dword [esi + 0x4525d0]
mov eax, dword [esi + 0x4525d4]
mov ecx, dword [esp + 0x24]
sub eax, edx
sub ecx, edx
mov edx, eax
shr edx, 2
cmp ecx, edx
ja 0x41d09f
or ebx, 1
jmp 0x41d0ac
lea eax, [eax + eax*2]
shr eax, 2
cmp ecx, eax
jb 0x41d0ac
or ebx, 2
mov ecx, dword [esp + 0x38]
shl ecx, 4
or ebx, ecx
mov edx, dword [esp + 0x10]
mov byte [edx], bl
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 0x10
add edx, 2
inc ecx
cmp ebp, 0x40
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jl 0x41cfc6
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x3c
ret
Function at 0x422b70
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
cmp eax, 3
ja case.default.0x422b80
jmp dword [eax*4 + 0x422c54]
mov ecx, dword [0x45258c]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [ecx + 0x1c4]
push edx
call sub.MMFS2.dll_Ordinal_163
add esp, 0x18
ret
mov ecx, dword [0x45258c]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [ecx + 0x1c4]
push edx
call sub.MMFS2.dll_Ordinal_176
add esp, 0x18
ret
mov ecx, dword [0x45258c]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [ecx + 0x1c4]
push edx
call sub.MMFS2.dll_Ordinal_189
add esp, 0x18
ret
mov ecx, dword [0x45258c]
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 4]
mov dword [esp + 8], 0
mov edx, dword [ecx + 0x1c4]
push eax
push edi
push edx
call sub.MMFS2.dll_Ordinal_182
cmp dword [esp + 8], 1
jne 0x422c3c
push esi
push 1
push 0x208
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
mov eax, dword [0x45258c]
add esp, 8
mov ecx, dword [eax + 0x1c4]
push esi
push edi
push ecx
call sub.MMFS2.dll_Ordinal_183
push esi
call dword [sym.imp.MSVCRT.dll_remove]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
pop esi
mov edx, dword [0x45258c]
push edi
mov eax, dword [edx + 0x1c4]
push eax
call sub.MMFS2.dll_Ordinal_189
pop edi
add esp, 0x18
ret
Function at 0x42de10
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
xor edx, edx
and ecx, 0xffff
mov dh, al
shr ecx, 8
and edx, 0xffff
lea eax, [esp]
or ecx, edx
push eax
mov dword [0x452554], ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42de77
cmp dword [esp + 0x10], 2
jne 0x42de77
mov ecx, dword [esp + 4]
mov eax, 1
cmp ecx, 5
mov dword [0x452550], eax
jb 0x42de77
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x42de77
mov dword [0x45254c], eax
call fcn.0042ddf0
call fcn.00416510
xor eax, eax
add esp, 0x94
ret

Function at 0x42de90
Capabilities:
Get common file path

Disassembly:
push esi
push edi
push 1
push 0x104
xor edi, edi
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x42ded8
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x42ebd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
push edi
mov edi, dword [esp + 0x4c]
xor ebx, ebx
cmp edi, ebx
je 0x42ecc6
push esi
push 1
push 0x106
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
mov eax, edi
lea edx, [esi + 1]
mov byte [esi], 0x22
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x42ec00
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov al, byte [0x4523a8]
mov byte [edi - 1], al
mov eax, dword [0x4524f0]
cmp eax, ebx
je 0x42ec5f
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42ec42
cmp dword [esp + 0x50], 0x103
je 0x42ec57
mov edx, dword [0x4524f0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4524f0], ebx
jmp 0x42ec5f
cmp dword [0x4524f0], ebx
jne 0x42ecbb
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xc]
mov dword [0x4524f4], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x3c
push eax
mov dword [esp + 0x14], 0x440
mov dword [esp + 0x1c], str.open
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x4523a8
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x42ecbb
mov ecx, dword [esp + 0x44]
mov dword [0x4524f0], ecx
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop esi
pop edi
pop ebx
add esp, 0x3c
ret