joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f80
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0x82
les ecx, [ebx]
sar dword [ebx - 0x39], 1
xor al, 0x56
cmp byte [ecx - 0x74a8c30f], cl
shr byte [esi], 1
inc edi
inc ebx
push 0xffffffffffffffaf
push edx
push eax
push es
sbb byte [esi], dl
add byte [eax], al
mov dword [esi + 0x3c], edx
mov ecx, dword [esi + 0x3c]
mov eax, dword [edx]
mov dword [esi + 0x38], eax
add edx, 0xb779c000
jns 0x409f5c
sar byte [ecx - 0x49], 0x79
shr dword [ecx + 0x4d], 1
salc
xchg dword [ecx + 0x4e893856], ecx
cmp al, 0x8b
dec ebx
imul ecx, dword [ebp - 0x2a], 0x38568987
mov dword [esi + 0x3c], ecx
mov ecx, dword [ebx + 8]
int 0x4e
push esi
cmp byte [ecx + 0x4b8b3c4e], cl
or ch, cl
dec esi
dec eax
mov eax, ecx
mov edx, edi
mov ecx, 0x20
mov dword [esp + edi*4 - 0x18], eax
les ebx, [eax]
add byte [eax], al
mov dword [esi + 0x48], eax
mov dword [esi + 0x70], edx
mov edx, dword [ebx - 0x6f]
lahf
dec esi
dec esp
or eax, edx
or ecx, edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
push edi
jge 0x409f86
inc esi
dec esi
dec eax
push 0xa
push eax
push ecx
call 0x87b590
mov dword [ecx - 0x3ffffab8], eax
jns 0x409f90
mov dword [edi + 0x4c], esi
mov dword [esi + 0x48], eax
adc edx, 0xffd6a169
mov ecx, 0xec000020
mov dword [ebx + 0x4c], eax
imul esp, dword [ecx + 0x20b9ffd6], 0x89ec0000
inc ebx
dec esp
mov edx, dword [ebx + 0x18]
mov dword [esi + 0x40], edx
mov eax, edx
mov edx, edi
mov dword [esi + 0x44], edi
call 0xb540b870
mov dword [esi + 0x3b], eax
mov ecx, dword [esi + 0x40]
sub byte [ebp + 0x14438b44], cl
mov ch, 0x89
inc esi
cmp ecx, dword [ebx - 0x72d7bfb2]
inc esp
mov eax, dword [ebx + 0x14]
ror eax, 0x8b
in al, dx
dec esi
inc eax
mov edi, dword [edx]
inc eax
or eax, edi
push edi
mov ecx, eax
push 0xa
sub eax, 0x2c468952
call 0x6c415390
push ebx
push esi
inc esp
mov ecx, dword [esi + 0x44]
ja 0x409ffe
mov dword [esi + 0x40], eax
pop es
inc ebp
adc byte [ebx - 0x47], dh
add al, al
inc eax
mov bh, 0x81
shr esp, 1
popfd
salc
dec dword [ecx + 0x4e894056]
inc esp
mov edx, dword [ebx + eax*4 + 0x1c]
mov eax, dword [ebx + eax*4 + 0x20]
xor edi, dword [esi]
or edx, edi
or esp, dword [ebx + ecx*4 + 0x45]
jae 0x409fe1
push esi
sub al, 0xba
call 0x89e7f260
std
and eax, edx
je 0x40a076
add al, 0xb
test ch, 4
je 0x40a076
mov dword [esi + 0xc], 6
jmp 0x40a018
test byte [ebx], cl
test cl, 0x10
je 0x40a086
lahf
inc esi
jbe 0x40a056
xor eax, dword [eax]
add bl, ch
sub al, 0xf6
rol dword [eax - 0x7d], 9
mov dword [esi + 0xc], 0xb9
jmp 0x40a0b2
test cl, 0x40
or dword [ecx], 0xffffffc7
inc esi
or al, 0xb9
add byte [eax], al
add bl, ch
push ds
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0x40a0af
mov ecx, dword [edx + 0x18]
test ecx, ecx
cmp byte [0x8b284e8b], cl
jle 0x40a0d4
inc eax
iretd
mov dword [esi + 0xc], edx
mov dh, 0x13
je 0x40a0bd
mov dword [esi + 8], 0x10000000
mov ecx, dword [ebp + 0x10]
mov dword [esi + 4], 0x8170
test ecx, ecx
je 0x40a0cf
pop ss
cwde
je 0x40a0d6
mov dword [esi + 4], 0x8171
add byte [eax], al
mov eax, dword [ebp + 0xc]
pop edi
pop esi
aad 0x5d
ret
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x408930
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
inc ebx
push 0x896a3421
mov ecx, dword [esp]
add esp, 4
call fcn.00408959
and ecx, ecx
xor dword [edi], esi
add edi, 1
inc ebx
or ecx, ebx
cmp edi, eax
jne fcn.00408930
ret
Function at 0x401170
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4033f6
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x58], esi
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 4], 0
mov al, 0x41
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x14], 0x5c3a41
mov byte [ebp - 0x4d], al
nop dword [eax + eax]
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x14]
push eax
call edi
cmp eax, 3
jne 0x4012c0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4012c0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401246
sub eax, edx
lea ecx, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401940
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x3c]
push ecx
cmp eax, dword [esi + 8]
je 0x401284
mov edx, eax
call fcn.00402110
add esp, 4
add dword [esi + 4], 0x20
jmp 0x40128c
push eax
mov ecx, esi
call fcn.00401f20
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xf
jbe 0x4012c0
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4012b6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4012ed
push ecx
push edx
call fcn.00402530
add esp, 8
mov al, byte [ebp - 0x4d]
inc al
mov byte [ebp - 0x4d], al
cmp al, 0x5a
jle 0x4011f0
mov eax, esi
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.004024f2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x40290f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x402944
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x402941
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40294d
add edx, 0x28
cmp edx, esi
jne 0x40292f
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40294a

Function at 0x402d92
Capabilities:
Parse pe header

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

Disassembly:
cmp byte [esp + 8], 1
jne 0x1001201d
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x10011e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10011e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10011e70
mov eax, 1
add ebx, ebx
jne 0x10011e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10011e88
jne 0x10011ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10011e88
xor ecx, ecx
sub eax, 3
jb 0x10011eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10011f2a
mov ebp, eax
add ebx, ebx
jne 0x10011ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10011ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10011ef4
inc ecx
add ebx, ebx
jne 0x10011ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10011ed5
jne 0x10011ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10011ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10011f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10011f05
jmp 0x10011e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10011f14
add edi, ecx
jmp 0x10011e76
pop esi
mov edi, esi
mov ecx, 0x488
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10011f32
cmp byte [edi], 4
jne 0x10011f32
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 0x10011f37
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x10011faf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x120a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10011f64
mov ecx, edi
jns 0x10011f93
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x120ac]
or eax, eax
je 0x10011fa9
mov dword [ebx], eax
add ebx, 4
jmp 0x10011f81
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10011fe0
cmp al, 0xef
ja 0x10011fd3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10011fb5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10011fc2
mov ebp, dword [esi + 0x120b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x10012014
sub esp, 0xffffff80
jmp 0x1000607a
Function at 0x4026f0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x8c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0
push eax
push ecx
call fcn.0042aab0
mov edi, eax
cmp edi, 0xffffffff
jne 0x402724
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea eax, [ebp + 0xa]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x40275d
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push 0xe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll__lread]
cmp byte [ebx], 0x42
jne 0x4027cb
cmp byte [ebx + 1], 0x4d
jne 0x4027cb
add ebp, 0xfffffff2
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll__hread]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [esp + 0xa4]
push eax
push ebx
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.00402880
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x8c
ret 8

Function at 0x402800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x445c90]
push esi
push edi
and eax, 0xffff
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x402829
mov eax, 2
pop edi
pop esi
ret 8
mov edx, dword [0x445c90]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x402847
mov eax, 2
pop edi
pop esi
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
call fcn.00402880
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x4075f0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x441260]
push esi
push 0x105
push eax
call fcn.0042abe0
mov esi, eax
test esi, esi
je 0x40764f
mov eax, dword [esp + 0x10]
push edi
test eax, eax
jne 0x40761e
mov ecx, dword [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40762a
push 0x105
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push esi
call fcn.0042a360
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esp + 0x10]
push edx
push esi
call edi
push esi
call fcn.0042a530
push str..INI
push esi
call edi
pop edi
mov eax, esi
pop esi
ret 0xc

Function at 0x407750
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x158
push ebx
push ebp
push esi
mov esi, dword [esp + 0x168]
test esi, esi
push edi
je 0x407890
mov eax, dword [esp + 0x170]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push eax
push ecx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x441698
push edx
call edi
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x174]
push eax
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea edx, [esp + 0x64]
push 0x50
push edx
push 0x445510
lea eax, [esp + 0x20]
push str.Type
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x60]
push str.String
push ecx
call edi
test eax, eax
jne 0x40782f
push esi
lea edx, [esp + 0x64]
push 0x50
push edx
push 0x445514
lea eax, [esp + 0x20]
push 0x4416ac
push eax
call ebx
lea ecx, [esp + 0x60]
push 0x445518
push ecx
call edi
test eax, eax
je 0x407890
mov eax, dword [esp + 0x178]
lea edx, [esp + 0x60]
push edx
push eax
call ebp
mov eax, 1
mov ecx, dword [esp + 0x17c]
mov dword [ecx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 0x14
lea edx, [esp + 0x60]
push str.Number
push edx
call edi
test eax, eax
jne 0x407890
push esi
lea eax, [esp + 0x64]
push 0x50
push eax
push 0x44551c
lea ecx, [esp + 0x20]
push str.Data
push ecx
call ebx
lea edx, [esp + 0x60]
push 0x445520
push edx
call edi
test eax, eax
je 0x407890
lea eax, [esp + 0x60]
push eax
call fcn.0042bc90
mov ecx, dword [esp + 0x180]
add esp, 4
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x158
ret 0x14
Function at 0x408040
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebp, ebp
push str..DAT
push esi
mov dword [esp + 0x18], ebp
call edi
lea eax, [esp + 0x20]
push eax
push str.USER.EXE
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4080cf
mov edx, dword [0x4416c4]
lea ecx, [ebx + 0xa]
push ecx
push edx
call fcn.0042abe0
mov ebp, eax
mov eax, dword [esp + 0x20]
push ebp
push ebx
push eax
push str.USER.EXE
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4080be
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov ecx, dword [0x4416c4]
push ebp
push ecx
call fcn.0042ad10
mov ebp, dword [esp + 0x10]
test bp, bp
jne 0x40814c
lea edx, [esp + 0x20]
push edx
push str.GDI32.DLL
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x408143
mov ecx, dword [0x4416c4]
lea eax, [ebx + 0xa]
push eax
push ecx
call fcn.0042abe0
mov edx, dword [esp + 0x20]
mov ebp, eax
push ebp
push ebx
push edx
push str.GDI32.DLL
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x408133
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov eax, dword [0x4416c4]
push ebp
push eax
call fcn.0042ad10
mov ebp, dword [esp + 0x10]
test bp, bp
je 0x4082a5
cmp bp, 0x406
jne 0x40815b
push str..DAN
push esi
call edi
cmp bp, 0x407
jne 0x40816a
push str..DEU
push esi
call edi
cmp bp, 0x40a
jne 0x408179
push str..ESP
push esi
call edi
cmp bp, 0x40c
jne 0x408188
push str..FRA
push esi
call edi
cmp bp, 0x410
jne 0x408197
push str..ITA
push esi
call edi
cmp bp, 0x411
jne 0x4081a6
push str..JPN
push esi
call edi
cmp bp, 0x40b
jne 0x4081b5
push str..FIN
push esi
call edi
cmp bp, 0x41d
jne 0x4081c4
push str..SVE
push esi
call edi
cmp bp, 0x414
jne 0x4081d3
push str..NOR
push esi
call edi
cmp bp, 0x413
jne 0x4081e2
push str..NLD
push esi
call edi
cmp bp, 0x816
jne 0x4081f1
push str..PTG
push esi
call edi
cmp bp, 0x416
jne 0x408200
push str..PTB
push esi
call edi
cmp bp, 0x80a
jne 0x40820f
push str..ESM
push esi
call edi
cmp bp, 0x419
jne 0x40821e
push str..RUS
push esi
call edi
cmp bp, 0x408
jne 0x40822d
push str..ELL
push esi
call edi
cmp bp, 0x40f
jne 0x40823c
push str..ISL
push esi
call edi
cmp bp, 0x415
jne 0x40824b
push str..PLK
push esi
call edi
cmp bp, 0x405
jne 0x40825a
push str..CSY
push esi
call edi
cmp bp, 0x41b
jne 0x408269
push str..SKY
push esi
call edi
cmp bp, 0x40e
jne 0x408278
push str..HUN
push esi
call edi
cmp bp, 0x412
jne 0x408287
push str..KRN
push esi
call edi
cmp bp, 0x404
jne 0x408296
push str..CHT
push esi
call edi
cmp bp, 0x804
jne 0x4082a5
push str..CHS
push esi
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x41a090
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
lea eax, [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov ecx, dword [ebx + 4]
push edi
push eax
push 0
push 0x15
push ecx
call fcn.00408890
mov esi, dword [esp + 0x24]
test esi, esi
je 0x41a25c
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a25c
mov eax, dword [ebx + 4]
lea edx, [esp + 0x24]
push edx
push 0
push 0x2f
push eax
call fcn.00408890
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
push esi
jne 0x41a1a5
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x41a10a
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
call edi
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx]
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
cmp eax, edx
jne 0x41a15e
push 0x21
call edi
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
lea eax, [edx + eax*2]
mov edx, dword [esp + 0x14]
sub ecx, edx
cmp ecx, eax
jne 0x41a15e
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x41a238
push 4
push 0x21
call edi
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 4]
lea edx, [ecx + eax*2]
push edx
push 0x20
call edi
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
lea eax, [edx + eax*2]
push eax
push 0x21
call edi
neg eax
push eax
push 0x20
call edi
neg eax
push eax
push 0
push esi
call ebp
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.0041a510
add esp, 4
jmp 0x41a238
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x41a1ba
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x41a1d6
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.0041a510
add esp, 4
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x1b
push edx
call fcn.00408890
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41a238
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x24]
push eax
push 0
push 0x1d
push ecx
call fcn.00408890
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
mov edi, eax
push edx
shr eax, 0x10
push esi
and edi, 0xffff
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [esp + 0x10], edi
jne 0x41a22b
cmp dword [esp + 0x14], ebx
je 0x41a238
push 5
push 0
push 0
push ebx
push edi
push 0
push esi
call ebp
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x41a24f
push 3
push 0
push 0
push 0
push 0
push 0
push esi
call ebp
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret