joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d5f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x108
push ebp
push esi
mov esi, eax
xor eax, eax
cmp byte [esp + 0x114], al
push 0
setne al
push 0
inc eax
push eax
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44d630
pop esi
xor al, al
pop ebp
add esp, 0x108
ret 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d635
sub eax, edx
cmp eax, 0x104
jb 0x44d64a
mov eax, 0x103
push ebx
inc eax
push eax
lea edx, [esp + 0x14]
push esi
push edx
call fcn.0049b8f0
lea eax, [esp + 0x1c]
push eax
call fcn.00495edd
add esp, 0x10
push 0xa
lea ecx, [esp + 0x14]
push ecx
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x44d6b6
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44d6b6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44d6b5
push 0
lea edx, [esp + 0x14]
push edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
pop ebp
add esp, 0x108
ret 4

Function at 0x44d6d0
Capabilities:
Copy file
Set current directory

Disassembly:
sub esp, 0x104
push ebx
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [0x4bcacc]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edx
call esi
mov edx, dword [esp + 0x110]
xor eax, eax
cmp byte [esp + 0x114], al
lea ecx, [esp + 8]
sete al
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
mov eax, dword [0x4b8c90]
setne bl
test eax, eax
je 0x44d72e
mov eax, dword [eax]
test eax, eax
jne 0x44d733
mov eax, 0x4a7935
push eax
call esi
pop esi
mov al, bl
pop ebx
add esp, 0x104
ret 8
Function at 0x44d800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x84
push ebx
mov ebx, ecx
mov ecx, dword [0x4bb3e8]
push esi
mov esi, eax
call fcn.0041c2a0
test esi, esi
je 0x44d8ba
cmp byte [esi], 0
je 0x44d8ba
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x44d8ef
mov eax, dword [0x4bbcb4]
push 1
push 0
push esi
push 0x4a7df4
push eax
call fcn.00482ff0
pop esi
pop ebx
add esp, 0x84
ret
mov edx, dword [0x4bbcb4]
mov ecx, dword [0x4b7a70]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push edx
mov dword [ecx + 0x30], 0
call fcn.00482ff0
mov edx, esi
lea eax, [esp + 8]
call fcn.00480db0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4bb3e8]
push eax
call fcn.00482ff0
pop esi
pop ebx
add esp, 0x84
ret
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x44d8ef
mov ecx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7df4
push ecx
call fcn.00482ff0
pop esi
pop ebx
add esp, 0x84
ret
push 0x4a7935
push 0
push 0x4a7df4
call fcn.0043b130
pop esi
pop ebx
add esp, 0x84
ret
Function at 0x44e230
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4bb3e8]
sub esp, 0x148
push ebx
push esi
call fcn.0041c2a0
test edi, edi
je 0x44e39e
cmp byte [edi], 0
je 0x44e39e
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44e290
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x44e2fb
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44e2dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x44e3d2
mov edx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7df4
push edx
call fcn.00482ff0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x44e303
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x44e32b
push 2
push esi
call fcn.004942ac
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x44e32b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x44e342
sub edx, 2
jne 0x44e358
push edx
push 0x100000
jmp 0x44e349
push 0
push 0x400
push eax
push ecx
call fcn.004a28b0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4bbcb4]
mov eax, dword [0x4b7a70]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push ecx
mov dword [eax + 0x30], 0
call fcn.00482ff0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4bb3e8]
call fcn.00401130
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x44e3d2
mov ecx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7df4
push ecx
call fcn.00482ff0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp + 8]
push 0x4a7935
push 0
push 0x4a7df4
call fcn.0043b130
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44fc90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x44fcb0
mov byte [esp], 0
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44fcb6
sub eax, edx
je 0x44fcce
cmp byte [esp + eax - 1], 0x5c
jne 0x44fcce
mov byte [esp + eax - 1], 0
dec eax
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x44fcec
lea ecx, [esp + 4]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x44fce2
pop esi
add esp, 0x104
ret
Function at 0x45b460
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x45b467
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x45b48f
dec eax
je 0x45b481
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x45b49c
cmp bl, 3
jne 0x45b4a3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x45b4c9
cmp dword [0x4bb5e0], 0
je 0x45b4b9
movzx ecx, bl
mov al, byte [ecx + 0x4bb4d0]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4bb5dc], 0
je 0x45b4f8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.0041ab60
test al, al
je 0x45b4eb
push 1
call fcn.0041a930
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4bb4d0]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x45ba40
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x45ba81
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x45ba81
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x45ba9c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x45baa2
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4bd5e8], 1
mov ebx, eax
jne 0x45bad2
or dword [0x4bd5e8], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4bd5e4], eax
jmp 0x45bad7
mov eax, dword [0x4bd5e4]
test ebx, ebx
jne 0x45bbd4
test eax, eax
je 0x45bbd4
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x45bbd4
cmp byte [esp + 0x11c], 0
je 0x45bb49
push 0x5c
push edi
call fcn.004940fc
add esp, 8
test eax, eax
je 0x45bbd4
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x45bb20
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.004942e0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x45bb8d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00495bc3
add esp, 0xc
test eax, eax
jne 0x45bb8d
cmp byte [esi + edi], 0x5c
je 0x45bbaf
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x45bb55
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.004942e0
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x45e640
Capabilities:
Delete file

Disassembly:
sub esp, 0x130
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x45e6f5
cmp byte [eax], bl
je 0x45e6f5
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e676
sub eax, edx
cmp eax, ebx
je 0x45e690
cmp byte [esp + eax + 0x2b], 0x5c
lea eax, [esp + eax + 0x2b]
jne 0x45e690
mov byte [eax], bl
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45e697
sub eax, edx
mov byte [esp + eax + 0x2d], bl
lea edx, [esp + 8]
lea eax, [esp + 0x2c]
mov ecx, 0x4054
push edx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x26], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 3
mov word [esp + 0x1c], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
mov ebx, esi
call fcn.0043b230
pop ebx
add esp, 0x130
ret
mov edx, dword [0x4b7a70]
test byte [edx + 0xe0], 1
jne 0x45e721
mov eax, dword [0x4bbcb4]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7df4
push eax
call fcn.00482ff0
pop ebx
add esp, 0x130
ret
push 0x4a7935
push ebx
push 0x4a7df4
mov ebx, esi
call fcn.0043b130
pop ebx
add esp, 0x130
ret
Function at 0x45e740
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [0x4bb3e8]
push edi
mov edi, eax
call fcn.0041c2a0
test edi, edi
je 0x45e895
cmp byte [edi], 0
je 0x45e895
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x45e7b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x45e8cc
mov ecx, dword [0x4bbcb4]
push 1
push esi
push 0xffffffffffffffff
push 0x4a7df4
push ecx
call fcn.00482ff0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push esi
call fcn.00493939
add esp, 4
mov ebp, eax
push ebp
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x45e86d
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x4aaf94
push ebp
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45e86d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x34]
call fcn.0047fe70
add esp, 0x14
push ebp
call fcn.00493368
mov eax, dword [0x4bbcb4]
mov edx, dword [0x4b7a70]
add esp, 4
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push eax
mov dword [edx + 0x30], 0
call fcn.00482ff0
mov edx, dword [0x4bb3e8]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00482ff0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7a70]
push ebp
mov dword [ecx + 0x30], eax
call fcn.00493368
add esp, 4
call fcn.0043d110
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov eax, dword [0x4b7a70]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x45e8cc
mov edx, dword [0x4bbcb4]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7df4
push edx
call fcn.00482ff0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push 0x4a7935
push 0
push 0x4a7df4
call fcn.0043b130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x45eb80
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp byte [eax], bl
jne 0x45eb97
xor al, al
pop ebx
add esp, 0x12c
ret
cmp byte [esp + 0x134], bl
jne 0x45ebb4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop ebx
add esp, 0x12c
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45ebd1
sub eax, edx
cmp eax, ebx
je 0x45ebeb
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x45ebeb
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45eb8d
test al, 0x10
je 0x45eb8d
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45ec06
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea eax, [esp + 4]
lea ecx, [esp + 0x28]
mov edx, 0x614
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
mov word [esp + 0x18], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop ebx
add esp, 0x12c
ret
Function at 0x45f110
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45f131
xor al, al
add esp, 0x18
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45f12b
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
add esp, 0x18
ret

Function at 0x45f190
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x45f1ef
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 4]
test eax, eax
je 0x45f1ef
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45f1ef
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 8
ret
Function at 0x45f320
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x550
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_Process32First]
push 0
push 0
push 1
push 0
mov eax, ebx
call fcn.0047fd00
add esp, 0x10
test eax, eax
je 0x45f38c
mov eax, ebx
call fcn.00404090
test al, al
je 0x45f37f
push 0x10
push 0
push ebx
call fcn.004938ab
add esp, 0xc
mov ebp, eax
jmp 0x45f38e
push ebx
call fcn.00493923
add esp, 4
mov ebp, eax
jmp 0x45f38e
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x45f440
test ebp, ebp
je 0x45f3b0
cmp ebp, dword [esp + 0x18]
je 0x45f453
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x458]
push ecx
lea edx, [esp + 0x354]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0049647f
lea eax, [esp + 0x254]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45f3e6
lea edi, [esp + 0x138]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45f3f7
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x138]
push ebx
push ecx
call fcn.00493351
add esp, 8
test eax, eax
je 0x45f466
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x45f3a2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x550
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0x550
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x550
ret
Function at 0x466940
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
movzx ecx, byte [edi + 1]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp ecx, eax
jle 0x466b35
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 8]
add eax, edx
mov dl, byte [eax]
cmp dl, 2
jne 0x466992
push 1
push ebx
push edi
call fcn.0042e3c0
mov ecx, dword [esp + 0x24]
mov dword [ecx + ebx*4], eax
test eax, eax
jne 0x466b1d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp byte [eax + 1], 0
mov ebp, dword [esp + 0x24]
mov dword [ebp + ebx*4], 0
je 0x4669c5
movzx eax, word [eax + 2]
mov edx, 0xff
cmp ax, dx
jae 0x4669b4
mov eax, edx
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x18], edx
jmp 0x466b1d
cmp dl, 1
jne 0x4669db
push 0
push ebx
push edi
call fcn.0042e3c0
mov esi, eax
test esi, esi
je 0x466985
jmp 0x466a23
cmp ebx, ecx
jge 0x466b1d
mov cl, byte [eax]
test cl, cl
jne 0x4669fb
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4669f5
cmp dword [ecx], 0
jne 0x466a09
cmp byte [eax + 1], 0
jmp 0x466a03
cmp cl, 1
sete cl
test cl, cl
je 0x466b1d
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 0
jne 0x466a5a
mov dx, word [ecx + 0xa]
cmp dx, word [eax + 2]
jne 0x466a5a
mov esi, dword [ecx + 4]
test esi, esi
je 0x466a5a
push ebp
push ebx
push esi
mov dword [ebp + ebx*4], esi
call fcn.00466b60
test eax, eax
je 0x466985
cmp eax, 4
je 0x466b1d
push 0
mov ecx, esi
call fcn.004833c0
mov ecx, dword [esp + 0x18]
lea edx, [ecx + eax + 1]
mov dword [esp + 0x18], edx
jmp 0x466b1d
movzx eax, word [eax + 2]
mov edx, dword [esp + 0x18]
lea eax, [edx + eax + 1]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x466b1d
mov ebp, ecx
cmp dword [ebp], 0
je 0x466b1d
mov edi, edi
mov esi, dword [ebp + 4]
movzx ecx, word [ebp + 0xa]
movzx eax, byte [esi + 0x17]
sub dword [esp + 0x18], ecx
cmp eax, 3
ja case.default.0x466a94
jmp dword [eax*4 + 0x466b44]
mov eax, esi
call fcn.004011b0
cmp dword [0x4bb618], 0
jne 0x466add
cmp dword [esi + 0xc], 0
jne 0x466add
mov eax, dword [esi + 0x18]
push 0
lea edx, [esp + 0x1b]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x466ad3
mov dword [0x4bd578], 0
dec eax
jmp 0x466b0c
mov dword [0x4bd578], esi
xor eax, eax
jmp 0x466b0c
mov eax, dword [esi + 0xc]
jmp 0x466b0c
mov ecx, dword [esi + 0xc]
push 0
call fcn.004833c0
jmp 0x466b0c
xor ecx, ecx
call fcn.00404f00
cmp eax, 0xffffffff
jne 0x466b0c
xor eax, eax
jmp 0x466b0c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x10]
push ecx
push 0
call edx
add esp, 8
add dword [esp + 0x18], eax
add ebp, 0xc
cmp dword [ebp], 0
jne 0x466a80
mov eax, dword [esp + 0x1c]
movzx ecx, byte [edi + 1]
inc ebx
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp ebx, ecx
jl 0x466961
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x470980
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x470990
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x4709a0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [eax + 0x24], 0
mov eax, dword [eax + 4]
jne 0x4709bc
test eax, eax
je 0x4709cf
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
ret

Function at 0x470a10
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
je 0x470b65
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x470a55
xor esi, esi
mov eax, dword [edi + 0x18]
cmp dword [eax + esi + 8], 0
je 0x470a4c
cmp byte [eax + esi + 4], 6
je 0x470a4c
lea edx, [esi + eax]
mov eax, dword [edx + 8]
push eax
push edi
mov ecx, str.Submit
call fcn.00470c10
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x470a29
xor esi, esi
xor ebx, ebx
xor ebp, ebp
cmp esi, dword [edi + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
je 0x470a8a
mov ecx, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000
je 0x470ad3
cmp dword [esp + 0x10], 1
jne 0x470ac2
cmp ebx, 1
jle 0x470ac2
cmp ebp, 0xffffffff
jne 0x470a9d
xor ebp, ebp
push 0xa
lea ecx, [esp + 0x24]
push ecx
push ebp
call fcn.00492fe2
mov eax, dword [esp + 0x24]
add esp, 0xc
push 1
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.00482ff0
cmp esi, dword [edi + 0x10]
je 0x470b52
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov edx, dword [esp + 0x14]
cmp byte [eax + edx + 4], 6
jne 0x470b3b
mov esi, dword [eax + edx + 8]
inc ebx
test esi, esi
je 0x470af2
inc dword [esp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax + edx]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x470b26
test ebp, ebp
je 0x470b13
or ebp, 0xffffffff
jmp 0x470b15
mov ebp, ebx
test esi, esi
je 0x470b3b
push 1
push 0
push 0xffffffffffffffff
push 0x4a7df4
jmp 0x470b35
test esi, esi
je 0x470b3b
push 1
push 0
push 0xffffffffffffffff
push 0x4a7950
push esi
call fcn.00482ff0
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x14
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [edi + 0x10]
jbe 0x470a6e
cmp byte [esp + 0x44], 0
je 0x470b65
mov ecx, dword [edi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4