joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020d0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d3d0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x44f744]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x4506c8], 0x10
lea ecx, [ebp - 0x10]
mov eax, 0x4506b4
cmovae eax, dword [0x4506b4]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x402177
lea ecx, [ebp - 0x18]
call fcn.00401980
mov edx, str.BN_Initialize_with_net
mov dword [ebp - 4], 0
mov ecx, 0x455328
call fcn.00408670
push eax
call fcn.00408c80
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x402169
push dword [ebp - 0x18]
call fcn.0040ed12
add esp, 4
test eax, eax
je 0x402169
push eax
call fcn.0040ed7e
add esp, 4
push 0
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
jmp 0x4021c7
lea ecx, [ebp - 0x20]
call fcn.00401980
mov edx, str.BN_Initialize_usb_only
mov dword [ebp - 4], 1
mov ecx, 0x455328
call fcn.00408670
push eax
call fcn.00408c80
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x1c], 0
je 0x4021c3
push dword [ebp - 0x20]
call fcn.0040ed12
add esp, 4
test eax, eax
je 0x4021c3
push eax
call fcn.0040ed7e
add esp, 4
push 0
push 0
push 0x7e8
push esi
call dword [sym.imp.USBInterface.dll__BN_Initialize_16]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44f744]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x44f744]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x406894
cmp byte [ebx + 0x45], 0
je 0x406894
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4067a0
xor al, al
jmp 0x406896
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4067e0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x406821
dec eax
je 0x406825
sub eax, 2
je 0x40687b
xor bl, bl
jmp 0x40687d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40685c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00410e0a
add esp, 0x10
cmp esi, eax
jne 0x40681d
cmp byte [ebx + 0x45], 0
je 0x40687b
test esi, esi
jne 0x4067e0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004062c0
jmp 0x4067e0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x406890
push dword [esp + 0x18]
call fcn.0040f65a
add esp, 4
mov al, bl
jmp 0x406896
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040f64b
mov esp, ebp
pop ebp
ret
Function at 0x40d050
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43df88
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44f744]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x44f744]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0040d2f0
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.0040cf70
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x40d0cd
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.0040f770
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40d0f6
push dword [esp + 0x10]
call fcn.0040f65a
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040f64b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4159e6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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_CreateThread]
pop ebp
ret
Function at 0x42bd7c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44f744]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041616b
mov dword [ebp - 0x14], eax
cmp dword [0x4551d8], esi
jne 0x42be6f
push 0x800
push esi
push 0x446d84
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42bdfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42bf4f
push esi
push esi
push 0x446d84
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42bf4f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42bf4f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4551d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4551dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4551e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4551e8], eax
test eax, eax
je 0x42be6c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4551e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42be94
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42be87
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42bea9
push 4
pop eax
jmp 0x42bf51
cmp dword [ebp - 0x14], esi
je 0x42bea9
push dword [0x4551d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42be8e
mov eax, dword [0x4551e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42bf07
cmp dword [0x4551e8], edi
je 0x42bf07
push eax
call ebx
push dword [0x4551e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42bf07
test eax, eax
je 0x42bf07
call ecx
test eax, eax
je 0x42befc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42befc
test byte [ebp - 8], 1
jne 0x42bf07
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42bf37
mov eax, dword [0x4551dc]
cmp eax, edi
je 0x42bf34
push eax
call ebx
test eax, eax
je 0x42bf34
call eax
mov esi, eax
test esi, esi
je 0x42bf34
mov eax, dword [0x4551e0]
cmp eax, edi
je 0x42bf34
push eax
call ebx
test eax, eax
je 0x42bf34
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4551d8]
call ebx
test eax, eax
je 0x42bf4f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42bf51
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f64b
mov esp, ebp
pop ebp
ret
Function at 0x4014e0
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x4190f4
push eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
test eax, eax
jne 0x4014ff
mov eax, 1
ret
push str.fixtoolexe1
call fcn.004086c0
add esp, 4
push 0x44
push 0x4190e0
push 0x419058
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
cmp eax, 6
sete cl
mov eax, ecx
ret

Function at 0x401590
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x41d6a8], eax
call fcn.00401580
jmp fcn.00413f36
Function at 0x401ea0
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
sub esp, 0x104
call fcn.0040e480
call fcn.004060e0
call fcn.004109d0
call fcn.00408ca0
call fcn.00408ec0
call fcn.004092a0
call fcn.00410870
push 1
call fcn.00410140
add esp, 4
call fcn.00410110
call fcn.0040f820
mov eax, dword [0x41d920]
test eax, eax
je 0x401ef5
call fcn.00407020
mov dword [0x41d920], 0
push ebx
push esi
call fcn.0040eaa0
call fcn.0040e9b0
push 1
call fcn.0040e840
push 1
call fcn.0040e6f0
call fcn.00409a90
push 1
call fcn.0040d250
push 1
mov esi, eax
call fcn.0040e6b0
push 1
or esi, eax
call fcn.0040cf70
push 1
or esi, eax
call fcn.0040bcf0
push 1
or esi, eax
call fcn.0040da30
push 1
or esi, eax
call fcn.0040d7e0
push 1
or esi, eax
call fcn.0040d8e0
push 1
or esi, eax
call fcn.0040cc90
push 1
or esi, eax
call fcn.0040cd40
push 1
or esi, eax
call fcn.0040d410
push 1
or esi, eax
call fcn.0040d110
push 1
or esi, eax
call fcn.0040d070
push 1
or esi, eax
call fcn.0040cdd0
push 1
or esi, eax
call fcn.0040cc30
add esp, 0x40
or esi, eax
push 1
call fcn.0040c610
push 1
or esi, eax
call fcn.0040c3d0
push 1
or esi, eax
call fcn.0040bf70
push 1
or esi, eax
call fcn.0040bc60
push 1
or esi, eax
call fcn.0040ba10
push 1
or esi, eax
call fcn.0040b770
push 1
or esi, eax
call fcn.0040b4a0
push 1
or esi, eax
call fcn.0040b0d0
push 1
or esi, eax
call fcn.0040aab0
push 1
or esi, eax
call fcn.0040abf0
or esi, eax
call fcn.0040a970
or esi, eax
push 1
mov dword [0x41d924], esi
call fcn.0040a790
push 1
call fcn.00409f90
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x30
test eax, eax
je 0x40209e
push 0x44
push 0x4190e0
push 0x419240
push 0
call ebx
cmp eax, 6
jne 0x40209e
push ebp
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.killer_dummycom.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
push str.http:__dl.360safe.com_killer_dummycom.exe
rep movsb byte es:[edi], byte [esi]
push 0
call sub.urlmon.dll_URLDownloadToFileA
pop edi
pop ebp
test eax, eax
jne 0x40209e
push 5
push eax
lea ecx, [esp + 0x10]
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
call fcn.00409e00
add esp, 4
test eax, eax
je 0x4020c6
push 0x40
push 0x4190e0
push 0x4191c0
push 0
call ebx
mov dword [0x41d924], 1
call fcn.00408870
test eax, eax
je 0x4020d4
call fcn.00408a10
mov eax, dword [0x41d740]
test eax, eax
jne 0x4020fc
mov eax, dword [0x41d924]
test eax, eax
mov eax, 0x419180
jne 0x4020f0
mov eax, 0x419160
push 0x10
push 0x4190e0
push eax
push 0
call ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x4029a0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x414238
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x40], ebp
je 0x4029dd
push 5
push ebp
push ebp
push str.http:__360safe.qihoo.com_download.html
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x402ac4
mov eax, dword [0x41915c]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [0x41915c], eax
jne 0x402abf
mov edx, dword [esi + 4]
push 0x34
push 0x4193b4
push 0x419364
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402abf
mov eax, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push eax
call edi
mov cl, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x18], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], ebp
push edx
call fcn.004054a0
lea eax, [esp + 0x1c]
push eax
push str.fixtoolexe
call fcn.00405770
mov ecx, dword [esi + 4]
add esp, 0x10
push 5
push ecx
call edi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
mov edi, dword [ebx]
cmp edi, ebx
je 0x402aa8
mov esi, edi
mov edi, dword [edi]
push ebp
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
lea ecx, [esi + 8]
call fcn.004031d0
push esi
call fcn.00413190
mov ecx, dword [esp + 0x20]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esp + 0x1c], ecx
jne 0x402a76
mov eax, dword [esp + 0x18]
push eax
call fcn.00413190
add esp, 4
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
pop edi
pop ebx
call fcn.00401ea0
mov ecx, dword [esp + 0x18]
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x4037c0
Capabilities:
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [0x41d6b8]
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov esi, ecx
push 0xc
call edi
push eax
push 0xb
call edi
push eax
push 1
push 0x80
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 4]
push 1
push 0x80
push eax
call ebp
mov ecx, dword [0x41d6b8]
push 0
push 0x32
mov dword [esp + 0x18], ecx
call edi
push eax
push 0x31
call edi
mov edx, dword [esp + 0x18]
push eax
push 1
push 0x80
push edx
call ebx
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push eax
call ebp
lea ecx, [esi + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x28], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 4]
push 0x3ee
push eax
mov dword [esi + 0x40], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 8
Function at 0x403930
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x414278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x403975
mov ecx, dword [esi + 0x24]
call fcn.00405230
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
call dword [eax + 8]
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403961
mov ecx, dword [esi + 4]
push ebp
push edi
push 0x3eb
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x403a8f
mov edx, dword [esi + 0x34]
sub edx, eax
sar edx, 2
cmp edi, edx
jae 0x403a8f
mov eax, dword [0x419030]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0xc]
mov dword [esp + 0x18], 0
mov ecx, dword [eax + edi*4]
push ecx
push 0x4194dc
push edx
call fcn.004043e0
mov eax, dword [esi + 0x30]
add esp, 0xc
mov eax, dword [eax + edi*4]
push eax
call ebp
test eax, eax
je 0x403a0e
mov eax, 0x4194d4
test eax, eax
jne 0x4039fc
push eax
jmp 0x403a3c
push 0x4194d4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4194d4
jmp 0x403a3c
mov eax, dword [esi + 0x30]
push 4
push 0
mov eax, dword [eax + edi*4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, 0x4194c0
test ecx, ecx
jne 0x403a2c
xor eax, eax
jmp 0x403a37
push 0x4194c0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4194c0
push eax
lea ecx, [esp + 0x14]
call fcn.00404b70
mov edx, dword [esp + 0xc]
mov ecx, esi
push edx
call fcn.004038b0
mov eax, dword [esp + 0xc]
mov edx, dword [0x419034]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x403a89
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403a89
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00413190
add esp, 4
inc edi
jmp 0x40399e
mov eax, dword [esi + 4]
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4052a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x5c
push esi
push edi
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x4052e5
mov eax, dword [esp + 0x68]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4052ed
push esi
call fcn.00413190
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
push ebx
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.00411330
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
xor ebp, ebp
lea edx, [esp + 0x10]
push ebp
push edx
push 0x1000
push esi
push edi
mov dword [esp + 0x24], 0x1000
call ebx
test eax, eax
je 0x405374
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405374
test ebp, ebp
jne 0x405345
mov eax, dword [esp + 0x78]
test eax, eax
je 0x405340
push esi
call fcn.004053b0
add esp, 4
test eax, eax
je 0x405374
mov ebp, 1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
call fcn.00410a20
add esp, 0xc
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x1000
push 0
push edx
push 0x1000
push esi
push edi
call ebx
test eax, eax
jne 0x40531f
push esi
call fcn.00413190
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
pop ebx
je 0x4052e5
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00410b1f
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x5c
ret

Function at 0x4053b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415490
push 0x414114
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp word [ecx], 0x5a4d
jne 0x405427
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x405427
cmp word [eax + 6], 0
je 0x405427
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405770
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x474
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x208]
lea edx, [esp]
push ecx
push edx
call fcn.00405810
add esp, 8
test eax, eax
je 0x405807
mov eax, dword [esp + 0x47c]
mov edx, dword [esp + 0x478]
lea ecx, [esp + 0x104]
push eax
push ecx
lea eax, [esp + 8]
push edx
push eax
call fcn.00405a50
add esp, 0x10
test eax, eax
je 0x405807
lea ecx, [esp + 0x104]
lea edx, [esp + 0x30c]
push ecx
push str._files:_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x30c]
lea ecx, [esp + 0x208]
push 5
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x474
ret
Function at 0x405a50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x19c
mov eax, dword [esp + 0x1a0]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1b4]
push edi
push 0x76697275
push str.killer
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0x1b8]
mov eax, dword [ecx + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x405b6b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push 0
push edx
push eax
call fcn.004052a0
add esp, 0xc
test eax, eax
je 0x405b58
mov eax, dword [esi + 8]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x405ada
mov eax, dword [esi + 8]
push 0x2f2f
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x405b58
inc eax
lea ecx, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x1b8]
push eax
push str.typeth_sname_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x20]
push ebp
push str.ITEM_d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x20]
push edi
push eax
push str.file
push ecx
call ebx
lea edx, [esp + 0x84]
push edi
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00405b80
add esp, 8
lea ecx, [esp + 0x24]
push eax
push 0x419670
push ecx
call ebx
lea edx, [esp + 0xa8]
push edi
push edx
lea eax, [esp + 0x28]
push 0x41966c
push eax
call ebx
inc ebp
mov ecx, dword [esp + 0x1bc]
mov esi, dword [esi]
cmp esi, dword [ecx + 4]
jne 0x405a96
pop ebx
xor eax, eax
pop edi
test ebp, ebp
pop esi
pop ebp
setne al
add esp, 0x19c
ret

Function at 0x405cb0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x41d8a4]
test eax, eax
jne 0x405d6d
push esi
push edi
push str.WINTRUST.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.CryptCATAdminAcquireContext
push esi
call edi
push str.CryptCATAdminReleaseContext
push esi
mov dword [0x41d88c], eax
call edi
push str.CryptCATAdminCalcHashFromFileHandle
push esi
mov dword [0x41d890], eax
call edi
push str.CryptCATAdminEnumCatalogFromHash
push esi
mov dword [0x41d894], eax
call edi
push str.CryptCATAdminReleaseCatalogContext
push esi
mov dword [0x41d898], eax
call edi
push str.WinVerifyTrust
push esi
mov dword [0x41d89c], eax
call edi
mov ecx, dword [0x41d88c]
pop edi
test ecx, ecx
mov dword [0x41d8a0], eax
pop esi
je 0x405d63
mov ecx, dword [0x41d890]
test ecx, ecx
je 0x405d63
mov ecx, dword [0x41d894]
test ecx, ecx
je 0x405d63
mov ecx, dword [0x41d898]
test ecx, ecx
je 0x405d63
mov ecx, dword [0x41d89c]
test ecx, ecx
je 0x405d63
test eax, eax
je 0x405d63
mov eax, 1
mov dword [0x41d8a4], eax
ret
mov eax, 2
mov dword [0x41d8a4], eax
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
ret