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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push esi
push edi
test dl, dl
je 0x47e354
add esp, 0xfffffff0
call fcn.004036cc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004045a8
xor eax, eax
push ebp
push 0x47e431
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004799b0
lea ecx, [ebp - 0x14]
xor edx, edx
xor eax, eax
call fcn.00416c34
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x24], edx
lea ecx, [ebp - 0x14]
xor edx, edx
xor eax, eax
call fcn.00416c34
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x38], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x3c], edx
lea ecx, [ebp - 0x14]
xor edx, edx
xor eax, eax
call fcn.00416c34
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x34], edx
lea ecx, [ebp - 0x14]
xor edx, edx
xor eax, eax
call fcn.00416c34
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x2c], edx
push 0
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00416c5c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x24]
lea edi, [eax + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 0x50], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e438
lea eax, [ebp - 0xc]
call fcn.004040f8
ret
Function at 0x4837dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48390c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x483924
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.0040414c
push 0xffffffffffffffff
mov ecx, 0x483934
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov ecx, 0x483950
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0046c0d8
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x48396c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0046bfbc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x1c]
lea edi, [eax + 0xd]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x483980
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0046bfbc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x1c]
lea edi, [eax + 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x483998
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0046bfbc
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x1c]
lea edi, [eax + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, 0x4839b4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0046c0d8
mov edx, dword [ebp - 4]
mov byte [edx + 0x44], al
mov ecx, 0x4839c8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.00479668
mov edx, dword [ebp - 4]
mov byte [edx + 0x45], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483913
lea eax, [ebp - 0xc]
call fcn.004040f8
ret

Function at 0x490a40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x490a84]
mov byte [ebp - 1], al
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x490a5c
or byte [ebp - 1], 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x490a6c
or byte [ebp - 1], 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x490a7c
or byte [ebp - 1], 2
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x491650
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x43fae8]
call fcn.00403534
test al, al
je 0x49169c
mov eax, dword [0x4dcda8]
mov eax, dword [eax]
cmp dword [eax + 0x44], 0
je 0x49169c
mov eax, dword [0x4dcda8]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
xor edx, edx
call fcn.0045ce24
push 0
mov eax, dword [0x4dcda8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x4b9388
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b93ef
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthA
mov ebx, eax
lea edi, [ebx + 1]
mov edx, edi
lea eax, [ebp - 8]
call fcn.00404744
push edi
mov eax, dword [ebp - 8]
call fcn.004045b8
push eax
push esi
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040414c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b93f6
lea eax, [ebp - 8]
call fcn.004040f8
ret

Function at 0x4bdd28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bddb2
xor edx, edx
push ebp
push 0x4bdd93
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bddb2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4c1c64
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4c1c92
mov eax, ebx
call fcn.004c2718
cmp dword [ebx + 0x40], 0
je 0x4c1c8b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4c1d03
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4c1cf5
cmp dword [ebx + 8], 0
je 0x4c1cb4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4c1cc6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c1cf5
cmp dword [ebx + 8], 0
je 0x4c1ca7
cmp eax, 3
je 0x4c1cd9
dec eax
jne 0x4c1ca7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4c1ca7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4c1ca7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4c1d21
cmp dword [ebx + 0x14], 0xcc
je 0x4c1d21
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004c1d2c
pop ebx
ret

Function at 0x4d255c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045a8
mov eax, dword [ebp - 8]
call fcn.004045a8
mov eax, dword [ebp - 0xc]
call fcn.004045a8
xor eax, eax
push ebp
push 0x4d268b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.004045b8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.004045b8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.0042cc28
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004045b8
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d2670
xor eax, eax
push ebp
push 0x4d2669
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4d2649
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x4d264d
xor eax, eax
jmp 0x4d264f
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2670
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2692
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040411c
ret
Function at 0x4d269c
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045a8
mov eax, dword [ebp - 8]
call fcn.004045a8
mov eax, dword [ebp - 0xc]
call fcn.004045a8
mov eax, dword [ebp + 0xc]
call fcn.004045a8
xor eax, eax
push ebp
push 0x4d2806
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.004045b8
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x4d2818
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004045b8
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4d27e3
xor edx, edx
push ebp
push 0x4d27dc
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.004045b8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004045b8
push eax
mov ax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
test eax, eax
je 0x4d27c5
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4d27bc
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x4d27c0
xor eax, eax
jmp 0x4d27c2
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d27e3
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d280d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040411c
lea eax, [ebp + 0xc]
call fcn.004040f8
ret
Function at 0x4d2820
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x4d28e8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x4d28ec
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x4d28e8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d28df
xor eax, eax
push ebp
push 0x4d28d8
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d28df
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d2b58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d2d6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x105
mov eax, dword [ebp - 0x18]
call fcn.004027a8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d2bd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x4d2bc0
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.004042f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2bdd
mov eax, dword [ebp - 8]
call fcn.004027c8
ret

Function at 0x4d4138
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov bl, 2
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.00402d7c
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x4d4172
cmp byte [ebp - 0xa], 0x31
jne 0x4d4170
mov bl, 1
jmp 0x4d4172
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d5898
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0044a564
test al, al
je 0x4d5956
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
jmp 0x4d5934
cmp word [esi + 0x5f2], 0
je 0x4d58e9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x5f4]
call dword [esi + 0x5f0]
mov al, byte [esi + 0x5e8]
or al, byte [ebp - 9]
jne 0x4d590b
cmp dword [ebp - 4], 0
jbe 0x4d5907
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x4d590b
xor ebx, ebx
jmp 0x4d590d
mov bl, 1
test bl, bl
jne 0x4d5956
mov eax, dword [0x4dcda8]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
jne 0x4d5956
mov eax, dword [0x4dcda8]
mov eax, dword [eax]
call fcn.00463724
push 1
call sub.kernel32.dll_Sleep_1
test esi, esi
je 0x4d5956
cmp byte [esi + 0x588], 0
jne 0x4d5956
mov edx, 0xfffffdf3
mov eax, esi
call fcn.00468f5c
cmp eax, 4
jne 0x4d58c6
mov byte [esi + 0x5e8], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403030
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40f038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x88]
push eax
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4030b5
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
mov dword [ecx], edx
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x60
ret

Function at 0x403da0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40f1fb
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esi + 0xb0]
push 1
push 0
push 0
push eax
push 0
push 0
call edi
cmp eax, 0x20
jg 0x403e43
lea eax, [esp + 0xc]
push 0x100
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push str.Internet_Exploreriexplore.exe
lea ecx, [esp + 0xc]
mov dword [esp + 0x118], 0
call fcn.0040e5d4
mov eax, dword [esi + 0xb0]
mov edx, dword [esp + 8]
push 1
push 0
push eax
push edx
push 0
push 0
call edi
lea ecx, [esp + 8]
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call fcn.00403d70
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret
Function at 0x406250
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
cdq
sete bl
idiv dword [esi + 0x18]
test bl, bl
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
je 0x4063e1
mov edx, dword [esi + 0x14]
push 0xffffffffffffffff
add edx, ecx
push eax
push 0x18
mov dword [esi + 0x14], edx
push ecx
lea edx, [esi + 0x24]
lea ebx, [esi + 0x20]
mov ecx, esp
push edx
mov dword [esp + 0x2c], ebx
call fcn.0040bd50
push ecx
mov ecx, esp
push str.read
call fcn.004016c0
push ebx
call fcn.00404950
mov ecx, dword [esi + 0x18]
mov ebp, dword [esi + 0x1c]
add esp, 0x18
xor ebx, ebx
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
mov edx, ebp
dec ebp
test edx, edx
je 0x406382
inc ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.MSVCRT.dll_memmove]
mov dl, byte [esp + 0x13]
test dl, dl
je 0x4062fa
xor edx, edx
cmp byte [edi], dl
jmp 0x4062ff
xor edx, edx
cmp word [edi], dx
sete dl
test edx, edx
je 0x406326
test eax, eax
je 0x40631f
cmp edi, eax
je 0x40631f
imul ecx, ebx
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call ebp
add esp, 0xc
mov ecx, dword [esi + 0x18]
inc ebx
lea eax, [ecx + edi]
mov edx, dword [esp + 0x14]
add edi, ecx
dec edx
mov dword [esp + 0x14], edx
jne 0x4062ec
test eax, eax
je 0x40634d
cmp edi, eax
je 0x40634d
mov ecx, dword [esi + 0x18]
sub edi, eax
imul ecx, ebx
push edi
push eax
sub eax, ecx
push eax
call ebp
add esp, 0xc
test ebx, ebx
je 0x406382
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov ecx, esp
push 0
call fcn.004016c0
push ecx
mov ecx, esp
push str.nulls_removed
call fcn.004016c0
mov edx, dword [esp + 0x2c]
push edx
call fcn.00404950
mov eax, dword [esi + 0x1c]
add esp, 0x18
sub eax, ebx
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x18], 1
jle 0x4063d3
mov eax, dword [esi + 4]
push eax
call fcn.00405390
add esp, 4
test al, al
je 0x4063d3
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.004053a0
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.004016c0
push ecx
mov ecx, esp
push str.endian_swap
call fcn.004016c0
mov eax, dword [esp + 0x2c]
push eax
call fcn.00404950
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, esi
call fcn.00405d70
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x406c80
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x14]
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x14]
imul eax, dword [ebp + 0x1c]
test esi, esi
mov dword [ebp + 8], eax
jne 0x406c9e
mov esi, edi
mov ecx, dword [ebp + 4]
xor ebx, ebx
push ecx
call fcn.00405390
add esp, 4
test al, al
je 0x406d13
test edi, edi
jne 0x406cdd
mov edx, dword [ebp + 0x1c]
shl edx, 1
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x1c]
mov ebx, eax
shl ecx, 1
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
mov esi, ebx
mov ecx, dword [ebp + 0x1c]
push ecx
push edi
call fcn.004053a0
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push 0
call fcn.004016c0
push ecx
mov ecx, esp
push str.endian_swap
call fcn.004016c0
lea edx, [ebp + 0x20]
push edx
call fcn.00404950
add esp, 0x18
mov eax, dword [ebp]
mov ecx, dword [ebp + 8]
push eax
push 1
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x18]
test ebx, ebx
je 0x406d3c
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [esp + 0x18]
test al, al
je 0x406d87
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
push 0xffffffffffffffff
push eax
push 0x18
add esi, edx
push ecx
lea edx, [ebp + 0x24]
mov ecx, esp
push edx
mov dword [ebp + 0x14], esi
call fcn.0040bd50
push ecx
mov ecx, esp
push str.write
call fcn.004016c0
add ebp, 0x20
push ebp
call fcn.00404950
mov al, byte [esp + 0x30]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ecx, ebp
call fcn.00405d70
mov al, byte [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x407e70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f4f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
mov edi, dword [ebx + 0x30]
mov dword [esp + 0x1c], 1
test edi, edi
mov dword [esp + 0xc], edi
je 0x407f37
push ebp
mov ebp, dword [edi]
test ebp, ebp
je 0x407f2d
mov esi, dword [ebp]
test esi, esi
je 0x407f1c
add ebp, 4
test esi, esi
je 0x407f15
cmp dword [esi], 0
je 0x407f0c
mov eax, dword [esi + 4]
xor ebx, ebx
test eax, eax
jle 0x407efd
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x407ef5
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x407620
push ecx
push 0xc
push eax
call fcn.0040e84f
push edi
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x14]
add esp, 4
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jl 0x407ecb
mov eax, dword [esi]
push eax
call sub.MFC42.DLL_operatordelete
mov ebx, dword [esp + 0x18]
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [ebp]
test esi, esi
jne 0x407eb6
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], 0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop ebp
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x407f7f
mov edx, dword [esi + 4]
xor edi, edi
dec edx
sar edx, 0x10
inc edx
test edx, edx
jle 0x407f67
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esi + 4]
add esp, 4
inc edi
dec ecx
sar ecx, 0x10
inc ecx
cmp edi, ecx
jl 0x407f4c
mov eax, dword [esi]
test eax, eax
je 0x407f76
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebx + 4]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, ebx
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret