joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024e0
Capabilities:
Delete registry value

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
test eax, eax
jle 0x40250a
cmp byte [ecx + esi], 0x2c
je 0x402505
inc ecx
cmp ecx, eax
jl 0x4024f8
jmp 0x40250a
mov byte [ecx + esi], 0
inc ecx
lea ebx, [ecx + esi]
xor ecx, ecx
test eax, eax
jle 0x402525
cmp byte [ecx + esi], 0x2c
je 0x402520
inc ecx
cmp ecx, eax
jl 0x402513
jmp 0x402525
mov byte [ecx + esi], 0
inc ecx
lea edi, [ecx + esi]
push str.HKEY_CLASSES_ROOT
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
call ebp
test eax, eax
jne 0x402541
mov eax, 0x80000000
jmp 0x4025b5
push str.HKEY_CURRENT_CONFIG
push esi
call ebp
test eax, eax
jne 0x402554
mov eax, 0x80000005
jmp 0x4025b5
push str.HKEY_CURRENT_USER
push esi
call ebp
test eax, eax
jne 0x402567
mov eax, 0x80000001
jmp 0x4025b5
push str.HKEY_LOCAL_MACHINE
push esi
call ebp
test eax, eax
jne 0x40257a
mov eax, 0x80000002
jmp 0x4025b5
push str.HKEY_USERS
push esi
call ebp
test eax, eax
jne 0x40258d
mov eax, 0x80000003
jmp 0x4025b5
push str.HKEY_PERFORMANCE_DATA
push esi
call ebp
test eax, eax
jne 0x4025a0
mov eax, 0x80000004
jmp 0x4025b5
push str.HKEY_DYN_DATA
push esi
call ebp
test eax, eax
mov eax, 0x80000006
je 0x4025b5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4025dd
mov eax, dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4025f0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x44c
lea eax, [esp]
push ebx
push esi
push edi
mov edi, dword [esp + 0x45c]
push ebp
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xf], 0x5c
je 0x402635
lea eax, [esp + 0x10]
push 0x40792c
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
call ebx
jmp 0x40263b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push 0x407928
push eax
call ebx
lea eax, [esp + 0x218]
lea ecx, [esp + 0x10]
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ecx
call ebp
cmp eax, 0xffffffff
mov ebp, eax
je 0x402749
lea eax, [esp + 0x114]
push edi
push eax
call esi
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x113], 0x5c
je 0x402699
lea eax, [esp + 0x114]
push 0x40792c
push eax
call ebx
lea eax, [esp + 0x244]
lea ecx, [esp + 0x114]
push eax
push ecx
call ebx
test byte [esp + 0x218], 0x10
je 0x4026f0
cmp byte [esp + 0x244], 0x2e
je 0x4026f0
lea eax, [esp + 0x114]
lea ecx, [esp + 0x358]
push eax
push ecx
call esi
lea ecx, [esp + 0x358]
push 0x40792c
push ecx
call ebx
lea ecx, [esp + 0x358]
push ecx
call fcn.004025f0
add esp, 4
lea eax, [esp + 0x218]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x402667
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push edi
push eax
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + eax + 0xf]
cmp byte [eax], 0x5c
jne 0x40272e
mov byte [eax], 0
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44c
ret

Function at 0x402820
Capabilities:
Get common file path

Disassembly:
sub esp, 4
cmp dword [0x40715c], 0
push esi
push edi
je 0x402844
lea eax, [esp + 8]
mov esi, dword [esp + 0x10]
push eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x17
push esi
call edi
jmp 0x402853
mov eax, 0xffffffff
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40286d
lea eax, [esp + 8]
push eax
push 2
push esi
call edi
test eax, eax
je 0x40286d
xor eax, eax
pop edi
pop esi
add esp, 4
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.004027e0
add esp, 8
pop edi
pop esi
add esp, 4
ret
Function at 0x402890
Capabilities:
Get common file path

Disassembly:
sub esp, 4
cmp dword [0x40715c], 0
push esi
push edi
je 0x4028b4
lea eax, [esp + 8]
mov edi, dword [esp + 0x10]
push eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x19
push edi
call esi
jmp 0x4028c3
mov eax, 0xffffffff
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x4028dd
lea eax, [esp + 8]
push eax
push 0
push edi
call esi
test eax, eax
je 0x4028dd
xor eax, eax
pop edi
pop esi
add esp, 4
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.004027e0
add esp, 8
pop edi
pop esi
add esp, 4
ret

Function at 0x402900
Capabilities:
Get common file path

Disassembly:
sub esp, 4
cmp dword [0x40715c], 0
push esi
push edi
je 0x402924
lea eax, [esp + 8]
mov edi, dword [esp + 0x10]
push eax
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x16
push edi
call esi
jmp 0x402933
mov eax, 0xffffffff
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x40294d
lea eax, [esp + 8]
push eax
push 0xb
push edi
call esi
test eax, eax
je 0x40294d
xor eax, eax
pop edi
pop esi
add esp, 4
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.004027e0
add esp, 8
pop edi
pop esi
add esp, 4
ret

Function at 0x402970
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 4
cmp dword [0x40715c], 0
push esi
push edi
je 0x402994
lea eax, [esp + 8]
mov esi, dword [esp + 0x10]
push eax
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x18
push esi
call edi
jmp 0x4029a3
mov eax, 0xffffffff
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4029bd
lea eax, [esp + 8]
push eax
push 7
push esi
call edi
test eax, eax
je 0x4029bd
xor eax, eax
pop edi
pop esi
add esp, 4
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.004027e0
add esp, 8
pop edi
pop esi
add esp, 4
ret

Function at 0x4029e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionGrpConvMapGroups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402a11
xor eax, eax
pop esi
add esp, 0x10c
ret
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
mov dword [esp + 0x10], 0x100
push edx
push 0
push str.Quick_Launch
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402a55
xor eax, eax
pop esi
add esp, 0x10c
ret
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xf], 0x5c
je 0x402a77
lea eax, [esp + 0x10]
push 0x40792c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x118]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop esi
add esp, 0x10c
ret
Function at 0x402aa0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 4
lea eax, [esp]
push eax
push 0x23
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x402abf
xor eax, eax
add esp, 4
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
push eax
push ecx
call fcn.004027e0
add esp, 8
mov eax, 1
add esp, 4
ret

Function at 0x402ae0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 4
lea eax, [esp]
push esi
push eax
push 0x1a
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x402b01
xor eax, eax
pop esi
add esp, 4
ret
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 4]
push esi
push eax
call fcn.004027e0
add esp, 8
push str.MicrosoftInternet_ExplorerQuick_Launch_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
pop esi
add esp, 4
ret

Function at 0x402b60
Capabilities:
Delete file

Disassembly:
sub esp, 0x200
push esi
push edi
mov esi, dword [esp + 0x20c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi + edi - 1], 0x5c
jne 0x402b92
push str.Test.txt
jmp 0x402b97
push 0x4079b4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov esi, eax
jne 0x402bc1
xor eax, eax
pop edi
pop esi
add esp, 0x200
ret
lea eax, [esp + 8]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
je 0x402bfe
cmp eax, 0x200
jne 0x402bfe
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop edi
pop esi
add esp, 0x200
ret
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
add esp, 0x200
ret
Function at 0x402d20
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push ebp
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call ebx
mov al, byte [esp + eax + 0xf]
cmp al, 0x5c
je 0x402d67
cmp al, 0x2f
je 0x402d67
lea eax, [esp + 0x10]
push 0x40792c
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
jmp 0x402d6d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push str.UNINST32.EXE
push eax
call esi
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x414]
push eax
push ebp
call fcn.00402c60
add esp, 8
test eax, eax
jne 0x402ddf
lea eax, [esp + 0x10]
push 0x407160
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
lea ecx, [esp + 0x10]
push ecx
call ebx
mov al, byte [esp + eax + 0xf]
cmp al, 0x5c
je 0x402dc3
cmp al, 0x2f
je 0x402dc3
lea eax, [esp + 0x10]
push 0x40792c
push eax
call esi
lea eax, [esp + 0x10]
push str.UNINST32.EXE
push eax
call esi
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00402c60
add esp, 8
jmp 0x402de5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
jne 0x402e18
lea eax, [esp + 0x210]
push 0x200
mov ecx, dword [esp + 0x41c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x402e2a
mov eax, dword [esp + 0x418]
lea ecx, [esp + 0x210]
push eax
push ecx
call edi
lea eax, [esp + 0x10]
push 0x4079cc
push eax
call esi
lea eax, [esp + 0x210]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea ecx, [esp + 0x10]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret
Function at 0x403390
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x404374
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x407a84], eax
xor eax, eax
mov al, byte [0x407a85]
mov dword [0x407a90], eax
mov eax, dword [0x407a84]
shr dword [0x407a84], 0x10
and eax, 0xff
mov dword [0x407a8c], eax
shl eax, 8
add eax, dword [0x407a90]
mov dword [0x407a88], eax
call fcn.00404330
test eax, eax
jne 0x403404
push 0x1c
call fcn.00403530
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404150
call fcn.00404140
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4092e0], eax
call fcn.00403cf0
mov dword [0x407a64], eax
test eax, eax
je 0x403437
cmp dword [0x4092e0], 0
jne 0x403441
push 0xffffffffffffffff
call fcn.00403590
add esp, 4
call fcn.00403a70
call fcn.00403980
call fcn.00403560
mov esi, dword [0x4092e0]
mov al, byte [esi]
cmp al, 0x22
je 0x403468
cmp al, 0x20
jbe 0x403495
inc esi
cmp byte [esi], 0x20
ja 0x403460
jmp 0x403495
inc esi
cmp byte [esi], 0x22
je 0x403494
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40348f
xor eax, eax
mov al, bl
push eax
call fcn.00403920
add esp, 4
test eax, eax
je 0x403489
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x403471
cmp byte [esi], 0x22
jne 0x403495
inc esi
cmp byte [esi], 0
je 0x4034a5
cmp byte [esi], 0x20
ja 0x4034a5
inc esi
cmp byte [esi], 0
jne 0x40349a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4034c9
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403590
jmp 0x40350a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035d0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x407ac0], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4035ee
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x407abc], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x407ab8], bl
jne 0x403648
cmp dword [0x4092d8], 0
je 0x403636
mov edi, dword [0x4092d4]
sub edi, 4
cmp edi, dword [0x4092d8]
jb 0x403636
mov eax, dword [edi]
test eax, eax
je 0x40362b
call eax
sub edi, 4
cmp edi, dword [0x4092d8]
jae 0x403623
push 0x407014
push 0x407010
call fcn.00403680
add esp, 8
push 0x40701c
push 0x407018
call fcn.00403680
add esp, 8
test ebx, ebx
jne 0x40366f
mov dword [0x407ac0], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x403cf0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x407b68], ebx
jne 0x403d3f
call esi
cmp eax, ebx
mov edi, eax
je 0x403d1d
mov dword [0x407b68], 1
jmp 0x403d3f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x403d35
mov dword [0x407b68], 2
jmp 0x403d3f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x407b68], 1
jne 0x403dee
test edi, edi
jne 0x403d62
call esi
mov edi, eax
test edi, edi
jne 0x403d62
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x403d7c
add esi, 2
cmp word [esi], 0
jne 0x403d6a
add esi, 2
cmp word [esi], 0
jne 0x403d6a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x403ddd
push ebp
call fcn.004046e0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x403ddd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403dcc
push ebx
call fcn.00404690
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x407b68], 2
jne 0x403e72
test ebx, ebx
jne 0x403e11
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x403e11
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x403e26
inc ebp
cmp byte [ebp], 0
jne 0x403e18
inc ebp
cmp byte [ebp], 0
jne 0x403e18
sub ebp, ebx
inc ebp
push ebp
call fcn.004046e0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x403e4b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x404490
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x407d98
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4044b7
add eax, 8
inc ecx
cmp eax, 0x407e28
jb 0x4044a8
cmp dword [ecx*8 + 0x407d98], edx
lea ebx, [ecx*8]
jne 0x40467b
cmp dword [0x407a70], 1
je 0x404637
cmp dword [0x407a70], 0
jne 0x4044ee
cmp dword [0x407a74], 1
je 0x404637
cmp edx, 0xfc
je 0x40467b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40452b
mov esi, 0x4062e4
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40456f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4062e0
push ebp
call fcn.00404f90
add esp, 0xc
mov esi, 0x4062c4
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4062c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x407d9c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push 0x406298
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00404ef0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4091d0], 0
je 0x40464d
mov eax, dword [0x4091d0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404657
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x407d9c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19
inc edi
mov esi, dword [ebp + 0x49]
push esi
lea eax, [ebp + 0x4b]
push 0x78
push eax
push esi
lodsd eax, dword [esi]
mov dword [eax - 0x58], ebp
fisubr dword [edi + 0x158b084d]
enter 0xffffffffffffff29, 0
push eax
push ecx
imul edi, dword [edi], 0x40
push str._s:__s___d__n
ja 0x401e6b
call dword [0x404480]
adc eax, 0x404480
mov eax, dword [0x4102ac]
adc dword [edi + 0x74c08514], 0xfffffffa
push eax
push str.Total_of__d_requests_completed_n
sub byte [edx + 0x64], dl
rol dword [eax], 0x9c
les eax, [esi + 0x56]
mov dword [sym.imp.MSVCRT.dll_exit], edx
pop esi
nop
nop
nop
nop
nop
nop
nop
pop ebx
nop
nop
nop
nop

Function at 0x401ea0
Capabilities:
Terminate process

Disassembly:
push ebp
cmc
in al, dx
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
imul ecx, dword [ebx - 0x1b76ebba], 8
call 0xac6a00
mov dword [0x410ba0], eax
mov dword [0xcd4126cf], edx
mov dl, 0xd8
mov eax, dword [esi + 0x14]
test eax, eax
in eax, dx
cli
push ss
inc eax
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
call sym.imp.MSVCRT.dll_exit
mov dword [esi + 0x817], ebx
mov edx, 0x27083c8b
add byte [ebx - 0xc], dl
sbb byte [eax], al
dec ecx
add byte [eax], al
mov edx, dword [0x4117ec]
mov dword [esi + 0x14], edx
mov eax, dword [0x410260]
test eax, eax
je 0x401f3a
mov eax, dword [0x419970]
mov esp, dword [eax + 3]
inc eax
test dword [esi + 0x14], ecx
jmp 0x401f52
mov edx, dword [esi + 0x18]
mov edi, dword [ebp + 0x40d030]
mov ebp, dword [esi + 4]
lea ecx, [ebp + 8]
add edx, ebx
push ecx
jl 0x401fcb
call fcn.00408ac0
or al, al
je 0x401f8a
add byte [edx], cl
sal byte [ebx + esi - 0x7d], 0xf8
or esi, dword [esi + ebp + 0x3d]
push 0x74f10afd
daa
cmp eax, 0xb
je 0x401f8a
cmp eax, 0xf10afd68
je 0x401f8a
cmp eax, 0xafcd9
daa
and byte [0xcf0afd57], bh
je 0x401f8a
cmp eax, 0x450a2128
je 0x401f8a
push ds
mov eax, dword [0x743e0ffc]
or edi, dword [0xfd7623b3]
setno byte [esi - 0x74ff896f]
inc ebp
or byte [ebx + 0x4102a0d1], cl
add byte [ebx + 0x4102a43d], cl
add byte [ebx], al
invalid
mov eax, dword [ebp + 8]
mov edx, ecx
mov al, byte [0x8b004102]
cmp eax, 0x4102a4
add eax, edi
imul edi, dword [ebx - 0x5fe27700], 0x89004102
cmp eax, 0x464102f6
mov edx, dword [esi + 0x18]
mov ebx, dword [edx]
adc al, 3
shr byte [ebx], 1
enter 0x5689, 0x18
movsb byte es:[edi], byte [esi]
dec esi
adc al, 0xf
test esp, ebp
invalid
add byte [ebx + 0x4114a0], ah
mov dword [0x410ba4], edx
mov edi, dword [ebx + 0x40868904]
or byte [eax], al
sub byte [ebp + ecx + 0x4166a4], ah
fild dword [ecx]
add byte [eax], al
add byte [ecx - 0x76720f18], cl
inc ebp
hlt

Function at 0x4031e2
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x4031e5
xor bl, cl
sub ch, 0x81
out dx, al
clc
div esi
cmc
retf
Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
add al, byte [eax]
add byte [ebx - 0x75], dl
pop ebp
or byte [esi + 0x57], dl
mov eax, ebp
inc dword [ebx - 0x7bf00079]
in al, 1
add byte [eax], al
mov ecx, dword [ebx + 0x60]
test ecx, ecx
je 0x3a4069ef
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x14]
lea edx, [esi + 0x28]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
mov dh, 0xf8
dec dword [edi]
test dword [ecx - 0x74ffffff], ebp
xor eax, 0x4051f1
call [ebx + 0x1a0fc085]
stc
add byte [eax], al
movsb byte es:[edi], byte [esi]
call esi
add eax, 0xa1780
pop edx
mov bl, 0x23
or eax, dword [eax]
jne 0x4069f4
mov edi, dword [ecx + 0x24738b97]
mov eax, edi
lcall 0xb85e, 0x5f0e75c6
mov ah, 0x23
or eax, dword [eax]
push esi
mov esp, ebp
pop ebp
ret 0x8308
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8