joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b450
Capabilities:
Enumerate files on windows
Get common file path
Query environment variable
Set current directory

Disassembly:
sub esp, 0x468
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx]
push edi
call dword [eax + 4]
mov edx, dword [ebx + 0xc]
lea ecx, [ebx + 0xc]
mov esi, eax
lea eax, [esi - 8]
mov dword [edx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], edx
mov dword [ecx], eax
mov ecx, dword [ebx + 0x14]
inc ecx
mov dword [ebx + 0x18], 0x7fffffff
mov dword [ebx + 0x14], ecx
call fcn.1001b9e0
mov dword [ebx + 0x54], eax
mov dword [esi], eax
mov ecx, dword [ebx + 0x54]
push ecx
mov ecx, ebx
call sym.rlmfc.dll_public:_void___thiscall_R_System::setActiveCPUDriver_class_R_CPUDriver__
or ecx, 0xffffffff
xor eax, eax
mov edi, str._mfcrel.dll
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x374]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, str.rldriver
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x34]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
cmp eax, 0xffffffff
je 0x1001b508
mov eax, dword [esp + 0x16]
test ah, 0x40
jne 0x1001b51d
push 0x100
lea eax, [esp + 0x38]
push eax
push str.RLDRIVERPATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 0x274]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x378]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x1001b5b7
push ebp
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x1001b5a3
mov eax, dword [ebx + 0x28]
lea esi, [ebx + 0x28]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [esi + 0xc]
lea edx, [esi + 0xc]
lea ecx, [eax - 8]
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [ecx + 4], edx
mov dword [edx], ecx
mov ecx, dword [esi + 0x14]
inc ecx
mov dword [esi + 0x18], 0x7fffffff
mov dword [esi + 0x14], ecx
mov esi, dword [esp + 0x10]
mov dword [eax], ebp
lea ecx, [esp + 0x138]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001b55d
pop ebp
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x468
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004082e9
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004082e9
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004082e9
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004082e9
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004082e9
mov dword [0x41203c], eax
call fcn.004082e9
test eax, eax
jge 0x402550
push 8
call fcn.004082e9
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004082e9
pop ecx
push 1
call fcn.004082e9
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004082e9
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004082e9
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004082e9
jmp 0x402495

Function at 0x4082e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4082f8
pop dword [ebp - 0x38]
mov eax, 0x67d7c872
add eax, 0x9868ba86
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3c36a
push 0
mov eax, 0xa45a933d
add eax, 0x5be64d9b
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x53ee
mov edi, eax
mov esi, 0x611a6329
add esi, 0x9f26d89b
add esi, dword [ebp - 0x38]
mov ebx, 0x917f2de6
add ebx, 0x94d3d936
xor dword [ebp - 0x30], eax
mov edx, dword [esi]
sub edx, ebx
sub dword [ebp - 0x34], 0xd3817e3f
mov dword [edi], edx
xor dword [ebp - 0x20], 0x9a334c2e
add edi, 4
add esi, 0x78c54905
sub esi, 0x78c54901
loop 0x408351
add eax, 0xae4998
add eax, 0xff52f8f3
xor ebx, ebx
add ebx, eax
add eax, 0xb8ede3d3
sub eax, 0xb8ede3ce
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x407b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
sub esp, 0x118
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov ecx, dword [0x45d580]
mov eax, 4
push ecx
mov dword [ebp - 0x20], eax
push 0x44317b
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x24], ebx
call fcn.0042c8a0
add esp, 0xc
cmp dword [ebp - 0x10], 0
jne 0x407bd6
lea eax, [ebp - 0x18]
push eax
push 1
push 0
lea eax, [ebp - 0x124]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x407bc5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
mov edi, dword [ebp - 0x14]
push edi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp dword [ebp - 0x1c], 4
jne 0x407c33
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ecx
pop ebp
ret
mov esi, 0x44318d
lea edi, [ebp - 0x124]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x407c02
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x407bea
pop edi
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x124]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x407c2d
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x407c15
pop edi
jmp 0x407b81
mov eax, ebx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x407c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
sub esp, 0x110
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
cmp dword [0x462494], 0
je 0x407c63
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ecx
pop ebp
ret
mov edx, dword [0x45d580]
push edx
push 0x44317b
lea eax, [ebp - 0x11c]
push eax
call fcn.0042c8a0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x407cdc
mov esi, 0x44318d
lea edi, [ebp - 0x11c]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x407cb0
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x407c98
pop edi
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x11c]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x407cdb
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x407cc3
pop edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x407c5b
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x14]
push ebx
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x407d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
sub esp, 0x114
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov edx, dword [0x45d580]
push edx
push 0x44317b
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], ecx
call fcn.0042c8a0
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x407dcc
lea eax, [ebp - 0x14]
push eax
push 1
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x407dbd
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
mov esi, dword [ebp - 0x10]
push esi
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp dword [ebp - 0x18], 1
jne 0x407e29
mov eax, ebx
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
mov esi, 0x44318d
lea edi, [ebp - 0x11c]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x407df8
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x407de0
pop edi
mov esi, dword [ebp - 0xc]
lea edi, [ebp - 0x11c]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x407e23
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x407e0b
pop edi
jmp 0x407d7c
xor eax, eax
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
Function at 0x407e40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
sub esp, 0x110
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
cmp dword [0x462494], 0
je 0x407e63
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ecx
pop ebp
ret
mov edx, dword [0x45d580]
push edx
push 0x44317b
lea eax, [ebp - 0x11c]
push eax
call fcn.0042c8a0
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x407edc
mov esi, 0x44318d
lea edi, [ebp - 0x11c]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x407eb0
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x407e98
pop edi
mov esi, dword [ebp - 0x10]
lea edi, [ebp - 0x11c]
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x407edb
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x407ec3
pop edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 2
push 0
push 0
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x407e5b
mov edi, ebx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc ecx
push ecx
push ebx
push 1
push 0
mov ebx, dword [ebp - 0x14]
push ebx
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x408510
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
sub esp, 0x100
mov eax, dword [0x45d580]
push eax
push 0x44317b
lea eax, [ebp - 0x108]
push eax
call fcn.0042c8a0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.DLL_RegDeleteKeyA]
test eax, eax
je 0x408554
xor eax, eax
lea esp, [ebp - 8]
pop edx
pop ecx
pop ebp
ret
mov edx, 1
mov dword [0x462494], edx
mov eax, edx
lea esp, [ebp - 8]
pop edx
pop ecx
pop ebp
ret

Function at 0x4096e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push esi
push edi
sub esp, 0x14
mov esi, eax
call fcn.004098a0
xor eax, eax
mov dword [0x45900c], eax
mov dword [0x459008], eax
mov dword [0x459014], eax
mov dword [0x459010], eax
mov dword [0x459018], eax
mov dword [0x462454], eax
test esi, esi
je 0x409751
mov eax, esi
imul eax, edx
mov ebx, 0x3e8
xor edx, edx
div ebx
shr eax, 6
mov dword [0x459010], eax
cmp eax, 0x40
jge 0x409735
mov eax, 0x40
mov edx, eax
shl edx, 6
shl eax, 7
mov dword [0x459010], edx
call fcn.0042c650
mov dword [0x459018], eax
test eax, eax
jne 0x40975a
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ecx
pop ebx
pop ebp
ret
mov ebx, dword [0x459010]
xor edx, edx
add ebx, ebx
call fcn.0042c750
mov eax, dword [0x459018]
mov dword [0x46244c], eax
mov eax, dword [0x459010]
mov edx, eax
sar edx, 0x1f
sub eax, edx
sar eax, 1
push 0x45900c
push 0
push 0
push 0x40c180
mov edx, dword [0x459018]
add eax, eax
push 0
add edx, eax
push 0
mov dword [0x462448], edx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, eax
test eax, eax
je 0x409848
push 0xf
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x64
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, 1
push 0x20000
mov dword [ebp - 0x20], esi
mov word [ebp - 0x14], di
push 0
mov edi, dword [0x45900c]
mov word [ebp - 0x24], ax
mov word [ebp - 0x22], ax
lea eax, [esi + esi]
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
push 0x459008
mov dword [ebp - 0x18], 0x100002
call dword [sym.imp.WINMM.DLL_waveOutOpen]
test eax, eax
jne 0x409863
lea eax, [eax]
lea edx, [edx]
lea eax, [eax]
add eax, 0x20
xor edi, edi
mov dword [eax + 0x461714], edi
cmp eax, 0x800
jne 0x409820
call fcn.0040c080
mov dword [0x459014], esi
mov eax, esi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ecx
pop ebx
pop ebp
ret
mov eax, dword [0x459018]
call fcn.0042c770
mov dword [0x459018], ebx
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ecx
pop ebx
pop ebp
ret
push 0
mov eax, dword [0x459008]
push eax
push 0x3bc
mov edx, dword [0x45900c]
push edx
call dword [sym.imp.USER32.DLL_PostThreadMessageA]
mov eax, dword [0x459018]
xor ecx, ecx
call fcn.0042c770
mov dword [0x459018], ecx
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ecx
pop ebx
pop ebp
ret
Function at 0x40c940
Capabilities:
Create process on windows

Disassembly:
push ebx
push ecx
push edx
push edi
mov edx, eax
mov edi, eax
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + 0x40]
call fcn.0042c650
mov ebx, eax
test eax, eax
jne 0x40c965
pop edi
pop edx
pop ecx
pop ebx
ret
push edx
push 0x443584
push eax
call fcn.0042c8a0
add esp, 0xc
push 5
push ebx
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov edx, eax
mov eax, ebx
call fcn.0042c770
cmp edx, 0x1f
setg al
and eax, 0xff
pop edi
pop edx
pop ecx
pop ebx
ret

Function at 0x40d180
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push ecx
mov ebx, eax
cmp edx, 0x10
jge 0x40d18e
xor eax, eax
pop ecx
pop ebx
ret
push edx
push eax
call dword [sym.imp.WS2_32.DLL_gethostname]
push ebx
call dword [sym.imp.WS2_32.DLL_gethostbyname]
test eax, eax
je 0x40d18b
mov edx, dword [eax + 0xc]
test edx, edx
je 0x40d189
mov ecx, dword [edx]
mov eax, edx
test ecx, ecx
je 0x40d189
xor edx, edx
mov dl, byte [ecx + 3]
push edx
xor edx, edx
mov dl, byte [ecx + 2]
push edx
xor edx, edx
mov dl, byte [ecx + 1]
mov al, byte [ecx]
push edx
and eax, 0xff
push eax
push 0x4435b0
push ebx
call fcn.0042c8a0
add esp, 0x18
mov eax, ebx
pop ecx
pop ebx
ret
Function at 0x40d520
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ecx
push esi
push edi
mov esi, eax
mov edi, edx
cmp dword [0x4593ac], 0
jl 0x40d544
mov ebx, edx
test edx, edx
jl 0x40d53b
test ebx, ebx
jne 0x40d54b
mov eax, edi
sub eax, ebx
pop edi
pop esi
pop ecx
pop ebx
ret
xor eax, eax
pop edi
pop esi
pop ecx
pop ebx
ret
push 0
push ebx
push esi
mov edx, dword [0x4593ac]
push edx
call dword [sym.imp.WS2_32.DLL_send]
mov edx, eax
test eax, eax
jle 0x40d566
add esi, eax
sub ebx, eax
test edx, edx
jge 0x40d537
mov eax, edi
sub eax, ebx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x40d580
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ecx
push esi
push edi
mov esi, eax
mov edi, edx
cmp dword [0x4593ac], 0
jl 0x40d5a4
mov ebx, edx
test edx, edx
jl 0x40d59b
test ebx, ebx
jne 0x40d5ab
mov eax, edi
sub eax, ebx
pop edi
pop esi
pop ecx
pop ebx
ret
xor eax, eax
pop edi
pop esi
pop ecx
pop ebx
ret
push 0
push ebx
push esi
mov edx, dword [0x4593ac]
push edx
call dword [sym.imp.WS2_32.DLL_recv]
mov edx, eax
test eax, eax
jle 0x40d5c6
add esi, eax
sub ebx, eax
test edx, edx
jge 0x40d597
mov eax, edi
sub eax, ebx
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x4244e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
push esi
mov esi, ebx
not eax
xor ecx, ecx
test ebx, ebx
jbe 0x424508
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
inc edx
and ebx, 0xff
shr eax, 8
inc ecx
xor eax, dword [ebx*4 + 0x4530dc]
cmp ecx, esi
jb 0x4244ec
not eax
pop esi
pop ecx
ret
Function at 0x42c9cb
Capabilities:
Get disk information

Disassembly:
push ebx
push ecx
push esi
push edi
enter 0x358, 0
mov edi, eax
mov esi, edx
xor ecx, ecx
cmp byte [eax], 0
je 0x42c9ec
mov edx, 0x42c8c1
call fcn.00430a80
test eax, eax
je 0x42ca00
mov eax, 1
call fcn.00430ac8
mov eax, 0xffffffff
jmp 0x42cbf5
mov edx, 0x104
lea eax, [ebp - 0x114]
mov ebx, 0x104
call fcn.0042d130
lea eax, [ebp - 0x218]
mov edx, edi
call fcn.00430bb0
test eax, eax
je 0x42ca56
movzx eax, byte [ebp - 0x218]
test byte [eax + 0x42efc1], 0xc0
je 0x42ca56
cmp byte [ebp - 0x217], 0x3a
jne 0x42ca56
cmp byte [ebp - 0x216], 0x5c
jne 0x42ca56
cmp byte [ebp - 0x215], 0
jne 0x42ca56
mov ecx, 1
mov eax, edi
mov edx, edi
call fcn.00430c20
cmp byte [eax], 0x3a
jne 0x42ca67
lea edx, [edi + 2]
mov al, byte [edx]
cmp al, 0x5c
je 0x42ca71
cmp al, 0x2f
jne 0x42ca77
cmp byte [edx + 1], 0
je 0x42ca7b
test ecx, ecx
je 0x42cabc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
test eax, eax
je 0x42c9ec
mov ebx, 0x140
lea eax, [ebp - 0x358]
xor edx, edx
call fcn.0042c750
xor eax, eax
mov dword [ebp - 0x358], 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
jmp 0x42cae0
lea eax, [ebp - 0x358]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x42cad9
call fcn.00430cb0
jmp 0x42cbf5
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, edi
call fcn.00430c20
cmp byte [eax], 0x3a
jne 0x42caf1
movzx eax, byte [edi]
jmp 0x42caf8
movzx eax, byte [ebp - 0x114]
call fcn.0042de50
sub eax, 0x61
mov dword [esi], eax
mov eax, dword [esi]
mov dword [esi + 0x12], eax
mov eax, dword [ebp - 0x338]
lea edx, [ebp - 0x32c]
mov dword [esi + 0x16], eax
mov ebx, edi
mov eax, dword [ebp - 0x358]
call fcn.0042c8d3
lea ebx, [ebp - 8]
lea edx, [ebp - 0xc]
mov word [esi + 8], ax
lea eax, [ebp - 0x344]
call fcn.00430ce0
movzx edx, word [ebp - 8]
movzx eax, word [ebp - 0xc]
lea ebx, [ebp - 4]
call fcn.00430de0
mov dword [esi + 0x1e], eax
lea edx, [ebp - 0x10]
mov dword [esi + 0x26], eax
lea eax, [ebp - 0x354]
call fcn.00430ce0
mov eax, dword [ebp - 0x10]
cmp ax, word [ebp - 0xc]
jne 0x42cb73
mov eax, dword [ebp - 4]
cmp ax, word [ebp - 8]
jne 0x42cb73
mov eax, dword [esi + 0x1e]
jmp 0x42cb80
movzx edx, word [ebp - 4]
movzx eax, word [ebp - 0x10]
call fcn.00430de0
mov dword [esi + 0x22], eax
lea ebx, [ebp - 4]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x34c]
call fcn.00430ce0
mov eax, dword [ebp - 0x10]
cmp ax, word [ebp - 0xc]
jne 0x42cbab
mov eax, dword [ebp - 4]
cmp ax, word [ebp - 8]
jne 0x42cbab
mov eax, dword [esi + 0x1e]
jmp 0x42cbb8
movzx edx, word [ebp - 4]
movzx eax, word [ebp - 0x10]
call fcn.00430de0
mov dword [esi + 0x1a], eax
mov word [esi + 0x10], 0
mov ax, word [esi + 0x10]
mov word [esi + 0xa], 1
cwde
mov dword [esi + 0xc], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x358]
mov dword [esi + 0x2e], 0
mov dword [esi + 0x32], 0
mov word [esi + 0x36], 0
mov byte [esi + 0x38], 0
mov dword [esi + 0x2a], eax
xor eax, eax
leave
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x42d130
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
sub esp, 0x104
mov edi, eax
mov ebx, edx
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ecx, eax
test eax, eax
je 0x42d17f
inc eax
test edi, edi
jne 0x42d186
cmp ebx, eax
jbe 0x42d15d
mov eax, ebx
call fcn.0042c650
mov edi, eax
test eax, eax
jne 0x42d191
mov eax, 5
call fcn.00430ac8
xor eax, eax
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00430cb0
jmp 0x42d172
cmp eax, ebx
jbe 0x42d191
mov eax, 0xe
jmp 0x42d16d
mov esi, esp
inc ecx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x430320
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x477a74], eax
mov dword [0x45f898], edx
call fcn.00435200
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsA]
mov dword [0x45f91e], eax
xor eax, eax
mov dword [0x478094], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x45f924], al
shr eax, 0x10
push 0x104
mov word [0x45f926], ax
xor eax, eax
mov ebx, 0x208
mov ax, word [0x45f926]
and edx, 0xffff
mov dword [0x45f928], eax
xor eax, eax
sar edx, 8
mov al, byte [0x45f924]
and edx, 0xff
mov dword [0x45f92c], eax
xor eax, eax
mov byte [0x45f925], dl
mov al, dl
mov edx, dword [0x45f92c]
push 0x477a78
shl edx, 8
push 0
or edx, eax
mov dword [0x45f930], eax
mov dword [0x45f934], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x477b7c
xor eax, eax
mov dword [0x45f8ec], 0x477a78
call fcn.00435330
mov dword [0x45f8f8], 0x477b7c
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.00430ea0
mov edx, eax
mov bl, byte [eax]
mov dword [0x477a70], eax
cmp bl, 0x22
je 0x430414
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x42efc1], 2
je 0x43042c
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x42efc1], 2
je 0x430433
inc eax
jmp 0x430404
inc eax
cmp bl, byte [eax]
je 0x430424
cmp byte [eax], 0
je 0x430424
inc eax
cmp byte [eax], 0x22
jne 0x430419
cmp byte [eax], 0
je 0x430404
inc eax
jmp 0x430404
test dl, dl
je 0x430404
inc eax
jmp 0x4303f7
mov dword [0x45f8e8], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x4304a7
call fcn.004353c1
mov edx, eax
mov bx, word [eax]
mov dword [0x477a6c], eax
cmp bx, 0x22
je 0x43047a
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x42efc1], 2
je 0x43049c
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x42efc1], 2
je 0x4304ac
add eax, 2
jmp 0x430468
add eax, 2
cmp bx, word [eax]
je 0x430491
cmp word [eax], 0
je 0x430491
add eax, 2
cmp word [eax], 0x22
jne 0x430482
cmp word [eax], 0
je 0x430468
add eax, 2
jmp 0x430468
cmp word [eax], 0
je 0x430468
add eax, 2
jmp 0x43045b
mov eax, 0x4302e0
mov dword [0x45f8f4], eax
test edi, edi
jne 0x4304be
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x477d84
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x477e88
mov eax, esi
mov dword [0x45f8f0], 0x477d84
call fcn.00435330
mov dword [0x45f8fc], 0x477e88
mov eax, 1
pop edi
pop esi
pop ecx
ret