joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000677c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x10006855
mov dword [ebp - 0x14], 0
jmp 0x100067e0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x10006855
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x100120a4], ecx
jne 0x10006853
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx*4 + 0x100121b2]
cmp dword [eax*4 + 0x1001213a], ecx
jb 0x10006842
mov eax, dword [ebp - 0xc]
cmp dword [0x100120a0], eax
je 0x10006830
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x1001211c]
push eax
call fcn.1000a94e
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x100120a0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.1000a4a5
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
add dword [ecx*4 + 0x1001213a], eax
jmp 0x10006855
jmp 0x100067dd
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14

Function at 0x10006866
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jmp 0x100068ae
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x10006903
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp dword [eax*4 + 0x100120a4], ecx
jne 0x10006901
mov eax, dword [ebp - 8]
cmp dword [0x100120a0], eax
je 0x100068e8
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x1001211c]
push eax
call fcn.1000a94e
add esp, 4
mov eax, dword [ebp - 8]
mov dword [0x100120a0], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.1000a4f1
add esp, 8
mov dword [ebp - 0xc], 1
jmp 0x10006903
jmp 0x100068ab
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x10006931
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.1000a4a5
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14
Function at 0x1000a585
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x1000a5c4
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x1000a69a
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x1000a695
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x1000a614
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x1000a614
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x1000a695
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.1000a94e
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x1000a667
mov dword [0x100122d2], 1
mov dword [ebp - 0x10], 0
jmp 0x1000a64a
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x1000a665
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x1000a647
jmp 0x1000a671
mov dword [0x100122d2], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x1000a69a
jmp 0x1000a5c1
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x1000a6b1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000a7db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x1000a80d
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x1000a828
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x1000a80a
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x1000a872
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x1000a872
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x1000a872
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.1000a94e
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x1000a869
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x1000a882
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x1000a887
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000ab4d
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
cmp dword [0x100125e2], 0
je 0x1000abf7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [0x10012b40], eax
mov dword [0x10012b44], 0
mov dword [0x10012b48], 0
push 0x10012b40
push 0x1000b3a9
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x10012b48], 1
jne 0x1000abca
push 0x43000
mov eax, 0x10012010
add eax, 0x5d6
push eax
mov eax, 0x10012010
add eax, 0x5ec
push eax
mov eax, dword [0x10012b44]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1000abed
push 0x43000
mov eax, 0x10012010
add eax, 0x5d6
push eax
mov eax, 0x10012010
add eax, 0x5ec
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000ac5f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.1000a2a6
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.1000a32e
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.1000ae8e
add esp, 8
cmp eax, 0xffffffff
je 0x1000acc4
mov dword [ebp - 0x14], 1
jmp 0x1000accb
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x1000acfb
cmp dword [ebp - 8], 0
je 0x1000acfb
cmp dword [ebp - 0x14], 0
je 0x1000acfb
push 0x10012690
mov eax, dword [ebp - 4]
push eax
call fcn.1000ad0c
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4
Function at 0x1000aedc
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x1000afb1
cmp dword [ebp - 8], 0
jne 0x1000afb1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.1000a94e
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x1000af69
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x1000af8b
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x1000af66
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000afc3
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000e774
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
push 0xfffffffffffffff0
add ecx, 0x646c6f47
pop esi
xor word [eax + 0xc], cx
xor word [eax + 0xe], cx
xor dword [eax + 0x110], ecx
xor byte [eax + 0x114], cl
mov dword [ebp + 8], ecx
lea ecx, [eax + 0x10]
sub esi, eax
mov edi, 0x100
lea eax, [ecx + esi]
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 8]
xor byte [ecx], al
inc ecx
dec edi
jne 0x1000e7aa
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000e7c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax + 8]
mov dword [ebp + 0x10], 0x100
add eax, 0x646c6f47
xor edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 7]
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp - 4]
xor al, byte [esi + edi]
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x1000e7ec
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e809
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1000e831
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x1000e865
dec eax
je 0x1000e845
dec eax
je 0x1000e857
jmp 0x1000e82d
cmp dword [ebp - 0x8c], ecx
jne 0x1000e851
push 4
jmp 0x1000e867
jbe 0x1000e857
push 5
jmp 0x1000e867
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret

Function at 0x1000e86a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov byte [esi], 0x4d
mov byte [esi + 1], 0x48
mov eax, dword [edi]
mov cl, byte [eax]
mov al, byte [eax + 1]
mov byte [esi + 3], al
mov eax, dword [edi + 8]
mov byte [esi + 2], cl
mov eax, dword [eax]
mov dword [esi + 4], eax
call fcn.1000e907
mov dword [esi + 8], eax
lea ecx, [eax + 0x646c6f47]
mov eax, dword [edi]
mov dword [ebp + 8], ecx
mov dx, word [eax + 2]
xor dx, cx
mov word [esi + 0xc], dx
mov edx, dword [eax + 0x12]
mov edx, dword [edx]
xor edx, ecx
mov dword [esi + 0x110], edx
mov dx, word [eax + 8]
xor dx, cx
mov word [esi + 0xe], dx
mov dl, byte [eax + 0x16]
xor dl, cl
mov byte [esi + 0x114], dl
mov dx, word [eax + 4]
test dx, dx
jbe 0x1000e903
mov edi, dword [eax + 0xe]
push ebx
movzx eax, dx
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [ebp + 0xc], eax
mov eax, ebx
push 4
cdq
pop esi
idiv esi
mov al, byte [edx + ebp + 8]
xor al, byte [edi + ebx]
inc ebx
mov byte [ecx], al
inc ecx
dec dword [ebp + 0xc]
jne 0x1000e8ea
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1000e95a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add dword [ebp + 0x10], 0x646c6f47
mov eax, dword [eax]
mov dx, word [eax + 6]
test dx, dx
jbe 0x1000e9a1
push ebx
push esi
mov esi, dword [eax + 0xa]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
lea ecx, [eax + 7]
movzx eax, dx
mov dword [ebp + 8], eax
mov eax, edi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx]
mov byte [esi + edi], al
inc edi
inc ecx
dec dword [ebp + 8]
jne 0x1000e986
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000ed59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, ax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x1000ed6f
pop es
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
test al, al
jne 0x1000ed82
add al, 0x55
mov ecx, dword [ebp + 8]
pop esi
mov byte [ecx], al
xor al, al
leave
ret
Function at 0x4024a9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp + 8], eax
fild dword [ebp + 8]
push 0x5a
push esi
fstp dword [ebp - 0xc]
call edi
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fld dword [ebp - 0xc]
fmul dword [0x41f75c]
call fcn.00411468
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul st(1)
fmul dword [0x41f758]
call fcn.00411468
fstp st(0)
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 4]
push ecx
push ecx
fstp qword [esp]
call fcn.00411a19
fmul qword [0x41f750]
pop ecx
pop ecx
fadd qword [0x41f748]
call fcn.00411468
neg eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov al, byte [ebp + 0x18]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
push 0x400
lea eax, [ebp - 0x44c]
push eax
push 0x1002
push 0x800
mov byte [ebp - 0x31], bl
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x44c]
push str.Japan
push eax
call fcn.004119e0
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x30]
je 0x4025d5
push dword [ebp + 0xc]
jmp 0x4025da
push 0x41f730
push eax
call fcn.004116a0
pop ecx
pop ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x10]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x402703
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0x3f3
jne 0x402723
push 1
xor eax, eax
push eax
push eax
push 0x41f780
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10
Function at 0x402a83
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
push dword [ebp + 0x10]
mov edi, ecx
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push str.jinstall.cfg
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
push 0
push ebx
push dword [ebp + 8]
lea esi, [edi + 0x8c]
mov ecx, edi
mov dword [esi], 1
call fcn.004016bd
and dword [esi], 0
test eax, eax
mov dword [ebp + 0xc], eax
jge 0x402b43
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x800]
push eax
push 0x7d5
push dword [0x4283a4]
call esi
push ebx
lea eax, [ebp - 0x400]
push eax
push 0x7d4
push dword [0x4283a4]
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0xc00]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [edi + 0x80], 0
jne 0x402b43
push 0x10
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403131
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x1f4
mov esi, ecx
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x402df6
push edi
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0x7d0
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x403208
push ebx
push ebp
push 0xd5e5e7
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f3
push dword [esi + 4]
mov dword [esi + 0xc0], eax
call ebx
mov ebp, eax
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x100
push eax
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x3ee
push dword [esi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0xffffff
push edi
mov ebx, eax
push 0x2001
push ebx
call esi
push 0x32cd32
push edi
push 0x409
push ebx
call esi
pop ebp
pop ebx
xor eax, eax
pop edi
inc eax
pop esi
pop ecx
ret 0x10

Function at 0x4087e5
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0xcd
jne 0x408820
push esi
push 0x100
lea esi, [ecx + 0x420]
push esi
push 0x7f2
push dword [0x4283a0]
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
xor eax, eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
xor eax, eax
ret 0x10
Function at 0x408878
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
mov dword [ebp + 8], eax
fild dword [ebp + 8]
push 0x5a
push esi
fstp dword [ebp - 0xc]
call edi
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fld dword [ebp - 0xc]
fmul dword [0x41f75c]
call fcn.00411468
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul st(1)
fmul dword [0x41f758]
call fcn.00411468
fstp st(0)
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.GDI32.dll_DPtoLP]
fild dword [ebp - 4]
push ecx
push ecx
fstp qword [esp]
call fcn.00411a19
fmul qword [0x41f750]
pop ecx
pop ecx
fadd qword [0x41f748]
call fcn.00411468
neg eax
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
setne al
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
push 0x100
lea eax, [ebp - 0x14c]
push eax
push 0x1002
push 0x800
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push 5
lea eax, [ebp - 0x14c]
push str.Japan
push eax
call fcn.004119e0
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x30]
je 0x4089a7
push dword [ebp + 0xc]
jmp 0x4089ac
push 0x41f730
push eax
call fcn.004116a0
pop ecx
pop ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [ebp - 0x10]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x409039
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x409088
cmp dword [ebp - 4], ebx
jbe 0x409085
cmp dword [ebp - 4], 2
jbe 0x40908f
cmp dword [ebp - 4], 7
jne 0x409085
mov ecx, dword [edi]
cmp ecx, 2
jb 0x409085
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x409085
cmp byte [ecx - 2], bl
je 0x409088
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x409083
Function at 0x40933f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
push edi
push 0x24
pop ecx
xor eax, eax
mov dword [ebp - 0x98], 0x94
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x4093cd
cmp dword [ebp - 0x94], 5
jb 0x4093cd
push 0x420378
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4093c8
push str.EnumSystemLanguageGroupsA
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4093c1
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 1
push 0x409312
call eax
test eax, eax
je 0x4093c1
xor eax, eax
cmp dword [ebp - 4], 1
sete al
jmp 0x40940f
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor eax, eax
inc eax
jmp 0x40940f
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
mov edx, 0x3ff
push ebx
mov edi, eax
and edi, edx
xor esi, esi
xor ecx, ecx
mov cx, word [esi + 0x4202f0]
mov ebx, ecx
and bx, dx
cmp di, bx
jne 0x409404
shr cx, 0xa
je 0x409413
mov bx, ax
shr bx, 0xa
cmp bx, cx
je 0x409413
inc esi
inc esi
cmp esi, 0x5a
jb 0x4093df
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
xor eax, eax
jmp 0x40940e

Function at 0x40945f
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call fcn.004106c9
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
pop ecx
push 0
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push str._sSun_
push ebx
call esi
add esp, 0xc
push 0
push ebx
call edi
push ebx
push str._sJava_
push ebx
call esi
add esp, 0xc
push 0
push ebx
call edi
cmp dword [esp + 0x20], 0
push str.1.6.0_10
push 0x4203ac
push ebx
je 0x4094b9
push str._s_s_s_x64
jmp 0x4094be
push str._s_s_s
push ebx
call esi
add esp, 0x14
push 0
push ebx
call edi
push ebx
push 0x420358
push dword [esp + 0x1c]
call esi
push dword [esp + 0x28]
push ebx
push str._s_s.msi
push ebx
call esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret