joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov byte [ebp - 1], 0
push esi
push edi
mov ecx, 0x40
mov esi, 0x4323c8
mov edi, ebx
mov dword [ebx + 0x200], 1
mov dword [ebx + 0x204], 1
mov word [ebx + 0x208], 0
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edi, edx
nop
xor edx, edx
mov cl, byte [esi + ebx]
mov eax, esi
div dword [ebp + 8]
movzx eax, byte [edx + edi]
mov dl, byte [ebp - 1]
add al, cl
add dl, al
mov byte [ebp - 1], dl
movzx edx, dl
movzx eax, byte [edx + ebx]
mov byte [esi + ebx], al
inc esi
mov byte [edx + ebx], cl
cmp esi, 0x100
jb 0x401a30
lea edi, [ebx + 0x100]
mov esi, ebx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401a80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 0x204]
lea esi, [edi + 0x100]
sub dword [ebp + 8], eax
add ecx, eax
mov bh, byte [edi + 0x209]
sub edx, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
cmp eax, ecx
jae 0x401afa
sub edx, dword [ebp + 8]
mov edi, edx
nop dword [eax]
mov edx, dword [ebp - 4]
movzx ecx, al
add esi, ecx
mov bl, byte [esi]
add bh, bl
movzx ecx, bh
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx ecx, byte [esi]
mov edx, dword [ebp + 8]
add cl, bl
mov esi, dword [ebp - 4]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + esi]
xor cl, byte [edi + edx]
mov byte [edx], cl
cmp eax, dword [ebp - 8]
jb 0x401ac0
mov edi, dword [ebp - 0xc]
mov byte [edi + 0x209], bh
mov dword [edi + 0x204], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x436074]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00407040
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.004052a0
mov eax, dword [0x437f74]
test eax, eax
je 0x406e69
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x406f68
cmp dword [ebx], 2
jl 0x406ead
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.00412da9
add esp, 4
push eax
push 1
push esi
push edi
call fcn.00413ad3
push 2
call fcn.00412da9
add esp, 0x14
push eax
call fcn.00412fbb
add esp, 4
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.00406cc0
test al, al
je 0x406edc
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x437f78]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x406f68
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x406f14
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0040e6d0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.004079e0
add esp, 4
cmp dword [0x437f80], 0
je 0x406f5e
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004052a0
lea eax, [esp + 0x28]
push eax
call dword [0x437f80]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x406f68
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.00404c00
jmp 0x406f68
cmp byte [0x437f84], 0
jne 0x406fba
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x406f80
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00404c00
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.004035e0
push esi
mov dword [esi], 0x4325f0
call fcn.0040ba8c
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c806
mov esp, ebp
pop ebp
ret
push 1
call fcn.0041444f
int3

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4072ae
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x4072c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x436074]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4073a2
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x407312
xor ecx, ecx
jmp 0x40732f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407320
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.004026c0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40734a
mov ecx, dword [eax]
jmp 0x40734c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004026c0
lea ecx, [esp + 8]
call fcn.00402f40
lea eax, [esp + 8]
cmp esi, eax
je 0x40737a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004015c0
lea ecx, [esp + 8]
call fcn.004014d0
lea ecx, [esp + 0x20]
call fcn.004014d0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0040c806
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0040c806
mov esp, ebp
pop ebp
ret

Function at 0x4073c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x436074]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x1c]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40746f
cmp word [esp + 0x20], 0
je 0x40746f
sub esp, 8
lea eax, [esp + 0x28]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x28], 0
jne 0x407433
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004026c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0040c806
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x28]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407440
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004026c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0040c806
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call fcn.004019d0
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1c], 0
call fcn.004072c0
add esp, 4
mov ecx, esi
test al, al
je 0x4074ae
lea eax, [esp + 8]
push eax
call fcn.00401510
jmp 0x4074c5
sub esp, 8
mov eax, esp
mov dword [eax], 0x432688
mov dword [eax + 4], 3
call fcn.004026c0
lea ecx, [esp + 8]
call fcn.004014d0
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040c806
mov esp, ebp
pop ebp
ret
Function at 0x4074f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x436074]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4075ec
cmp eax, 0x104
ja 0x4075ec
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406fd0
sub esp, 8
lea eax, [ebp - 0x228]
cmp dword [ebp - 0x214], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x228]
mov dword [ecx], eax
mov eax, dword [ebp - 0x218]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.004026c0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x407584
mov ecx, dword [eax]
jmp 0x407586
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004026c0
lea ecx, [ebp - 0x240]
call fcn.00402f40
lea eax, [ebp - 0x240]
cmp esi, eax
je 0x4075ba
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004015c0
lea ecx, [ebp - 0x240]
call fcn.004014d0
lea ecx, [ebp - 0x258]
call fcn.004014d0
lea ecx, [ebp - 0x228]
call fcn.004014d0
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c806
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0040c806
mov esp, ebp
pop ebp
ret
Function at 0x407e20
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x436074]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4368f8]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0040c817
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x438de0]
xor dl, dl
test esi, esi
jle 0x407eb8
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x407eb3
mov eax, dword [esi*4 + 0x438888]
test eax, eax
je 0x407eb3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x407e90
dec edi
test edi, edi
jle 0x407ec1
test dl, dl
jne 0x407e80
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c806
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x436074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov dword [ebp - 0x38], esi
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x408b5f
xor ecx, ecx
jmp 0x408b7c
cmp byte [edi], 0
jne 0x408b68
xor ecx, ecx
jmp 0x408b7c
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b70
sub ecx, esi
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov dword [edx + 4], ecx
push eax
call fcn.004062c0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x408b93
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.004014d0
test ebx, ebx
jne 0x408bbd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c806
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x408c88
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c854
add esp, 4
mov esi, eax
push ebx
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x408c09
cmp byte [edi], 0
jne 0x408bf8
xor edi, edi
jmp 0x408c09
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x408c00
sub edi, ecx
lea eax, [ebp - 0x34]
mov dword [edx + 4], edi
push eax
call fcn.004062c0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x408c20
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x34]
call fcn.004014d0
push esi
lea ecx, [ebp - 0x34]
call fcn.00406fd0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.004061c0
mov ecx, dword [ebp - 0x38]
push eax
call fcn.004067c0
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x408c61
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00404c00
lea ecx, [ebp - 0x34]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.004014d0
test esi, esi
je 0x408c88
push esi
call fcn.0040c817
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c806
mov esp, ebp
pop ebp
ret 8
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x7ffe545d
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
and bh, 0xff
clc
lea esp, [esp]
nop
pushal
inc eax
popal
clc
and bh, 0xff
nop
stc
cld
cld
call 0x7ffe547b
pop edx
nop
xor dx, dx
stc
add edx, 0xd5e0
xor ecx, ecx
mov cl, 0x1e
stc
xor byte [ecx + edx], 0xf8
loop 0x7ffe548c
cld
push dword fs:[0x24]
nop
push es
pop ds
cld
pop dword [edx + 0xa]
cld
cld
mov cl, 0xff
nop
push edx
loop 0x7ffe54a6
nop
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
clc
cld
mov dword [edx + 0x1b], ecx
and bh, 0xff
cld
mov dword [edx + 0x100], ecx
lea esp, [esp]
cld
mov dword [eax + 0x2c], esp
lea esp, [esp]
stc
push 0
add eax, 0
push 0
nop
push 0
cld
stc
push 0
cld
push 0x30
clc
stc
push 0x20
push 0
clc
cld
stc
push 0
add edx, 0xffff7f37
cld
clc
push edx
push edx
cdq
pop edx
stc
push edx
push 0
call dword [edx + 0x820c]
add al, 0
clc
add esp, 0x3f8
clc
xor eax, eax
nop
inc eax
push edx
cdq
pop edx
nop
ret 0xc

Function at 0x43b65a
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
dec ebx
dec ebx
sub ebx, edx
call fcn.0043b68f
inc edx
xor dword [esi], edi
push 0x3aaab9a0
pop edx
inc esi
add ebx, 1
cmp esi, ecx
jne fcn.0043b65a
or edx, ebx
sub ebx, edx
sub ebx, 0xf3427845
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push 5
push 0
push 0x402108
push str.C:WindowsSystem32_fodhelper.exe
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
push 0
push 0
push str.powershell.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret

Function at 0x401847
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401886
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401886
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401886
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401886
cmp dword [ecx + 0x74], 0xe
jbe 0x401886
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x6fc540
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x29a000]
push edi
or ebp, 0xffffffff
jmp 0x6fc562
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6fc569
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc558
mov eax, 1
add ebx, ebx
jne 0x6fc57b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6fc58c
jne 0x6fc5ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc5ab
dec eax
add ebx, ebx
jne 0x6fc598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6fc570
add ebx, ebx
jne 0x6fc5a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6fc5fd
xor ecx, ecx
sub eax, 3
jb 0x6fc5c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6fc632
sar eax, 1
mov ebp, eax
jmp 0x6fc5ce
add ebx, ebx
jne 0x6fc5ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc59c
inc ecx
add ebx, ebx
jne 0x6fc5dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6fc59c
add ebx, ebx
jne 0x6fc5e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6fc5de
jne 0x6fc5fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6fc5de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6fc61c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6fc60e
jmp 0x6fc55e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6fc61c
add edi, ecx
jmp 0x6fc55e
pop esi
mov edi, esi
mov ecx, 0x5a45
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6fc63a
cmp byte [edi], 0x25
jne 0x6fc63a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6fc63f
lea edi, [esi + 0x2f9000]
mov eax, dword [edi]
or eax, eax
je 0x6fc6ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30a548]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30a674]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6fc66c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x30a678]
or eax, eax
je 0x6fc6a8
mov dword [ebx], eax
add ebx, 4
jmp 0x6fc689
call dword [esi + 0x30a688]
mov ebp, dword [esi + 0x30a67c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6fc6e2
sub esp, 0xffffff80
jmp 0x4f1598
Function at 0x402f00
Capabilities:
Create thread

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
push edi
push 0x48462c
push 0x45b298
xor eax, eax
push 3
push eax
mov ecx, 0x10
mov edi, 0x484628
push 0x45b328
rep stosd dword es:[edi], eax
call ebx
test eax, eax
jge 0x402f39
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [0x48462c]
mov ecx, dword [eax]
push 0
push 0
push 0x484628
push eax
call dword [ecx + 0xc]
test eax, eax
jge 0x402f59
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x484648], eax
jne 0x402f76
pop edi
pop ebx
add esp, 0x24
ret
push 0x484650
push 0
push 0x484628
push 0x4035b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x48464c], eax
jne 0x402fa0
pop edi
pop ebx
add esp, 0x24
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x484648]
mov eax, dword [0x48462c]
mov edx, dword [eax]
push 0
push 0
push ecx
push eax
call dword [edx + 0x50]
test eax, eax
jge 0x402fc9
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [0x48462c]
mov edx, dword [eax]
push 0x45b2f8
push eax
call dword [edx + 0x58]
test eax, eax
jge 0x402fe5
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0
push 0x484634
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov ecx, 9
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [0x484628]
push 0x4584e8
mov dword [esp + 0x18], 0x24
mov dword [esp + 0x30], 1
mov dword [0x484658], 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 0x22
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jge 0x403044
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov eax, dword [0x484634]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
test eax, eax
jge 0x40305d
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov ecx, dword [0x484634]
mov eax, dword [0x48462c]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x60]
test eax, eax
jge 0x40307b
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov ecx, dword [0x484634]
mov eax, dword [0x48462c]
mov edx, dword [eax]
push 1
push ecx
push 0
push eax
call dword [edx + 0x68]
test eax, eax
jge 0x40309d
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
push 0x484638
push 0x45b2b8
push 3
push 0
push 0x45b308
call ebx
test eax, eax
jge 0x4030be
pop edi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x30]
pop edi
mov dword [0x484644], edx
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x403c00
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
mov cl, byte [eax]
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x120]
or cl, byte [edi]
jne 0x403c28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
push eax
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0040e790
mov ebx, dword [esp + 0x12c]
add esp, 8
xor eax, eax
test ebx, 0x80000000
je 0x403c58
mov eax, 1
push 0
push 0x80
push 3
push 0
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403cfc
mov edi, dword [esp + 0x128]
test edi, edi
je 0x403caf
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x403caf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x403cde
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x403cde
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
mov eax, dword [esp + 0x134]
test eax, eax
je 0x403cef
mov dword [eax], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0x5c
push edi
call sub.MSVCRT.dll_strrchr
add esp, 8
test eax, eax
je 0x403d0e
lea edi, [eax + 1]
mov al, byte [0x501380]
test al, al
je 0x403d8b
mov ebp, dword [esp + 0x134]
mov esi, 0x501380
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x11c]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
push ebp
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00433370
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x403d8e
mov esi, dword [esp + 0x10]
mov al, byte [esi + 0x104]
add esi, 0x104
test al, al
mov dword [esp + 0x10], esi
jne 0x403d27
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret