joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4609e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x460a2c
mov eax, esi
call fcn.0044d824
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x460a2c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x460a2c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x460b6b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x460a6c
cmp eax, 0x108
ja 0x460a6c
mov eax, esi
call fcn.0044d824
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x460b62
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x460b6b
jmp 0x460b62
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x460b4b
cmp eax, 0x20a
ja 0x460b4b
test byte [esi + 0x50], 0x80
jne 0x460a9e
sub eax, 0x203
je 0x460a9b
sub eax, 3
je 0x460a9b
sub eax, 3
jne 0x460a9e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x460ab2
dec eax
je 0x460ac7
dec eax
je 0x460ae4
dec eax
je 0x460ac7
jmp 0x460aeb
mov ecx, ebx
mov eax, dword [0x494a10]
mov eax, dword [eax]
mov edx, esi
call fcn.00457218
jmp 0x460b62
cmp byte [esi + 0x5d], 1
jne 0x460add
mov eax, esi
mov si, 0xffed
call fcn.0042e7f0
jmp 0x460b6b
or word [esi + 0x54], 1
jmp 0x460b62
and word [esi + 0x54], 0xfffe
jmp 0x460b62
mov eax, dword [0x495a34]
cmp byte [eax + 0x20], 0
je 0x460b62
mov eax, dword [0x495a34]
cmp dword [eax + 0x1c], 0
je 0x460b62
mov eax, dword [ebx]
mov edx, dword [0x495a34]
cmp eax, dword [edx + 0x1c]
jne 0x460b62
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044d768
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0042e7f0
jmp 0x460b6b
cmp eax, 0xb00b
jne 0x460b62
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0045f300
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463fe0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x463ffc
cmp dword [esi + 4], 0
je 0x464029
test byte [ebx + 0x55], 1
jne 0x46401b
mov eax, ebx
call fcn.00462c38
test eax, eax
jne 0x46401b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x464139
mov edx, esi
mov eax, ebx
call fcn.00463b00
jmp 0x464139
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x464132
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00465db0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00460914
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00463fe0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00465db0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464139
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a618
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x494844]
cmp byte [eax + 0xc], 0
je 0x46a785
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a77e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.00495a88], 0
jne 0x46a66c
push 0x46a78c
call sub.kernel32.dll_GetModuleHandleA
mov ebx, eax
push 0x46a794
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [fcn.00495a88], eax
cmp dword [0x490ed4], 0
jne 0x46a767
push 0x46a7a4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x490ed4], eax
cmp dword [0x490ed4], 0
je 0x46a767
push 0x46a7b0
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495a8c], eax
push 0x46a7c0
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495a90], eax
push 0x46a7d4
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495a94], eax
push 0x46a7ec
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495a98], eax
push 0x46a804
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495a9c], eax
push 0x46a818
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495aa0], eax
push 0x46a830
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495aa4], eax
push 0x46a848
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495aa8], eax
push 0x46a864
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [fcn.00495aac], eax
push 0x46a870
mov eax, dword [0x490ed4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x495ab0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a785
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x46f890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46f968
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x495ac4], 0
jne 0x46f94c
lea eax, [ebp - 4]
mov edx, 0x46f980
call fcn.0042f1d8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0042f5f0
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46f94c
mov eax, ebx
call fcn.0042d518
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46f945
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46f92f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46f990
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46f92f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x495ac4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f94c
mov eax, dword [ebp - 0xc]
call fcn.0042d538
ret
mov ebx, dword [0x495ac4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f96f
lea eax, [ebp - 4]
call fcn.0042f140
ret

Function at 0x4839a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
test eax, eax
je 0x483a02
call fcn.00483950
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0047e904
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0047e904
pop ecx
push eax
push edi
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x483a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x492f10], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x483b5a
cmp dword [0x492f0c], 0
jne 0x483b5a
cmp dword [0x4930f0], 0
je 0x483b14
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00483850
add esp, 8
mov ebx, eax
test eax, eax
jne 0x483afa
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00483850
add esp, 8
mov ebx, eax
test eax, eax
jne 0x483afa
lea ebx, [ebp - 0x84]
jmp 0x483afb
inc ebx
call fcn.00483a3c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.user32.dll_MessageBoxA
jmp 0x483b95
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x492f14
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0047e904
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x492f17
push ebx
call sub.kernel32.dll_WriteFile
jmp 0x483b95
cmp dword [0x492f0c], 0
je 0x483b74
cmp dword [0x492f0c], 0xffffffff
je 0x483b95
push esi
call dword [0x492f0c]
pop ecx
mov eax, dword [0x492f10]
test eax, eax
je 0x483b95
cmp dword [0x492f10], 0xffffffff
je 0x483b95
cmp byte [eax], 0
je 0x483b95
push esi
push eax
call fcn.004839a0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d7681
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4d769e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4d768f
add dl, dl
jne 0x4d76a9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4d76f5
xor eax, eax
add dl, dl
jne 0x4d76b6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4d7792
add dl, dl
jne 0x4d76c5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4d76d0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4d76db
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4d76e6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4d76f0
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4d7695
mov eax, 1
add dl, dl
jne 0x4d7703
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4d770e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4d76fa
sub eax, 2
jne 0x4d773d
mov ecx, 1
add dl, dl
jne 0x4d7723
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4d772e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4d771a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4d7695
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4d7754
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4d775f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4d774b
cmp eax, 0x7d00
jae 0x4d7782
cmp eax, 0x500
jb 0x4d777d
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4d7695
cmp eax, 0x7f
ja 0x4d7785
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4d7695
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4d77ae
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4d7695
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x40f6c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
jmp 0x40f6da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f6e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f6d0
mov eax, 1
add ebx, ebx
jne 0x40f6f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f6e8
jne 0x40f704
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f6e8
xor ecx, ecx
sub eax, 3
jb 0x40f718
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f78a
mov ebp, eax
add ebx, ebx
jne 0x40f723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f730
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f754
inc ecx
add ebx, ebx
jne 0x40f740
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f735
jne 0x40f751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f735
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f774
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f765
jmp 0x40f6d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f774
add edi, ecx
jmp 0x40f6d6
pop esi
mov edi, esi
mov ecx, 0x24d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f792
cmp byte [edi], 5
jne 0x40f792
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 0x40f797
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f806
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1065c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x106ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f7c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x106b0]
or eax, eax
je 0x40f800
mov dword [ebx], eax
add ebx, 4
jmp 0x40f7e1
call dword [esi + 0x106c0]
mov ebp, dword [esi + 0x106b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40f83a
sub esp, 0xffffff80
jmp 0x401492

Function at 0x4ca268
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x4c9fca
mov edi, dword [esp]
add esp, 4
inc edx
inc edx
mov edx, ecx
call fcn.004ca2b0
or ecx, ecx
or ecx, ecx
add edx, edx
xor dword [ebx], edi
push ecx
pop ecx
inc ebx
add ecx, 0x6b1d552c
sub edx, 0x23c072e2
push ecx
mov edx, dword [esp]
add esp, 4
cmp ebx, eax
jne fcn.004ca268
sub edx, ecx
ret
Function at 0x401150
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x104
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call sub.MSVCR80.dll_memset
mov edx, str.kernel
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4011aa
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401197
jmp 0x4011ae
test ebp, ebp
jne 0x4011b1
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call fcn.00401050
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x20]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x12c]
call fcn.00401050
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x40124a
lea eax, [esp + 0x104]
push eax
call fcn.00401270
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.00407648
add esp, 0x20c
ret
Function at 0x4013d0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
push 0x409730
push 1
push 0
push 0x409720
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jge 0x401411
push esi
push str.CoCreateInstance_failed:_0x_08lx_n
jmp 0x401449
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jge 0x401430
push esi
push str.get_LocalPolicy_failed:_0x_08lx_n
jmp 0x401449
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov esi, eax
test esi, esi
jge 0x401452
push esi
push str.get_CurrentProfile_failed:_0x_08lx_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
mov eax, dword [esp + 4]
test eax, eax
je 0x401462
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
test eax, eax
je 0x401472
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x401f60
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x40811b
mov eax, dword fs:[0]
push eax
sub esp, 0xc3c
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0xc38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40d020]
xor eax, esp
push eax
lea eax, [esp + 0xc50]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc64]
mov ebp, dword [esp + 0xc60]
xor ebx, ebx
push 0x3ff
lea ecx, [esp + 0x51]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov byte [esp + 0x58], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, str.exe.zip
lea ecx, [esp + 0x4c]
call fcn.004021d0
test eax, eax
je 0x402000
push 0x4095ac
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402000
lea edx, [esp + 0x4c]
push edx
call fcn.00402140
cmp eax, ebx
je 0x402000
lea esi, [ebx + 1]
jmp 0x402002
xor esi, esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], vtable.FileOperator_class_CZipUtility_.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], vtable.CZipUtility.0
lea eax, [esp + 0x4c]
mov dword [esp + 0xc58], ebx
push eax
lea edx, [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.004071e0
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.MSVCR80.dll__unlink]
add esp, 4
cmp esi, ebx
je 0x402062
cmp dword [esp + 0x18], ebx
jne 0x402062
mov esi, 1
jmp 0x402064
xor esi, esi
push 0x3ff
lea edx, [esp + 0x851]
push ebx
push edx
mov byte [esp + 0x858], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebp
push str._sKernelSmartLoader.exe
mov eax, 0x400
lea edi, [esp + 0x854]
call fcn.00401050
push 0x3ff
lea eax, [esp + 0x459]
push ebx
push eax
mov byte [esp + 0x460], bl
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x30]
add esp, 0x14
push ecx
push ebp
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x458]
call fcn.00401050
add esp, 0xc
cmp esi, ebx
je 0x4020f3
mov edx, edi
push edx
lea eax, [esp + 0x850]
push eax
call dword [sym.imp.MSVCR80.dll_rename]
add esp, 8
test eax, eax
jne 0x4020f3
lea ebx, [eax + 1]
lea ecx, [esp + 0x30]
mov dword [esp + 0xc58], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, ebx
mov ecx, dword [esp + 0xc50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc38]
xor ecx, esp
call fcn.00407648
add esp, 0xc48
ret 8
Function at 0x402140
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40215a
pop esi
pop ebx
pop ecx
ret 4
push ebp
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x18]
push 0x4095e0
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4021b5
push esi
push edi
push 1
push ebp
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4021ab
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4021d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x400], eax
push edi
push 0x3ff
lea eax, [esp + 9]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0xc]
push edx
push str._s_d__s
mov eax, 0x400
call fcn.00401050
mov ecx, dword [esp + 0x414]
add esp, 0x10
pop edi
xor ecx, esp
mov eax, 1
call fcn.00407648
add esp, 0x404
ret

Function at 0x402250
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.0040762b
add esp, 4
cmp esi, ebp
mov edi, eax
jbe 0x4022b4
push edi
push esi
push ebp
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4022b4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4095f0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4022b4
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 8]
mov eax, ecx
shr eax, 0x10
imul eax, eax, 0x64
movzx ecx, cx
add eax, ecx
mov ebp, eax
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x402410
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x40d020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x402475
push 0xed
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402475
lea edx, [esp]
push 0x5c
push edx
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x402475
mov byte [eax + 1], 0
push edi
lea edi, [esp + 4]
call fcn.00401100
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.ShowVerboseInfo
push str.CMain
call edi
lea ecx, [esp + 4]
push ecx
neg eax
push 0
sbb eax, eax
push str.ShowTraceInfo
neg eax
push str.CMain
mov dword [esi], eax
call edi
lea edx, [esp + 4]
push edx
neg eax
push 0
sbb eax, eax
push str.ShowErrorInfo
neg eax
push str.CMain
mov dword [esi + 4], eax
call edi
neg eax
sbb eax, eax
neg eax
cmp dword [esi + 0x20], 0
mov dword [esi + 8], eax
pop edi
jne 0x4024eb
push str.CMain
lea ecx, [esi + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00407648
add esp, 0x108
ret