joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f87
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x433]
push ebx
push eax
mov esi, 0x80004005
mov byte [ebp - 0x434], bl
call fcn.0041b010
push 7
xor eax, eax
mov byte [ebp - 0x34], bl
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call fcn.0041d31d
add esp, 0x10
test eax, eax
je 0x40205b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d31d
mov eax, dword [ebp - 4]
imul eax, eax, 0xa
add esp, 0x14
mov dword [ebp - 4], eax
lea eax, [ebp - 0x434]
push eax
push 0x400
push ebx
push dword [ebp + 0xc]
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40205b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x434a24
lea eax, [ebp - 0x434]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40205b
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0xa]
cmp ecx, dword [ebp - 8]
jg 0x402059
jne 0x40205b
movzx ecx, word [eax + 8]
cmp ecx, dword [ebp - 0xc]
jg 0x402059
jne 0x40205b
movzx eax, word [eax + 0xe]
cmp eax, dword [ebp - 4]
jl 0x40205b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40367c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x603]
push ebx
push eax
mov byte [ebp - 0x604], bl
call fcn.0041b010
push 0xff
lea eax, [ebp - 0x203]
push ebx
push eax
mov byte [ebp - 0x204], bl
call fcn.0041b010
mov esi, dword [ebp + 8]
add esp, 0x18
cmp dword [esi + 0x184c], ebx
jne 0x4036d1
cmp dword [esi + 0x58], ebx
je 0x4036d1
xor ecx, ecx
jmp 0x4036d4
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], ebx
jne 0x403715
mov eax, dword [esi + 0x1848]
cmp eax, ebx
je 0x4036e7
cmp ecx, ebx
je 0x403715
mov edx, dword [esi]
push eax
push ecx
push esi
call dword [edx + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40370b
push 1
call fcn.0041d31d
pop ecx
test eax, eax
je 0x403715
mov eax, 0x80070204
jmp 0x40380a
call fcn.0041d31d
jmp 0x403808
cmp dword [esi + 0x184c], ebx
je 0x40372b
push 0x80
lea eax, [esi + 8]
push eax
call fcn.0041d31d
push 0x104
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.004031f7
mov edi, eax
cmp edi, ebx
jl 0x4037f4
push str.Download_Status:_Download_Complete
call fcn.0041d31d
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x403789
push dword [ebp + 0xc]
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x104]
push ecx
push esi
call dword [eax + 0x24]
mov edi, eax
cmp edi, ebx
jge 0x403808
push str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x403802
mov esi, dword [sym.imp.user32.dll_LoadStringA]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x72
push dword [0x4470b0]
call esi
push 0x400
lea eax, [ebp - 0x604]
push eax
push 0x74
push dword [0x4470b0]
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0x10
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x604]
push eax
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
push 0xfffffffffffffffb
call fcn.0041d31d
call fcn.0041974f
mov dword [esp], str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
jmp 0x403802
push 0xffffffffffffffc3
call fcn.0041d31d
mov dword [esp], str.Download_Status:_Download_Failed
call fcn.0041d31d
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4091f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push 0x400
lea eax, [ebp - 0x454]
push eax
xor esi, esi
push esi
call fcn.00418804
add esp, 0xc
test eax, eax
jne 0x40921f
inc eax
jmp 0x409288
push edi
push str._binjavacpl.exe
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.0041b010
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push str.__tab_update
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
pop edi
test eax, eax
je 0x409286
push dword [ebp - 0x10]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
leave
ret 4

Function at 0x409939
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x4470ac]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call fcn.0041d31d
mov dword [esi + 0x3c], eax
call fcn.0041d31d
push dword [esi + 0x20]
mov edi, dword [sym.imp.kernel32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x409860
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
cmp eax, ebx
je 0x4099c0
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.user32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.0041d31d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40ad3e
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push 0x814
push 0x43fdb0
call fcn.0041b9f0
push 0x4358f2
call fcn.004012da
pop ecx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push dword [ebp + 8]
push 0x446e04
mov ecx, 0x446e34
call fcn.0041d31d
mov dword [ebp + 8], 1
mov dword [ebp - 0x1c], ebx
mov esi, 0x4359c8
lea edi, [ebp - 0x24]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.0041d31d
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x40ae8a
mov edi, dword [sym.imp.kernel32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x40af73
push str.RegServer
push esi
call edi
test eax, eax
je 0x40ae87
push 4
push str.auto
push esi
call fcn.0041d31d
add esp, 0xc
test eax, eax
jne 0x40adf1
mov dword [0x444b50], ebx
mov dword [str.jau_m], 0x4359ec
jmp 0x40ae6f
push 9
push str.scheduled
push esi
call fcn.0041d31d
add esp, 0xc
test eax, eax
jne 0x40ae11
mov dword [0x446e28], 1
jmp 0x40ae6f
push 7
push str.pending
push esi
call fcn.0041d31d
add esp, 0xc
test eax, eax
jne 0x40ae31
mov dword [0x446e2c], 1
jmp 0x40ae6f
push 8
push 0x435a04
push esi
call fcn.0041d31d
add esp, 0xc
test eax, eax
jne 0x40ae51
mov dword [0x446e30], 1
jmp 0x40ae6f
push 4
push str.test
push esi
call fcn.0041d31d
add esp, 0xc
test eax, eax
jne 0x40ae6f
lea eax, [esi + 5]
push eax
call fcn.0041d31d
pop ecx
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.0041d31d
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x40adab
jmp 0x40ae8a
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
je 0x40af73
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push str.SunJavaUpdateCheckerMutex
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x40af35
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x40af35
call fcn.0041d31d
test eax, eax
jne 0x40af17
mov edi, 0x400
push edi
lea eax, [ebp - 0x424]
push eax
push 0x72
push dword [0x4470b0]
mov esi, dword [sym.imp.user32.dll_LoadStringA]
call esi
push edi
lea eax, [ebp - 0x824]
push eax
push 0x75
push dword [0x4470b0]
call esi
push 0x10
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x824]
push eax
push ebx
call dword [sym.imp.user32.dll_MessageBoxA]
mov dword [ebp - 0x1c], 0x80004005
jmp 0x40af6a
push dword [0x444b54]
push 0x435a34
push ebx
call fcn.0041d31d
add esp, 0xc
call fcn.0041d31d
mov dword [ebp - 0x1c], eax
jmp 0x40af6a
mov dword [ebp - 0x1c], 0x64
cmp dword [ebp - 0x20], ebx
je 0x40af6a
cmp dword [0x444b50], ebx
jne 0x40af51
cmp dword [0x446e28], ebx
je 0x40af6a
push dword [0x444b54]
push 0x435a3c
push ebx
call fcn.0041d31d
add esp, 0xc
call fcn.0040d2d8
or dword [ebp - 4], 0xffffffff
call fcn.0040af90
mov ecx, 0x446e34
call fcn.00409daa
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.0041ba2b
ret 0x10
Function at 0x40bbd5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x432dbb
call fcn.0041b53c
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 8], ebx
je 0x40bc6a
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041d31d
add esp, 0xc
test eax, eax
js 0x40bc6a
mov esi, dword [ebp - 0x14]
cmp esi, 0x400
jg 0x40bc4e
push esi
call fcn.00402aa1
pop ecx
test al, al
je 0x40bc4e
mov eax, esi
call fcn.0041b560
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40bc5a
push esi
lea ecx, [ebp - 0x18]
call fcn.0041d31d
mov edi, dword [ebp - 0x18]
push 3
push esi
push dword [ebp + 8]
push eax
call fcn.0041d31d
cmp eax, ebx
jne 0x40bc9c
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40bc8e
lea ecx, [ebp - 0x424]
call fcn.0040a6ea
jmp 0x40bc8e
push edi
mov edi, dword [edi]
call fcn.0041d31d
pop ecx
cmp edi, ebx
jne 0x40bc85
mov eax, 0x8007000e
jmp 0x40bd9a
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x40bcbb
call fcn.00403f7a
mov esi, eax
jmp 0x40bd70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40bcd8
call fcn.00403f7a
jmp 0x40bd65
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x40bcce
push esi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp + 8], esi
cmp eax, esi
jae 0x40bd02
mov esi, 0x8007000e
jmp 0x40bd67
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.0041d31d
mov dword [ebp - 4], 1
jmp 0x40bd2e
cmp dword [ebp - 0x424], 0
je 0x40bcfb
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x424]
call fcn.0041d31d
mov eax, dword [ebp - 0x424]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], 0
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.0041d31d
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40bd94
lea ecx, [ebp - 0x424]
call fcn.0040a6ea
jmp 0x40bd94
push edi
mov edi, dword [edi]
call fcn.0041d31d
pop ecx
test edi, edi
jne 0x40bd8b
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40ed58
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0x45c
push 0x440190
call fcn.0041b9f0
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 4
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.wininet.dll_InternetGetConnectedState]
test eax, eax
je 0x40ed8c
mov eax, ebx
jmp 0x40eed3
push str.http:__java.sun.com
push 0x436834
lea eax, [ebp - 0x16c]
push eax
call fcn.0041d31d
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x436838
call dword [sym.imp.wininet.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x40eec7
push 0x3c
pop edi
push edi
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.0041b010
add esp, 0xc
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x36c]
mov dword [ebp - 0x5c], eax
mov eax, 0x100
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov word [ebp - 0x54], cx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.wininet.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x436752
push 0x436753
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_InternetConnectA]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x40eec7
push esi
push 0x4400000
push esi
push 0x43675a
push 0x436840
lea ecx, [ebp - 0x26c]
push ecx
push 0x43684c
push eax
call dword [sym.imp.wininet.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, esi
je 0x40eec7
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.wininet.dll_HttpSendRequestA]
test eax, eax
jne 0x40ee9f
call dword [sym.imp.kernel32.dll_GetLastError]
sub eax, 0x2ee2
je 0x40ee9c
sub eax, 5
je 0x40ee9c
sub eax, 0x16
jne 0x40ee9f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push edi
call dword [sym.imp.wininet.dll_HttpQueryInfoA]
test eax, eax
je 0x40eec7
cmp dword [ebp - 0x20], 0x197
jne 0x40eec7
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.0040eedb
mov eax, dword [ebp - 0x1c]
call fcn.0041ba2b
ret
Function at 0x410901
Capabilities:
Get geographical location

Disassembly:
push esi
push 0
push 0x436db4
push 0
call fcn.0041d31d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x410924
push str.Country_Code_deleted
call fcn.0041d31d
pop ecx
mov eax, esi
pop esi
ret

Function at 0x4114e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xff
push dword [ebp + 0xc]
lea esi, [edi + 0x108]
push esi
call dword [sym.imp.kernel32.dll_lstrcpynA]
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
je 0x4116d6
push esi
call fcn.0041d31d
pop ecx
test eax, eax
je 0x4116d6
lea eax, [ebp + 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push 0x437138
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4116d6
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x988]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437160
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x588]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437170
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x208]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437184
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1408]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x437198
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x104
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1008]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371a8
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x400
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0xd88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371b4
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0xe88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371c4
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x100
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x80
push eax
lea eax, [edi + 0xf88]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371d0
push dword [ebp + 0xc]
call esi
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1560]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371dc
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x80
call esi
test eax, eax
jne 0x411686
cmp dword [ebp + 8], 3
jb 0x411686
mov dword [edi + 0x15e0], 1
mov dword [ebp + 8], 0x50
cmp dword [edi + 0x15e0], ebx
je 0x4116bf
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x1510]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x4371e8
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x4116b9
cmp dword [ebp + 8], 0x28
je 0x4116bf
mov dword [edi + 0x15e0], ebx
push dword [ebp + 0xc]
mov dword [edi + 0x150c], 1
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
jmp 0x4116db
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4117ae
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x2001f
xor ebx, ebx
push ebx
push 0x437248
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x4117dd
mov eax, 0x80004005
jmp 0x4119af
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x108]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4117ed
sub eax, ecx
push eax
push esi
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExA]
push 1
push ebx
push 0x437270
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x988]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411819
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x437280
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x588]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411840
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x437290
push dword [ebp - 4]
call esi
lea ecx, [edi + 0x208]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411867
sub eax, dword [ebp + 8]
push eax
push ecx
push 1
push ebx
push 0x4372a4
push dword [ebp - 4]
call esi
lea eax, [edi + 0x1408]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x4118b8
lea eax, [edi + 0x1408]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41189a
sub eax, ecx
push eax
lea eax, [edi + 0x1408]
push eax
push 1
push ebx
push 0x4372b8
push dword [ebp - 4]
call esi
lea eax, [edi + 0x1008]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x4118f0
lea eax, [edi + 0x1008]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4118d2
sub eax, ecx
push eax
lea eax, [edi + 0x1008]
push eax
push 1
push ebx
push 0x4372c8
push dword [ebp - 4]
call esi
lea eax, [edi + 0xd88]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x411928
lea eax, [edi + 0xd88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41190a
sub eax, ecx
push eax
lea eax, [edi + 0xd88]
push eax
push 1
push ebx
push 0x4372d4
push dword [ebp - 4]
call esi
lea eax, [edi + 0xf88]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x411960
lea eax, [edi + 0xf88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411942
sub eax, ecx
push eax
lea eax, [edi + 0xf88]
push eax
push 1
push ebx
push 0x4372e4
push dword [ebp - 4]
call esi
lea eax, [edi + 0xe88]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x411998
lea eax, [edi + 0xe88]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41197a
sub eax, ecx
push eax
lea eax, [edi + 0xe88]
push eax
push 1
push ebx
push 0x4372f0
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov ecx, edi
call fcn.0041d31d
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x4150ef
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4330d0
call fcn.0041b53c
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x4151e4
cmp byte [esi + 0x49], bl
je 0x4151e4
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x415127
xor al, al
jmp 0x4151e6
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0041d31d
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x415187
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x41518c
dec eax
je 0x415190
dec eax
dec eax
je 0x4151e0
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041d31d
mov al, bl
pop edi
jmp 0x4151e6
mov edx, dword [ebp - 0x2c]
jmp 0x415151
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41519c
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x4151c2
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4151af
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041dea0
add esp, 0x10
cmp edi, eax
jne 0x415174
cmp byte [esi + 0x49], 0
je 0x4151e0
test edi, edi
jne 0x415143
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0041d31d
jmp 0x415143
mov bl, 1
jmp 0x415176
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x415906
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x433098
call fcn.0041b53c
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x415912
xor eax, eax
jmp 0x41593a
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x41594a
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x41594a
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x41596a
mov ecx, esi
call fcn.004121d5
cmp dword [esi + 0x44], edi
jne 0x41596f
push dword [esi + 0x54]
push ebx
call fcn.0041d31d
pop ecx
pop ecx
test al, al
jne 0x415937
or eax, 0xffffffff
jmp 0x415939
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.0041d31d
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x415a22
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x415a40
cmp eax, 1
jg 0x415a2a
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4159d6
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x4159fc
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x4159e9
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0041dea0
add esp, 0x10
cmp edi, eax
jne 0x415a40
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x415a56
test edi, edi
jne 0x41598e
cmp dword [ebp - 0x24], 0x20
jae 0x415a40
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.0041d31d
jmp 0x41598e
mov edx, dword [ebp - 0x34]
jmp 0x4159a0
cmp eax, 3
jne 0x415a40
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.0041d31d
pop ecx
pop ecx
test al, al
jne 0x415a56
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.0041d31d
mov eax, esi
jmp 0x415939
mov esi, dword [ebp + 8]
jmp 0x415a43