joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011f0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x45be5a
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], vtable.CMD5.0
mov dword [esp + 0x8c], 1
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00407920
lea esi, [esp + 0x14]
lea ecx, [esp + 0x6c]
call fcn.004079e0
call fcn.004368a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4012ae
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
movzx ecx, byte [esp + 0x7b]
movzx edx, byte [esp + 0x7a]
movzx eax, byte [esp + 0x79]
push ecx
movzx ecx, byte [esp + 0x7c]
push edx
movzx edx, byte [esp + 0x7f]
push eax
movzx eax, byte [esp + 0x82]
push ecx
movzx ecx, byte [esp + 0x85]
push edx
movzx edx, byte [esp + 0x88]
push eax
movzx eax, byte [esp + 0x8b]
push ecx
movzx ecx, byte [esp + 0x8e]
push edx
movzx edx, byte [esp + 0x91]
push eax
movzx eax, byte [esp + 0x94]
push ecx
movzx ecx, byte [esp + 0x97]
push edx
movzx edx, byte [esp + 0x9a]
push eax
movzx eax, byte [esp + 0x9d]
push ecx
movzx ecx, byte [esp + 0xa0]
push edx
push eax
push ecx
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push edi
mov dword [esp + 0x50], 1
call fcn.00401900
add esp, 0x48
mov eax, edi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00443100
add esp, 0x88
ret
Function at 0x4034c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x45c196
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push esi
push edi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov edi, ecx
mov byte [esp + 0x28], bl
call fcn.00445f90
add esp, 0xc
push ebx
push 0x26
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.004013b0
mov dword [esp + 0x130], ebx
lea ebx, [esp + 0x14]
call fcn.00402280
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.00443ab4
mov edx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x40355e
or eax, 0xffffffff
jmp 0x403560
sub eax, edx
mov ebx, dword [edx - 0xc]
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x4035b0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x40358c
push esi
lea ecx, [esp + 0x18]
call fcn.00401800
mov edx, dword [esp + 0x14]
mov byte [ebx + edx], 0x5c
test esi, esi
jl 0x40369f
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40369f
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
mov byte [esi + edx], 0
lea ecx, [esp + 0x14]
call fcn.00404140
push str.Sgsc_
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00404dc0
add esp, 0xc
mov byte [esp + 0x130], 1
mov eax, dword [eax]
mov ecx, dword [edi + 0x28c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
call eax
mov byte [esp + 0x130], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403610
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x2ac]
push 0
call fcn.004094c5
mov ecx, dword [edi + 0x2ac]
push 0x64
call fcn.004094d7
mov ecx, dword [edi + 0x2ac]
push 0
call fcn.004094e9
mov ecx, dword [edi + 0x2d0]
push 0x64
push 0x3e8
push ecx
lea ecx, [edi + 0x18]
call fcn.00409b65
mov dword [esp + 0x130], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403678
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00443100
add esp, 0x124
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x403e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c0a3
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0xc], ebx
push 0x103
lea eax, [esp + 0x39]
push ebx
mov dword [esp + 0x154], ebx
push eax
mov byte [esp + 0x40], bl
call fcn.00445f90
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], 0x4032c0
mov dword [esp + 0x24], 0x467ea8
mov dword [esp + 0x28], 0x51
mov dword [esp + 0x30], eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
cmp esi, ebx
jne 0x403f53
push 0x467c1c
mov ecx, edi
call fcn.004013b0
mov dword [esp + 0x14c], 0xffffffff
mov eax, dword [esp + 0x154]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x403ffb
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x403f7b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
call fcn.004013b0
mov byte [esp + 0x14c], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.00401850
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x150], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14c], 0xffffffff
mov eax, dword [esp + 0x154]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00443100
add esp, 0x144
ret 4
Function at 0x404140
Capabilities:
Access peb ldr_data
Get disk size
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45bf4b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x29]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x30], 0
call fcn.00445f90
mov esi, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [esp + 0x4c]
push ecx
push esi
call fcn.00443e73
add esp, 0x30
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x404279
call fcn.004368a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4041ed
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x138], 0
fld qword [0x4681b0]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
shrd ecx, edx, 0x1e
shr edx, 0x1e
push edx
push ecx
sub esp, 8
lea eax, [esp + 0x18]
fstp qword [esp]
push 0x467eb8
push eax
call fcn.00401900
add esp, 0x18
push str.diskInfo
lea ecx, [edi + 0x18]
call fcn.0040a523
mov edx, dword [eax]
mov esi, dword [esp + 8]
mov ecx, eax
mov eax, dword [edx + 0x2c]
push esi
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x138], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00443100
add esp, 0x134
ret

Function at 0x404870
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
push 0x28
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x1c
ret
Function at 0x404980
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c448
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.00405a70
xor esi, esi
mov dword [esp + 0x38], esi
call fcn.004048f0
lea ecx, [esp + 0xc]
call fcn.00405890
push 0x476a04
lea ecx, [esp + 0x1c]
call fcn.004027a0
cmp dword [esp + 0xc], esi
jne 0x404a05
lea eax, [esp + 8]
push eax
push esi
lea ecx, [esp + 0x14]
push ecx
push 0x405850
push esi
push esi
mov dword [esp + 0x20], esi
call fcn.00443d27
add esp, 0x18
mov dword [esp + 0xc], eax
cmp eax, esi
je 0x404a05
mov dword [esp + 0x14], esi
lea esi, [esp + 0xc]
call fcn.00406600
mov ecx, esi
call fcn.00406800
mov edx, esi
push edx
call fcn.00406890
mov eax, esi
call fcn.00405b40
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405480
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00445f90
mov ecx, dword [esi + 0x10]
push 0x468048
push ecx
push str._s_s
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.004435d9
add esp, 0x20
push 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x104]
neg eax
sbb eax, eax
xor ecx, esp
neg eax
call fcn.00443100
add esp, 0x108
ret
Function at 0x405890
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45becb
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
push esi
push edi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004368a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4058e6
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x128], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x14]
push str.qq_task_event__d
push ecx
call fcn.00401900
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x104
mov dword [esi + 4], eax
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.00445f90
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 0xc
push 0
push 2
lea ecx, [esp + 0x1c]
push ecx
push 0
call edi
lea eax, [esp + 0x14]
lea ecx, [esi + 0x10]
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405964
sub eax, ebp
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00401760
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call edi
lea eax, [esp + 0x14]
lea ecx, [esi + 0x14]
lea edi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405990
sub eax, edi
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00401760
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x102
ja 0x405a13
lea eax, [esp + 0x14]
lea ecx, [esi + 0x18]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4059c6
sub eax, edi
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00401760
xor eax, eax
cmp dword [esi + 4], eax
mov dword [esp + 0x128], 0xffffffff
setne al
or edx, 0xffffffff
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x405a40
mov dword [esp + 0x128], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00443100
add esp, 0x11c
ret

Function at 0x405c00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esi], 0
je 0x405c0c
xor eax, eax
pop ecx
ret 4
lea eax, [esp]
push eax
push 0
push esi
push 0x405850
push 0
push 0
mov dword [esp + 0x18], 0
call fcn.00443d27
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x405c06
mov ecx, dword [esp + 8]
mov dword [esi + 8], ecx
mov eax, 1
pop ecx
ret 4
Function at 0x405c50
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x45c029
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x14], eax
push ebp
push esi
push edi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov edi, ecx
push str.1.0.0.0
mov ecx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
call fcn.004013b0
mov dword [esp + 0x30], ebp
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x24], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
jbe 0x405d30
push esi
call fcn.004367c6
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x405d27
mov edx, dword [esp + 0x14]
mov edi, dword [edi]
push ebp
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405d27
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x467c0c
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x405d27
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 0x14]
movzx ecx, word [eax + 0x16]
push edx
movzx edx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push edx
push eax
push str._d._d._d._d
push ebx
call fcn.00401900
add esp, 0x18
push ebp
call fcn.004367bb
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00443100
add esp, 0x24
ret
Function at 0x406650
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
test eax, eax
je 0x406682
push 0
push 1
push 0x14d8
push eax
call ebx
push str.ZIPRES
push 0x7e
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4066bf
push 1
push eax
mov eax, dword [esi + 8]
push 0x14d8
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00443100
add esp, 0x110
ret
push ebp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x4066e4
mov ecx, dword [esi + 8]
push 1
push eax
push 0x14d8
push ecx
call ebx
xor eax, eax
jmp 0x4067e2
mov eax, dword [esi + 8]
test eax, eax
je 0x4066f7
push 0
push 2
push 0x14d8
push eax
call ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x104
lea edx, [esp + 0x19]
push 0
push edx
mov ebp, eax
mov byte [esp + 0x20], 0
call fcn.00445f90
mov edi, dword [esi + 0x18]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.setup
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x14]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406748
sub eax, edi
push eax
lea ecx, [esp + 0x18]
lea edi, [esi + 0x1c]
push ecx
mov ecx, edi
call fcn.00401760
mov eax, dword [esi + 8]
test eax, eax
je 0x406774
push 0
push 3
push 0x14d8
push eax
call ebx
mov edi, dword [edi]
push 0x468184
push edi
call fcn.004444f3
mov edi, eax
add esp, 8
test edi, edi
jne 0x40679c
mov edx, dword [esi + 8]
push 1
push eax
push 0x14d8
push edx
call ebx
xor eax, eax
jmp 0x4067e2
mov eax, dword [esp + 0x10]
push edi
push 1
push eax
push ebp
call fcn.00445327
push edi
mov ebp, eax
call fcn.00445420
add esp, 0x14
cmp ebp, dword [esp + 0x10]
je 0x4067ca
mov ecx, dword [esi + 8]
push 1
push 0
push 0x14d8
push ecx
call ebx
mov esi, dword [esi + 8]
test esi, esi
je 0x4067dd
push 0
push 5
push 0x14d8
push esi
call ebx
mov eax, 1
mov ecx, dword [esp + 0x11c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00443100
add esp, 0x110
ret
Function at 0x406890
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x17c
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x180]
push esi
add eax, 0xc
push str.Sgsc.exe
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00404dc0
push 0x467c1c
lea ecx, [esp + 0x80]
push 0x46818c
push ecx
call fcn.0044355c
push 0x44
xor esi, esi
lea edx, [esp + 0x44]
push esi
push edx
call fcn.00445f90
add esp, 0x24
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
push esi
push esi
push esi
lea edx, [esp + 0x24]
push edx
mov eax, edx
mov edx, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x90]
push ecx
push edx
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406941
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406961
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x17c]
pop esi
xor ecx, esp
call fcn.00443100
add esp, 0x17c
ret 4
Function at 0x408c2a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x170
lea ebp, [esp - 4]
mov eax, dword [0x472940]
xor eax, ebp
mov dword [ebp + 0x170], eax
push 0xc
mov eax, 0x459d8b
call fcn.00446874
mov edi, dword [ebp + 0x17c]
mov ebx, ecx
call fcn.0040827e
call fcn.00409885
push eax
lea ecx, [ebp + 0x12c]
call fcn.0040cf33
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0040988b
mov ecx, eax
call fcn.0040cd4f
test al, al
je 0x408d8c
push edi
lea ecx, [ebp + 0x12c]
call fcn.0040cddb
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
lea ecx, [ebp + 0x12c]
call fcn.0040cc4c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
push esi
cmp eax, 0xffffffff
jne 0x408d00
push str.Error_opening_file
mov ecx, ebx
call fcn.00408436
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x12c]
call fcn.0040cc32
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x170]
xor ecx, ebp
call fcn.00443100
add ebp, 0x174
leave
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jne 0x408d15
push esi
push str.File_is_empty
jmp 0x408cc1
cmp edi, 0x400000
jbe 0x408d25
push esi
push str.File_too_large
jmp 0x408cc1
push edi
mov dword [ebp - 0x14], esi
call fcn.004367c6
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
je 0x408d6b
push dword [ebp - 0x10]
call fcn.004367bb
pop ecx
mov ecx, ebx
call fcn.0040827e
push esi
push str.Could_not_read_file
jmp 0x408cc1
push dword [ebp + 0x180]
mov ecx, ebx
push edi
push dword [ebp - 0x10]
call fcn.00408a7a
push dword [ebp - 0x10]
mov bl, al
call fcn.004367bb
pop ecx
jmp 0x408cca
call fcn.0040988b
push eax
lea ecx, [ebp + 0x12c]
call fcn.0040cdc1
call fcn.00409891
test al, al
je 0x408dad
call fcn.00409897
jmp 0x408dc4
push 2
push esi
lea ecx, [ebp + 0x12c]
call fcn.0040cc4c
push eax
call fcn.00414694
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x408dd6
push esi
push str.Error_opening_zip_file
jmp 0x408cc1
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.00412e67
add esp, 0x14
test eax, eax
je 0x408dfb
push esi
push str.Could_not_find_ziped_file
jmp 0x408cc1
mov eax, dword [ebp + 0x128]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x408d0d
cmp eax, 0x400000
ja 0x408d1d
push eax
call fcn.004367c6
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.004146f1
add esp, 0x18
cmp eax, esi
je 0x408e62
cmp eax, 0x600
je 0x408e62
push edi
call fcn.004367bb
pop ecx
call fcn.00409891
test al, al
jne 0x408e57
push dword [ebp - 0x10]
call fcn.0041472b
pop ecx
push esi
push str.Could_not_unzip_file
jmp 0x408cc1
call fcn.00409891
test al, al
jne 0x408e74
push dword [ebp - 0x10]
call fcn.0041472b
pop ecx
push dword [ebp + 0x180]
mov ecx, ebx
push dword [ebp - 0x14]
push edi
call fcn.00408a7a
push edi
jmp 0x408d7f