joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40db10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x4f0
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0x4ec], eax
mov eax, dword [esp + 0x4f4]
push ebx
push ebp
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [eax + 4]
xor ebx, ebx
push 0x207
lea eax, [esp + 0x2f5]
push ebx
push eax
mov dword [esp + 0x24], edi
mov byte [esp + 0x2fc], bl
call fcn.00465b60
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + str.CSEbank.GD.user.exe]
mov byte [esp + eax + 0x1e8], cl
inc eax
cmp cl, bl
jne 0x40db60
push 0x18c
lea ecx, [esp + 0x5c]
push ebx
push ecx
call fcn.00465b60
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0xdc], 0x82
jle 0x40dbb4
mov edx, dword [str.USBKey1]
mov eax, dword [0x4c29c4]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], eax
mov esi, 1
jmp 0x40dbd0
mov ecx, dword [str.USBKey0]
mov edx, dword [0x4c29cc]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
xor esi, esi
push 0xff
lea eax, [esp + 0x1ed]
push ebx
push eax
mov byte [esp + 0x1f4], bl
call fcn.00465b60
shl esi, 7
add esp, 0xc
lea ebp, [esi + str.Gemini]
lea ecx, [esp + 0x1e8]
push ecx
mov esi, ebp
mov dword [esp + 0x18], ebp
call fcn.00425010
lea eax, [esp + 0x1e8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dc13
sub eax, edx
cmp eax, 1
jbe 0x40dd14
xor eax, eax
jmp 0x40dc30
mov cl, byte [esp + eax + 0x1e8]
mov byte [esp + eax + 0x2f0], cl
inc eax
cmp cl, bl
jne 0x40dc30
push 0x38
lea edx, [esp + 0x24]
push ebx
push edx
mov dword [esp + 0x28], 0x3c
call fcn.00465b60
add esp, 0xc
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x2f0]
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x34], str.__S
mov dword [esp + 0x3c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40dd14
mov eax, dword [esp + 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call edi
mov esi, 0x103
cmp dword [esp + 0x10], esi
jne 0x40dcdd
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40dcc0
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
push 0x1f4
call ebp
cmp dword [esp + 0x10], esi
je 0x40dcc0
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x2f0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40dce7
sub eax, edx
cmp eax, 3
jbe 0x40dd03
mov ecx, ebp
lea edx, [esp + 0x2f0]
call fcn.00424e30
mov edi, dword [esp + 0x18]
mov dword [esp + 0xe0], 3
jmp 0x40dd1f
mov dword [esp + 0xe0], 2
cmp edi, ebx
je 0x40dd32
lea eax, [esp + 0x58]
push eax
mov eax, edi
call fcn.00420b20
add esp, 4
mov ecx, dword [esp + 0x4fc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045f97b
add esp, 0x4f0
ret
Function at 0x40e150
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
mov dword [esp + 0x10], 0x3c
call fcn.00465b60
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40e1e8
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e1c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
add esp, 0x3c
ret
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [esp + 0x44], 0x103
jne 0x40e22e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
push ecx
call esi
push 0x3e8
call edi
cmp dword [esp + 0x48], 0x103
je 0x40e210
pop edi
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e24e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e26e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
add esp, 0x3c
ret
Function at 0x40fbc0
Capabilities:
Create process on windows
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a36a0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebp
push esi
push edi
mov eax, dword [0x4d8b40]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
push 0x44
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x88], 0
call fcn.00465b60
mov ecx, dword [esp + 0x90]
xor eax, eax
push 0x5c
push ecx
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.004604da
add esp, 0x14
or ebp, 0xffffffff
test eax, eax
jne 0x40fc38
mov eax, ebp
jmp 0x40fc3f
sub eax, dword [esp + 0x84]
push eax
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x8c]
call fcn.00407a40
mov byte [esp + 0x7c], 1
mov edx, dword [esp + 0x84]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40fc81
push 0
lea ecx, [esp + 0x88]
call fcn.00402850
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40fcff
mov byte [esp + 0x7c], al
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x7c], ebp
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40fcea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x70
ret
test esi, esi
jne 0x40fd0b
mov ecx, dword [esp + 0x14]
push ebp
push ecx
jmp 0x40fd11
mov edx, dword [esp + 0x14]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
lea eax, [edi - 0x10]
mov byte [esp + 0x7c], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fd4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x7c], ebp
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40fd6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x70
ret
Function at 0x40fd90
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4a4bb9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebp
push esi
push edi
mov eax, dword [0x4d8b40]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1e0]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1d8], esi
call fcn.0044dc0d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40fdf8
push 0x80004005
call fcn.00402ae0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1d8], 1
mov ecx, dword [esp + 0x1e4]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00407c10
mov byte [esp + 0x1d8], 2
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.00402670
mov byte [esp + 0x1d8], 3
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 1
jge 0x40fe5b
lea edx, [esp + 0x1e4]
push edx
lea ecx, [esp + 0x18]
call fcn.00402990
lea eax, [esp + 0x3c]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40fe8c
push esi
lea ecx, [esp + 0x18]
call fcn.00402850
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
jne 0x40feab
mov ecx, dword [esp + 0x1e4]
push ecx
push str.Cant_resolve__s_r_n
lea edx, [esp + 0x20]
push edx
jmp 0x40fec4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x4c2db4
lea eax, [esp + 0x20]
push eax
call fcn.00407690
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [esp + 0x18]
add edi, 0xfffffff0
push edi
call fcn.00402a50
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1dc], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1c]
call fcn.00407d80
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov byte [esp + 0x1d8], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff3a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x1d8], 0xffffffff
mov eax, dword [esp + 0x1e4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1bc]
xor ecx, esp
call fcn.0045f97b
add esp, 0x1cc
ret
Function at 0x4111a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x560
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0x55c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0xc], eax
call fcn.0042e220
push 0
push 0x20
lea ecx, [esp + 0x260]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4111f4
push 0
lea edx, [esp + 0x25c]
push 0
push edx
call fcn.0042e2c0
add esp, 0xc
push 0x1ff
lea eax, [esp + 0x365]
push 0
push eax
mov byte [esp + 0x36c], 0
call fcn.00465b60
add esp, 0xc
push 0xb4
lea ecx, [esp + 0x1a4]
push 0
push ecx
mov dword [esp + 0xa4], 0
call fcn.00465b60
add esp, 0xc
mov esi, str.IDS_DELETE_TEMP_FILE
mov ecx, str.CheckRes
call fcn.00426a80
lea edx, [esp + 0x1a0]
jmp 0x411250
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x411250
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x1a0]
mov byte [esp + eax + 0x9c], cl
inc eax
test cl, cl
jne 0x411260
lea eax, [esp + 0x360]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411280
lea edi, [esp + 0x9c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411291
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00420b20
mov ecx, dword [esp + 0x568]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0045f97b
mov esp, ebp
pop ebp
ret 4
Function at 0x412d40
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4a42a2
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
mov eax, dword [0x4d8b40]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
call fcn.0044dc0d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x412da9
push 0x80004005
call fcn.00402ae0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xb8], 0
mov ebx, 1
push ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
cmp eax, 5
jne 0x412e19
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x412e02
push 0xc
push str.Windows_2000
mov ecx, esi
call fcn.00402900
jmp 0x412e86
cmp eax, 2
jne 0x412e0e
push str.Windows_2003
jmp 0x412e7f
cmp eax, ebx
jne 0x412e7a
push str.Windows_XP
jmp 0x412e7f
cmp eax, 6
jne 0x412e7a
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x412e3f
mov ecx, esi
cmp byte [esp + 0xaa], bl
jne 0x412e38
push str.Windows_Vista
jmp 0x412e81
push str.Windows_2008
jmp 0x412e81
cmp eax, ebx
jne 0x412e5c
mov ecx, esi
cmp byte [esp + 0xaa], bl
jne 0x412e55
push str.Windows_7
jmp 0x412e81
push str.WINDOWS_2008_R2
jmp 0x412e81
cmp eax, 2
jne 0x412e7a
mov ecx, esi
cmp byte [esp + 0xaa], bl
jne 0x412e73
push str.Windows_8
jmp 0x412e81
push str.Windows_Server_2012
jmp 0x412e81
push 0x4c3174
mov ecx, esi
call fcn.00402630
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0045f97b
add esp, 0xb4
ret
Function at 0x413ed0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x460
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x207
lea eax, [esp + 0x25d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x264], bl
call fcn.00465b60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x54]
push ebx
push ecx
call fcn.00465b60
add esp, 0xc
lea ecx, [esp + 0x50]
call fcn.00420c70
lea eax, [esp + 0x50]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x413f30
push 0xff
lea eax, [esp + 0x15d]
push ebx
push eax
mov byte [esp + 0x164], bl
call fcn.00465b60
lea edi, [esi + esi*4]
shl edi, 5
add esp, 0xc
lea ecx, [esp + 0x158]
lea esi, [edi + str.CRCB_CERT_32]
push ecx
mov dword [esp + 0x14], esi
call fcn.00425010
lea eax, [esp + 0x158]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413f80
sub eax, edx
cmp eax, 1
jbe 0x413fa5
xor eax, eax
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x258], cl
inc eax
cmp cl, bl
jne 0x413f90
jmp 0x413fe9
lea ecx, [esp + 0x258]
call fcn.00420c70
lea eax, [edi + str.CRCB_Cert_PlugIn_32.exe]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413fc0
lea edi, [esp + 0x258]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x413fd1
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]
push 0x38
lea edx, [esp + 0x1c]
push ebx
push edx
mov dword [esp + 0x20], 0x3c
call fcn.00465b60
add esp, 0xc
lea ecx, [esp + 0x14]
lea eax, [esp + 0x258]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x2c], str.__S
mov dword [esp + 0x34], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x41404b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.0045f97b
add esp, 0x460
ret
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], ebx
call esi
cmp dword [esp + 0xc], 0x103
jne 0x41408e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0xc]
push ecx
push edx
call esi
push 0x1f4
call edi
cmp dword [esp + 0xc], 0x103
je 0x414071
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414098
sub eax, edx
cmp eax, 3
jbe 0x4140b6
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x158]
call fcn.004250d0
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0045f97b
add esp, 0x460
ret
Function at 0x4140e0
Capabilities:
Get system information on windows

Disassembly:
lea eax, [esp - 0x24]
sub esp, 0x24
test eax, eax
je 0x414118
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41410e
lea ecx, [esp]
push ecx
call eax
jmp 0x414118
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [esp]
cmp ax, 9
je 0x41412d
cmp ax, 6
mov eax, 0x20
jne 0x414132
mov eax, 0x40
add esp, 0x24
ret
Function at 0x414260
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a4203
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4d8b40]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push edi
mov eax, dword [0x4d8b40]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x144], ebx
push 0x1f
push str.SOFTWAREJANSHETO_KEY_CSRCBANK
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00402240
mov byte [esp + 0x144], 1
mov eax, dword [esp + 0x1c]
mov ebp, 0x10
cmp dword [esp + 0x30], ebp
jae 0x4142e6
lea eax, [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x414379
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x41430e
lea eax, [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0x101
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x414379
push ebx
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push 0x4c10b4
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00402240
cmp dword [esp + 0x30], ebp
jb 0x414353
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043fc36
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x164], ebp
jb 0x41443e
mov ecx, dword [esp + 0x150]
push ecx
jmp 0x414436
push 0x103
lea edx, [esp + 0x39]
push ebx
push edx
mov byte [esp + 0x40], bl
call fcn.00465b60
mov eax, dword [esp + 0x15c]
add esp, 0xc
mov dword [esp + 0x14], 0x104
cmp dword [esp + 0x164], ebp
jae 0x4143af
lea eax, [esp + 0x150]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4143da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edi, 0xf
lea eax, [esp + 0x34]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4143f0
sub eax, edx
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.00402240
cmp dword [esp + 0x30], ebp
jb 0x414419
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043fc36
add esp, 4
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x164], ebp
jb 0x41443e
mov eax, dword [esp + 0x150]
push eax
call fcn.0043fc36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0045f97b
add esp, 0x138
ret 0x1c
Function at 0x416d60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push edi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x416d78
pop edi
pop ebx
pop ecx
ret
push esi
push edi
call fcn.0043fc2b
mov esi, eax
add esp, 4
test esi, esi
je 0x416e06
push edi
push 0
push esi
call fcn.00465b60
add esp, 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x416dfd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x416dfd
push edi
push eax
push esi
call fcn.00469940
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x416dfd
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x416e0d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0043fc36
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp edi, dword [esp + 0x10]
jne 0x416dfe
call fcn.0043fc36
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x417ec0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x30c]
sub esp, 0x30c
push 0xffffffffffffffff
push 0x4a5468
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4d8b40]
xor eax, ebp
mov dword [ebp + 0x308], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0xff
lea eax, [ebp + 0x209]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x208], bl
call fcn.00465b60
push 0x207
lea ecx, [ebp + 1]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp], bl
call fcn.00465b60
add esp, 0x18
push 0x208
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x417f44
mov ecx, dword [str.Driversetchosts]
mov edx, dword [0x4c38e8]
mov dword [eax], ecx
mov ecx, dword [0x4c38ec]
mov dword [eax + 4], edx
mov edx, dword [0x4c38f0]
mov dword [eax + 8], ecx
mov cx, word [0x4c38f4]
mov dword [eax + 0xc], edx
mov dl, byte [0x4c38f6]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
lea eax, [ebp]
push 0x4c3770
push eax
call fcn.004619f0
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x417fb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4cf13c
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
call fcn.004679cb
mov edi, 0xf
jmp 0x417fc3
mov esi, dword [ebp - 0x18]
push esi
call fcn.004624a5
add esp, 4
test eax, eax
jne 0x4180b2
push esi
lea edx, [ebp + 0x208]
push 0x100
push edx
call fcn.0046250d
sub esp, 0x10
mov ecx, esp
lea eax, [ebp + 0x208]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x1c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x418000
sub eax, esi
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.00402240
call fcn.00417ae0
add esp, 0x1c
cmp eax, ebx
jne 0x417fc0
sub esp, 0x1c
mov ecx, esp
mov eax, str.csrcbank.com
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x1c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
jmp 0x418040
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x418040
sub eax, esi
push eax
mov eax, str.csrcbank.com
push eax
call fcn.00402240
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 1
lea eax, [ebp + 0x208]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x24], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x418073
sub eax, esi
push eax
lea edx, [ebp + 0x208]
push edx
call fcn.00402240
mov byte [ebp - 4], bl
call fcn.00417c40
add esp, 0x38
cmp eax, ebx
jne 0x41809f
mov eax, 3
jmp 0x4180c2
mov dword [ebp - 0x14], ebx
jmp 0x417fc0
cmp esi, ebx
je 0x4180bf
push esi
call fcn.00461e9d
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x308]
xor ecx, ebp
call fcn.0045f97b
add ebp, 0x30c
mov esp, ebp
pop ebp
ret