joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011e0
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
xor eax, eax
mov edi, esi
push 0x4055b4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
push edx
push esi
and ecx, 3
push 0x4056b8
push 0x405048
rep stosb byte es:[edi], al
push 0x4054b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
ret

Function at 0x401220
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
xor eax, eax
mov edi, esi
push 0x4055b4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
push edx
push esi
and ecx, 3
push 0x4056b8
push 0x405050
rep stosb byte es:[edi], al
push 0x4054b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
ret

Function at 0x401260
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0xd3c
call fcn.00401180
lea eax, [esp + 0x54]
push 0x104
push eax
call fcn.004011e0
lea ecx, [esp + 0x368]
push 0x3e8
push ecx
call fcn.00401220
mov al, byte [esp + 0x64]
add esp, 0x10
test al, al
je 0x40135f
push esi
push edi
lea edx, [esp + 0x160]
push 0x104
push edx
call section..text
add esp, 8
lea eax, [esp + 0x264]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x160]
push ecx
call esi
xor edx, edx
mov ecx, 0x11
mov dword [esp + 8], edx
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0xc], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], edx
lea eax, [esp + 0x368]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x14], edx
push eax
push ecx
lea edx, [esp + 0x758]
push 0x405058
push edx
mov dword [esp + 0x28], 0x44
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x750]
push eax
push ecx
push 0
push 0
push 0x4000020
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [esp + 0x264]
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0xd3c
ret 0x10
xor eax, eax
add esp, 0xd3c
ret 0x10
Function at 0x4020b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405110
cmp edx, dword [eax]
je 0x4020d7
add eax, 8
inc ecx
cmp eax, 0x4051a0
jl 0x4020c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405110]
jne 0x402205
mov eax, dword [0x4056c4]
cmp eax, 1
je 0x4021df
test eax, eax
jne 0x402108
cmp dword [0x405064], 1
je 0x4021df
cmp edx, 0xfc
je 0x402205
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40213f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004027d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402182
lea eax, [ebp - 0x1a4]
push eax
call fcn.004027d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x404390
push edi
call fcn.00401370
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402670
lea eax, [ebp - 0xa0]
push 0x404370
push eax
call fcn.00402670
push dword [esi + 0x405114]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402670
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004033ce
add esp, 0x2c
pop edi
jmp 0x402205
lea eax, [ebp + 8]
lea esi, [esi + 0x405114]
push 0
push eax
push dword [esi]
call fcn.004027d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000106e
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x100010be
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [esp + 0x18]
mov ebx, esp
push 0
push ebx
push edi
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
sete al
cmp dword [ebx], edi
setne cl
or cl, al
mov eax, ecx
xor al, 1
test cl, cl
jne 0x100010b5
cmp byte [esp + 0x1c], 0
je 0x100010b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
add esp, 4
pop esi
pop edi
pop ebx
ret 0xc
xor eax, eax
ret 0xc

Function at 0x100023d8
Capabilities:
Read .ini file

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [esp + 0x14]
mov word [ecx + 4], 0
xor ecx, ecx
mov edi, str.Walk
mov eax, 0x6dc190
push ecx
push edi
call eax
add esp, 8
mov dword [esi], eax
mov eax, 0x42c1a0
mov ecx, ebx
call eax
mov edx, str.._settings.ini
mov ecx, 0x200
mov ebx, 0x7fcbc8
mov eax, str.Bind
push edx
push ecx
push ebx
push 0x1000643f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
sub esp, 0x28
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x10006190]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov edi, str.Keyboard0
mov dword [esp], edi
mov dword [esp + 0x24], 1
mov eax, 0x42c8b0
mov ecx, dword [esp + 0x3c]
call eax
mov ebp, str.WallCover
mov eax, str.._settings.ini
push eax
mov eax, 0x200
push eax
push ebx
push 0x100065c7
push ebp
mov eax, str.Bind
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0x42d8e0
push ebx
push edi
call eax
add esp, 8
mov ebx, eax
xor eax, eax
push eax
push ebp
mov eax, 0x6dc190
call eax
add esp, 8
mov edx, 0x42c500
mov ecx, dword [esp + 0x14]
push eax
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x2c]
movzx eax, al
mov eax, dword [edx + eax*4]
mov byte [eax + 0x2c], bl
mov eax, 0x42c1f0
call eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x10003d82
Capabilities:
Read .ini file

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov byte [0x7bf728], 0
mov edi, str.._settings.ini
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push dword [0x10007018]
push str.EmissionRate
push str.ParticleEmitter
call esi
mov dword [0x10007018], eax
push edi
push 0
push str.Mode
push str.Windowed
call esi
test eax, eax
je 0x10003e5a
mov esi, eax
lea eax, [esp + 4]
mov dword [eax], 1
push 4
push eax
push 0x4586f2
call fcn.10001750
add esp, 0xc
cmp esi, 2
jne 0x10003e01
push 0x10003950
push 0x45728f
push 0xe9
call fcn.10001802
add esp, 0xc
mov eax, esp
mov byte [eax], 0xbd
xor esi, esi
inc esi
push esi
push eax
push 0x6546f1
call fcn.10001750
add esp, 0xc
lea eax, [esp + 1]
mov byte [eax], 0x9d
push esi
push eax
push 0x6546f7
call fcn.10001750
add esp, 0xc
mov bl, 1
lea eax, [esp + 2]
mov byte [eax], bl
push esi
push eax
push 0x65495a
call fcn.10001750
add esp, 0xc
lea eax, [esp + 3]
mov byte [eax], bl
push esi
push eax
push 0x654abc
call fcn.10001750
add esp, 0xc
push str.._settings.ini
push 0
push str.DebugMenu
push 0x100062fa
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10003e81
xor eax, eax
mov byte [0x7c1c54], al
mov byte [0x7c1c55], al
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x10003e88
Capabilities:
Read .ini file

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword fs:[0x30]
and byte [eax + 0x68], 0x8f
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x10003f00
mov esi, eax
lea eax, [eax*4]
xor edi, edi
dec edi
cmp esi, 0x40000000
cmovb edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
test eax, eax
je 0x10003ef0
xor eax, eax
mov ecx, dword [edi + eax*4]
and dword [ecx + 0x40], 0xbfffff9f
mov dword [ecx + 0x44], 0
inc eax
cmp esi, eax
jne 0x10003eda
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push str.._settings.ini
push 1
push str.TapePlayerAuto
push str.Scarface
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x10003f32
lea eax, [esp + 1]
mov byte [eax], 0
push 1
push eax
push 0x43274f
call fcn.10001750
add esp, 0xc
lea eax, [esp + 4]
mov dword [eax], 0x100070a8
push 4
push eax
push 0x708899
call fcn.10001750
add esp, 0xc
mov esi, 0x6ddb15
push 7
push esi
call fcn.10001798
add esp, 8
lea eax, [esp + 2]
mov word [eax], 0x6a
push 2
push eax
push esi
call fcn.10001750
add esp, 0x14
pop esi
pop edi
ret
Function at 0x100043e0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10007518]
test eax, eax
jne 0x10004457
lea eax, [esp + 0x10]
mov byte [eax + 8], 0
mov dword [eax + 4], 0x32336c65
mov dword [eax], 0x6e72656b
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10004452
mov dword [esp], 0x676e6147
mov dword [esp + 0xb], 0x6b6f6f
mov dword [esp + 8], 0x6f486e69
mov dword [esp + 4], 0x4d617473
mov byte [esp], 0x56
xor ecx, ecx
inc ecx
mov dl, byte [ecx + 0x10006218]
xor byte [esp + ecx], dl
inc ecx
cmp ecx, 0xe
jne 0x10004432
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10007518], eax
jmp 0x10004457
mov eax, dword [0x10007518]
add esp, 0x1c
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0xeddba4
Capabilities:
Encode data using xor

Disassembly:
jmp 0xeddbae
pushal
call 0xeddbb4
pop ebp
sub ebp, 0x10
sub ebp, 0xaddba4
jmp 0xeddbca
mov eax, 0xaddba4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5be
mov edx, 0x87f79c4c
xor byte [eax], dl
inc eax
dec ecx
jne 0xeddbe1
jmp 0xeddbf4
mov dword [ecx + 0x4c70c5c7], 0x8dcd4c4c
mov ah, 0x4c
dec esp
dec esp
dec edi
xor esp, 0x4c4c4c4a
mul byte [esp + ecx*2 + 0x4c]
dec esp
mov ebx, 0xc7844fae
int 0x40
dec esp
dec esp
dec esp
dec edi
mov dword [esp + ebx], ebx
and al, 0x24
fild qword [ebp + 0x4c]
and al, 0x76
add al, 0xc0
dec esp
dec ebp
pushal
push 0x89c67024
or eax, 0x4c4c49a4
dec esp
movsd dword es:[edi], dword [esi]
js 0xeddc82
dec esp
dec esp
shr dword [eax], 0x68
mov al, 0xc5
pushal
push 0xc9c71118
inc esp
dec esp
dec esp
dec esp
invalid
push 0x6840c5b0
movsb byte es:[edi], byte [esi]
dec ecx
dec esp
dec esp
dec esp
movsd dword es:[edi], dword [esi]
or ecx, dword [esi + 0x4c]
dec esp
shr dword [eax], 0x68
mov al, 0xc5
pushal
push 0x4c6820c1
mov bl, 0x39
inc eax
mov bl, 0x39
inc esp
movsb byte es:[edi], byte [esi]
dec esp
dec esp
dec esp
invalid

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x40173a
Capabilities:
Get graphical window text

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 0x20
push edi
push esi
push ebx
lea edi, [ebp - 0x98]
sub esp, 0x11c
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x98]
mov dword [esp + 4], edi
mov dword [esp], 0x18
call fcn.00402096
test eax, eax
jne 0x401776
xor eax, eax
jmp 0x4017f9
mov dword [esp + 0xc], 0
lea esi, [ebp - 0x118]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.user32.dll_FindWindowExA
sub esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x40176f
mov dword [esp + 8], 0x7f
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.user32.dll_GetWindowTextA
sub esp, 0xc
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x4017f7
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call sub.user32.dll_FindWindowExA
sub esp, 0x10
mov ebx, eax
jmp 0x4017a5
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401d62
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x801c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0040ba60
mov ecx, 0x7fff
sub esp, eax
xor eax, eax
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x8017]
mov esi, dword [ebp + 0xc]
rep stosb byte es:[edi], al
lea edi, [ebp - 0x8017]
mov dword [esp + 8], 0x7fff
mov dword [esp + 4], edi
mov dword [esp], str.Launch4j
call sub.kernel32.dll_GetEnvironmentVariableA
sub esp, 0xc
mov dword [esp + 4], str.__l4j_debug
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401dd2
mov dword [esp + 4], str.debug
mov dword [esp], edi
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401e20
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00401ceb
test eax, eax
mov dword [0x419c4c], eax
je 0x401e64
mov dword [esp + 4], str.__l4j_debug_all
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
mov edx, 1
test eax, eax
jne 0x401e1a
mov dword [esp + 4], str.debug_all
mov dword [esp], edi
call sub.msvcrt.dll_strstr
xor edx, edx
test eax, eax
setne dl
mov dword [0x411024], edx
mov eax, dword [0x419c4c]
test eax, eax
je 0x401e41
mov dword [esp + 8], str.3.50
mov dword [esp + 4], str._n_nVersion:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x419c4c]
test eax, eax
je 0x401e68
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], str.CmdLine:_t_s__s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x401e68
xor eax, eax
jmp 0x401e6d
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401f5e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, dword [0x419c4c]
test eax, eax
je 0x401f8d
mov dword [esp + 8], 0x422388
mov dword [esp + 4], str.Error_msg:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
test ebx, ebx
je 0x40201f
lea eax, [ebp - 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0x1300
call sub.kernel32.dll_FormatMessageA
mov eax, dword [0x419c4c]
sub esp, 0x1c
test eax, eax
je 0x401fef
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], str.Error:_t_t_s_n
mov dword [esp], eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], 0x40e13f
mov dword [esp], 0x422388
call sub.msvcrt.dll_strcat
mov ebx, dword [ebp - 0xc]
mov dword [esp], 0x422388
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcat
mov dword [esp], ebx
call sub.kernel32.dll_LocalFree
push ecx
mov dword [esp], 0x422388
call fcn.00401efb
cmp byte [0x422788], 0
je 0x40208c
mov eax, dword [0x419c4c]
test eax, eax
je 0x402055
mov dword [esp + 8], 0x422788
mov dword [esp + 4], str.Open_URL:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x422788
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.shell32.dll_ShellExecuteA
sub esp, 0x18
call fcn.00401d49
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x402096
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
cmp dword [0x411024], 0
mov ebx, dword [ebp + 0xc]
je 0x4020ca
mov eax, dword [0x419c4c]
test eax, eax
je 0x4020ca
mov dword [esp + 8], esi
mov dword [esp + 4], str.Resource__d:_t
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [0x422304]
movzx esi, si
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], esi
mov dword [esp + 4], 0xa
mov dword [esp], eax
call sub.kernel32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x402153
mov dword [esp + 4], eax
mov eax, dword [0x422304]
mov dword [esp], eax
call sub.kernel32.dll_LoadResource
test eax, eax
push ecx
push ecx
je 0x402163
mov dword [esp], eax
call sub.kernel32.dll_LockResource
test eax, eax
push edx
je 0x402163
xor edx, edx
mov cl, byte [eax + edx]
mov byte [ebx + edx], cl
inc edx
test cl, cl
jne 0x40211b
cmp dword [0x411024], 0
mov esi, 1
je 0x402187
mov eax, dword [0x419c4c]
test eax, eax
je 0x402187
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x40e163
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x402187
mov dword [esp], 0
call sub.kernel32.dll_SetLastError
push esi
mov byte [ebx], 0
xor esi, esi
cmp dword [0x411024], 0
je 0x402187
mov eax, dword [0x419c4c]
test eax, eax
je 0x402187
mov dword [esp + 4], eax
mov dword [esp], str._NULL__n
call sub.msvcrt.dll_fputs
lea esp, [ebp - 8]
mov eax, esi
pop ebx
pop esi
pop ebp
ret
Function at 0x402206
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], str.HKEY_CLASSES_ROOT
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402283
mov dword [esp + 4], str.HKEY_CURRENT_USER
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x40228a
mov dword [esp + 4], str.HKEY_LOCAL_MACHINE
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402291
mov dword [esp + 4], str.HKEY_USERS
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
je 0x402298
mov dword [esp + 4], str.HKEY_CURRENT_CONFIG
xor esi, esi
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
cmp eax, ebx
jne 0x402374
mov esi, 0x80000005
jmp 0x40229d
mov esi, 0x80000000
jmp 0x40229d
mov esi, 0x80000001
jmp 0x40229d
mov esi, 0x80000002
jmp 0x40229d
mov esi, 0x80000003
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call sub.msvcrt.dll_strchr
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
lea edi, [eax + 1]
call sub.msvcrt.dll_strrchr
lea edx, [ebp - 0x20]
mov byte [eax], 0
mov ebx, eax
cmp dword [0x41101c], 0
jne 0x4022fc
mov dword [esp], esi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], edi
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x402371
jmp 0x402329
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x20119
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x2c], edx
call sub.advapi32.dll_RegOpenKeyExA
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
jne 0x4022d1
lea eax, [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
lea eax, [ebx + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
sete al
movzx eax, al
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
push edi
mov byte [ebx], 0x5c
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402966
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
mov ecx, 0x41
push edi
push esi
push ebx
sub esp, 0x24c
mov edx, dword [ebp + 0xc]
lea edi, [ebp - 0x220]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x22c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x220]
and edx, 0x100
or edx, 0x20019
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x402a60
lea edi, [ebp - 0x11c]
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
xor ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x224]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x22c]
lea edi, [ebp - 0x11c]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.JavaHome
mov dword [esp], eax
mov dword [ebp - 0x228], 0x104
call sub.advapi32.dll_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x402a3b
mov dl, byte [edi + eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x402a26
mov dword [esp], esi
call fcn.0040267f
mov ebx, eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
test ebx, ebx
push eax
je 0x402a60
mov dword [esp + 4], esi
mov dword [esp], 0x4220fc
call sub.msvcrt.dll_strcpy
jmp 0x402a6c
mov dword [0x421e78], 1
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402e47
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x48], 0x40
call sub.kernel32.dll_GlobalMemoryStatusEx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp], ebx
mov dword [esp + 0x14], str._Xms
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 0x19
call fcn.00402cf6
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [esp], ebx
mov dword [esp + 0x14], str._Xmx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0x1b
call fcn.00402cf6
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x402ec5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov eax, dword [ebp + 8]
mov dword [esp], 0xc
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], eax
call fcn.00402096
test eax, eax
je 0x402efe
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x40e349
mov dword [esp], eax
call sub.msvcrt.dll_strcat
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x11c]
mov dword [esp], ebx
not ecx
sub ecx, 4
mov dword [esp + 8], ecx
call sub.msvcrt.dll_strncpy
mov dword [esp + 4], str.l4j.ini
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll__open
mov dword [ebp - 0x12c], eax
inc eax
je 0x40301e
mov eax, dword [0x419c4c]
test eax, eax
je 0x402f79
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Loading:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov edi, dword [ebp + 8]
xor eax, eax
or ecx, 0xffffffff
xor ebx, ebx
mov esi, 1
repne scasb al, byte es:[edi]
mov eax, 0x7c00
mov edi, dword [ebp + 8]
not ecx
dec ecx
sub eax, ecx
add edi, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov edx, edi
cmp ebx, eax
jge 0x402ff0
mov cl, byte [edi + ebx]
cmp cl, 0x23
je 0x402feb
cmp cl, 0xa
je 0x402fc7
cmp cl, 0xd
jne 0x402fdd
cmp edx, dword [ebp + 8]
mov esi, 1
jbe 0x402fed
cmp byte [edx - 1], 0x20
je 0x402fed
mov byte [edx], 0x20
inc edx
jmp 0x402fed
test esi, esi
je 0x402fed
mov byte [edx], cl
mov esi, 1
inc edx
jmp 0x402fed
xor esi, esi
inc ebx
jmp 0x402fb1
test eax, eax
mov byte [edx], 0
jle 0x403010
cmp byte [edx - 1], 0x20
je 0x403010
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x40e349
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call sub.msvcrt.dll__close
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret