joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ea20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4adeb0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a4c87
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x47ea53
xor al, al
jmp 0x47eb7f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x47ea75
xor al, al
jmp 0x47eb7f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x47ea88
xor al, al
jmp 0x47eb7f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x47ea9c
xor al, al
jmp 0x47eb7f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00498a47
test eax, eax
jne 0x47ead0
xor al, al
jmp 0x47eb7f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4e3e44
mov dword [esp + 0x20], ebp
call fcn.004a4c87
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004a187e
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004a18d5
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x47eb64
mov ax, word [ebx]
test ax, ax
je 0x47eb56
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0047eba0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x47eb3a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004a18d5
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x47f0e0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004a2f6a
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x47f126
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00488f28
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x502b54
push ecx
call fcn.0048a8f0
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x49cd64
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49cd9c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049ae09
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049ade1
jmp 0x49cda8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49e560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49e5a2
call fcn.004a4c87
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49e5a2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49e599
xor eax, eax
jmp 0x49e5aa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049e5b0
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a51b7
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 0x4a51e5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a5203
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a511d
jmp 0x4a5203
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a5203
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a511d
test edi, edi
mov eax, edi
jne 0x4a51ed
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x412722
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4186e0], 0
push ebx
push esi
mov esi, 0x4186e8
jne 0x41274e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x418700], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4186e0], 1
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4127eb
push 0x14
push 8
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412815
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4186e4]
test eax, eax
je 0x412790
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4186e4], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41281a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x418700]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418068]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412815
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x537fbe
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0053803d
jae 0x537fca
xor ecx, ecx
call fcn.0053803d
jae 0x537ff4
xor eax, eax
call fcn.0053803d
jae 0x538005
mov al, 0x10
call fcn.0053803d
adc al, al
jae 0x537fe6
jne 0x538032
stosb byte es:[edi], al
jmp 0x537fcb
call fcn.00538049
dec ecx
loop 0x538011
mov eax, ebp
call fcn.00538047
jmp 0x538033
lodsb al, byte [esi]
shr eax, 1
je 0x538059
adc ecx, 2
mov ebp, eax
jmp 0x538033
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00538047
cmp eax, 0x7d00
jae 0x538031
cmp eax, 0x500
jae 0x538032
cmp eax, 0x7f
ja 0x538033
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x537fcb
pop ebp
ret 8
Function at 0x41ce04
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41d440
call fcn.0041d0c8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41ce64
cmp eax, 0xffffffff
je 0x41ce64
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41ce5d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41ce5d
cmp edx, 0x10000000
jae 0x41ce5d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41ce5a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ced0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41cf0e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41cf06
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41cf10
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41cef6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41cfe0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41d011
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d011
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41d011
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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 0x2000139a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
push 0x18
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x200013c4
mov esi, 0x80000000
xor edi, edi
mov ebx, esi
mov dword [ebp - 4], edi
jmp 0x20001429
mov ecx, dword [ebp - 0x28]
xor eax, eax
push 0x88
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
push eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push 0x88800000
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
sub esi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
sub eax, esi
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 8]
sub eax, edi
add eax, dword [ebp - 0x10]
sar ebx, 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
push 0
push edi
push esi
push dword [ebp - 4]
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 0x2000147a
push dword [ebp + 8]
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 ebx
leave
ret 4

Function at 0x20001483
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
call fcn.200014ca
mov esi, eax
test esi, esi
je 0x200014c4
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x200012b4
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x200014bd
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x200014c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x20001734
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov dword [eax], esi
lea eax, [ebp - 0x208]
push eax
push 0x100
mov dword [ebp - 4], esi
xor edi, edi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x2000176f
push 5
pop eax
jmp 0x20001886
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.20001c5c
test eax, eax
je 0x200017ad
lea eax, [ebp - 0x108]
push str.proj.dll
push eax
call fcn.2000188d
mov edi, eax
mov dword [ebx], 2
cmp edi, esi
jne 0x20001871
mov dword [ebp - 4], 6
jmp 0x20001871
lea eax, [ebp - 0x108]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
mov esi, str.proj.dll
je 0x20001824
lea eax, [ebp - 0x108]
push eax
call fcn.200015b0
test al, al
je 0x20001824
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.2000188d
mov edi, eax
test edi, edi
je 0x200017f4
mov dword [ebx], 1
jmp 0x20001871
lea eax, [ebp - 0x108]
push str.Xtras
push eax
call fcn.20001596
test al, al
je 0x20001824
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.2000188d
mov edi, eax
test edi, edi
je 0x20001824
mov dword [ebx], 3
jmp 0x20001871
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x2000186a
lea eax, [ebp - 0x108]
push str.MacromedShockwave_8
push eax
call fcn.20001596
test al, al
je 0x2000186a
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.2000188d
mov edi, eax
test edi, edi
je 0x2000186a
mov dword [ebx], 4
jmp 0x20001871
mov dword [ebp - 4], 3
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x20001984
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
push 0
push str..htm
push 0x80000000
call ebx
test eax, eax
jne 0x20001af4
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 8], 0x208
call esi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x20001af4
lea eax, [ebp - 0x214]
push str._shellopencommand
push eax
call fcn.200032d0
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
push 0x20019
lea eax, [ebp - 0x214]
push 0
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x20001af4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call edi
test esi, esi
jne 0x20001af4
xor edi, edi
mov al, byte [ebp + edi - 0x214]
cmp al, 0x20
je 0x20001a59
cmp al, 9
jne 0x20001a5c
inc edi
jmp 0x20001a4a
mov al, byte [ebp + edi - 0x214]
test al, al
je 0x20001af4
cmp al, 0x22
lea esi, [edi + 1]
jne 0x20001a86
mov edi, esi
mov al, byte [ebp + esi - 0x214]
test al, al
je 0x20001a98
cmp al, 0x22
je 0x20001a98
inc esi
jmp 0x20001a74
mov al, byte [ebp + esi - 0x214]
test al, al
je 0x20001a98
cmp al, 0x20
je 0x20001a98
inc esi
jmp 0x20001a86
test edi, edi
je 0x20001ab8
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp + edi - 0x214]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.20002f80
add esp, 0xc
sub esi, edi
lea eax, [ebp - 0x214]
push 0x200080a8
push eax
and byte [ebp + esi - 0x214], 0
call fcn.200032d0
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call fcn.200032d0
add esp, 0x10
lea eax, [ebp - 0x214]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x20001b74
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
mov esi, str.msvcrt.dll
push edi
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x20001c4e
lea eax, [ebp - 0x204]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x20001bb6
push 5
pop ebx
jmp 0x20001c4e
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.20001c5c
test eax, eax
je 0x20001bdb
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.2000188d
mov edi, eax
test edi, edi
jne 0x20001c41
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x20001c16
lea eax, [ebp - 0x104]
push eax
call fcn.200015b0
test al, al
je 0x20001c16
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.2000188d
mov edi, eax
test edi, edi
jne 0x20001c41
lea eax, [ebp - 0x104]
push str.Xtras
push eax
call fcn.20001596
test al, al
je 0x20001c3e
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.2000188d
mov edi, eax
test edi, edi
jne 0x20001c41
push 2
pop ebx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4

Function at 0x20001ca1
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
push esi
mov esi, 0x104
push edi
xor ebx, ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [0x20008ab0], eax
je 0x20001da3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x20001d8c
push dword [0x20008ab0]
call fcn.20001da9
push str.TempFolder
push dword [0x20008ab0]
call fcn.200032d0
push str..aaa
push dword [0x20008ab0]
call fcn.200032d0
push dword [0x20008ab0]
call fcn.200033b0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x14
mov esi, eax
push ebx
push dword [0x20008ab0]
call edi
test eax, eax
jne 0x20001d71
mov eax, dword [0x20008ab0]
movsx ecx, byte [esi + eax - 1]
lea eax, [esi + eax - 1]
cmp ecx, 0x7a
jl 0x20001d47
mov byte [eax], 0x61
mov eax, dword [0x20008ab0]
movsx ecx, byte [eax + esi - 2]
lea eax, [eax + esi - 2]
cmp ecx, 0x7a
jge 0x20001d4d
inc cl
mov byte [eax], cl
jmp 0x20001d68
mov byte [eax], 0x61
mov edx, dword [0x20008ab0]
movsx eax, byte [edx + esi - 3]
lea ecx, [edx + esi - 3]
cmp eax, 0x7a
jge 0x20001d92
inc al
mov byte [ecx], al
push ebx
push dword [0x20008ab0]
jmp 0x20001d18
push dword [0x20008ab0]
call fcn.20001da9
push dword [0x20008ab0]
call fcn.20001dc8
push 1
pop ebx
jmp 0x20001da3
mov edx, dword [0x20008ab0]
cmp edx, ebx
je 0x20001da3
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [0x20008ab0], ebx
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x20002748
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
lea eax, [ebp - 0x208]
push edi
push eax
push 0x104
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x2000287a
lea eax, [ebp - 0x208]
push eax
call fcn.20001da9
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.200032c0
lea eax, [ebp - 0x104]
push str.TempFolder.
push eax
call fcn.200032d0
add esp, 0x10
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x2000287a
mov eax, dword [ebp - 0x348]
and eax, 0x10
cmp al, 0x10
jne 0x20002864
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.200032c0
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.200032d0
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call fcn.20001da9
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.200032c0
lea eax, [ebp - 0x44c]
push str.Macromedia.lok
push eax
call fcn.200032d0
add esp, 0x10
lea eax, [ebp - 0x44c]
push 0
push 1
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x20002864
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x104]
push eax
call fcn.20002880
or ebx, eax
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x200027c1
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x20002880
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop esi
push ebx
call fcn.20001da9
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.200032c0
lea eax, [ebp - 0x104]
push 0x20008178
push eax
call fcn.200032d0
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x2000296d
lea eax, [ebp - 0x218]
push 0x20008160
push eax
call fcn.200034d0
pop ecx
test eax, eax
pop ecx
je 0x20002948
lea eax, [ebp - 0x218]
push 0x20008174
push eax
call fcn.200034d0
pop ecx
test eax, eax
pop ecx
je 0x20002948
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.200032c0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.200032d0
add esp, 0x10
lea eax, [ebp - 0x104]
test byte [ebp - 0x244], 0x10
push eax
je 0x20002940
call fcn.20002880
jmp 0x20002946
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
je 0x20002962
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x200028d8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
je 0x20002976
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x20003481
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x200034a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.200038a6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x200034c4
test byte [esp + 8], 2
je 0x200034c4
call fcn.20003919
mov dword [eax], 0xd
call fcn.20003922
mov dword [eax], 5
jmp 0x2000349d
xor eax, eax
ret

Function at 0x2000488d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x20008708
cmp edx, dword [eax]
je 0x200048af
add eax, 8
inc ecx
cmp eax, 0x20008798
jl 0x200048a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x20008708]
jne 0x200049dd
mov eax, dword [0x20008b00]
cmp eax, 1
je 0x200049b7
test eax, eax
jne 0x200048e0
cmp dword [0x20008194], 1
je 0x200049b7
cmp edx, 0xfc
je 0x200049dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x20004917
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.200032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.200033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x2000495a
lea eax, [ebp - 0x1a4]
push eax
call fcn.200033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x200074c0
push edi
call fcn.20006000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.200032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.200032d0
lea eax, [ebp - 0xa0]
push 0x200074a0
push eax
call fcn.200032d0
push dword [esi + 0x2000870c]
lea eax, [ebp - 0xa0]
push eax
call fcn.200032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.20005f75
add esp, 0x2c
pop edi
jmp 0x200049dd
lea eax, [ebp + 8]
lea esi, [esi + 0x2000870c]
push 0
push eax
push dword [esi]
call fcn.200033b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret