joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100811d6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1008120e
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.1007f27d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1007f255
jmp 0x1008121a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100828cb
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 0x1008290d
call fcn.10088263
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1008290d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10082904
xor eax, eax
jmp 0x10082915
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1008291b
pop edi
pop esi
pop ebx
ret 4
Function at 0x1002393
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1006010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [section..data], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x1002403
push ecx
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x103]
push 0xff
push eax
mov byte [ebp - 0x104], 0
call fcn.01003b55
add esp, 0x14
test eax, eax
jge 0x10023e3
mov byte [ebp - 5], 0
mov eax, 0xfe
push 0
lea ecx, [ebp - 0x108]
push ecx
add eax, 2
push eax
lea eax, [ebp - 0x104]
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01003a5f
leave
ret 8

Function at 0x1002455
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
push 0
mov byte [ebp - 3], al
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [section..data]
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret 4

Function at 0x1002486
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
je 0x100258e
cmp dword [ebp + 0x10], esi
jle 0x100258e
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push 1
push esi
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x10024d0
push 0x100132c
call fcn.01002416
pop ecx
jmp 0x100258e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10024f5
push 0x1001310
jmp 0x100256f
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x100250e
call edi
push eax
push 0x10012f0
jmp 0x100257e
push esi
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 8]
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x1388
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x1002561
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1002561
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x1002591
cmp dword [ebp - 8], 0x102
jne 0x1002576
push 0x10012d4
call fcn.01002416
jmp 0x1002584
call edi
push eax
push 0x10012c4
call fcn.01002416
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
leave
ret 0xc
Function at 0x1002948
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1006010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xb
pop ecx
mov esi, 0x1001500
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
test ebx, ebx
mov dword [ebp - 0x38], eax
movsb byte es:[edi], byte [esi]
je 0x1002a2f
xor edx, edx
cmp dword [ebp + 0xc], eax
jbe 0x1002a2f
mov cl, byte [ebx + edx]
cmp cl, 0xd
je 0x1002997
cmp cl, 0xa
jne 0x1002a20
mov byte [ebx + edx], 0
inc edx
mov cl, byte [ebx + edx]
cmp cl, 0xd
mov dword [ebp - 0x3c], edx
je 0x10029ac
cmp cl, 0xa
jne 0x10029b1
cmp edx, dword [ebp + 0xc]
jbe 0x1002997
lea edx, [ebx + eax]
test edx, edx
mov edi, 0x10014ec
je 0x10029bf
mov edi, edx
push 6
mov esi, 0x10014f8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1002a2c
push edx
call fcn.01002881
mov esi, eax
test esi, esi
jne 0x10029dc
lea esi, [ebp - 0x34]
lea eax, [esi + 1]
test eax, eax
mov byte [esi], 1
je 0x10029f2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10029e9
sub eax, edx
push 0
lea ecx, [ebp - 0x40]
push ecx
add eax, 2
push eax
push esi
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x34]
cmp esi, eax
je 0x1002a18
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
mov edx, eax
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x1002986
jmp 0x1002a2f
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003a5f
leave
ret 8
Function at 0x1003f60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1003f73
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1003f6f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1003fa0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1003fdf
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1003fd5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1003fe1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1003fc5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43565a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x445010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0043442a
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4034d6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00409367
push 0x441430
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.00408d3b
push edi
push esi
call fcn.0043492a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407c4d
mov esp, ebp
pop ebp
ret 4
Function at 0x403c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435728
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x445010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x403d95
cmp byte [ebx + 0x45], 0
je 0x403d95
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x403cc4
xor al, al
jmp 0x403d97
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403d2e
dec eax
je 0x403d32
sub eax, 2
je 0x403d7e
xor bl, bl
jmp 0x403d80
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x403d64
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0040abf7
add esp, 0x10
cmp esi, eax
jne 0x403d2a
cmp byte [ebx + 0x45], 0
je 0x403d7e
test esi, esi
jne 0x403cf4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00402c30
jmp 0x403cf4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x403d91
push dword [ebp - 0x28]
call fcn.00408433
add esp, 4
mov al, bl
jmp 0x403d97
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407c4d
mov esp, ebp
pop ebp
ret
Function at 0x4047a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435818
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x445010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x4047dc
xor eax, eax
jmp 0x40496c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x40480a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x40480a
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x40496c
cmp dword [ebx + 0x50], 0
jne 0x404818
or eax, 0xffffffff
jmp 0x40496c
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [esi], eax
jne 0x404839
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [esi], ecx
sub edx, ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [eax], edx
cmp dword [ebx + 0x40], 0
jne 0x40485e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0040a0ae
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x40496c
mov byte [ebp - 0x14], cl
lea eax, [ebp - 0x2c]
mov ecx, 0xf
mov byte [ebp - 0x2c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
cmp ecx, 0x10
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 8
cmovae eax, dword [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x30]
mov esi, dword [ebx + 0x40]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [esi]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 0x48]
push eax
call dword [edi + 0x1c]
test eax, eax
js 0x404956
cmp eax, 1
jg 0x404936
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
cmp edi, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, ecx
sub esi, eax
je 0x404907
push dword [ebx + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0040abf7
add esp, 0x10
cmp esi, eax
jne 0x404956
lea eax, [ebp - 0x14]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x404931
test esi, esi
jne 0x404891
cmp dword [ebp - 0x1c], 0x20
jae 0x404956
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402c30
jmp 0x404891
mov ebx, dword [ebp + 8]
jmp 0x404959
cmp eax, 3
jne 0x404956
push dword [ebx + 0x50]
push dword [ebp - 0x14]
call fcn.00403000
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x404959
or ebx, 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x40496a
push dword [ebp - 0x2c]
call fcn.00408433
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407c4d
mov esp, ebp
pop ebp
ret 4
Function at 0x406b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call fcn.0040a4e8
add esp, 0xc
test eax, eax
je 0x406bb8
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push ebx
call fcn.0040a8fb
mov esi, eax
add esp, 4
test esi, esi
jns 0x406bd5
pop esi
mov eax, 0xfffffffd
pop ebx
mov esp, ebp
pop ebp
ret 4
jne 0x406be1
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [esi + 1]
push 0x447e48
push eax
call fcn.0040b9ad
mov edi, eax
add esp, 8
test edi, edi
jne 0x406c05
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
mov byte [edi + esi], 0
call fcn.0040a4e8
push ebx
push esi
push 1
push edi
call fcn.0040a374
add esp, 0x1c
cmp eax, esi
je 0x406c3b
push edi
call fcn.004095dd
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00406a30
push edi
mov esi, eax
call fcn.004095dd
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x414d0f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x41ee62
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00411afe
mov dword [ebp - 0x14], eax
cmp dword [0x4489e4], esi
jne 0x41ef55
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41eee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41f035
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41f035
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41f035
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4489e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4489e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4489ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4489f4], eax
test eax, eax
je 0x41ef52
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4489f0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41ef7a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41ef6d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41ef8f
push 4
pop eax
jmp 0x41f037
cmp dword [ebp - 0x14], esi
je 0x41ef8f
push dword [0x4489e4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41ef74
mov eax, dword [0x4489f0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41efed
cmp dword [0x4489f4], edi
je 0x41efed
push eax
call ebx
push dword [0x4489f4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41efed
test eax, eax
je 0x41efed
call ecx
test eax, eax
je 0x41efe2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41efe2
test byte [ebp - 8], 1
jne 0x41efed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41f01d
mov eax, dword [0x4489e8]
cmp eax, edi
je 0x41f01a
push eax
call ebx
test eax, eax
je 0x41f01a
call eax
mov esi, eax
test esi, esi
je 0x41f01a
mov eax, dword [0x4489ec]
cmp eax, edi
je 0x41f01a
push eax
call ebx
test eax, eax
je 0x41f01a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4489e4]
call ebx
test eax, eax
je 0x41f035
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41f037
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407c4d
mov esp, ebp
pop ebp
ret
Function at 0x402274
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
mov eax, dword [esp + 0xc]
mov dword [0x412940], eax
mov edx, dword [0x412420]
xor ecx, ecx
call fcn.0040e390
jne 0x4022b0
mov edx, dword [0x412420]
push dword [0x412940]
call fcn.0040e330
lea eax, [esp + 4]
push eax
call fcn.0040e2b0
jmp 0x40242c
push 0xc80001
push dword [0x41241c]
push 0x6e
push 0xc8
push 0
push 0
push 0
call fcn.00409f5f
push dword [0x4123c0]
push 0x14
push 0x9e
push 0xf
push 0x15
push 1
call fcn.00409163
push 0x20
push 0x41101e
push 0x14
push 0x9e
push 0x28
push 0x15
push 2
call fcn.0040933c
push 0x41103d
push 0x14
push 0x4e
push 0x4b
push 0x3d
push 3
call fcn.00409649
push 4
push 0xd
push 0
call fcn.00409f82
push 2
call fcn.00409669
call fcn.0040a186
push eax
mov ebx, 0x333c
cmp ebx, dword [esp]
jne 0x402390
push dword [0x412424]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp fcn.00401771
mov ebx, 0x332d
cmp ebx, dword [esp]
jne 0x4023dc
call fcn.0040c40d
push eax
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4023d9
push dword [0x412940]
push dword [0x412940]
push 2
call fcn.004096a4
lea eax, [esp + 0xc]
push eax
call fcn.0040e2b0
push 0
call fcn.00409b22
add esp, 8
jmp 0x40242c
pop eax
jmp 0x402426
mov ebx, 0x332c
cmp ebx, dword [esp]
jne 0x402426
call fcn.0040c41c
push eax
mov ebx, 3
cmp ebx, dword [esp]
jne 0x402425
push dword [0x412940]
push dword [0x412940]
push 2
call fcn.004096a4
lea eax, [esp + 0xc]
push eax
call fcn.0040e2b0
push 0
call fcn.00409b22
add esp, 8
jmp 0x40242c
pop eax
pop eax
jmp 0x402366
push dword [0x412940]
push dword [0x412940]
push dword [esp + 8]
call fcn.004042b0
push eax
mov eax, dword [esp + 0xc]
push eax
call fcn.0040cb00
inc dword [0x412940]
push dword [0x412940]
push dword [0x412940]
push dword [0x412380]
push dword [0x41236c]
call fcn.0040b610
pop edx
pop ecx
mov dword [0x412940], ecx
add ecx, dword [0x411264]
add edx, dword [0x411264]
call fcn.0040e390
jne 0x4024b5
push 0x10
push dword [0x41240c]
push dword [0x412434]
call fcn.00407000
push dword [0x412424]
call sub.KERNEL32.dll_RemoveDirectoryA
push 1
jmp fcn.00401771
mov edx, dword [esp]
push dword [0x412940]
call fcn.0040e330
pop eax
add eax, dword [0x411264]
jmp 0x4024da
push dword [esp]
call fcn.0040e3c0
add esp, 4
pop ebx
ret
Function at 0x4029ba
Capabilities:
Delete directory

Disassembly:
xor eax, eax
push eax
push dword [0x412940]
push dword [0x412940]
push dword [0x412940]
push dword [0x412940]
call fcn.0040b87b
inc dword [0x412940]
push dword [0x412408]
mov edx, dword [0x411264]
add dword [esp + 4], edx
call fcn.00407073
lea eax, [esp + 4]
push eax
call fcn.0040e2b0
mov edx, dword [esp]
xor ecx, ecx
call fcn.0040e390
jne 0x402a7e
mov edx, dword [esp]
push dword [0x412940]
call fcn.0040e330
lea eax, [0x4123d0]
push eax
call fcn.0040e2b0
push dword [0x4123d0]
call fcn.0040b8bb
mov edx, dword [0x412390]
xor ecx, ecx
call fcn.0040e390
jne 0x402a4a
push dword [0x412390]
call fcn.00402cc3
push dword [0x4123d8]
push 1
call fcn.0040bd00
and eax, eax
je 0x402a7e
push dword [0x412374]
push dword [0x412414]
push 1
call fcn.0040be80
push 1
call fcn.0040bae0
push dword [0x412940]
push dword [0x412940]
push dword [0x412940]
push dword [0x412940]
push dword [0x412940]
call fcn.004074a2
mov edx, dword [0x411264]
add dword [esp], edx
call fcn.0040b8cd
mov edx, dword [0x411264]
add dword [esp], edx
call fcn.0040b8bb
pop dword [0x412940]
push dword [0x412424]
call sub.KERNEL32.dll_RemoveDirectoryA
push 0
jmp fcn.00401771

Function at 0x402b95
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040b5d0
mov dword [esp], eax
push dword [0x412940]
push dword [0x412940]
call fcn.0040b97f
lea eax, [esp + 8]
push eax
call fcn.0040e2b0
push dword [esp]
push 0
push 0x41101e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x412940]
push dword [0x412940]
push dword [esp + 8]
call fcn.0040b680
lea eax, [0x412424]
push eax
call fcn.0040e2b0
push dword [esp]
call fcn.0040b6d0
push dword [0x412424]
call fcn.0040b971
push dword [0x412424]
call fcn.0040b805
push dword [0x412940]
push dword [0x412940]
call fcn.0040b87b
lea eax, [0x4123d0]
push eax
call fcn.0040e2b0
push dword [esp + 0x14]
pop eax
call fcn.0040b5f0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x402c6e
mov edx, dword [0x412424]
push dword [0x412940]
call fcn.0040e330
lea eax, [0x4123d0]
push eax
call fcn.0040e2b0
mov dword [esp + 0xc], 2
jmp 0x402c80
mov ebx, 1
cmp ebx, dword [esp]
jne 0x402c80
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040b5f0
mov dword [0x4123fc], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040b5f0
mov dword [0x412364], eax
mov eax, 1
jmp 0x402cb3
push dword [esp + 4]
call fcn.0040e3c0
add esp, 0xc
pop ebx
ret 4