joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d28
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
push ebx
push esi
push edi
push 0x41c2bc
call fcn.0040f17b
pop ecx
mov dword [ebp - 4], eax
call fcn.00403bd4
cmp dword [ebp - 4], 0
mov esi, eax
mov dword [ebp - 8], esi
mov edi, esi
je 0x401d8c
or ebx, 0xffffffff
xor eax, eax
mov ecx, ebx
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 4]
not ecx
dec ecx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
push eax
call fcn.0040f1f8
push esi
mov edi, eax
push dword [ebp - 4]
push 0x41c2ac
push edi
call fcn.0040f129
add esp, 0x14
jmp 0x401db1
or ebx, 0xffffffff
xor eax, eax
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call fcn.0040f1f8
mov edi, eax
push esi
push 0x41c2a0
push edi
call fcn.0040f129
add esp, 0x10
push edi
call fcn.004172f6
pop ecx
mov edi, esi
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x210]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x210]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c29c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x210]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c290
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x350]
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp - 0x210]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
je 0x401ef9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 8]
mov ecx, ebx
xor eax, eax
lea edx, [ebp - 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c29c
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x10c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c284
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x10c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403782
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and word [ebp - 0x14], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x12]
mov dword [ebp - 4], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00403aac
push 0x41c52c
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x403809
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, edi
je 0x403802
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, edi
je 0x403802
push bind
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, edi
jne 0x40380d
push esi
call fcn.00403b3b
pop ecx
mov eax, edi
jmp 0x403820
push dword [ebp - 0x12]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp + 8]
movzx eax, ax
mov dword [ecx], eax
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x403824
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and word [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00403aac
push dword [ebp + 8]
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.dll_htons]
push 0x41c52c
mov word [ebp - 0xe], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x40388e
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x403892
push esi
call fcn.00403b3b
pop ecx
mov eax, edi
jmp 0x403894
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x403898
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push edi
mov edi, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3fd
jae 0x4038fb
push dword [ebp + 0xc]
lea eax, [ebp - 0x400]
push 0x41c538
push eax
call fcn.0040f129
lea edi, [ebp - 0x400]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
lea eax, [ebp - 0x400]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret

Function at 0x4039fb
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 4], 0
je 0x403a18
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x403a18
push eax
call fcn.0040f68a
pop ecx
push 0
call fcn.0040eeee
Function at 0x403a1f
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x21010
push 0x41d0a4
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xb
call fcn.004048de
mov esi, 0x41ed60
push eax
push esi
call fcn.0040f720
add esp, 0xc
cmp dword [0x42391c], 0
push edi
je 0x403a60
call fcn.0040f6b4
pop ecx
jmp 0x403a6e
push 0x41d09c
push esi
call fcn.0040f720
add esp, 0xc
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0xc
call fcn.004048de
pop ecx
push eax
push 0x41d094
push esi
call fcn.0040f720
add esp, 0x10
push 0xffffffffffffffff
call fcn.0040eeee
pop edi
pop esi

Function at 0x403aac
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x4230dc], 0
jne 0x403b34
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
pop ebx
push 0x41d0dc
call edi
mov esi, eax
test esi, esi
jne 0x403af2
push 0x41d0d0
call edi
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x403af2
push 0xd
call fcn.004048de
push eax
call fcn.00403a1f
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x403b12
push 0xe
call fcn.004048de
push eax
call fcn.00403a1f
pop ecx
pop ecx
test ebx, ebx
je 0x403b27
push 0x41d0bc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4230d8], eax
pop edi
pop esi
mov dword [0x4230dc], 1
pop ebx
add esp, 0x190
ret

Function at 0x403b60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edi
mov eax, dword [edi]
test eax, eax
je 0x403b81
push eax
call fcn.00403964
mov dword [esi], eax
mov eax, dword [esi + 4]
add esi, 4
pop ecx
jmp 0x403b6c
cmp dword [ebp + 8], 1
jne 0x403b9c
push edi
push dword [ebp + 0xc]
push 1
call fcn.0041738a
add esp, 0xc
push 0
call fcn.0040eeee
cmp dword [ebp + 8], 0
push edi
push dword [ebp + 0xc]
jne 0x403bb2
push 1
call fcn.0041738a
add esp, 0xc
jmp 0x403bbe
push 0
call fcn.0041738a
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x403c76
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [0x4230e4], 0
push esi
push edi
jne 0x403d29
lea eax, [ebp - 8]
mov dword [0x4230e4], 1
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x403d1c
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x403cdd
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0040f810
pop ecx
test eax, eax
pop ecx
je 0x403cf4
and byte [eax], 0
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x422898
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403d29
mov esi, 0x41d100
mov edi, 0x422898
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
mov eax, 0x422898
pop esi
leave
ret

Function at 0x403e76
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push eax
push 0x20019
push 0
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403ebb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4045c1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 9
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], esi
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
mov dword [0x423bfc], esi
mov dword [0x423bf8], esi
call fcn.00403782
cmp eax, 0xffffffff
pop ecx
mov dword [0x4230f4], eax
jne 0x404612
push 5
call fcn.004048de
push eax
call fcn.00403ec7
pop ecx
pop ecx
cmp dword [ebp + 0xc], esi
je 0x40462b
push 0x423c00
push dword [ebp + 0xc]
call fcn.0040454f
pop ecx
mov dword [0x423bfc], eax
pop ecx
cmp dword [ebp + 0x10], esi
je 0x404644
push 0x423bf4
push dword [ebp + 0x10]
call fcn.0040454f
pop ecx
mov dword [0x423bf8], eax
pop ecx
cmp dword [ebp + 8], esi
jg 0x404658
push 0x13
call fcn.004048de
push eax
call fcn.00403ec7
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.00403824
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x404677
push 0x11
call fcn.004048de
push eax
call fcn.00403ec7
pop ecx
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push 0x41c278
push eax
call fcn.0040f129
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push 6
pop edi
push edi
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x4046ae
push 0x14
call fcn.004048de
push eax
call fcn.00403ec7
pop ecx
pop ecx
push ebx
call fcn.00403b3b
cmp dword [0x423bfc], esi
pop ecx
jne 0x4046c9
cmp dword [0x423bf8], esi
je 0x404783
mov ebx, dword [ebp - 8]
push 0x7f00
push esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x404324
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
lea eax, [ebp - 0x54]
mov edi, 0x41d114
push eax
mov dword [ebp - 0x30], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
push ebx
push esi
mov eax, connect
push esi
push eax
push eax
push eax
push eax
push eax
push esi
push edi
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x404547
mov edi, eax
push 0x4e20
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x40473f
push 0x15
call fcn.004048de
push eax
call fcn.00403ec7
pop ecx
pop ecx
push 8
push 0x401
push edi
push dword [0x4230f4]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
call edi
test eax, eax
je 0x404783
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
jmp 0x404760
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x407a6e
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x407a9b
push esi
call fcn.00408041
cmp byte [esi + 0x40], 0
pop ecx
je 0x407a94
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x407b0a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x407aff
mov eax, dword [esi + 8]
test eax, eax
je 0x407abc
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x407afb
cmp eax, 2
je 0x407aff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x407ab1
cmp eax, 3
je 0x407ae0
cmp eax, 1
jne 0x407ab1
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x407ab1
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x407ab1
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x407b28
cmp eax, 0xcc
je 0x407b28
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.00407b31
pop ecx
pop esi
ret

Function at 0x413610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413630
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041294b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x413651
test byte [esp + 8], 2
je 0x413651
mov dword [0x42391c], 0xd
mov dword [0x423920], 5
jmp 0x41362c
xor eax, eax
ret
Function at 0x414949
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f2d0
cmp edx, dword [eax]
je 0x41496b
add eax, 8
inc ecx
cmp eax, 0x41f360
jl 0x41495c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f2d0]
jne 0x414a99
mov eax, dword [0x423980]
cmp eax, 1
je 0x414a73
test eax, eax
jne 0x41499c
cmp dword [0x41efb8], 1
je 0x414a73
cmp edx, 0xfc
je 0x414a99
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4149d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411ab0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414a16
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411ab0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41af04
push edi
call fcn.0040f4d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413530
lea eax, [ebp - 0xa0]
push 0x41aee4
push eax
call fcn.00413530
push dword [esi + 0x41f2d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413530
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004162b5
add esp, 0x2c
pop edi
jmp 0x414a99
lea eax, [ebp + 8]
lea esi, [esi + 0x41f2d4]
push 0
push eax
push dword [esi]
call fcn.00411ab0
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 0x402810
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Class_Installer
push str.__WNDCLASS_B6D63DD7_93F4_4301_A4E2_0D4D90A11CD1__
push 0
mov dword [0x40edb4], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x402851
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x402a30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004029b0
add esp, 4
push str.nwiainst.debug.ini
push 0
push str.DebugLevel
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x402a6d
push 0
push 1
push 1
push eax
call fcn.00401e10
add esp, 0x10
push str.ClassInstaller____._n
push 0
push 5
call fcn.00402500
mov ecx, dword [0x40edcc]
add esp, 0xc
cmp ecx, 1
jg 0x402a95
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
push edi
mov edi, 1
cmp ecx, edi
jle 0x402af0
mov eax, dword [0x40edd0]
mov esi, dword [eax + edi*4]
mov al, byte [esi]
cmp al, 0x2f
je 0x402ab2
cmp al, 0x2d
jne 0x402aeb
push 2
lea ecx, [esi + 1]
push 0x40aa50
push ecx
call fcn.00404435
add esp, 0xc
test eax, eax
jne 0x402b0f
cmp byte [esi + 3], 0
lea eax, [esi + 3]
je 0x402b0f
push eax
push 0x104
push 0x40ecb0
call fcn.00403180
mov ecx, dword [0x40edcc]
add esp, 0xc
inc edi
cmp edi, ecx
jl 0x402aa0
mov edx, dword [ebp + 0x14]
push edx
push ebx
call fcn.00402810
add esp, 8
test eax, eax
jne 0x402b1d
pop edi
pop esi
mov eax, 5
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
je 0x402b5c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
nop
lea ecx, [ebp - 0x1c]
push ecx
call edi
lea edx, [ebp - 0x1c]
push edx
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x402b40
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403171
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e0b4]
jne 0x40317b
repz ret
jmp fcn.004048fb

Function at 0x4092da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405992
and dword [ebp - 0x14], 0
cmp dword [0x40fa64], 0
mov dword [ebp - 0x18], eax
jne 0x40938d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409435
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409435
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40fa64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40fa68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40fa6c], eax
call edi
push eax
call esi
mov dword [0x40fa74], eax
test eax, eax
je 0x40938d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40fa70], eax
mov eax, dword [0x40fa70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4093e6
cmp dword [0x40fa74], ecx
je 0x4093e6
push eax
call esi
push dword [0x40fa74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4093e6
test ebx, ebx
je 0x4093e6
call edi
test eax, eax
je 0x4093dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4093dd
test byte [ebp - 8], 1
jne 0x4093e6
or dword [ebp + 0x10], 0x200000
jmp 0x409419
mov eax, dword [0x40fa68]
cmp eax, dword [ebp - 0x18]
je 0x409419
push eax
call esi
test eax, eax
je 0x409419
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409419
mov eax, dword [0x40fa6c]
cmp eax, dword [ebp - 0x18]
je 0x409419
push eax
call esi
test eax, eax
je 0x409419
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40fa64]
call esi
test eax, eax
je 0x409435
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409437
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403171
leave
ret
Function at 0x401818
Capabilities:
Encode data using xor

Disassembly:
push 0x401b30
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
push eax
add byte [eax], al
add byte [eax], bh
add byte [eax], al
add byte [ebx - 0x7f], dh
or al, 0xf
push ds
mov eax, dword [0x67b648c8]
loop 0x40181d
mov ah, 0x74
ror byte [ebx], cl
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx + ebp*2 + 0x6e], cl
imul eax, dword [eax], 0
add byte [eax], al
push esi
inc edx
and byte [esi], dh
xor byte cs:[eax], ah
mov dh, 0xaf
int3
Function at 0x4ca247
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4c9fca
dec edx
add eax, 0xfe6671
and eax, eax
call fcn.004ca289
and edx, edx
sub eax, 0x6deb050f
mov eax, edx
xor dword [ecx], esi
inc edx
mov edx, edx
add ecx, 1
add eax, 1
mov eax, edx
cmp ecx, edi
jne fcn.004ca247
mov edx, 0xbc6eb660
ret