joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402460
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0
push esi
push 0x402450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x1084], eax
jne 0x40249d
push 0x4e33
push esi
call fcn.00402ee0
add esp, 8
mov dword [esi + 0xa0c], 0
mov eax, dword [esi + 0xa0c]
pop esi
pop ecx
ret

Function at 0x402d80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
mov eax, dword [ebp + 0xc18]
test eax, eax
je 0x402e8f
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xc20]
cmp eax, ecx
jg 0x402e8f
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x402e8f
mov esi, dword [esp + 0x38]
test esi, esi
je 0x402e8f
lea ecx, [esp + 0xc]
push edi
push ecx
call dword [sym.imp.MSVCRT.dll__wstrdate]
add esp, 4
lea edx, [esp + 0x22]
mov edi, 0x20
push edx
mov word [esp + 0x24], di
call dword [sym.imp.MSVCRT.dll__wstrtime]
mov eax, dword [ebp + 0xc1c]
add esp, 4
mov word [esp + 0x32], di
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp word [ebp + 0xa10], 0
jne 0x402e68
xor esi, esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402e3f
inc edi
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x402e3f
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp + 0xc18]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x402e81
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x402e81
mov eax, dword [ebp + 0xc18]
lea ecx, [esp + 0x40]
push 0
lea edx, [esi + esi]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0xc1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x403630
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
lea eax, [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x18]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4036cc
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 8]
lea ecx, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x18]
push ebx
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4036c2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4036bb
cmp eax, 2
jne 0x4036c2
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00418400
mov esi, esp
test esi, esi
je 0x4036c2
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4036c2
cmp eax, edi
jae 0x4036c2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403750
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x114
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push 0x103
push edx
shl ecx, 4
push esi
mov dword [esi + 0x434], ecx
mov word [esi + 0x206], 0
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret 4
Function at 0x4037c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
mov esi, ecx
push 1
push SQLAllocConnect
push esi
call dword [sym.imp.SQLWOA.dll__CreateFile_28]
cmp eax, 0xffffffff
mov dword [esi + 0x208], eax
jne 0x4037fc
mov ecx, esi
call fcn.00403930
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
push 1
push edi
push edi
push edx
mov ebx, eax
call fcn.00418430
xor ecx, ecx
add eax, ebx
adc edx, ecx
mov dword [esi + 0x420], eax
mov eax, edx
mov dword [esi + 0x438], edi
mov dword [esi + 0x440], edi
cmp eax, edi
mov dword [esi + 0x424], edx
mov dword [esi + 0x43c], edi
mov dword [esi + 0x444], edi
mov dword [esi + 0x448], edi
mov ebx, 2
ja 0x40385b
cmp dword [esi + 0x420], edi
jbe 0x403892
mov edx, dword [esi + 0x208]
push edi
push edi
push edi
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x418], eax
je 0x403892
mov ecx, esi
call fcn.00403ba0
test eax, eax
jne 0x403892
mov ecx, esi
call fcn.00403930
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 0x208]
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x16]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4038bf
mov ecx, esi
call fcn.00403930
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0x14], ebx
jne 0x4038fb
mov ax, word [esp + 0xe]
cmp al, 0xff
jne 0x4038fb
cmp ah, 0xfe
jne 0x4038fb
mov ecx, dword [esi + 0x440]
mov dword [esi + 0x414], 1
add ecx, ebx
mov dword [esi + 0x440], ecx
mov eax, dword [esi + 0x444]
adc eax, edi
mov dword [esi + 0x444], eax
jmp 0x403911
mov eax, dword [esi + 0x208]
push edi
push edi
push edi
push eax
mov dword [esi + 0x414], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x410], 1
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x403990
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor eax, eax
push edi
cmp esi, eax
mov ebx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
je 0x403b90
cmp dword [ebx + 0x448], eax
je 0x403b60
mov ebp, dword [esp + 0x24]
mov eax, esi
cdq
mov dword [ebp], esi
mov edi, dword [ebx + 0x440]
mov ecx, dword [ebx + 0x430]
add eax, edi
mov edi, dword [ebx + 0x444]
adc edx, edi
xor edi, edi
cmp edx, edi
jb 0x403a06
ja 0x4039e7
cmp eax, ecx
jbe 0x403a06
sub ecx, dword [ebx + 0x440]
mov dword [ebp], ecx
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x403a06
mov dword [esp + 0x14], 1
mov ecx, dword [ebp]
xor eax, eax
cmp ecx, eax
je 0x403a60
mov esi, dword [ebx + 0x41c]
mov edx, dword [ebx + 0x440]
mov edi, dword [esp + 0x1c]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x440]
add ecx, eax
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x440], ecx
mov eax, dword [ebx + 0x444]
adc eax, 0
mov dword [ebx + 0x444], eax
mov ecx, dword [ebp]
mov dword [esp + 0x10], ecx
mov edi, ecx
xor eax, eax
jmp 0x403a64
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x14], 1
jne 0x403b90
jmp 0x403a73
xor eax, eax
mov edx, dword [ebx + 0x41c]
mov dword [ebx + 0x438], eax
mov dword [ebx + 0x440], eax
push edx
mov dword [ebx + 0x43c], eax
mov dword [ebx + 0x444], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, ebx
mov dword [ebx + 0x41c], 0
call fcn.00403ba0
test eax, eax
je 0x403b7d
mov eax, dword [ebp]
mov ecx, dword [ebx + 0x430]
mov edx, esi
sub edx, eax
cmp edx, ecx
jbe 0x403adf
add eax, ecx
mov dword [ebp], eax
mov eax, dword [ebx + 0x420]
or eax, dword [ebx + 0x424]
je 0x403aea
mov dword [esp + 0x14], 1
jmp 0x403aea
mov dword [ebp], esi
mov dword [esp + 0x14], 0
mov ecx, dword [ebp]
sub ecx, edi
je 0x403b46
mov esi, dword [ebx + 0x41c]
mov eax, dword [ebx + 0x440]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, ecx
add 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]
mov ecx, dword [ebp]
mov esi, dword [esp + 0x10]
mov edx, dword [ebx + 0x440]
sub ecx, esi
add edx, ecx
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x440], edx
mov eax, dword [ebx + 0x444]
adc eax, 0
mov dword [ebx + 0x444], eax
mov edx, dword [ebp]
mov dword [esp + 0x10], edx
mov edi, edx
cmp dword [esp + 0x14], 1
je 0x403a71
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x208]
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403b90
mov ecx, ebx
call fcn.00403930
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
Function at 0x403ba0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
mov edx, dword [esi + 0x424]
mov eax, dword [esi + 0x434]
cmp edx, ecx
ja 0x403bfa
jb 0x403bc1
mov ecx, dword [esi + 0x420]
cmp ecx, eax
ja 0x403bfa
mov edx, dword [esi + 0x428]
push 0
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov ecx, 0x20
call fcn.00418470
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x420]
mov dword [esi + 0x41c], eax
jmp 0x403c30
mov edx, dword [esi + 0x428]
push eax
push edx
mov eax, edx
mov edx, dword [esi + 0x42c]
mov ecx, 0x20
call fcn.00418470
push eax
mov eax, dword [esi + 0x418]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x434]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
mov dword [esi + 0x430], ecx
test eax, eax
je 0x403c8d
mov edx, dword [esi + 0x420]
mov eax, ecx
xor ecx, ecx
sub edx, eax
mov dword [esi + 0x420], edx
mov edx, dword [esi + 0x424]
sbb edx, ecx
mov dword [esi + 0x448], 1
mov dword [esi + 0x424], edx
mov edx, dword [esi + 0x428]
add edx, eax
mov dword [esi + 0x428], edx
mov eax, dword [esi + 0x42c]
adc eax, ecx
mov dword [esi + 0x42c], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x406740
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, edi
push 0
neg eax
sbb eax, eax
mov ecx, dword [ebp]
and eax, 2
push 0x80
add eax, 2
mov dword [esp + 0x18], 0
push eax
push 0
push 1
push 0xc0000000
push ecx
call dword [sym.imp.SQLWOA.dll__CreateFile_28]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4067ac
mov ecx, dword [0x423d70]
call fcn.004012f0
mov edx, dword [ebp]
push edx
push 0x5dcd
push 0x423d60
call fcn.00412320
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
jne 0x4067dc
lea eax, [esp + 0x10]
push 0
push eax
push 2
push 0x41e1d8
push esi
call ebx
test eax, eax
jne 0x4067ff
mov ecx, dword [0x423d70]
call fcn.004012f0
mov ecx, dword [ebp]
push ecx
jmp 0x406829
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4067ff
mov ecx, dword [0x423d70]
call fcn.004012f0
mov edx, dword [ebp]
push edx
jmp 0x406829
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push 0
push eax
mov ecx, dword [edi + 4]
mov edx, dword [edi]
shl ecx, 1
push ecx
push edx
push esi
call ebx
test eax, eax
jne 0x40683d
mov ecx, dword [0x423d70]
call fcn.004012f0
mov eax, dword [ebp]
push eax
push 0x5dce
push 0x423d60
call fcn.00412320
add esp, 0xc
jmp 0x40684a
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x10]
shl ecx, 1
cmp eax, ecx
je 0x406867
test esi, esi
je 0x406855
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp]
push edx
call dword [sym.imp.SQLWOA.dll__DeleteFile_4]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x411c50
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edi + 4]
lea ebp, [eax + ebx*8]
call dword [edx]
test eax, eax
mov dword [esp + 0x14], eax
jl 0x411cac
lea eax, [esp + 0x18]
mov dword [ebp + 4], esi
mov edx, dword [esi]
push eax
push 0
push ebp
mov ecx, esi
shl ebx, 2
call dword [edx + 8]
push eax
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [edi + 8]
add esp, 0x18
mov dword [ecx + ebx], eax
mov edx, dword [edi + 8]
cmp dword [edx + ebx], 0
jne 0x411cac
mov dword [esp + 0x14], 0x80004005
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4127d0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412822
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x412822
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x412822
ret
and eax, 0xffff
or eax, 0x80040000
ret
Function at 0x4137b0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
mov byte [esi], 0
mov byte [edi], 0
mov ecx, dword [str.HardwareDescriptionSystem]
push eax
push 0x20019
push 0
push ecx
push reloc.ODBC32.dll_SQLAllocEnv
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413829
mov edx, dword [esp + 0x14]
mov ecx, dword [str.Identifier]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0
push ecx
push edx
call esi
mov eax, dword [esp + 0x18]
mov edx, dword [str.SystemBiosVersion]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push edi
push ecx
push 0
push edx
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
ret
Function at 0x4180d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0xa4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x8c], 1
jne 0x418120
mov dword [0x424bb8], 0
jmp 0x41812a
mov dword [0x424bb8], 1
xor ecx, ecx
cmp dword [0x424bb8], 0
sete cl
mov dword [0x424bb4], ecx
mov dword [0x4246b0], 1
lea edx, [ebp - 0xa4]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftMSSQLServerClient
push reloc.ODBC32.dll_SQLAllocConnect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4181bf
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.SQLSTRDebug
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4181a9
cmp dword [ebp - 0xa0], 0
je 0x4181a9
mov dword [0x4246b0], 0
cmp dword [ebp - 0xa4], 0
je 0x4181bf
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa4], 0
lea edx, [ebp - 0xa4]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftMSSQLServerSQLSTR
push reloc.ODBC32.dll_SQLAllocConnect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418242
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.RetailDebug
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41822c
cmp dword [ebp - 0xa0], 0
je 0x41822c
mov dword [0x4246b4], 1
cmp dword [ebp - 0xa4], 0
je 0x418242
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x424bb8]
mov esp, ebp
pop ebp
ret
Function at 0x418290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b190
push 0x4184e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x424bc0], 0xffffffff
mov dword [0x424bc4], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4246a8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4246a4]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x424bbc], ecx
call fcn.00418620
mov eax, dword [0x423570]
test eax, eax
jne 0x418321
push 0x418610
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.004185f0
push 0x41d020
push 0x41d01c
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4246a0]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x42469c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x41d018
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00405f80
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4183c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4056b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x548
lea eax, [esp + 0x160]
push esi
push 0x432470
push str._sTemp_tempr.tmp
push eax
call fcn.00418db9
add esp, 0xc
lea ecx, [esp + 0x24]
lea edx, [esp + 0x164]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057b4
push ebx
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x38]
push ecx
push edx
call ebx
mov ax, word [esp + 0x22]
cmp ax, word [esp + 0x12]
je 0x405756
cmp word [esp + 0x24], 0x17
jne 0x405730
cmp word [esp + 0x14], 0
je 0x40579b
lea ecx, [esp + 0x58]
lea edx, [esp + 0x16c]
push ecx
push 0x432470
push str._sTemp_s
push edx
call fcn.00418db9
lea eax, [esp + 0x17c]
push eax
jmp 0x405793
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
inc ecx
cmp ecx, edx
jge 0x40579b
lea eax, [esp + 0x58]
lea ecx, [esp + 0x16c]
push eax
push 0x432470
push str._sTemp_s
push ecx
call fcn.00418db9
lea edx, [esp + 0x17c]
push edx
call fcn.00411fc0
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
push esi
call edi
test eax, eax
jne 0x405708
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
pop esi
add esp, 0x548
ret
Function at 0x408800
Capabilities:
Copy file

Disassembly:
sub esp, 0x25c
lea eax, [esp]
push eax
call fcn.004194af
mov ecx, dword [esp + 4]
push 1
push ecx
mov dword [0x4325f8], 0
call fcn.004087d0
push str.on_funcionando_espejo
push 2
call fcn.0040d050
push 0x42c4e0
lea edx, [esp + 0x148]
push str._sinst2.dax
push edx
call fcn.00418db9
push 0x42c4e0
lea eax, [esp + 0x28]
push str._sinst.da1
push eax
call fcn.00418db9
add esp, 0x2c
lea ecx, [esp + 4]
lea edx, [esp + 0x130]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [0x432610], 1
add esp, 0x25c
ret
Function at 0x409440
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push edi
push eax
push ecx
push 0x2800
push 0x42fc6c
call fcn.0041958b
mov edi, 0x42fc6c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov edx, dword [esp + 8]
push 0
not ecx
dec ecx
push ecx
push 0x42fc6c
push edx
call dword [sym.imp.WSOCK32.dll_send]
inc eax
pop edi
neg eax
sbb eax, eax
neg eax
dec eax
ret

Function at 0x4094e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push esi
jge 0x4094f0
pop esi
or eax, 0xffffffff
pop ebp
ret
lea ecx, [ebp*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call fcn.004195db
add esp, 4
mov esi, eax
test eax, eax
jne 0x40951c
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
push edi
test ebp, ebp
jle 0x4095a9
mov edi, dword [esp + 0x10]
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x409540
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x40954f
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
mov ebx, edx
inc ecx
sar ebx, 0x12
and ebx, 0x3f
mov bl, byte [ebx + 0x42b050]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
mov bl, byte [ebx + 0x42b050]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
and edx, 0x3f
cmp ecx, ebp
mov bl, byte [ebx + 0x42b050]
mov byte [esi + 2], bl
mov dl, byte [edx + 0x42b050]
mov byte [esi + 3], dl
jle 0x409596
mov byte [esi + 3], 0x3d
lea edx, [ebp + 1]
cmp ecx, edx
jle 0x4095a1
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, ebp
jl 0x40952c
pop ebx
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov edi, eax
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x409e20
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x409e4b
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x409e49
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x409e49
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40aef0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov ecx, dword [ecx + 0x108]
lea eax, [esp]
push 4
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x40af34
push 0x4325fc
lea ecx, [esp + 8]
call fcn.0040b8d0
lea edx, [esp + 4]
push 0x4289b0
push edx
call fcn.00418ed4
add esp, 0xc
ret