joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a090
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, 0x4e4f18
mov dword [ebp - 0x18], esi
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x40a0fc
test ebx, 0xffff0000
jne 0x40a0fc
movzx edi, bx
call fcn.00401d80
test eax, eax
je 0x40a104
push eax
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.00409050
jmp 0x40a104
lea eax, [ebp - 0x10]
call fcn.00408ee0
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 1
call fcn.0040a720
lea esi, [ebp - 0x14]
call fcn.0040a260
push 0xa
push str.upload.dat
mov ebx, esi
mov byte [ebp - 4], 2
call fcn.00409220
mov ecx, dword [ebp - 0x14]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a1fa
lea edx, [ebp - 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp - 0x10]
cmp dword [edi - 4], 1
mov ebx, dword [edi - 0xc]
jle 0x40a187
push ebx
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408f60
mov edi, dword [ebp - 0x10]
push 0
lea edx, [ebp - 0x18]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a1e3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a21d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a3c0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abec1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov edi, 1
mov dword [ebp - 4], edi
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e4f18
call edx
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
push 0x288
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0x288
call fcn.0049141a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40a4bc
lea edx, [ebp - 0x10]
push edx
mov esi, ebx
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x40a449
cmp eax, 0x6f
jne 0x40a4bc
mov eax, dword [ebp - 0x10]
push eax
call fcn.0049141a
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40a469
push ebx
call fcn.004912d0
mov esi, edi
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40a4c9
lea ecx, [ebp - 0x10]
push ecx
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40a4bc
movzx edx, byte [esi + 0x199]
movzx eax, byte [esi + 0x198]
movzx ecx, byte [esi + 0x197]
mov edi, dword [ebp + 8]
push edx
movzx edx, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push ecx
movzx ecx, byte [esi + 0x194]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X
call fcn.00402360
add esp, 0x1c
test esi, esi
je 0x40a4c9
push esi
call fcn.004912d0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x40a9e0
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4ec800], ecx
inc edx
cmp edx, 0x100
jb 0x40a9e0
cmp edx, 0x800
jae 0x40aab9
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x4ec400]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4ec800]
inc edx
mov dword [edx*4 + 0x4ec7fc], eax
cmp edx, 0x800
jb 0x40aa90
lea esi, [ebp - 0x24]
mov dword [0x4eb358], 0x40ab80
call fcn.0040e560
test eax, eax
je 0x40ab76
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x4e67c8
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x40ab0c
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x40ab0c
cmp dword [ecx], ebx
je 0x40ab44
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x40aaf8
or ecx, 0xffffffff
sub ecx, 0
je 0x40ab5c
dec ecx
je 0x40ab48
dec ecx
jne 0x40ab76
cmp esi, 6
jb 0x40ab76
jne 0x40ab6c
cmp dword [ebp - 4], 0xf
jb 0x40ab76
mov dword [0x4eb358], 0x40ac30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x40ab1b
cmp esi, 5
jb 0x40ab76
jne 0x40ab6c
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x40ab76
cmp eax, 0xa
jmp 0x40ab6a
cmp esi, 6
jb 0x40ab76
jne 0x40ab6c
cmp dword [ebp - 4], 0x100c
je 0x40ab76
mov dword [0x4eb358], 0x40ac30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40b6cf
mov dword [edi], 0
jmp 0x40b690
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40b69f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40b6d7
test ecx, ecx
je 0x40b6cf
test esi, esi
jne 0x40b690
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b6f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x40b74f
mov dword [edi], 0
jmp 0x40b710
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40b71f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40b757
test ecx, ecx
je 0x40b74f
test esi, esi
jne 0x40b710
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e3c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40e3d9
mov esp, ebp
pop ebp
ret
add dword [ebp + 0xc], 5
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 8]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x40e40d
jmp 0x40e400
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40e40d
inc edi
cmp edi, ebx
jb 0x40e400
mov eax, edi
sub eax, esi
mov ecx, eax
sub ecx, dword [ebp - 8]
cmp edi, ebx
jae 0x40e532
cmp ecx, 3
jbe 0x40e42a
xor esi, esi
mov dword [ebp - 4], esi
jmp 0x40e46d
dec ecx
shl edx, cl
and edx, 7
mov dword [ebp - 4], edx
je 0x40e46a
mov ecx, edx
movzx edx, byte [ecx + 0x4bbc40]
mov esi, edi
sub esi, edx
cmp byte [ecx + 0x4bbc38], 0
mov dl, byte [esi + 4]
je 0x40e457
test dl, dl
je 0x40e457
cmp dl, 0xff
jne 0x40e46a
and ecx, 3
add ecx, ecx
or ecx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
inc eax
mov edx, ecx
jmp 0x40e3f1
mov esi, dword [ebp - 4]
mov cl, byte [edi + 4]
mov dword [ebp - 8], eax
test cl, cl
je 0x40e48f
cmp cl, 0xff
je 0x40e48f
and esi, 3
add esi, esi
or esi, 1
mov dword [ebp - 4], esi
inc eax
mov edx, esi
jmp 0x40e3f1
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x14], 0
je 0x40e4be
lea ebx, [edx + eax]
add ebx, dword [ebp + 0xc]
jmp 0x40e4c5
sub edx, eax
sub edx, dword [ebp + 0xc]
mov ebx, edx
test esi, esi
je 0x40e502
movzx esi, byte [esi + 0x4bbc40]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
mov cl, dl
test cl, cl
je 0x40e4ec
cmp cl, 0xff
jne 0x40e502
mov ecx, 0x20
sub ecx, esi
mov esi, dword [ebp - 4]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40e4b0
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [edi + 3], dl
mov edx, dword [ebp - 4]
mov byte [edi + 1], bl
mov ebx, dword [ebp - 0xc]
mov byte [edi + 2], cl
add eax, 5
jmp 0x40e3f1
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x40e545
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
dec ecx
shl edx, cl
mov ecx, dword [ebp + 0x10]
and edx, 7
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret
Function at 0x4101f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x103
mov esi, ecx
lea ecx, [ebp - 0x113]
push 0
push ecx
mov dword [ebp - 0x120], eax
mov byte [ebp - 0x114], 0
call fcn.004950a0
lea edx, [ebp - 0x114]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410237
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410248
mov eax, dword [ebp - 0x120]
mov dx, word [0x4bbc48]
push eax
lea esi, [ebp - 0x11c]
mov word [edi], dx
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.00410140
mov eax, dword [ebp - 0x11c]
add esp, 4
mov ecx, eax
jmp 0x410290
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410290
lea edi, [ebp - 0x114]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4102a2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x11c]
push ecx
push 0x4e67b0
call dword [0x4e67b4]
add esp, 8
push 0
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4102f2
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004912db
mov esp, ebp
pop ebp
ret
Function at 0x4111c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abe6b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 4
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x230]
push edx
push str.OutputTimeFile
push str.SoftwareBaofengInstallOption
push SysReAllocStringLen
mov dword [ebp - 0x22c], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x411241
cmp dword [ebp - 0x22c], eax
setne al
jmp 0x411243
xor al, al
mov byte [0x4e6790], al
test al, al
je 0x411360
mov eax, dword [0x4eb374]
test eax, eax
je 0x411262
push eax
call fcn.004929ec
add esp, 4
lea eax, [ebp - 0x228]
push eax
mov dword [0x4eb374], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [0x4e4f18]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e4f18
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0
movzx ecx, word [ebp - 0x21c]
movzx edx, word [ebp - 0x21e]
movzx eax, word [ebp - 0x220]
push ecx
movzx ecx, word [ebp - 0x222]
push edx
movzx edx, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push ecx
push edx
push eax
push str...Time_04d_02d_02d__02d_02d_02d.txt
lea edi, [ebp - 0x22c]
call fcn.00402360
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov word [ebp - 0x218], cx
call fcn.004950a0
mov ecx, dword [0x4eb378]
add esp, 0x28
push 0x104
lea eax, [ebp - 0x218]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [ebp - 0x22c]
push esi
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.wt__ccsUTF_8
push eax
call fcn.00492921
mov dword [0x4eb374], eax
lea eax, [esi - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411360
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004912db
mov esp, ebp
pop ebp
ret
Function at 0x411530
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e52d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x411565
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912db
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004912db
mov esp, ebp
pop ebp
ret

Function at 0x417c60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abdd3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CAutoLog.0
mov dword [ebp - 4], 0
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e4f18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [esi + 4]
push eax
push str._End___s
lea edi, [ebp - 0x10]
call fcn.00402360
mov edi, dword [ebp - 0x10]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417cf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [esi + 4]
sub esi, 0x10
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d16
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417d60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac553
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CAutoLog.0
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e4f18
lea edi, [esi + 4]
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x417dd8
mov eax, ebx
lea edx, [eax + 2]
jmp 0x417dc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417dc0
sub eax, edx
push ebx
sar eax, 1
push edi
mov ebx, eax
call fcn.00402030
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e4f18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [edi]
push eax
push str._Begin___s
lea edi, [ebp - 0x10]
call fcn.00402360
mov edi, dword [ebp - 0x10]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417e2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4199c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x94], 0
je 0x419a2a
cmp dword [esi + 0x98], 0
jbe 0x419a2a
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4199e5
mov eax, dword [eax]
push 0x4bc8b0
push eax
lea eax, [ebp - 4]
push eax
call fcn.00492938
add esp, 0xc
test eax, eax
jne 0x419a2a
mov eax, dword [ebp - 4]
test eax, eax
je 0x419a2a
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
push eax
push 1
push ecx
push edx
call fcn.00493e99
mov eax, dword [ebp - 4]
push eax
call fcn.004929ec
add esp, 0x14
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x419a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8b4f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.CSkinApplication.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, 1
mov dword [esi + 0x10], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CB5_InstallApp.0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov byte [ebp - 4], al
mov eax, dword [0x4e4f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e4f18
lea ebx, [esi + 0x44]
call edx
add eax, 0x10
mov dword [ebx], eax
lea eax, [esi + 0x50]
push 0x1388
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 3
mov dword [esi + 0x68], vtable.CHighResolutionTimer.0
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
lea eax, [esi + 0x7c]
push 0x1388
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 5
push 0x4bb300
push ebx
xor ebx, ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x40], edi
call fcn.00402030
mov al, 1
mov byte [esi + 0x9a], al
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x9c], edi
mov word [esi + 0x98], 0x101
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419be0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8b4f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CB5_InstallApp.0
mov dword [ebp - 4], 5
mov eax, dword [esi + 0x94]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x419c39
push eax
call edi
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0x94]
cmp eax, ebx
je 0x419c4c
push eax
call edi
mov dword [esi + 0x94], ebx
mov ecx, dword [esi + 0x9c]
cmp ecx, ebx
je 0x419c64
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x9c], ebx
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 4
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ecx
call edi
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x70]
mov dword [esi + 0x68], vtable.CHighResolutionTimer.0
cmp eax, ebx
je 0x419c90
push eax
call dword [sym.imp.WINMM.dll_timeKillEvent]
mov dword [esi + 0x70], ebx
lea edx, [esi + 0x50]
push edx
mov byte [ebp - 4], 2
call edi
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x44]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419cbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov edi, dword [esi + 0x28]
cmp edi, ebx
je 0x419ce9
mov eax, dword [esi + 0x2c]
cmp eax, ebx
jbe 0x419cdd
mov ebx, eax
mov eax, edi
call fcn.0041ac80
add edi, 0x30
dec ebx
jne 0x419cd0
mov ecx, dword [esi + 0x28]
push ecx
call fcn.00491599
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi], vtable.CSkinApplication.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4