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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100118c
push eax
mov ebx, 0x10012d8
push ebx
mov dword [ebp - 0x41c], eax
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x418], 0x80004005
call fcn.0101c609
push 0x10011a8
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push ebx
push edi
push eax
call fcn.0101c609
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call edi
mov dword [esi + 4], eax
lea eax, [ebp - 0x414]
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x101c83b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10012c8
push eax
call edi
push 0x10012b8
push dword [esi]
mov dword [esi + 0x124], eax
call edi
push 0x10012a8
push dword [esi]
mov dword [esi + 0x228], eax
call edi
push 0x1001298
push dword [esi]
mov dword [esi + 0x128], eax
call edi
push 0x1001288
push dword [esi]
mov dword [esi + 0xe8], eax
call edi
mov ebx, 0x1001278
push ebx
push dword [esi]
mov dword [esi + 0xf4], eax
call edi
push 0x1001264
push dword [esi]
mov dword [esi + 0x4c], eax
call edi
push 0x100124c
push dword [esi]
mov dword [esi + 0x1dc], eax
call edi
push 0x1001234
push dword [esi]
mov dword [esi + 0x1e0], eax
call edi
push 0x1001220
push dword [esi]
mov dword [esi + 0x64], eax
call edi
push 0x100120c
push dword [esi]
mov dword [esi + 0x7c], eax
call edi
push 0x10011f4
push dword [esi]
mov dword [esi + 0x9c], eax
call edi
push 0x10011e4
push dword [esi]
mov dword [esi + 0xa0], eax
call edi
push 0x10011d4
push dword [esi]
mov dword [esi + 0x184], eax
call edi
push 0x10011c0
push dword [esi]
mov dword [esi + 0x140], eax
call edi
push ebx
push dword [esi]
mov dword [esi + 0xf0], eax
call edi
mov dword [esi + 0x4c], eax
mov ecx, esi
call fcn.0101c58a
pop edi
pop esi
pop ebx
test eax, eax
je 0x101c850
and dword [ebp - 0x418], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
call fcn.0101d57a
leave
ret 4

Function at 0x101ce30
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101d590
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101ce84
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101ce5f
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101cdd0
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101d57a
leave
ret
Function at 0x101ced7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101d590
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101cf2b
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101cf06
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101cdd0
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 4
push 0x10019d0
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101d57a
leave
ret

Function at 0x101d56b
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10201a0
call fcn.0101dad4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10219d0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x101d380
cmp eax, esi
jne 0x101d373
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x101d383
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x101d35a
xor esi, esi
inc esi
mov eax, dword [0x10219cc]
cmp eax, esi
jne 0x101d396
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x101d3d1
mov eax, dword [0x10219cc]
test eax, eax
jne 0x101d3cb
mov dword [0x10219cc], esi
push 0x100116c
push 0x1001160
call fcn.0101d2d7
pop ecx
pop ecx
test eax, eax
je 0x101d3d1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x101d49b
mov dword [0x10215e0], esi
mov eax, dword [0x10219cc]
cmp eax, esi
jne 0x101d3f5
push 0x100115c
push 0x1001150
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10219cc], 2
cmp dword [ebp - 0x1c], ebx
jne 0x101d402
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10219e0], ebx
je 0x101d423
push 0x10219e0
call fcn.0101da49
pop ecx
test eax, eax
je 0x101d423
push ebx
push 2
push ebx
call dword [0x10219e0]
push dword [0x10215c8]
push dword [0x10215cc]
push dword [0x10215c4]
call fcn.0101d235
add esp, 0xc
mov dword [0x10215dc], eax
cmp dword [0x10215d0], ebx
jne 0x101d481
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x10215e0], ebx
jne 0x101d48f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10215dc]
call fcn.0101db19
ret
call fcn.0101dc21
jmp 0x101d338
Function at 0x101f24b
Capabilities:
Check if file exists
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5601
push edi
push ebx
mov dword [ebp - 0x218], edi
call fcn.0101f03f
mov dword [ebp - 0x21c], eax
test eax, eax
jl 0x101f330
push esi
mov esi, 0x5610
push esi
push edi
push ebx
call fcn.0101f0e5
inc esi
cmp esi, 0x5613
jbe 0x101f29a
and dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0x5630
mov esi, 0x5631
push dword [ebp - 0x210]
push edi
push ebx
call fcn.0101f1ef
test eax, eax
je 0x101f2d8
inc dword [ebp - 0x214]
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], esi
jbe 0x101f2c1
cmp dword [ebp - 0x214], 2
jl 0x101f32f
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x101f311
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x101f32f
mov edi, 0x5630
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push ebx
call fcn.0101f13c
inc edi
cmp edi, esi
jbe 0x101f316
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101d57a
leave
ret 8

Function at 0x101f4ab
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10021d0
xor ebx, ebx
push ebx
mov dword [ebp - 0x214], esi
call fcn.0101ff99
pop ecx
pop ecx
cmp esi, ebx
jne 0x101f4e9
mov dword [ebp - 0x214], 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push 0x20006
push ebx
push dword [esi + 0x1021320]
mov dword [ebp - 0x210], ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f5d0
test byte [esi + 0x1021328], 1
je 0x101f564
push dword [esi + 0x1021324]
push dword [ebp - 0x210]
call edi
cmp eax, ebx
jne 0x101f54f
push dword [esi + 0x1021324]
push 0x1002150
push ebx
call fcn.0101ff99
add esp, 0xc
jmp 0x101f564
push eax
push dword [esi + 0x1021324]
push 0x10020c0
push ebx
call fcn.0101ff99
add esp, 0x10
test byte [esi + 0x1021328], 2
je 0x101f5c4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x1021324]
call fcn.01020114
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call edi
cmp eax, ebx
jne 0x101f5ae
lea eax, [ebp - 0x20c]
push eax
push 0x1002150
push ebx
call fcn.0101ff99
add esp, 0xc
jmp 0x101f5c4
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10020c0
push ebx
call fcn.0101ff99
add esp, 0x10
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xc
cmp esi, 0x24
jb 0x101f4f1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d57a
leave
ret 4
Function at 0x101f5f2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f653
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101f64a
cmp dword [ebp - 0xc], 4
je 0x101f64a
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101f696
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101f68d
cmp dword [ebp - 0xc], esi
je 0x101f68d
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x101f6a5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f71d
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101d57a
leave
ret 0xc

Function at 0x101f88b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10022a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f8dd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1002284
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x101f924
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1021350]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x101f9a8
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002360
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f997
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1002354
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f98e
cmp dword [ebp - 0xc], 4
jne 0x101f98e
cmp dword [ebp - 0x10], eax
je 0x101f98e
mov dword [0x1021350], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1021350]
cmp eax, 0xffffffff
jne 0x101f9a8
xor eax, eax
mov dword [0x1021350], eax
leave
ret
Function at 0x401000
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 8], 0x10
push 0x8000
push 0x40300c
call sub.kernel32.dll_RtlZeroMemory
push 0x10
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_RtlZeroMemory
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x8000
push 0x40300c
push dword [ebp + 8]
call sub.wsock32.dll_recvfrom
cmp eax, 0xffffffff
je 0x40112c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
xor edx, edx
mov dx, word [ebp - 0x16]
push edx
call sub.wsock32.dll_ntohs
mov dx, ax
lea esi, [0x40300c]
add esi, 0xc
mov edi, 0x41300c
pushal
xor ecx, ecx
mov cl, byte [esi]
cmp ecx, 0
jbe 0x40108c
inc esi
rep movsb byte es:[edi], byte [esi]
mov byte [edi], 0x2e
inc edi
jmp 0x401078
dec edi
mov dword [edi], 0
popal
push edi
push edx
push ebx
push str._s:_d
push 0x40b00c
call sub.user32.dll_wsprintfA
add esp, 0x14
push 0x7d2
push dword [section..data]
call sub.user32.dll_GetDlgItem
mov ebx, eax
push ebx
call sub.user32.dll_GetWindowTextLengthA
push eax
push eax
push 0xb1
push ebx
call sub.user32.dll_SendMessageA
push 0x40b00c
push 0
push 0xc2
push ebx
call sub.user32.dll_SendMessageA
lea esi, [0x40300c]
or word [esi + 2], 0x8080
or byte [esi + 7], 1
add esi, dword [ebp - 4]
add dword [ebp - 4], 0x10
mov dword [esi], 0x1000cc0
mov dword [esi + 4], 0x100
mov dword [esi + 8], 0x4000000
push dword [0x403008]
pop dword [esi + 0xc]
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 4]
push 0x40300c
push dword [ebp + 8]
call sub.wsock32.dll_sendto
leave
ret 4

Function at 0x401130
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe60
lea eax, [ebp - 0x18e]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [0x403004], eax
push 1
push 0x464
push dword [section..data]
push dword [0x403004]
call sub.wsock32.dll_WSAAsyncSelect
push 0x10
lea eax, [ebp - 0x1a0]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0x35
call sub.wsock32.dll_htons
mov word [ebp - 0x19e], ax
mov word [ebp - 0x1a0], 2
mov dword [ebp - 0x19c], 0
push 0x10
lea eax, [ebp - 0x1a0]
push eax
push dword [0x403004]
call sub.wsock32.dll_bind
cmp eax, 0xffffffff
jne 0x4011df
push 0x30
push 0
push 0x40208e
push dword [section..data]
call sub.user32.dll_MessageBoxA
push 0
push 0
push 0x10
push dword [section..data]
call sub.user32.dll_SendMessageA
push 0x8000
push 0x40b00c
push 0x7d1
push dword [section..data]
call sub.user32.dll_GetDlgItemTextA
push 0x40b00c
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x401230
push 0x30
push 0
push 0x40207a
push dword [section..data]
call sub.user32.dll_MessageBoxA
push 0
push 7
push 0x111
push dword [section..data]
call sub.user32.dll_SendMessageA
mov dword [0x403008], eax
leave
ret
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x44
push esi
call fcn.00401fa0
cmp eax, 1
je 0x40102b
push 0x10
push str.NOTICE
push str.This_program_must_be_executed_on_WIN95_WIN98
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x44
ret 0x10
mov esi, dword [esp + 0x4c]
push 0x66
push esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x401150
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x1e
mov dword [esp + 0x38], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 6
mov dword [esp + 0x38], eax
mov eax, dword [0x408030]
push ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
mov edx, dword [0x408030]
push esi
push 0
push 0
push 0x80000000
push 0x80000000
push 0
push 0
push 0x80000000
push str.INSTALLATION
push edx
push 0
mov dword [0x408c58], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
test esi, esi
jne 0x4010e8
xor eax, eax
pop esi
add esp, 0x44
ret 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x10]
push 0
push eax
call edi
test eax, eax
je 0x40113b
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageA]
lea ecx, [esp + 0xc]
push ecx
push esi
call ebp
test eax, eax
jne 0x401129
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x14]
push 0
push ecx
call edi
test eax, eax
jne 0x401107
pop ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x44
ret 0x10
Function at 0x401b50
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x508
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x4071e8
push 1
push 0
push 0x4071d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401d17
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x4071f8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x401d0d
mov eax, dword [esp]
push ebx
push esi
mov esi, dword [esp + 0x514]
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
push 0x408c5c
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
push 0
lea eax, [esp + 0x218]
push 0
lea ecx, [esp + 0x11c]
push eax
push ecx
push esi
call fcn.0040217b
lea edi, [esp + 0x228]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xc]
mov ecx, ebx
and ecx, 3
lea edx, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0xc]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0xc]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x34]
mov eax, dword [esp + 0xc]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edi, dword [esp + 0x520]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x51c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..lnk
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x318]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x314]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
pop edi
pop esi
test eax, eax
pop ebx
jl 0x401d22
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
add esp, 0x508
ret
Function at 0x4037a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408478
cmp edx, dword [eax]
je 0x4037c3
add eax, 8
inc ecx
cmp eax, 0x408508
jl 0x4037b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408478]
jne 0x4038f1
mov eax, dword [0x408cbc]
cmp eax, 1
je 0x4038cb
test eax, eax
jne 0x4037f4
cmp dword [0x4082b0], 1
je 0x4038cb
cmp edx, 0xfc
je 0x4038f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40382b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403f90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402d20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40386e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402d20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40753c
push edi
call fcn.00404960
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403f90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403fa0
lea eax, [ebp - 0xa0]
push 0x40751c
push eax
call fcn.00403fa0
push dword [esi + 0x40847c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403fa0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004056ce
add esp, 0x2c
pop edi
jmp 0x4038f1
lea eax, [ebp + 8]
lea esi, [esi + 0x40847c]
push 0
push eax
push dword [esi]
call fcn.00402d20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10b013c
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 0x102bfe0
lea ecx, [ebp - 0x48]
call fcn.010ab82f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov esi, eax
cmp esi, ebx
je 0x10b0232
push edi
push 0x208
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 1
call fcn.010a8e5e
push dword [0x10cd10c]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
push 0x102bf94
push 0x104
push edi
call fcn.0103d977
add esp, 0x18
test eax, eax
jl 0x10b01cf
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call sub.WINSPOOL.DRV_OpenPrinterW
mov esi, eax
jmp 0x10b01d1
xor esi, esi
push edi
call fcn.010a8e9c
pop ecx
cmp esi, ebx
je 0x10b0231
push 0x64
call fcn.010a8e5e
pop ecx
mov ecx, dword [0x10cd0f4]
mov edi, eax
mov eax, ecx
mov dword [ebp - 0x2c], ebx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x10b01f4
sub eax, edx
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x2c]
push edx
push 0x64
push edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 0x102bfc8
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_XcvDataW
push edi
mov esi, eax
call fcn.010a8e9c
pop ecx
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_ClosePrinter
pop edi
lea ecx, [ebp - 0x48]
call fcn.010ab876
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac07
leave
ret

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

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