joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421616
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x438a98]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42165c
cmp word [ebx], dx
jne 0x42165c
or byte [eax + edi + 0x28], 4
jmp 0x421661
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4217c4
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4217a4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4216a2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4216d8
cmp eax, edx
jae 0x4216e6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42167d
jmp 0x4217c4
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42179f
cmp dword [ebp - 0x18], 0
je 0x42179f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x438a98]
test byte [eax + edi + 0x28], 0x48
je 0x421775
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x421739
mov word [esi], cx
jmp 0x421770
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x438a98]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x438a98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x438a98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4217c4
pop eax
cmp word [ebp - 4], ax
jne 0x421785
cmp esi, ebx
jne 0x421785
mov word [esi], ax
jmp 0x4217c1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042204f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4217c4
push 0xd
pop eax
jmp 0x421780
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x438a98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4217be
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4217c4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423912
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 0x4239af
push ebx
push esi
call fcn.004238db
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.004225cd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42395c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4239ae
push edi
push eax
call fcn.0041d5c8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42397c
call fcn.0041d391
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4239ad
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004225cd
add esp, 0x20
test eax, eax
jne 0x42399b
push edi
call fcn.0041d391
jmp 0x4239a3
push ebx
call fcn.0041d391
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 0x425fdc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041c0d0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42604b
cmp esi, dword [ebp - 4]
je 0x426046
cmp dword [ebp + 0xc], 0
je 0x426046
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x426023
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00425b2e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42604d
xor eax, eax
inc eax
jmp 0x42604d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4260b2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x437040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041c0d0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041c0d0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x426129
cmp word [ecx], dx
je 0x426129
mov eax, dword [0x430924]
push edi
dec eax
push eax
push 0x430810
call fcn.00426051
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42619c
cmp word [eax], dx
je 0x42619c
mov eax, dword [edi]
test eax, eax
je 0x42614d
cmp word [eax], dx
je 0x42614d
lea eax, [ebp - 0x10]
push eax
call fcn.00425a34
jmp 0x426156
lea eax, [ebp - 0x10]
push eax
call fcn.00425acf
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4261c6
mov eax, dword [0x43080c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x430500
call fcn.00426051
add esp, 0xc
test al, al
je 0x4261c6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x426191
cmp word [eax], di
je 0x426191
lea eax, [ebp - 0x10]
push eax
call fcn.00425a34
pop ecx
jmp 0x4261c8
lea eax, [ebp - 0x10]
push eax
call fcn.00425acf
jmp 0x42618e
mov eax, dword [edi]
test eax, eax
je 0x4261b3
cmp word [eax], dx
je 0x4261b3
lea eax, [ebp - 0x10]
push eax
call fcn.004259e9
pop ecx
jmp 0x4261c6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x426291
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00425ed6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x426291
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x426291
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x426291
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42621e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041ed98
test ebx, ebx
je 0x42628c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041ed98
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426291
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426291
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00428fa7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x426293
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c404
leave
ret
Function at 0x42aca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42accd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42accd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x20001410
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x2000143a
mov esi, 0x80000000
xor edi, edi
mov ebx, esi
xor ebp, ebp
jmp 0x200014b6
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x18], edx
push 0x88
push eax
lea edx, [esp + 0x18]
push 0x88800000
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub esi, edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
sub edi, edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, esi
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x1c]
sub eax, edi
add eax, edx
cdq
sub eax, edx
mov ebp, eax
sar ebx, 1
sar ebp, 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
push 0
push edi
push esi
push ebp
push ebx
push 0x88800000
push str.Macromedia_Splash_Screen
push str.SplashScreenWindowClass
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x20001507
mov ecx, dword [esp + 0x3c]
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x20001520
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov dword [esp + 4], 0
call fcn.20001570
mov esi, eax
test esi, esi
je 0x20001568
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x200012e0
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x20001561
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
mov eax, dword [esp]
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
Function at 0x20001700
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], eax
mov edi, 3
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
call fcn.20001520
mov ebx, dword [esp + 0x34]
mov esi, eax
push ebx
call fcn.200029e0
test eax, eax
jne 0x20001753
mov dword [esp + 0x34], 7
jmp 0x200017dd
lea ecx, [esp + 0x10]
push ecx
call fcn.20001d50
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.20001840
test eax, eax
mov dword [esp + 0x34], eax
jne 0x200017dd
mov ecx, dword [esp + 0xc]
push str.ProjectorMain
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x20001792
mov dword [esp + 0x34], 4
jmp 0x200017dd
test esi, esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x18
je 0x200017b2
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0x200015e0
mov edx, dword [0x2000ce18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
push ecx
push ebx
call eax
mov edi, eax
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x200017ee
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x200017f9
push eax
call esi
push ebx
call fcn.20002a40
mov eax, edi
sub eax, 0
je 0x20001835
dec eax
je 0x2000180c
dec eax
jne 0x20001816
push 0xffffffffffffffff
push 0
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x20001825
push eax
push ebx
call fcn.20001a00
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
add esp, 0x24
ret 0x10
mov eax, 1
jmp 0x2000181e
Function at 0x20001840
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x204
lea ecx, [esp + 0x104]
push ebx
push esi
push edi
mov edi, dword [esp + 0x218]
xor esi, esi
push ecx
mov dword [eax], esi
push 0x100
xor ebx, ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x20001884
pop edi
pop esi
mov eax, 5
pop ebx
add esp, 0x204
ret 8
lea edx, [esp + 0xc]
push 0
push edx
call fcn.20001e70
test eax, eax
je 0x200018bd
lea eax, [esp + 0xc]
push str.proj.dll
push eax
call fcn.200019a0
mov esi, eax
mov dword [edi], 2
test esi, esi
jne 0x20001977
mov ebx, 6
jmp 0x20001977
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x2000192e
lea edx, [esp + 0xc]
push edx
call fcn.20001680
test al, al
je 0x2000192e
lea eax, [esp + 0xc]
push str.proj.dll
push eax
call fcn.200019a0
mov esi, eax
test esi, esi
je 0x200018fe
mov dword [edi], 1
jmp 0x20001977
lea ecx, [esp + 0xc]
push str.Xtras
push ecx
call fcn.20001660
test al, al
je 0x2000192e
lea edx, [esp + 0xc]
push str.proj.dll
push edx
call fcn.200019a0
mov esi, eax
test esi, esi
je 0x2000192e
mov dword [edi], 3
jmp 0x20001977
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x20001972
lea ecx, [esp + 0xc]
push str.MacromedShockwave_8
push ecx
call fcn.20001660
test al, al
je 0x20001972
lea edx, [esp + 0xc]
push str.proj.dll
push edx
call fcn.200019a0
mov esi, eax
test esi, esi
je 0x20001972
mov dword [edi], 4
jmp 0x20001977
mov ebx, 3
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
mov eax, ebx
mov ecx, dword [esp + 0x210]
mov dword [ecx], esi
pop esi
pop ebx
add esp, 0x204
ret 8

Function at 0x200019a0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
lea ecx, [esp]
push esi
push edi
mov edi, dword [esp + 0x110]
push eax
push edi
push ecx
xor esi, esi
call fcn.20001600
test eax, eax
je 0x200019e6
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x200019e6
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
add esp, 0x104
ret 8
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret 8
Function at 0x20001ad0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x210
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0x20019
push 0
push str..htm
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20001c5c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0x208
push eax
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call ebp
test esi, esi
jne 0x20001c5c
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
push edx
push 0x20019
push eax
lea eax, [esp + 0x24]
dec edi
mov ecx, 5
mov esi, str._shellopencommand
push eax
rep movsd dword es:[edi], dword [esi]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x20001c5c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x24], 0x208
call ebx
mov esi, eax
mov ecx, dword [esp + 0x10]
push ecx
call ebp
test esi, esi
jne 0x20001c5c
xor edi, edi
mov al, byte [esp + edi + 0x18]
cmp al, 0x20
je 0x20001ba9
cmp al, 9
jne 0x20001bac
inc edi
jmp 0x20001b9d
mov al, byte [esp + edi + 0x18]
test al, al
je 0x20001c5c
lea esi, [edi + 1]
cmp al, 0x22
mov al, byte [esp + esi + 0x18]
jne 0x20001bd8
test al, al
mov edi, esi
je 0x20001be9
cmp al, 0x22
je 0x20001be9
mov al, byte [esp + esi + 0x19]
inc esi
test al, al
jne 0x20001bc9
jmp 0x20001be9
test al, al
je 0x20001be9
cmp al, 0x20
je 0x20001be9
mov al, byte [esp + esi + 0x19]
inc esi
test al, al
jne 0x20001bdc
test edi, edi
je 0x20001c04
mov edx, esi
lea eax, [esp + edi + 0x18]
sub edx, edi
lea ecx, [esp + 0x18]
push edx
push eax
push ecx
call fcn.20003650
add esp, 0xc
sub esi, edi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + esi + 0x18], 0
mov dx, word [0x2000a0a8]
repne scasb al, byte es:[edi]
or ecx, 0xffffffff
push 1
mov word [edi - 1], dx
mov edi, dword [esp + 0x228]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 4
Function at 0x20001d50
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x204
push esi
push edi
push str.msvcrt.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x20001e4e
lea eax, [esp + 0x10c]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x20001d9f
mov ecx, dword [esp + 0x210]
pop edi
mov eax, 5
mov dword [ecx], esi
pop esi
add esp, 0x204
ret 4
lea edx, [esp + 8]
push 0
push edx
call fcn.20001e70
test eax, eax
je 0x20001dc4
lea eax, [esp + 8]
push str.msvcrt.dll
push eax
call fcn.200019a0
mov esi, eax
test esi, esi
jne 0x20001e2a
lea ecx, [esp + 8]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x20001dfd
lea edx, [esp + 8]
push edx
call fcn.20001680
test al, al
je 0x20001dfd
lea eax, [esp + 8]
push str.msvcrt.dll
push eax
call fcn.200019a0
mov esi, eax
test esi, esi
jne 0x20001e2a
lea ecx, [esp + 8]
push str.Xtras
push ecx
call fcn.20001660
test al, al
je 0x20001e25
lea edx, [esp + 8]
push str.msvcrt.dll
push edx
call fcn.200019a0
mov esi, eax
test esi, esi
jne 0x20001e2a
mov edi, 2
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, edi
pop edi
mov ecx, dword [esp + 0x20c]
mov dword [ecx], esi
pop esi
add esp, 0x204
ret 4
mov edx, dword [esp + 0x210]
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
add esp, 0x204
ret 4
Function at 0x20002c00
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x458
push esi
lea eax, [esp + 0x114]
push edi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x20002dda
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x117], 0x5c
je 0x20002c54
mov byte [esp + ecx + 0x118], 0x5c
mov byte [esp + ecx + 0x119], 0
xor eax, eax
mov cl, byte [esp + eax + 0x118]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x20002c56
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x2000a168]
repne scasb al, byte es:[edi]
mov ecx, dword [str.TempFolder.]
mov eax, dword [0x2000a16c]
dec edi
mov dword [edi], ecx
mov cl, byte [0x2000a170]
mov dword [edi + 4], edx
lea edx, [esp + 0x21c]
push edx
mov dword [edi + 8], eax
lea eax, [esp + 0x18]
push eax
mov byte [edi + 0xc], cl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x20002dda
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x220]
and ecx, 0x10
cmp cl, 0x10
jne 0x20002db1
xor eax, eax
mov cl, byte [esp + eax + 0x11c]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x20002cd0
lea edi, [esp + 0x24c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
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
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x20002d31
mov byte [esp + ecx + 0x18], 0x5c
mov byte [esp + ecx + 0x19], 0
xor eax, eax
mov cl, byte [esp + eax + 0x18]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x20002d33
lea edi, [esp + 0x360]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x2000a158]
repne scasb al, byte es:[edi]
mov eax, dword [str.Macromedia.lok]
mov ecx, dword [0x2000a154]
dec edi
push 0
push 1
push 3
mov dword [edi], eax
mov ax, word [0x2000a15c]
push 0
push 0
mov dword [edi + 4], ecx
mov cl, byte [0x2000a15e]
push 0x80000000
mov dword [edi + 8], edx
lea edx, [esp + 0x378]
push edx
mov word [edi + 0xc], ax
mov byte [edi + 0xe], cl
call ebp
cmp eax, 0xffffffff
je 0x20002db1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
call fcn.20002df0
or dword [esp + 0xc], eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x220]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x20002cbb
mov eax, dword [esp + 0xc]
pop ebp
pop edi
pop esi
add esp, 0x458
ret
mov eax, esi
pop edi
pop esi
add esp, 0x458
ret
Function at 0x20002df0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x248
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x258]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, 1
cmp byte [ecx + esi - 1], 0x5c
je 0x20002e22
mov byte [ecx + esi], 0x5c
mov byte [ecx + esi + 1], 0
lea ebp, [esp + 0x14]
mov eax, esi
sub ebp, esi
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x20002e2a
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
mov eax, dword [0x2000a178]
lea ecx, [esp + 0x118]
push ecx
push edx
mov dword [edi - 1], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x20002f2f
mov edi, 0x2000a160
lea esi, [esp + 0x144]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x20002efa
mov edi, 0x2000a174
lea esi, [esp + 0x144]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x20002efa
mov eax, dword [esp + 0x25c]
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x20002e9c
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x118]
mov ecx, ebx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x20002eed
lea eax, [esp + 0x14]
push eax
call fcn.20002df0
jmp 0x20002ef8
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
je 0x20002f19
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x20002e67
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x20002f43
mov esi, dword [esp + 0x25c]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x248
ret 4

Function at 0x200030c0
Capabilities:
Terminate process

Disassembly:
push 1
call fcn.20003a54
nop
nop
nop
nop
nop
nop
nop
nop
nop

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x20003a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.20003d15
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x20003a24
test byte [esp + 8], 2
je 0x20003a24
call fcn.20003d88
mov dword [eax], 0xd
call fcn.20003d91
mov dword [eax], 5
jmp 0x200039fd
xor eax, eax
ret