joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408441
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408477
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e66b
leave
ret
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40849d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x408469
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
cmp dword [ebp - 0x228], edi
je 0x4084c1
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4084a6
jmp 0x4084c7
mov esi, dword [ebp - 0x218]
pop edi
jmp 0x408492

Function at 0x4084ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408521
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
test eax, eax
jne 0x40851b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
leave
ret
Function at 0x40921a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 9
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406e60
pop ecx
mov dword [0x44b370], eax
cmp eax, 0xffffffff
jne 0x40926e
push 5
call fcn.004094aa
pop ecx
push eax
call fcn.00409130
cmp dword [ebp + 8], esi
jg 0x409277
push 0x13
jmp 0x409262
push dword [ebp + 8]
call fcn.00406fb8
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x40928b
push 0x11
jmp 0x409262
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push 0x433888
push 0xffffffffffffffff
push 6
pop edi
push edi
push eax
call fcn.00411e4c
add esp, 0x14
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x4092ba
push 0x14
jmp 0x409262
push ebx
call fcn.00407d02
pop ecx
cmp dword [ebp - 0x10], esi
je 0x40938a
mov ebx, dword [ebp - 0x14]
push 0x7f00
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0x409180
mov dword [ebp - 0x30], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x43388c
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
push ebx
push esi
push esi
mov eax, SysReAllocString
push eax
push eax
push eax
push eax
push 0xcf0000
push str.Win32Splash
push str.SplashDummy
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x40917a
push 0x4e20
mov edi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x40933f
push 0x15
jmp 0x409262
call fcn.004090c0
push dword [ebp - 0x10]
call fcn.004090e0
pop ecx
push 8
push 0x401
push edi
push dword [0x44b370]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40937d
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
call edi
test eax, eax
jne 0x409369
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040e66b
leave
ret
Function at 0x4095ec
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
push edi
test eax, eax
jns 0x409608
fadd qword [0x429300]
fdiv qword [0x4292f8]
push ecx
push ecx
fstp qword [esp]
call fcn.00411e70
fmul qword [0x4292f0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
call fcn.00412046
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
inc eax
push 2
push eax
call fcn.0040ea3a
mov edi, eax
add esp, 0x10
mov dword [ebp + 0x10], edi
test edi, edi
je 0x409718
xor edx, edx
push esi
test ebx, ebx
je 0x4096e9
push 0x3f
pop edi
cmp edx, ebx
jae 0x409663
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + edx*2]
inc edx
jmp 0x409665
xor ecx, ecx
cmp edx, ebx
jae 0x409676
mov esi, dword [ebp + 8]
movzx esi, word [esi + edx*2]
mov dword [ebp + 0xc], esi
inc edx
jmp 0x40967a
and dword [ebp + 0xc], 0
cmp edx, ebx
jae 0x409688
mov esi, dword [ebp + 8]
movzx esi, word [esi + edx*2]
inc edx
jmp 0x40968a
xor esi, esi
shl ecx, 8
add ecx, dword [ebp + 0xc]
shl ecx, 8
add ecx, esi
mov esi, ecx
shr esi, 0x12
and esi, edi
mov si, word [esi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax], si
mov esi, ecx
shr esi, 0xc
and esi, edi
mov si, word [esi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 2], si
mov esi, ecx
shr esi, 6
and esi, edi
mov si, word [esi*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, edi
mov cx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + 4], si
mov word [eax + 6], cx
add eax, 8
cmp edx, ebx
jb 0x409659
mov edi, dword [ebp + 0x10]
push 3
xor edx, edx
mov eax, ebx
pop ecx
div ecx
mov esi, dword [edx*4 + 0x434eb8]
test esi, esi
jle 0x409715
fld qword [ebp - 8]
call fcn.00412010
lea eax, [edi + eax*2 - 2]
push 0x3d
pop ecx
mov word [eax], cx
sub eax, 2
dec esi
jne 0x409709
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x409929
Capabilities:
Write file on windows

Disassembly:
push edi
push 0x434ecc
push dword [esp + 0xc]
call fcn.00410d32
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x409942
pop edi
ret
push ebx
push esi
push dword [esp + 0x14]
call fcn.00409898
push edi
push dword [esp + 0x20]
mov esi, eax
push 1
push esi
call fcn.0041249e
push edi
mov ebx, eax
call fcn.00410b47
add esp, 0x18
test esi, esi
je 0x409972
push esi
call fcn.0040ee5b
pop ecx
xor eax, eax
cmp ebx, dword [esp + 0x18]
pop esi
pop ebx
sete al
pop edi
ret
Function at 0x409c23
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00409861
mov edi, eax
pop ecx
test edi, edi
js 0x409c68
push 0x434ec4
push dword [ebp + 8]
call fcn.00410d32
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x409c68
lea eax, [edi + 2]
push eax
call fcn.0040f0c4
mov esi, eax
pop ecx
push ebx
test esi, esi
jne 0x409c75
call fcn.00410b47
pop ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push edi
push 1
push esi
call fcn.00412762
mov ebx, eax
add esp, 0x10
cmp ebx, edi
jle 0x409c96
push 9
call fcn.004094aa
push eax
call fcn.00407bc4
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00410b47
pop ecx
cmp ebx, edi
je 0x409cab
push esi
call fcn.0040ee5b
jmp 0x409c67
xor ecx, ecx
xor eax, eax
cmp eax, ebx
jge 0x409cc0
cmp byte [eax + esi], 0
jne 0x409cba
inc ecx
inc eax
cmp eax, 6
jl 0x409caf
cmp ecx, 1
jle 0x409cd4
mov edi, dword [ebp + 0xc]
lea eax, [ebx + esi]
mov dword [edi], esi
mov word [eax], 0
jmp 0x409ceb
mov byte [ebx + esi], 0
mov ebx, esi
call fcn.004098ec
mov edi, dword [ebp + 0xc]
push esi
mov dword [edi], eax
call fcn.0040ee5b
pop ecx
mov eax, dword [edi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409cf0
sub eax, edx
sar eax, 1
jmp 0x409c70

Function at 0x40a4e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a552
cmp dword [ebp + 0x10], 1
je 0x40a52a
cmp dword [ebp + 0x10], 2
je 0x40a52a
push 0xd
pop eax
jmp 0x40a552
mov eax, dword [ebp - 4]
test edi, edi
je 0x40a54c
test eax, eax
je 0x40a547
test al, 1
jne 0x40a525
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40a54c
jmp 0x40a525
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40a7ff
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp dword [0x44c5c0], 0
je 0x40a82a
mov eax, dword [0x44c5bc]
jmp 0x40a86e
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0040edc0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x70], 2
jne 0x40a861
cmp dword [ebp - 0x7c], 6
jb 0x40a861
mov eax, ecx
jmp 0x40a863
xor eax, eax
mov dword [0x44c5bc], eax
mov dword [0x44c5c0], ecx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0040e66b
add ebp, 0x98
leave
ret
Function at 0x40a9ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040edc0
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40aa50
cmp eax, edi
ja 0x40aa50
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0040edc0
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x429c08
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40aa52
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e66b
leave
ret

Function at 0x40aa61
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40aa6e
xor eax, eax
pop ebp
ret
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
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_CreateProcessW]
pop ebp
ret

Function at 0x40aaca
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0040edc0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push 0x2000000
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ab43
cmp dword [ebp + 8], esi
je 0x40ab43
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, esi
jne 0x40ab47
xor eax, eax
jmp 0x40ab65
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40ad74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.0040ed90
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call fcn.0040edc0
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call fcn.0040fd7a
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x40ae09
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x40ae78
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x429eec
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x40ae37
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40ae7a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ae6c
test dx, dx
je 0x40ae68
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ae6c
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ae46
xor eax, eax
jmp 0x40ae71
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.0040e66b
add ebp, 0xf8c
leave
ret

Function at 0x40b081
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x40b0a2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x42a004
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40b0a2
inc esi
mov eax, esi
pop esi
ret
Function at 0x40b18e
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x427f90
call fcn.00412f41
mov eax, dword [ebp + 8]
push 0x104
push eax
xor edi, edi
push edi
push edi
xor ecx, ecx
push 0x42a460
mov word [eax], cx
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40b202
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__NULL__pPath__MAX_PATH_
call fcn.0040cad5
pop ecx
pop ecx
push edi
push esi
call fcn.00427d30
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.0040c752
push eax
push esi
push 0x4295f4
call fcn.0040cad5
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x40b1fb
ret
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x40b2b3
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 0x40b25f
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x40b1c6
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x40b2b3
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 0x40b2b3
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x40b1c6
mov eax, esi
call fcn.00412f77
ret

Function at 0x40c2fb
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x42805b
call fcn.00412f0e
push 0x42a09c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040f62b
add esp, 0xc
test eax, eax
jne 0x40c3d6
push dword [ebp - 0x18]
call fcn.0040ee5b
cmp dword [0x44c5a0], 0
pop ecx
je 0x40c356
xor eax, eax
inc eax
jmp 0x40c3d8
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x40c3d6
test eax, eax
je 0x40c3d6
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c61a
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.0040c61a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040c833
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40c3a7
call fcn.0040c7f5
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x40c3b2
mov eax, dword [esi]
jmp 0x40c3b4
xor eax, eax
push 0x42a148
push eax
push 0x44c5a0
call fcn.00410d49
add esp, 0xc
test eax, eax
je 0x40c3fb
test esi, esi
je 0x40c3d6
mov ecx, esi
call fcn.0040c7f5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040e66b
add ebp, 0x20c
leave
ret
test esi, esi
je 0x40c34e
mov ecx, esi
call fcn.0040c7f5
jmp 0x40c34e
Function at 0x40c54f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040a462
mov ebx, eax
cmp ebx, esi
je 0x40c5c2
lea ecx, [ebp - 0x74]
call fcn.0040a447
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e66b
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40c5da
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040c54f
cmp eax, esi
jne 0x40c60c
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x40c5ca
lea ecx, [ebp - 0x74]
call fcn.0040a447
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0040a3d8
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040a447
mov eax, esi
jmp 0x40c5a8
Function at 0x40c914
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.0040ed90
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x7fe
push esi
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call fcn.0040edc0
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x1044]
push 0x400
push eax
call fcn.00414177
add esp, 0x20
test eax, eax
jns 0x40c975
xor eax, eax
mov word [ebp - 0x846], ax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0040edc0
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0040c896
push 0x42a404
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00413000
xor eax, eax
push esi
push eax
mov word [ebp - 0x844], ax
lea eax, [ebp - 0x842]
push eax
call fcn.0040edc0
add esp, 0x2c
mov eax, edi
push 2
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x40c9c4
sub eax, edx
sar eax, 1
cmp eax, 6
jbe 0x40ca14
mov ecx, 0x42a408
lea eax, [edi + eax*2 - 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ca06
test dx, dx
je 0x40ca02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ca06
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c9e0
xor eax, eax
jmp 0x40ca0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ca14
xor esi, esi
inc esi
jmp 0x40ca16
xor esi, esi
lea eax, [ebp - 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x40ca1c
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, str.Error:
test esi, esi
jne 0x40ca3a
mov eax, 0x42a428
lea ecx, [ebp - 0x1044]
push ecx
push eax
lea esi, [edi + edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, edi
push 0xffffffffffffffff
push eax
lea eax, [ebp + esi - 0x844]
push eax
call fcn.0040fd98
add esp, 0x20
test eax, eax
jns 0x40ca8b
xor eax, eax
movzx ecx, word [eax + 0x42a454]
mov word [ebp + eax - 0x4e], cx
add eax, ebx
test cx, cx
jne 0x40ca78
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.0040f160
lea edi, [ebp - 0x844]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x40caa8
lea eax, [ebp - 0x844]
mov esi, 0x42a45c
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e66b
leave
ret

Function at 0x40cb33
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push str.http:__java.com_inst_dl_redirect
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x40cb4b
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3f9c]
mov eax, 0x401c
call fcn.0040ed90
mov eax, dword [0x436208]
xor eax, ebp
mov dword [ebp + 0x3f98], eax
mov eax, dword [ebp + 0x3fa4]
push ebx
push esi
push edi
mov dword [ebp - 0x74], eax
xor esi, esi
xor eax, eax
mov ebx, 0xffe
mov dword [ebp - 0x78], esi
push ebx
mov word [ebp + 0x2f98], ax
lea eax, [ebp + 0x2f9a]
push esi
push eax
mov dword [ebp - 0x70], esi
call fcn.0040edc0
xor eax, eax
push ebx
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push esi
push eax
call fcn.0040edc0
add esp, 0x18
lea eax, [ebp - 0x80]
push eax
push 0x20019
push esi
push 0x42a620
mov edi, 0x800
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ccb4
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x2f98]
push eax
push esi
jmp 0x40cca3
lea eax, [ebp + 0x2f98]
push eax
push 0x42a678
push 0x42a614
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0040fd7a
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cc8b
push ebx
mov word [ebp + 0xf98], ax
lea eax, [ebp + 0xf9a]
push esi
push eax
call fcn.0040edc0
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xf98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push 0x42a6d0
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cc8b
cmp dword [ebp - 0x6c], esi
jbe 0x40cc8b
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x1f98]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push 0x42a6e8
push dword [ebp - 0x7c]
mov dword [ebp - 0x6c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
inc dword [ebp - 0x70]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x2f98]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x6c], edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40cbed
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0x1f98]
push eax
call fcn.0040c61a
mov ecx, dword [ebp + 0x3f98]
mov eax, dword [ebp - 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e66b
add ebp, 0x3f9c
leave
ret