joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x174]
sub esp, 0x108
mov ecx, edx
push ebx
push esi
push edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481387
sub ecx, esi
mov edi, 0x104
test edx, edx
je 0x481409
test ecx, ecx
je 0x481409
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov al, byte [edx]
inc edx
mov byte [esi], al
inc esi
test al, al
jne 0x4813a2
cmp byte [ecx + ebx - 1], 0x5c
je 0x4813c7
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4813b6
mov ax, word [0x4a5edc]
mov word [edi], ax
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4813ca
mov esi, str.__temp
xor dl, dl
push ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.0047e5b4
pop ecx
test al, al
je 0x481519
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4813f1
mov ax, word [0x4a5edc]
mov word [edi], ax
mov edi, 0x104
jmp 0x481424
mov ebx, dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x481519
cmp eax, edi
jae 0x481519
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481429
sub ecx, edx
mov edx, dword [ebp + 8]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x481438
sub edx, esi
lea eax, [ecx + 1]
add eax, edx
cmp eax, edi
jae 0x481519
push 0x4a915c
push dword [ebp + 8]
call fcn.00424ef0
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x481468
add ecx, 3
jmp 0x48146b
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x481473
lea ecx, [ebp - 0x108]
cmp byte [ebp - 0x108], al
je 0x4814dd
movsx eax, byte [ecx]
cmp eax, 0x2f
jg 0x4814c0
je 0x4814bb
cmp eax, 0x22
je 0x4814d4
cmp eax, 0x2a
je 0x4814d4
cmp eax, 0x2e
jne 0x4814d7
mov al, byte [ecx + 1]
test al, al
je 0x4814d4
cmp al, 0x2e
je 0x4814b5
cmp al, 0x5c
je 0x4814d4
jmp 0x4814d7
mov byte [ecx + 1], 0x5f
jmp 0x4814d4
mov byte [ecx], 0x5c
jmp 0x4814d7
cmp eax, 0x3c
je 0x4814d4
cmp eax, 0x3d
jle 0x4814d7
cmp eax, 0x3f
jle 0x4814d4
cmp eax, 0x7c
jne 0x4814d7
mov byte [ecx], 0x5f
inc ecx
cmp byte [ecx], 0
jne 0x48148b
lea edx, [ebp - 0x108]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4814e5
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4814f1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dl, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
mov ecx, ebx
call fcn.0047e5b4
test al, al
pop ecx
setne al
jmp 0x48151b
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x483ce2
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x180]
call fcn.0047acbd
mov ecx, dword [esi + 0x178]
mov eax, ecx
mov edx, dword [esi + 0x17c]
or eax, edx
je 0x483d17
add ecx, 0xffffffff
mov dword [esi + 0x178], ecx
adc edx, 0xffffffff
mov dword [esi + 0x17c], edx
jmp 0x483d22
push str.Attempt_to_reduce_CMuppet_ref_count___0_IGNORED
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x180]
call fcn.0047ac30
mov ecx, dword [esi + 0x100]
call fcn.0047acbd
cmp byte [esi + 0x72], 0
mov ecx, dword [esi + 0x100]
sete bl
call fcn.0047ac30
pop esi
mov al, bl
pop ebx
ret
Function at 0x485815
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xf0]
call fcn.0047acbd
mov eax, dword [esi + 0x174]
test eax, eax
je 0x48583f
push eax
call fcn.004249b0
pop ecx
mov ecx, dword [esi + 0xf0]
and dword [esi + 0x174], 0
call fcn.0047ac30
push 0x104
lea eax, [ebp - 0x108]
push eax
push str.MUP_CACHEDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x485878
lea ebx, [ebp - 0x108]
jmp 0x48589a
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x48589a
push ebx
lea ecx, [ebp - 0x210]
call fcn.00488922
pop ecx
test al, al
je 0x485995
lea ebx, [ebp - 0x210]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48589f
sub ecx, edx
lea eax, [ecx + 0x11]
push eax
call fcn.004249e8
pop ecx
mov dword [esi + 0x174], eax
mov edx, ebx
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x4858ba
mov edi, dword [esi + 0x174]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4858cf
sub ecx, edx
je 0x4858f3
cmp byte [edi + ecx - 1], 0x5c
je 0x4858f3
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4858e2
mov ax, word [0x4a5edc]
mov word [edi], ax
mov ecx, dword [esi + 0x174]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4858fa
mov eax, dword [str.cache]
xor dl, dl
mov dword [ecx], eax
mov ax, word [0x4a8218]
mov word [ecx + 4], ax
push ecx
mov ecx, dword [esi + 0x174]
call fcn.0047e5b4
pop ecx
test al, al
jne 0x485952
push dword [esi + 0x174]
call fcn.004249b0
and dword [esi + 0x174], 0
pop ecx
push ebx
push str.Unable_to_use_global_cache_at__s:_dir_doesnt_exist_and_cant_be_created_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0xc
jmp 0x485995
mov ecx, dword [esi + 0xf0]
call fcn.0047acbd
mov edi, dword [esi + 0x174]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x485968
sub ecx, edx
cmp byte [edi + ecx - 1], 0x5c
je 0x48598a
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x485979
mov ax, word [0x4a5edc]
mov word [edi], ax
mov ecx, dword [esi + 0xf0]
call fcn.0047ac30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x488922
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push esi
push 0
push 0x23
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x48894c
xor al, al
jmp 0x4889da
lea ecx, [ebp - 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x488955
sub ecx, edx
cmp ecx, 0xf8
jae 0x488945
lea ecx, [ebp - 0x104]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x488972
push edi
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x488980
mov ax, word [0x4a5edc]
mov word [edi], ax
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x488994
cmp byte [ebp + 8], 0
mov eax, dword [0x4a871c]
mov dword [edi], eax
je 0x4889d7
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4889ac
mov ax, word [0x4a5edc]
dec esi
mov word [edi], ax
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4889be
mov eax, dword [str.cache]
mov dword [esi], eax
mov ax, word [0x4a8218]
mov word [esi + 4], ax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48f802
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
push 3
mov eax, dword [ecx]
push dword [esi + 0x264]
call dword [eax + 0x2c]
and dword [ebp + 8], 0
lea edx, [ebp + 8]
add esi, 0x2c
mov ecx, esi
call fcn.00492668
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [ebp + 8]
mov ecx, str.C75A7F71_797A_11d2_8255_00A02455A490
push edi
mov edx, ebx
call fcn.0045ab1e
pop ecx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x48f882
push ebx
call fcn.004249b0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49020f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x49af5f
call fcn.00496f64
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
push str.mppclient
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0x4aa3f4
lea ecx, [esi + 0xc]
mov dword [esi], 0x4aa3d4
mov dword [esi + 4], 0x4aa3cc
mov dword [esi + 8], eax
call fcn.00408693
xor eax, eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 0x24], eax
push str.http:__pokermup.gcontent.eu_pokermup_placeholderfolder_
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.00408693
push dword [ebp + 0x18]
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 1
call fcn.00408693
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4905a0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
lea esi, [ecx + 0xc]
mov bl, 1
cmp dword [esi + 0x14], 0x10
jb 0x4905b1
mov ecx, dword [esi]
jmp 0x4905b3
mov ecx, esi
call fcn.0049086e
test eax, eax
je 0x4905d1
cmp dword [esi + 0x14], 0x10
jb 0x4905c4
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb al, al
and bl, al
pop esi
mov al, bl
pop ebx
ret

Function at 0x49060c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x49065b
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 4], 0xffffffff
mov ecx, esi
cmp byte [ebp + 8], 0
je 0x490634
call fcn.004905d6
jmp 0x49065b
call fcn.004905a0
test al, al
je 0x49065b
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x490648
mov eax, dword [eax]
add esi, 0x24
cmp dword [esi + 0x14], 0x10
jb 0x490653
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop esi
pop ebp
ret 4

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49087d
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x490ac6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor esi, esi
push esi
push esi
push esi
push esi
mov ebx, ecx
call edi
push esi
push esi
push esi
push esi
mov dword [ebp - 4], eax
call edi
push 0
push 0
push 1
push 0
mov esi, eax
call edi
mov edi, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x34], eax
mov al, byte [ebp + 0x24]
push 0
mov dword [ebx], edi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x14], 0x49478a
mov byte [ebx + 0x38], al
call fcn.0042490f
pop ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x490b2f
xor eax, eax
jmp 0x490b34
call fcn.00406c44
mov dword [ebx + 4], eax
mov al, byte [ebp + 0x28]
mov byte [ebx + 0x39], al
mov eax, dword [ebp + 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp + 0x34]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp + 0x38]
push 0
mov dword [ebx + 0x48], eax
call fcn.0042490f
pop ecx
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
jne 0x490b68
xor eax, eax
jmp 0x490b6d
call fcn.00406c44
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 0x40]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp + 0x44]
push 0x1000
mov dword [ebx + 0x60], eax
call fcn.0040627a
mov dword [esp], 0x1000
mov esi, eax
push 0
push esi
call fcn.0042a910
push dword [ebp + 0x18]
lea eax, [ebx + 8]
mov dword [ebx + 0x58], esi
push 0x4a5c80
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor esi, esi
push esi
call fcn.0042490f
mov ecx, dword [ebp + 0x1c]
add esp, 0x1c
test ecx, ecx
jne 0x490bc2
mov eax, esi
jmp 0x490bc7
call fcn.00406c44
mov dword [ebx + 0x24], eax
lea eax, [ebx + 0x6c]
push eax
push esi
push ebx
push 0x490886
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push edi
mov dword [ebx + 0x68], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x40

Function at 0x490faf
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
mov edi, 0x94
lea eax, [ebp - 0x94]
push edi
push 0
push eax
mov esi, ecx
call fcn.0042a910
add esp, 0xc
mov dword [ebp - 0x94], edi
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
jae 0x49100a
mov ecx, 0x4aa540
lea edx, [esi + 8]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x490ff9
jmp 0x491023
mov edx, str.ROOTSECURITYCENTER2
add esi, 8
sub esi, edx
movzx ecx, word [edx]
mov word [esi + edx], cx
lea edx, [edx + 2]
test cx, cx
jne 0x491014
mov eax, dword [ebp - 0x90]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4912c3
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x49b08f
call fcn.00496f64
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push esi
push 0x4a3f8c
push 1
push ebx
push 0x4a3f7c
mov dword [esi], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4912f5
xor al, al
jmp 0x491382
push edi
lea eax, [esi + 8]
lea edi, [esi + 4]
push eax
lea ecx, [ebp - 0x10]
mov dword [edi], ebx
call fcn.0040a55d
mov dword [ebp - 4], ebx
mov edx, dword [eax]
test edx, edx
je 0x491314
mov edx, dword [edx]
jmp 0x491316
mov edx, ebx
mov eax, dword [esi]
push edi
push ebx
push ebx
mov ecx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push edx
push eax
call dword [ecx + 0xc]
or dword [ebp - 4], 0xffffffff
mov ebx, eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x49133f
call fcn.0040a5dd
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x491341
xor eax, eax
test ebx, ebx
jns 0x49134f
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x49137b
push eax
push eax
push 3
push 3
push eax
push eax
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x49137f
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
jmp 0x491381
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4913c7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, ecx
push 0
mov ebx, edx
movss dword [ebp - 4], xmm1
push dword [esi + 0x20]
call edi
test eax, eax
jne 0x49145f
mov ecx, dword [esi + 0x2a4]
push 0
mov eax, dword [ecx]
call dword [eax + 0x18]
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi + 0x2a4]
call fcn.0047c1b3
cmp al, 1
jne 0x49141e
push 0x64
add edi, 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x64
jl 0x4913fe
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call fcn.0042a910
push edi
lea eax, [ebp - 0x108]
push str.Slept_for__d_milliseconds_while_waiting_for_mupthread_to_shutdown_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x4914bf
movss xmm0, dword [ebp - 4]
call fcn.00497040
cmp eax, dword [0x4cb034]
jbe 0x49149d
push dword [esi + 0x294]
movss xmm0, dword [ebp - 4]
push dword [esi + 0x254]
mulss xmm0, dword [0x4ab7d8]
push 1
push 0x3e8
call fcn.00497040
push eax
call dword [esi + 0x250]
push 0xffffffffffffffff
push dword [0x4cb038]
call edi
test eax, eax
jne 0x4914bd
push dword [0x4cb038]
add dword [0x4cb030], ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491abe
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor eax, eax
mov esi, ecx
push edi
push 0x104
mov dword [ebp - 4], eax
mov ebx, eax
call fcn.0040627a
push dword [ebp + 8]
mov edi, eax
push dword [ebp + 0xc]
push str._s_s.info
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov ecx, edi
call fcn.0046305d
test eax, eax
je 0x491b9a
push edi
push ebx
push str.files
push str.install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp + 8]
mov ebx, eax
push dword [ebp + 0xc]
push str._s_s.cab
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov al, 1
cmp dword [esi + 0x2bc], 0
mov byte [ebp + 0xb], al
jbe 0x491b72
lea edx, [esi + 0x2a8]
mov dword [ebp + 0xc], edx
test al, al
je 0x491b9a
push edi
push dword [edx]
call fcn.0042678f
mov edx, dword [ebp + 0xc]
neg eax
pop ecx
sbb al, al
add edx, 4
and al, byte [ebp + 0xb]
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
mov byte [ebp + 0xb], al
mov dword [ebp - 4], ecx
mov dword [ebp + 0xc], edx
cmp ecx, dword [esi + 0x2bc]
jb 0x491b3e
test al, al
je 0x491b9a
test ebx, ebx
je 0x491b9c
mov ecx, edi
call fcn.0046305d
test eax, eax
je 0x491b9a
mov eax, dword [esi + 0x2bc]
mov dword [esi + eax*4 + 0x2a8], edi
inc dword [esi + 0x2bc]
add dword [esi + 0x2b4], ebx
test ebx, ebx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x491c09
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
mov esi, str.systemcomponents2_
mov dword [ebp - 4], edx
lea edi, [ebp - 0x24]
mov ebx, ecx
lea ecx, [ebp - 0x10]
lea edx, [ecx + 1]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, str.cache_
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x264]
mov dword [ebp - 8], edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491c44
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x10]
sub ecx, edx
push ecx
push eax
push esi
call fcn.004279bb
add esp, 0xc
test eax, eax
jne 0x491c6b
mov eax, dword [ebx + 0x290]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491c71
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
push esi
call fcn.004279bb
add esp, 0xc
test eax, eax
jne 0x491c9d
lea ecx, [ebp - 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491c92
sub ecx, edx
add esi, ecx
push 0x103
xor edi, edi
mov byte [ebp - 0x128], 0
lea eax, [ebp - 0x127]
push edi
push eax
call fcn.0042a910
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push 0x4a563c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
xor eax, eax
mov dword [ebp - 4], eax
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x491d2d
lea ecx, [ebp - 0x128]
call fcn.0045b5f9
test eax, eax
je 0x491d4a
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x491d4a
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
inc dword [ebx + 0x2b8]
push 0
push dword [ebx + 0x254]
push 1
push dword [ebx + 0x2b4]
push dword [ebx + 0x2b8]
call dword [ebx + 0x250]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49251b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push edi
mov edi, edx
mov eax, dword [edi + 0x14]
test eax, eax
js 0x4925de
cmp eax, 0x22
jle 0x492540
cmp eax, 0x27
jne 0x4925de
mov ecx, dword [edi]
push ebx
push esi
test ecx, ecx
je 0x492577
mov ebx, dword [ecx + 8]
test ebx, ebx
jle 0x492572
push 0
push 0x64
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0043aab0
mov esi, eax
mov ecx, edx
mov eax, ebx
cdq
push edx
push eax
push ecx
push esi
call fcn.0042eaa0
mov esi, eax
jmp 0x492582
mov esi, dword [ebp - 4]
jmp 0x492582
mov ecx, edi
call fcn.0048e754
cvttss2si esi, xmm0
push 0x3ff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], 0
push 0
push eax
call fcn.0042a910
mov ecx, dword [edi + 0x14]
add esp, 0xc
cmp dword [edi + 0x1c], 0
mov eax, 0x4a513e
cmovne eax, dword [edi + 0x1c]
push eax
push esi
call fcn.00487f91
push eax
push ecx
lea eax, [ebp - 0x404]
push str.__i:_s____3i_____s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
jmp 0x4925f5
push eax
push str.Unhandled_Muppet_status_code:__i_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x492668
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x4a6bf0
push ecx
mov edi, edx
call fcn.004260ba
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x492686
and dword [edi], eax
or eax, 0xffffffff
jmp 0x4926d6
push ebx
push 2
push 0
push esi
call fcn.004287ad
push esi
call fcn.00428f45
push 0
push 0
push esi
mov ebx, eax
call fcn.004287ad
lea ecx, [ebx + 1]
push ecx
call fcn.004249e8
push esi
push ebx
push 1
push eax
mov dword [edi], eax
call fcn.00426294
add esp, 0x30
cmp ebx, eax
je 0x4926cc
push dword [edi]
call fcn.004249b0
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x4926d5
push esi
call fcn.00426699
pop ecx
mov eax, ebx
pop ebx
pop edi
pop esi
ret

Function at 0x4926d9
Capabilities:
Create directory
Get file attributes

Disassembly:
push edi
mov edi, ecx
cmp byte [edi], 0
je 0x492704
push esi
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x4926ee
cmp al, 0x2f
jne 0x4926fd
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
cmp byte [esi], 0
jne 0x4926e4
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
neg eax
pop edi
sbb eax, eax
neg eax
ret