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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x481c50]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41cfa9
cmp word [esi], dx
jne 0x41cfa9
or byte [edi + eax + 0x28], 4
jmp 0x41cfae
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d101
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d0e1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41cff0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d026
cmp eax, edx
jae 0x41d032
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41cfc8
jmp 0x41d101
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d0dd
cmp dword [ebp - 0x14], 0
je 0x41d0dd
mov eax, dword [ebx*4 + 0x481c50]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d0b5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d07e
mov word [esi], cx
jmp 0x41d0b1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x481c50]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x481c50]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x481c50]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d101
pop ebx
cmp word [ebp - 4], bx
jne 0x41d0c6
cmp esi, dword [ebp + 0xc]
jne 0x41d0c6
mov word [esi], bx
jmp 0x41d0fe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d99a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d101
push 0xd
jmp 0x41d0fa
mov ecx, dword [ebx*4 + 0x481c50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d0f8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d101
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x823bdb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0082adbe
xor esi, esi
inc esi
cmp dword [0xc9ac48], esi
pop ecx
jne 0x823c03
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0xc9ac44], esi
mov byte [0xc9ac40], al
jne 0x823c69
mov ecx, dword [0xc9d42c]
test ecx, ecx
je 0x823c4a
mov eax, dword [0xc9d428]
sub eax, 4
cmp eax, ecx
jmp 0x823c43
mov eax, dword [eax]
test eax, eax
je 0x823c35
call eax
mov eax, dword [0xc9d428]
sub eax, 4
cmp eax, dword [0xc9d42c]
mov dword [0xc9d428], eax
jae 0x823c2d
mov eax, 0x8a5a34
mov esi, 0x8a5a3c
cmp eax, esi
mov edi, eax
jae 0x823c69
mov eax, dword [edi]
test eax, eax
je 0x823c62
call eax
add edi, 4
cmp edi, esi
jb 0x823c5a
mov eax, 0x8a5a40
mov esi, 0x8a5a48
cmp eax, esi
mov edi, eax
jae 0x823c88
mov eax, dword [edi]
test eax, eax
je 0x823c81
call eax
add edi, 4
cmp edi, esi
jb 0x823c79
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x823c99
push 8
call fcn.0082ad12
jmp 0x823cab
push dword [ebp + 8]
mov dword [0xc9ac48], 1
call fcn.00823afe
pop ecx
pop ebp
ret
Function at 0x824570
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x888078
call fcn.008286e0
mov edi, 0x94
mov eax, edi
call fcn.00822070
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0xc9ac08], ecx
mov eax, dword [esi + 4]
mov dword [0xc9ac14], eax
mov edx, dword [esi + 8]
mov dword [0xc9ac18], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0xc9ac0c], esi
cmp ecx, 2
je 0x8245d0
or esi, 0x8000
mov dword [0xc9ac0c], esi
shl eax, 8
add eax, edx
mov dword [0xc9ac10], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x82460b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x82460b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x824623
cmp eax, 0x20b
je 0x824610
mov dword [ebp - 0x1c], esi
jmp 0x824637
cmp dword [ecx + 0x84], 0xe
jbe 0x82460b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x824631
cmp dword [ecx + 0x74], 0xe
jbe 0x82460b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0082c471
pop ecx
test eax, eax
jne 0x82464b
push 0x1c
call fcn.008244f6
pop ecx
call fcn.00827d25
test eax, eax
jne 0x82465c
push 0x10
call fcn.008244f6
pop ecx
call fcn.0082beda
mov dword [ebp - 4], esi
call fcn.0082c0b9
test eax, eax
jge 0x824675
push 0x1b
call fcn.008244d1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xc9c414], eax
call fcn.0082dbc8
mov dword [0xc9ac50], eax
call fcn.0082db26
test eax, eax
jge 0x82469b
push 8
call fcn.008244d1
pop ecx
call fcn.0082d8f3
test eax, eax
jge 0x8246ac
push 9
call fcn.008244d1
pop ecx
call fcn.00823b76
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x8246bf
push eax
call fcn.008244d1
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0082d88a
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x8246e0
movzx eax, word [ebp - 0x34]
jmp 0x8246e3
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00748710
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x824701
push edi
call fcn.00823cae
call fcn.00823cd0
jmp 0x824733
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0082871b
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x8266c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0082b193
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x8266e4
test byte [esp + 8], 2
je 0x8266e4
call fcn.0082b181
mov dword [eax], 0xd
call fcn.0082b18a
mov dword [eax], 5
jmp 0x8266bd
xor eax, eax
ret
Function at 0x408cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x40f670
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword fs:[0], eax
test byte [ecx + 4], 1
jne 0x408d31
movzx edi, byte [ebp + 0x18]
mov eax, dword [esi]
mov ebx, dword [eax + 0x18]
mov ecx, ebx
call dword [0x451b30]
movsx eax, byte [ebp + 0x14]
mov ecx, esi
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call ebx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x2c]
push esi
call fcn.00410a00
mov dword [ebp - 0x10], 0
mov ecx, esi
push 0x457ef8
call fcn.00411030
mov esi, eax
mov edi, dword [ebp - 0x2c]
cmp edi, 0x457e08
je 0x408d84
xor eax, eax
dec eax
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x408d84
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
call dword [0x451b30]
mov ecx, edi
call ebx
xor eax, eax
dec eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi]
mov dl, byte [ebp + 0x18]
xor dl, 1
movzx edx, dl
mov edi, dword [ecx + edx*4 + 0x14]
mov dword [ebp - 0x10], eax
mov ecx, edi
call dword [0x451b30]
mov ecx, esi
lea eax, [ebp - 0x2c]
push eax
call edi
movzx eax, byte [ebp - 0x21]
mov edx, eax
test al, al
jns 0x408dbf
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
test edx, edx
je 0x408e58
test al, al
lea eax, [ebp - 0x2c]
cmovns ecx, eax
mov dword [ebp - 0x30], ecx
jmp 0x408e35
movzx edi, al
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, esi
call dword [0x451b30]
mov dword [ebp - 0x10], 1
mov ecx, ebx
push edi
call esi
xor ecx, ecx
cmp eax, 0xffffffff
je 0x408e07
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
jmp 0x408e13
mov dword [ebp - 0x20], 0
movzx eax, byte [ebp - 0x21]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
mov esi, eax
test al, al
jns 0x408e28
mov esi, dword [ebp - 0x28]
mov edx, ecx
add edx, esi
mov esi, dword [ebp - 0x30]
inc esi
mov dword [ebp - 0x30], esi
cmp esi, edx
je 0x408e58
cmp dword [ebp - 0x20], 0
je 0x408e0c
mov eax, dword [ebp - 0x30]
mov al, byte [eax]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [edx + 0x1c]
je 0x408dd7
lea edx, [ecx + 1]
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x18], edx
mov byte [ecx], al
jmp 0x408e13
shr al, 7
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [edx], esi
test al, al
je 0x408e70
push ecx
call fcn.00411540
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
jmp 0x408d27
Function at 0x411a78
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x411ab7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411ab7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411ab7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411ab7
cmp dword [ecx + 0x74], 0xe
jbe 0x411ab7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x426b60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426b8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426b8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x427c95
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44a4a4
push 0x44a49c
push 0x44a4a4
push 0x1f
call fcn.00428148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427cc9
push dword [ebp + 8]
mov ecx, esi
call dword [0x451b30]
call esi
jmp 0x427ccf
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x427d13
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44a4c8
push 0x44a4c0
push 0x44a4c8
push 0x21
call fcn.00428148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427d4a
push dword [ebp + 8]
mov ecx, esi
call dword [0x451b30]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x427d52
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44a4dc
push 0x44a4d4
push 0x44a4dc
push 0x22
call fcn.00428148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427d8c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x451b30]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x10187980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + 0x40fffffc], esi
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.1018712f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.101870e4
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid
int 0xfc
invalid
Function at 0x10002d30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1002ff30
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov edx, dword [ecx + 0x1c]
sub esp, 0x28
cmp edx, eax
jg 0x10002d66
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
push eax
lea eax, [esp + 4]
push eax
add ecx, 0x14
call fcn.10003840
mov ecx, dword [esp + 0x3c]
push eax
mov dword [esp + 0x34], 0
call fcn.10026f1b
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 3
call fcn.10026e2e
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.10026e2e
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call fcn.10026e2e
lea ecx, [esp]
mov dword [esp + 0x30], 0xffffffff
call fcn.10026e2e
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x10002e50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1002ff90
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov edx, dword [ecx + 0x1c]
sub esp, 0x28
cmp edx, eax
jg 0x10002e86
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
push eax
lea eax, [esp + 4]
push eax
add ecx, 0x14
call fcn.10003840
mov ecx, dword [esp + 0x3c]
add eax, 0xc
push eax
mov dword [esp + 0x34], 0
call fcn.10026f1b
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 3
call fcn.10026e2e
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.10026e2e
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call fcn.10026e2e
lea ecx, [esp]
mov dword [esp + 0x30], 0xffffffff
call fcn.10026e2e
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x10002f00
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1002ffb6
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, ecx
mov ecx, esi
call fcn.10026db9
mov ecx, dword [edi + 0x1c]
mov eax, dword [esp + 0x124]
cmp ecx, eax
jle 0x1000302f
mov ecx, dword [edi + 0x18]
lea eax, [eax + eax*8]
lea edx, [ecx + eax*4 + 8]
lea ecx, [esp + 8]
push edx
call fcn.10026ba3
mov eax, dword [esp + 8]
mov dword [esp + 0x11c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x1000301b
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1000301b
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.10026f6b
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.100270b8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10002fc6
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call fcn.10026e2e
mov eax, 1
jmp 0x10003031
push str.BCGDownloadPreview
lea ecx, [esp + 0x10]
call fcn.10026e9c
mov esi, dword [esi]
lea ecx, [esp + 8]
push esi
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x128], 1
call fcn.10002800
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x11c], 0
call fcn.10026e2e
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call fcn.10026e2e
mov eax, esi
jmp 0x10003031
lea ecx, [esp + 8]
mov dword [esp + 0x11c], 0xffffffff
call fcn.10026e2e
xor eax, eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 8

Function at 0x10003210
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10030028
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov edx, dword [ecx + 0x1c]
sub esp, 0x28
cmp edx, eax
jg 0x10003246
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
push eax
lea eax, [esp + 4]
push eax
add ecx, 0x14
call fcn.10003840
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 2
call fcn.10026e2e
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.10026e2e
lea ecx, [esp + 4]
mov byte [esp + 0x30], 0
call fcn.10026e2e
lea ecx, [esp]
mov dword [esp + 0x30], 0xffffffff
call fcn.10026e2e
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x100032c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10030058
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
mov edx, dword [ecx + 0x1c]
sub esp, 0x28
cmp edx, eax
jg 0x100032f6
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 8
push eax
lea eax, [esp + 4]
push eax
add ecx, 0x14
call fcn.10003840
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0x14]
mov dword [edx], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 2
call fcn.10026e2e
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.10026e2e
lea ecx, [esp + 4]
mov byte [esp + 0x30], 0
call fcn.10026e2e
lea ecx, [esp]
mov dword [esp + 0x30], 0xffffffff
call fcn.10026e2e
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x10003750
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10030136
push eax
mov dword fs:[0], esp
sub esp, 0x10c
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10003826
mov eax, dword [esi + 0x1c]
xor edi, edi
test eax, eax
jle 0x10003826
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
xor ebp, ebp
mov ecx, dword [esi + 0x18]
lea edx, [ecx + ebp + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10026ba3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x124], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x10003801
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.10026e9c
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x128], 1
call fcn.100270b8
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 0
call fcn.10026e2e
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.10026e2e
mov eax, dword [esi + 0x1c]
inc edi
add ebp, 0x24
cmp edi, eax
jl 0x1000379e
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x10003ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10030299
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x34]
push ebx
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x14], esi
call fcn.1002666b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x5c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x60], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x68], ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
xor edi, edi
push ecx
push ebx
lea ecx, [esi + 0x6c]
mov dword [esp + 0x28], edi
call fcn.100026e0
push ebx
lea ecx, [esi + 0x98]
mov byte [esp + 0x1c], 1
call fcn.10001460
lea ecx, [esi + 0xc8]
mov byte [esp + 0x18], 2
call fcn.10024dda
lea ecx, [esi + 0xd0]
mov byte [esp + 0x18], 3
call fcn.10024dda
mov edx, dword [0x1003c628]
mov dword [esi + 0x110], edx
mov dword [esi + 0x118], edi
mov dword [esi + 0x114], 0x10032888
mov eax, dword [0x1003c628]
mov dword [esi + 0x11c], eax
lea ebx, [esi + 0x148]
mov byte [esp + 0x18], 7
mov ecx, ebx
call fcn.1002789f
mov dword [ebx], vtable.CButton.0
lea ebx, [esi + 0x184]
mov byte [esp + 0x18], 8
mov ecx, ebx
call fcn.1002789f
mov dword [ebx], vtable.CButton.0
lea ebx, [esi + 0x1c0]
mov byte [esp + 0x18], 9
mov ecx, ebx
call fcn.1002789f
mov dword [ebx], vtable.CProgressCtrl.0
lea ebx, [esi + 0x1fc]
mov byte [esp + 0x18], 0xa
mov ecx, ebx
call fcn.1002789f
mov dword [ebx], vtable.CStatic.0
lea ebx, [esi + 0x238]
mov byte [esp + 0x18], 0xb
mov ecx, ebx
call fcn.1002789f
mov dword [ebx], vtable.CStatic.0
lea ebx, [esi + 0x274]
mov byte [esp + 0x18], 0xc
mov ecx, ebx
call fcn.1002789f
mov dword [ebx], vtable.CListCtrl.0
mov edx, dword [0x1003c628]
lea ecx, [esi + 0x2b0]
mov dword [ecx], edx
push 0x1003fd50
mov byte [esp + 0x1c], 0xe
mov dword [esi], method.CDialog.virtual_0
call fcn.10026f6b
mov dword [esi + 0xf8], edi
mov dword [esi + 0x100], edi
call fcn.1002ec4e
call fcn.1002ec4e
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xfc], eax
or eax, 0xffffffff
mov dword [esi + 0x104], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x120], eax
mov dword [esi + 0x144], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x10005230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x100304f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [esi + 0xc4]
push eax
call edi
cmp eax, 0xffffffff
jne 0x100052b7
mov eax, dword [0x1003c628]
mov dword [esp + 8], eax
mov ecx, dword [esi + 0xc4]
lea edx, [esp + 8]
push ecx
push 0x75
push edx
mov dword [esp + 0x20], 0
call fcn.1002493e
mov eax, dword [esp + 0x14]
add esp, 0xc
push 0
push 0x35
push eax
call fcn.1002c7b9
cmp eax, 4
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 8]
jne 0x100052cd
call fcn.10026e2e
mov eax, dword [esi + 0xc4]
push eax
call edi
cmp eax, 0xffffffff
je 0x1000525e
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.10026e2e
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1001e435
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1003f5d8
cmp edx, dword [eax]
je 0x1001e457
add eax, 8
inc ecx
cmp eax, 0x1003f668
jl 0x1001e448
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1003f5d8]
jne 0x1001e585
mov eax, dword [0x10041dc4]
cmp eax, 1
je 0x1001e55f
test eax, eax
jne 0x1001e488
cmp dword [0x10041dc8], 1
je 0x1001e55f
cmp edx, 0xfc
je 0x1001e585
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001e4bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10020a70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1001a440
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1001e502
lea eax, [ebp - 0x1a4]
push eax
call fcn.1001a440
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100354ec
push edi
call fcn.10021ef0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10020a70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10020a80
lea eax, [ebp - 0xa0]
push 0x100354cc
push eax
call fcn.10020a80
push dword [esi + 0x1003f5dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.10020a80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10021e5f
add esp, 0x2c
pop edi
jmp 0x1001e585
lea eax, [ebp + 8]
lea esi, [esi + 0x1003f5dc]
push 0
push eax
push dword [esi]
call fcn.1001a440
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