joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438184
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4381d0
mov eax, esi
call fcn.0044d9e4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4381d0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4381d0
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x43830f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x438210
cmp eax, 0x108
ja 0x438210
mov eax, esi
call fcn.0044d9e4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x438306
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43830f
jmp 0x438306
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4382ef
cmp eax, 0x20a
ja 0x4382ef
test byte [esi + 0x50], 0x80
jne 0x438242
sub eax, 0x203
je 0x43823f
sub eax, 3
je 0x43823f
sub eax, 3
jne 0x438242
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x438256
dec eax
je 0x43826b
dec eax
je 0x438288
dec eax
je 0x43826b
jmp 0x43828f
mov ecx, ebx
mov eax, dword [0x46e9c0]
mov eax, dword [eax]
mov edx, esi
call fcn.0045733c
jmp 0x438306
cmp byte [esi + 0x5d], 1
jne 0x438281
mov eax, esi
mov si, 0xffed
call fcn.004038c8
jmp 0x43830f
or word [esi + 0x54], 1
jmp 0x438306
and word [esi + 0x54], 0xfffe
jmp 0x438306
mov eax, dword [0x46fb3c]
cmp byte [eax + 0x20], 0
je 0x438306
mov eax, dword [0x46fb3c]
cmp dword [eax + 0x1c], 0
je 0x438306
mov eax, dword [ebx]
mov edx, dword [0x46fb3c]
cmp eax, dword [edx + 0x1c]
jne 0x438306
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044d928
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004038c8
jmp 0x43830f
cmp eax, 0xb00b
jne 0x438306
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00436aa4
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b87c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43b898
cmp dword [esi + 4], 0
je 0x43b8c5
test byte [ebx + 0x55], 1
jne 0x43b8b7
mov eax, ebx
call fcn.0043a41c
test eax, eax
jne 0x43b8b7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43b9d5
mov edx, esi
mov eax, ebx
call fcn.0043b3a0
jmp 0x43b9d5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43b9ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043d6ec
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004380b8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043b87c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043d6ec
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b9d5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442064
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46eb2c]
cmp byte [eax + 0xc], 0
je 0x4421d1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4421ca
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46fb90], 0
jne 0x4420b8
push 0x4421d8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4421e0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb90], eax
cmp dword [0x46dbd0], 0
jne 0x4421b3
push 0x4421f0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46dbd0], eax
cmp dword [0x46dbd0], 0
je 0x4421b3
push 0x4421fc
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb94], eax
push 0x44220c
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb98], eax
push 0x442220
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb9c], eax
push 0x442238
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fba0], eax
push 0x442250
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fba4], eax
push 0x442264
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fba8], eax
push 0x44227c
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fbac], eax
push 0x442294
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fbb0], eax
push 0x4422b0
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fbb4], eax
push 0x4422bc
mov eax, dword [0x46dbd0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fbb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4421d1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446078
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040444c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4460c7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004046bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d898
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d8e8]
test si, 4
je 0x44d8ac
or bl, 1
test si, 8
je 0x44d8b6
or bl, 4
test si, 1
je 0x44d8c0
or bl, 8
test si, 2
je 0x44d8ca
or bl, 0x10
test si, 0x10
je 0x44d8d4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d8e3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44d8ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d924]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d905
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d914
or bl, 4
test esi, 0x20000000
je 0x44d91f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453fe8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453ffa
add esp, 0xfffffff0
call fcn.004039f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419d34
mov eax, dword [0x46e7e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45438c
mov eax, dword [0x46e7f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x454398
mov eax, ebx
call fcn.004543a4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41202c]
call fcn.00403690
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41202c]
call fcn.00403690
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41202c]
call fcn.00403690
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41202c]
call fcn.00403690
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41202c]
call fcn.00403690
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4507bc
push eax
push 0
push 0
mov eax, dword [0x46e940]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b7b0]
call fcn.0041cf48
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b7b0]
call fcn.0041cf48
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b7b0]
call fcn.0041cf48
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004547f4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4546bc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4546bc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4546bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454137
call fcn.00403a50
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4544a0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45464b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45462c
mov dl, 1
mov eax, dword [0x412448]
call fcn.00403690
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040444c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45461b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004423c4
test al, al
je 0x45460e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45465c
lea eax, [ebp - 0x254]
call fcn.00409204
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45460e
xor eax, eax
push ebp
push 0x454607
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454694
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4545f0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046bc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4545f0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45460e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454511
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415f24
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454652
lea eax, [ebp - 0x260]
call fcn.0040444c
ret

Function at 0x454f94
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46fbdc]
cmp byte [eax + 0xa5], 0
jne 0x455005
cmp dword [0x46fbf4], 0
jne 0x454fc6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454f50
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46fbf4], eax
cmp dword [0x46fbf0], 0
jne 0x454fe1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46fbf0], eax
cmp dword [0x46fbf8], 0
jne 0x455005
push esp
push 0
push 0
push 0x454ef4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46fbf8], eax
pop edx
ret
Function at 0x455698
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46fbdc]
cmp dword [eax + 0x30], 0
je 0x455742
cmp dword [ebx + 0x94], 0
jne 0x45573c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455628
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45573c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455702
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45573c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414394
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455711
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4562a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4562d5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040453c
jmp 0x4562e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457484
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4574c5
mov eax, esi
call fcn.0043d9f0
test al, al
je 0x4574c5
mov eax, dword [ebx + 0x84]
call fcn.0043d6ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4574c5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d6ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45abb0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45abde
mov eax, ebx
call fcn.0045b664
cmp dword [ebx + 0x40], 0
je 0x45abd7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45ac4f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45ac41
cmp dword [ebx + 8], 0
je 0x45ac00
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 0x45ac12
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45ac41
cmp dword [ebx + 8], 0
je 0x45abf3
cmp eax, 3
je 0x45ac25
dec eax
jne 0x45abf3
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 0x45abf3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45abf3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45ac6d
cmp dword [ebx + 0x14], 0xcc
je 0x45ac6d
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.0045ac78
pop ebx
ret
Function at 0x46b888
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048fc
xor eax, eax
push ebp
push 0x46b95c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004044e4
mov eax, dword [ebp - 8]
call fcn.00408988
test al, al
je 0x46b912
call fcn.00402dec
mov ebx, eax
test ebx, ebx
jle 0x46b8fe
mov esi, 1
push dword [ebp - 8]
push 0x46b974
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00402e54
push dword [ebp - 0xc]
push 0x46b980
lea eax, [ebp - 8]
mov edx, 4
call fcn.004047cc
inc esi
dec ebx
jne 0x46b8d3
push 5
mov eax, dword [ebp - 8]
call fcn.0040490c
push eax
call sub.kernel32.dll_WinExec
mov bl, 1
jmp 0x46b941
push 0
push 0x46b98c
push dword [ebp - 8]
push 0x46b99c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004047cc
mov eax, dword [ebp - 0x10]
mov cx, word [0x46b9a8]
mov dl, 1
call fcn.004281c4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b963
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404470
ret
Function at 0x401ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027e0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40218f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402840
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402154
cmp dword [ebp + 0xc], 3
jbe 0x402154
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e60
mov dword [ebp - 0x74], eax
jmp 0x4020f3
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40214f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40214a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402164
jmp 0x40214f
jmp 0x402154
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.00402900
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402181
jmp 0x40217c
jmp 0x40218f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402088
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x468e00], eax
pop esi
pop edi
pop ebp
ret
Function at 0x4078b2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4078f1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4078f1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4078f1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4078f1
cmp dword [ecx + 0x74], 0xe
jbe 0x4078f1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x415166
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x415203
push ebx
push esi
call fcn.0041512f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415078
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4151b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415202
push edi
push eax
call fcn.00413e85
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4151d0
call fcn.00413e4b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415201
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415078
add esp, 0x20
test eax, eax
jne 0x4151ef
push edi
call fcn.00413e4b
jmp 0x4151f7
push ebx
call fcn.00413e4b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x415a2f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425b40
push 0x425b38
push str.FlsAlloc
push 0x1e
call fcn.0041589c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415a63
push dword [ebp + 8]
mov ecx, esi
call dword [0x422160]
call esi
jmp 0x415a69
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x415aad
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425b50
push 0x425b48
push str.FlsGetValue
push 0x20
call fcn.0041589c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415ae4
push dword [ebp + 8]
mov ecx, esi
call dword [0x422160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41963c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004192de

Function at 0x419647
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041946d