joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001864d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000f7ca
and dword [ebp - 4], 0
cmp dword [0x10053280], 0
mov ebx, eax
jne 0x100186fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100187af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100187af
push eax
call fcn.1000f758
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10053280], eax
call esi
push eax
call fcn.1000f758
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10053284], eax
call esi
push eax
call fcn.1000f758
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10053288], eax
call esi
push eax
call fcn.1000f758
pop ecx
mov dword [0x10053290], eax
test eax, eax
je 0x100186fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000f758
pop ecx
mov dword [0x1005328c], eax
mov eax, dword [0x1005328c]
cmp eax, ebx
je 0x10018756
cmp dword [0x10053290], ebx
je 0x10018756
push eax
call fcn.1000f7d3
push dword [0x10053290]
mov esi, eax
call fcn.1000f7d3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10018756
test edi, edi
je 0x10018756
call esi
test eax, eax
je 0x1001874d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001874d
test byte [ebp - 0xc], 1
jne 0x10018756
or dword [ebp + 0x10], 0x200000
jmp 0x1001878f
mov eax, dword [0x10053284]
cmp eax, ebx
je 0x1001878f
push eax
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x1001878f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001878f
mov eax, dword [0x10053288]
cmp eax, ebx
je 0x1001878f
push eax
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x1001878f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10053280]
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x100187af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100187b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x40847d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov edx, 0x12
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x408483
call fcn.00417c90
mov edx, dword [esp + 0x50]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x54]
lea ecx, [esp + 4]
call fcn.0040b000
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
call fcn.0040b000
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov eax, str.runas
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], 1
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
jmp 0x4084ff
push dword [esp + 4]
call fcn.00417cf0
push dword [esp]
call fcn.00417cf0
push dword [esp + 8]
call fcn.00417cf0
add esp, 0x48
pop ebp
ret 0xc

Function at 0x408520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417c90
push dword [esp + 0x28]
call fcn.0040b1b0
mov edx, dword [esp + 0x20]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x24]
lea ecx, [esp + 4]
call fcn.0040b000
mov dword [esp + 8], 0
push edx
call fcn.00417af0
pop edx
push eax
push edx
call fcn.00417af0
pop edx
push eax
push 0xff
call fcn.0040c0e0
lea eax, [esp + 0x10]
push eax
call fcn.00417b60
mov dword [esp + 0x10], 0xff
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push dword [esp + 0xc]
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegOpenKeyExA
and eax, eax
je 0x4085b3
mov edx, str.Error_Opening_Key
lea ecx, [esp + 0xc]
call fcn.0040b008
jmp 0x40861a
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x1c]
call sub.ADVAPI32.DLL_RegQueryValueExA
and eax, eax
je 0x4085e8
mov edx, str.Error_Reading_Key
lea ecx, [esp + 0xc]
call fcn.0040b008
jmp 0x408611
push edx
call fcn.00417af0
pop edx
push eax
push edx
call fcn.00417af0
pop edx
push eax
mov ebx, dword [esp + 0x18]
dec ebx
push ebx
push dword [esp + 0x18]
call fcn.0040b810
lea eax, [esp + 0x10]
push eax
call fcn.00417b60
push dword [esp + 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0xc]
push edx
call fcn.00417af0
pop edx
push eax
push edx
call fcn.00417bf0
pop eax
push eax
call fcn.0040b140
pop edx
add eax, edx
jmp 0x408640
push dword [esp + 0xc]
call fcn.00417cf0
push dword [esp]
call fcn.00417cf0
push dword [esp + 4]
call fcn.00417cf0
add esp, 0x14
pop ebx
ret 0xc
Function at 0x408661
Capabilities:
Get storage device properties

Disassembly:
push ebp
push ebx
mov edx, 0x10
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x408668
call fcn.00417c90
mov edx, dword [esp + 0x4c]
lea ecx, [esp]
call fcn.0040b000
push dword [esp]
mov edx, 0x447021
pop ecx
call fcn.0040b180
je 0x4086a0
xor eax, eax
movsx eax, al
jmp 0x4087e0
push 0
push 0
push 3
push 0
push 3
push 0
push dword [esp + 0x18]
call sub.KERNEL32.dll_CreateFileA
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp ebx, 0xffffffff
je 0x4087d4
lea ebp, [esp + 0x10]
mov dword [ebp], 8
mov dword [ebp + 4], 0
mov dword [esp + 8], 0
push 0
lea eax, [esp + 0xc]
push eax
push 0xc
lea eax, [esp + 0x28]
push eax
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x2d1400
push dword [esp + 0x20]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x408732
mov ebx, dword [esp + 8]
cmp ebx, 0xc
jne 0x408732
mov eax, 1
jmp 0x408734
xor eax, eax
and eax, eax
je 0x408751
lea ebp, [esp + 0x1c]
movsx ebx, byte [ebp + 8]
cmp ebx, 1
jne 0x408751
movsx ebx, byte [esp + 0xc]
inc ebx
push ebx
pop eax
mov byte [esp + 0xc], al
lea ebp, [esp + 0x28]
mov dword [ebp], 7
mov dword [ebp + 4], 0
mov dword [esp + 8], 0
push 0
lea eax, [esp + 0xc]
push eax
push 0xc
lea eax, [esp + 0x40]
push eax
push 0xc
lea eax, [esp + 0x3c]
push eax
push 0x2d1400
push dword [esp + 0x20]
call sub.KERNEL32.dll_DeviceIoControl
and eax, eax
je 0x4087ab
mov ebx, dword [esp + 8]
cmp ebx, 0xc
jne 0x4087ab
mov eax, 1
jmp 0x4087ad
xor eax, eax
and eax, eax
je 0x4087cb
lea ebp, [esp + 0x34]
movsx ebx, byte [ebp + 8]
and ebx, ebx
jne 0x4087cb
movsx ebx, byte [esp + 0xc]
add ebx, 2
push ebx
pop eax
mov byte [esp + 0xc], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp + 0xc]
movsx eax, al
jmp 0x4087e0
push dword [esp]
call fcn.00417cf0
add esp, 0x40
pop ebx
pop ebp
ret 4
Function at 0x4087f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4087f7
call fcn.00417c90
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.0040b000
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
call fcn.0040b000
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 8]
call fcn.0040b000
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0xc]
call fcn.0040b000
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x10]
call fcn.0040b000
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x14]
call fcn.0040b000
push dword [esp]
mov edx, 0x447021
pop ecx
call fcn.0040b180
jne 0x40888e
push dword [esp + 4]
mov edx, 0x447021
pop ecx
call fcn.0040b180
jne 0x40888e
mov ebx, dword [esp + 0x48]
and ebx, ebx
jl 0x40888e
mov ebx, dword [esp + 0x54]
and ebx, ebx
jl 0x40888e
mov eax, 1
jmp 0x408890
xor eax, eax
and eax, eax
je 0x408898
xor eax, eax
jmp 0x40889d
mov eax, 1
and eax, eax
je 0x4088a8
xor eax, eax
jmp 0x4089e1
push 0
call sub.OLE32.DLL_CoInitialize
lea eax, [esp + 0x18]
push eax
mov ebp, 0x44a9cc
push ebp
push 1
push 0
mov ebp, 0x44a9bc
push ebp
call sub.OLE32.DLL_CoCreateInstance
mov ebx, eax
and ebx, ebx
jne 0x4089d4
sub esp, 4
push dword [esp + 4]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0xc]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
push eax
pop eax
add esp, 4
push dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
push dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
sub esp, 4
push dword [esp + 0x58]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push eax
pop eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
mov ebp, 0x44a9dc
push ebp
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax]
mov ebx, eax
and ebx, ebx
jne 0x4089ca
sub esp, 4
push 1
push dword [esp + 0xc]
call fcn.00417d50
push eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
push eax
push dword [esp + 4]
call fcn.00417dc0
pop eax
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 8]
jmp 0x4089ca
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.OLE32.DLL_CoUninitialize
mov eax, dword [esp + 0x24]
jmp 0x4089e1
push dword [esp]
call fcn.00417cf0
push dword [esp + 8]
call fcn.00417cf0
push dword [esp + 0x10]
call fcn.00417cf0
push dword [esp + 0x14]
call fcn.00417cf0
push dword [esp + 4]
call fcn.00417cf0
push dword [esp + 0xc]
call fcn.00417cf0
add esp, 0x28
pop ebx
pop ebp
ret 0x24
Function at 0x40c47e
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40c4d3
push dword [esp + 0x10]
push 0x40c3fd
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x44ca58]
test esi, esi
je 0x40c52c
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40c4cb
cmp byte [esi + 0x10], 0
je 0x40c4cb
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40c4a7
jmp 0x40c52c
mov esi, dword [0x44ca58]
test esi, esi
je 0x40c52c
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40c525
cmp byte [esi + 0x11], 0
je 0x40c501
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40c518
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x44ca58
call fcn.00417a25
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40c4e0
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40d700
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x44ca64], 0
jne 0x40d70e
call fcn.0040d6a0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x44ca68]
call esi
test eax, eax
jne 0x40d731
call fcn.0040d6a0
push dword [0x44ca68]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x40d740
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x40d7a0
mov ebx, 0x10
test edi, edi
jns 0x40d7a9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x40d772
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40d7c0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x44ca64], 0
jne 0x40d7ce
call fcn.0040d6a0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x44ca68]
call esi
mov edx, eax
test edx, edx
jne 0x40d7f5
call fcn.0040d6a0
push dword [0x44ca68]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x40d828
mov ebx, 0x10
test esi, esi
jns 0x40d831
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x40d840
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40dbbc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
push edi
mov edi, ebp
test esi, esi
je 0x40dce0
push dword [esp + 0x18]
push dword [0x44ce24]
call fcn.0041731d
test eax, eax
je 0x40dce0
push esi
mov dword [esp + 0x24], ebp
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
jmp 0x40dc09
mov cl, byte [eax]
cmp cl, 0x2e
je 0x40dc12
cmp cl, 0x2f
je 0x40dc0d
cmp cl, 0x5c
je 0x40dc0d
dec eax
cmp eax, esi
ja 0x40dbf7
cmp byte [eax], 0x2e
jne 0x40dc17
inc eax
mov dword [esp + 0x20], eax
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x40dcdf
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea eax, [ebp - 1]
cmp eax, 0x5f5e0fe
ja 0x40dcd8
push ebp
push 0
push dword [0x44c824]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x40dcd8
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x28]
test edi, edi
je 0x40dc87
cmp byte [edi], 0
jne 0x40dcb7
mov edi, str.application_octet_stream
xor esi, esi
push dword [esp + 0x24]
push dword [esi*8 + 0x44a9f4]
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
je 0x40dcac
inc esi
cmp esi, 0x5d
jb 0x40dc8e
jmp 0x40dcb3
mov edi, dword [esi*8 + 0x44a9f0]
mov esi, dword [esp + 0x10]
push edi
push ebp
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0040e5b4
push esi
push 0
push dword [0x44c824]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret 0x10
Function at 0x40e234
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x44ce24]
call fcn.0041731d
mov edi, eax
test edi, edi
je 0x40e35c
cmp dword [ebp + 0xc], ebx
je 0x40e35c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x2c], 0xa
cmp dword [edi + 0x18], ebx
je 0x40e27e
push dword [edi + 0x18]
push ebx
push dword [0x44c824]
call esi
cmp dword [edi + 0x1c], ebx
je 0x40e28f
push dword [edi + 0x1c]
push ebx
push dword [0x44c824]
call esi
cmp dword [edi + 0x20], ebx
je 0x40e2a0
push dword [edi + 0x20]
push ebx
push dword [0x44c824]
call esi
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x24], eax
cmp dword [ebp + 0x18], ebx
je 0x40e2ca
push dword [ebp + 0x18]
call fcn.0043da70
mov esi, eax
push esi
call fcn.0040e53d
push esi
mov dword [edi + 0x18], eax
call fcn.0043da60
cmp dword [ebp + 0x1c], ebx
je 0x40e2e8
push dword [ebp + 0x1c]
call fcn.0043da70
mov esi, eax
push esi
call fcn.0040e53d
push esi
mov dword [edi + 0x1c], eax
call fcn.0043da60
push dword [ebp + 0xc]
call fcn.0043da70
mov esi, eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
sub eax, 0xffffff80
push eax
push ebx
push dword [0x44c824]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0x10]
mov dword [edi + 0x20], eax
push esi
push str.smtp:___s:_d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
push esi
call fcn.0043da60
test byte [ebp + 0x14], 1
pop esi
je 0x40e353
lea eax, [ebp + 0x18]
push eax
push ebx
push edi
push 0x40e52e
push 0x20000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40e35c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x40e35c
push edi
call fcn.0040e3be
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 0x18

Function at 0x40e7b9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40e843
cmp dword [ebp + 0xc], edi
je 0x40e843
push esi
push 0x28
push 8
push dword [0x44c824]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__strdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__strdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x40e832
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x40e947
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40e82a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x40e842
push esi
call fcn.0040e9f2
jmp 0x40e841
push esi
call fcn.0040e85c
push esi
mov edi, eax
call fcn.0040e9f2
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x40e85c
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004188c0
mov edi, eax
test edi, edi
je 0x40e92c
push dword [esp + 0x18]
call fcn.0043da70
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40e91c
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x40e8c5
push 1
push 0x34
push edi
call fcn.00418950
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00418950
push 0x40e956
push 0x4e2b
push edi
call fcn.00418950
push esi
push 0x2711
push edi
call fcn.00418950
push edi
call fcn.00418940
add esp, 0x28
test eax, eax
jne 0x40e907
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x40e91c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x18]
call fcn.0043da60
push edi
call fcn.004188a0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x40e93f
cmp dword [esi + 4], 0xfffffffc
je 0x40e93f
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40ec49
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x44ca78], 0
jne 0x40ec75
push 0x40eb98
push 0x10
push 0x2c
mov dword [0x44ca78], edi
call fcn.004173f0
mov dword [0x44ca74], eax
cmp word [0x44ca6c], 0
jne 0x40ed11
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x40eca0
mov word [0x44ca6c], di
jmp 0x40eca8
xor eax, eax
mov word [0x44ca6c], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x44ca88], eax
test eax, eax
je 0x40ed11
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43f9c4
push eax
call esi
push 0x43f9d0
push dword [0x44ca88]
mov dword [0x44ca7c], eax
call esi
push str.getnameinfo
push dword [0x44ca88]
mov dword [0x44ca80], eax
call esi
cmp dword [0x44ca7c], 0
mov dword [0x44ca84], eax
pop esi
je 0x40ed11
cmp dword [0x44ca80], 0
je 0x40ed11
test eax, eax
je 0x40ed11
mov dword [0x44ca70], edi
movsx eax, word [0x44ca6c]
pop edi
add esp, 0x190
ret