joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f70
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x43d2e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
push ebp
lea ecx, [esp + 0x10]
call fcn.00417ea7
mov ebp, dword [esp + 0x35c]
lea eax, [esp + 0x1bc]
push ebp
push str._s.
push eax
mov dword [esp + 0x360], 0
call fcn.0042018d
add esp, 0xc
lea ecx, [esp + 0x1bc]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00417f6a
test eax, eax
je 0x4060dc
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.0041818a
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
call fcn.00418259
lea ecx, [esp + 0x10]
call fcn.0043561a
lea ecx, [esp + 0x18]
call fcn.00418151
test eax, eax
jne 0x4060ce
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
call fcn.00418382
push 0xc8
mov ecx, eax
mov byte [esp + 0x360], 1
call fcn.00435970
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xfc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x35c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.0043561a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
lea eax, [esp + 0xfc]
push eax
push ebp
push str._s_s
je 0x4060a6
lea ecx, [esp + 0x298]
push ecx
call fcn.0042018d
lea edx, [esp + 0x29c]
push edx
call fcn.00405f70
add esp, 0x14
jmp 0x4060ce
lea ecx, [esp + 0x40]
push ecx
call fcn.0042018d
add esp, 0x10
lea edx, [esp + 0x34]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x405fda
pop edi
pop esi
lea ecx, [esp + 0x10]
call fcn.00417f20
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
pop ebp
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40611c
call fcn.00417ee4
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret
call fcn.00417ee4
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret
Function at 0x406230
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20c
push ebx
push esi
mov esi, 0x45e508
xor ebx, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406267
cmp cl, bl
je 0x406263
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406267
add eax, 2
add esi, 2
cmp cl, bl
jne 0x406243
xor eax, eax
jmp 0x40626c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40627b
pop esi
xor eax, eax
pop ebx
add esp, 0x20c
ret
push ebp
mov ebp, dword [esp + 0x220]
push edi
push ebp
push ebx
push str.Filecount
push str.FileUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, 1
lea ecx, [eax + 1]
cmp ecx, edi
mov dword [esp + 0x10], eax
jbe 0x406335
push edi
lea eax, [esp + 0x18]
push str.File_dName
push eax
mov byte [esp + 0x20], bl
mov byte [esp + 0x124], bl
call fcn.0042018d
add esp, 0xc
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push ebp
push 0x64
push ecx
push 0x45e508
push edx
push str.FileUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x220]
lea esi, [esp + 0x118]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40631a
cmp cl, bl
je 0x406316
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40631a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4062f6
xor eax, eax
jmp 0x40631f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406331
mov eax, dword [esp + 0x10]
inc edi
inc eax
cmp edi, eax
jb 0x4062aa
mov eax, dword [esp + 0x10]
cmp eax, edi
sbb eax, eax
not eax
and eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x20c
ret

Function at 0x406370
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43d32b
push eax
mov dword fs:[0], esp
sub esp, 0x84
lea eax, [esp + 4]
push esi
push edi
push 0x80
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40645c
lea ecx, [esp + 0xc]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
test edi, edi
je 0x40645c
mov edx, dword [edi + 0xc]
cmp dword [edx], 0
je 0x40645c
xor esi, esi
cmp word [edi + 0xa], si
jle 0x406443
push ebx
mov ebx, dword [esp + 0xa0]
mov eax, dword [0x45c464]
mov dword [esp + 0xc], eax
test esi, esi
mov dword [esp + 0x98], 0
jle 0x4063f8
push 0x44be90
mov ecx, ebx
call fcn.0043591c
mov ecx, dword [edi + 0xc]
xor eax, eax
mov edx, dword [ecx]
lea ecx, [esp + 0xc]
mov al, byte [edx + esi]
push eax
push 0x44b628
push ecx
call fcn.00431019
add esp, 0xc
lea edx, [esp + 0xc]
mov ecx, ebx
push edx
call fcn.00435958
lea ecx, [esp + 0xc]
mov dword [esp + 0x98], 0xffffffff
call fcn.0043561a
movsx eax, word [edi + 0xa]
inc esi
cmp esi, eax
jl 0x4063d4
test esi, esi
pop ebx
jg 0x40645c
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
add esp, 0x90
ret
mov ecx, dword [esp + 0x8c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x90
ret
Function at 0x406480
Capabilities:
Copy file

Disassembly:
sub esp, 0x414
push ebx
push ebp
mov ebp, dword [esp + 0x420]
push esi
test ebp, ebp
push edi
je 0x40666c
mov ebx, dword [esp + 0x42c]
test ebx, ebx
je 0x40666c
mov esi, dword [esp + 0x430]
test esi, esi
je 0x40666c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x4064ed
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x2f
je 0x4064ed
push ebp
lea eax, [esp + 0x11c]
push 0x44bf3c
push eax
jmp 0x4064fb
push ebp
lea ecx, [esp + 0x11c]
push 0x44be50
push ecx
call fcn.0042018d
add esp, 0xc
lea edx, [esp + 0x118]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00435688
call fcn.00406140
lea eax, [esp + 0x11c]
push ebx
push eax
lea ecx, [esp + 0x32c]
push 0x44b5dc
push ecx
call fcn.0042018d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x5c
je 0x40656e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + esi - 1], 0x2f
je 0x40656e
push ebx
push esi
lea edx, [esp + 0x1c]
push str._s_s
push edx
jmp 0x40657a
push ebx
push esi
lea eax, [esp + 0x1c]
push 0x44b5dc
push eax
call fcn.0042018d
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x4065b8
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x2f
je 0x4065b8
push ebp
lea ecx, [esp + 0x220]
push str._s_restore.bat
push ecx
jmp 0x4065c6
push ebp
lea edx, [esp + 0x220]
push str._srestore.bat
push edx
call fcn.0042018d
add esp, 0xc
lea eax, [esp + 0x320]
lea ecx, [esp + 0x14]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40666c
lea edx, [esp + 0x21c]
push 0x44bf18
push edx
call fcn.00420777
mov esi, eax
add esp, 8
test esi, esi
je 0x40666c
push ebx
push str.echo
push esi
call fcn.004206bd
push ebx
push str.:_s__n
push esi
call fcn.004206bd
push ebx
push str.__systemroot___system32zteprokill.exe___s__n
push esi
call fcn.004206bd
lea eax, [esp + 0x38]
push eax
push ebx
push ebp
push str.copy__s_s___s__n
push esi
call fcn.004206bd
push ebx
push str.IF__ERRORLEVEL__1_goto__s__n
push esi
call fcn.004206bd
add esp, 0x44
push str.pause__n
push esi
call fcn.004206bd
push esi
call fcn.0042066c
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
Function at 0x4108c8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0x467ef8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.FILE:_s_LINE:_d_STOP_SYS__name___s_
push 0xf06
push 0x45b3e4
mov edx, dword [0x45b824]
push edx
call fcn.00409481
add esp, 0x1c
cmp dword [0x46d67c], 0
je 0x410929
xor eax, eax
mov ax, word [0x467fb2]
cmp eax, 0x64
jge 0x410929
xor ecx, ecx
mov cx, word [0x467fb2]
imul ecx, ecx, 0x4c7
mov edx, dword [0x46d67c]
mov byte [edx + ecx + 0xbb], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4110c4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 8], eax
push 0x4c7
mov ecx, dword [ebp + 8]
push ecx
push 0x467ef0
call fcn.00420e40
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x41113c
push 0x469f40
mov edx, dword [ebp + 0xc]
push edx
call fcn.00421290
add esp, 8
test eax, eax
je 0x41113c
push 0x21
push 0
push 0x467ef8
call fcn.00421180
add esp, 0xc
push 0x20
mov eax, dword [ebp + 0xc]
push eax
push 0x467ef8
call fcn.004204d0
add esp, 0xc
jmp 0x41117f
mov ecx, 0x467ef8
test ecx, ecx
je 0x41115b
push 0x469f44
push 0x467ef8
call fcn.00421290
add esp, 8
test eax, eax
jne 0x41117f
push 0x21
push 0
push 0x467ef8
call fcn.00421180
add esp, 0xc
push 0x20
push 0x467ef8
mov edx, dword [ebp - 8]
push edx
call fcn.00410f99
add esp, 0xc
mov eax, 0x467ef8
test eax, eax
je 0x41119e
push 0x469f48
push 0x467ef8
call fcn.00421290
add esp, 8
test eax, eax
jne 0x4111a5
xor al, al
jmp 0x4112df
call fcn.00409458
test eax, eax
jne 0x4111b5
xor al, al
jmp 0x4112df
call fcn.004130f0
and eax, 0xff
test eax, eax
jne 0x4111ed
push str.Can_not_init_env_param_list
push 0x1028
push 0x45b528
mov ecx, dword [0x45b824]
push ecx
call fcn.00409481
add esp, 0x10
call fcn.0040946f
xor al, al
jmp 0x4112df
mov dword [0x46847c], 0x52872134
mov word [0x46847a], 0
push str.zxcomm
push 0x4683c0
call fcn.004213a0
add esp, 8
push 0x45b54c
push 0x4683e1
call fcn.004213a0
add esp, 8
push 0x45b558
push 0x468402
call fcn.004213a0
add esp, 8
push 0x46db80
call fcn.00412dd7
add esp, 4
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0040b796
add esp, 8
and eax, 0xff
test eax, eax
jne 0x411260
xor al, al
jmp 0x4112df
mov ecx, dword [0x468043]
push ecx
call fcn.0040d157
add esp, 4
xor edx, edx
mov dx, word [0x46d4ef]
xor eax, eax
mov ax, word [0x46d4e3]
lea ecx, [eax + edx*2]
xor edx, edx
mov dx, word [0x46d4e7]
add ecx, edx
xor eax, eax
mov ax, word [0x46d4e5]
lea ecx, [ecx + eax + 1]
push ecx
push 0
call fcn.00415ced
add esp, 8
test eax, eax
jne 0x4112cb
push str.create_Comm_Hash_Table_fail_
push 0x103f
push 0x45b580
mov edx, dword [0x45b824]
push edx
call fcn.00409481
add esp, 0x10
xor al, al
jmp 0x4112df
push 0x3f2
call fcn.00410933
add esp, 4
call fcn.004110b4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x412edb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412f10
cmp dword [ebp + 0x18], 0
je 0x412f10
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
cmp dword [ebp - 4], 0
jne 0x412f1a
xor al, al
jmp 0x412f1c
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x41491a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push 0x45bccc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x414956
xor eax, eax
jmp 0x4149d5
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 0x45bd04
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x414980
cmp dword [ebp - 0xc], 1
je 0x41498e
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4149d5
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push str.CtlIpaddress
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x4149c0
xor eax, eax
jmp 0x4149d5
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_ntohl
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4149d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push 0x45bd20
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414a1c
xor eax, eax
jmp 0x414a95
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x45bd58
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x414a46
cmp dword [ebp - 0x14], 1
je 0x414a54
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x414a95
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.CtlPortbase
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x414a86
xor eax, eax
jmp 0x414a95
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0xc]
mov word [eax], cx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x414a99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push 0x45bd70
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x414adc
xor eax, eax
jmp 0x414b55
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x45bda8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x414b06
cmp dword [ebp - 0x14], 1
je 0x414b14
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x414b55
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.MediaPortbase
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x414b46
xor eax, eax
jmp 0x414b55
mov eax, dword [ebp + 8]
mov cx, word [ebp - 0xc]
mov word [eax], cx
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x414bc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesNetUcardParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x414c03
xor eax, eax
jmp 0x414c9e
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push str.IsIPValid
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x414c2d
cmp dword [ebp - 0xc], 1
je 0x414c3b
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x414c9e
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push str.MediaIpaddress
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x414c6d
xor eax, eax
jmp 0x414c9e
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x414c89
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041491a
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x414c9e
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4208ec
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0x60
push 0x443090
call fcn.004249c8
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x420aa3
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push 0
test eax, eax
jne 0x420949
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x420aa3
mov eax, dword [esi + 0x10]
mov dword [0x46cce0], eax
mov eax, dword [esi + 4]
mov dword [0x46ccec], eax
mov eax, dword [esi + 8]
mov dword [0x46ccf0], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x46cce4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x46cce0], 2
je 0x420987
or byte [0x46cce5], 0x80
mov eax, dword [0x46ccec]
shl eax, 8
add eax, dword [0x46ccf0]
mov dword [0x46cce8], eax
call fcn.00420890
mov dword [ebp - 0x1c], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.004269cd
pop ecx
test eax, eax
jne 0x4209b8
push 0x1c
call fcn.0042086c
pop ecx
call fcn.0042469e
test eax, eax
jne 0x4209c9
push 0x10
call fcn.0042086c
pop ecx
mov dword [ebp - 4], ebx
call fcn.0042679f
test eax, eax
jge 0x4209dd
push 0x1b
call fcn.00420847
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x470b80], eax
call fcn.00426679
mov dword [0x46cd24], eax
call fcn.004265d8
test eax, eax
jge 0x420a03
push 8
call fcn.00420847
pop ecx
call fcn.0042638e
test eax, eax
jge 0x420a14
push 9
call fcn.00420847
pop ecx
call fcn.00420038
mov dword [ebp - 0x28], eax
test eax, eax
je 0x420a27
push eax
call fcn.00420847
pop ecx
call fcn.00426325
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], bl
je 0x420a3a
movzx eax, word [ebp - 0x40]
jmp 0x420a3d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x400000
call fcn.00430717
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x420a5e
push esi
call fcn.0042014d
call fcn.0042016f
jmp 0x420a90
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x420aa8
mov eax, 0xff
call fcn.00424a03
ret
Function at 0x426010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x45d960]
je 0x426028
inc eax
cmp eax, 0x12
jb 0x426019
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x45d960]
mov dword [ebp + 8], esi
jne 0x42616e
mov eax, dword [0x46cd2c]
cmp eax, 1
push ebx
je 0x42613e
test eax, eax
jne 0x42605d
cmp dword [0x45d064], 1
je 0x42613e
cmp ecx, 0xfc
je 0x42616d
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x46ceb8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x46ced2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x46cfd6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4260ab
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x46ced2
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4260b0
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4260e3
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4260c4
sub eax, edx
push 3
lea eax, [eax + 0x46ce97]
push 0x4439e4
push eax
call fcn.004204d0
add esp, 0xc
mov edx, 0x46ceb8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4260eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x45d964]
mov esi, 0x4439e0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x426106
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x426112
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0042ad43
add esp, 0xc
pop edi
jmp 0x42616d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x42616d
mov esi, dword [esi + 0x45d964]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x426155
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret

Function at 0x427cc2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x427cf0
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x427cf5
cmp eax, 1
je 0x427cf5
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret