joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57bda0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x57be0b
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x57be45
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0057baa0
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x57bdd5
mov edi, 0x595860
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x57be45
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0057baa0
add edi, 4
add esp, 0xc
cmp edi, 0x595874
jb 0x57be10
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x57be80
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.005823a2
mov esi, eax
add esp, 8
test esi, esi
je 0x57bf17
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x57bf12
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00581d7f
add esp, 8
test eax, eax
je 0x57bef3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x57bef8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00581d7f
add esp, 8
test eax, eax
jne 0x57bed5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x57bf12
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x57cd20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5908ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x57ce12
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0058142f
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x57ce12
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00578380
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0058183b
push 0x10
call fcn.00581803
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x57cdd5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0056e1c0
jmp 0x57cdd7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0057c990
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x57ce00
mov ecx, edi
call fcn.0056e2c0
push edi
call fcn.005817f8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x57ce31
inc ebx
cmp ebx, 0x20
jb 0x57cd4e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x57e010
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591818
push 0x5824fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x57e0e9
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x57e0e9
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00581803
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x57e0e9
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x57e0e9
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x57e0ec
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0057e111
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57eb30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x57eb68
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x57eb70
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x57eba4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x57eba4
push eax
push esi
call fcn.0058183b
add esp, 8
pop esi
ret 0x10

Function at 0x57ebb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57ec32
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x57ec25
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x5962fc
push ecx
mov dword [esp + 0x1c], 4
call fcn.0058142f
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x57ebea
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x57ec40
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57ecd2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x57ecc5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x5962fc
push ecx
mov dword [esp + 0x1c], 4
call fcn.0058142f
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x57ecbb
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x57ec7a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x57ee50
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x57ef81
push esi
call fcn.00582465
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00571150
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x57ef81
push 0
push ebp
call fcn.00571470
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00571330
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x57eedb
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005713c0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x57ef71
push 0x5968f4
push edi
call fcn.00580280
push eax
push ebx
push esi
call fcn.0057edb0
push 0x5968d4
push edi
call fcn.00580280
push eax
push ebx
push esi
call fcn.0057edb0
push 0x5968b4
push edi
call fcn.00580280
push eax
push ebx
push esi
call fcn.0057edb0
push 0x59689c
push edi
call fcn.00580280
add esp, 0x44
push eax
push ebx
push esi
call fcn.0057edb0
push 0x59687c
push edi
call fcn.00580280
push eax
push ebx
push esi
call fcn.0057edb0
push 0x596864
push edi
call fcn.00580280
push eax
push ebx
push esi
call fcn.0057edb0
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x580040
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0057ffd0
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0057ffd0
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0057ffd0
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0057ffd0
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret
Function at 0x581230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x581286
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x59188c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x581279
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x581288
xor eax, eax
pop esi
leave
ret 4

Function at 0x5883f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5b17d0
cmp edx, dword [eax]
je 0x588412
add eax, 8
inc ecx
cmp eax, 0x5b1860
jl 0x588403
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5b17d0]
jne 0x588540
mov eax, dword [0x5b6918]
cmp eax, 1
je 0x58851a
test eax, eax
jne 0x588443
cmp dword [0x5b1024], 1
je 0x58851a
cmp edx, 0xfc
je 0x588540
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x58847a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005897e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.005886c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x5884bd
lea eax, [ebp - 0x1a4]
push eax
call fcn.005886c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x591d40
push edi
call fcn.00589660
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005897e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005897f0
lea eax, [ebp - 0xa0]
push 0x591d20
push eax
call fcn.005897f0
push dword [esi + 0x5b17d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.005897f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0058ba03
add esp, 0x2c
pop edi
jmp 0x588540
lea eax, [ebp + 8]
lea esi, [esi + 0x5b17d4]
push 0
push eax
push dword [esi]
call fcn.005886c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x408f60
Capabilities:
Terminate process

Disassembly:
push edi
sub esp, 0xc
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00408fe4
push 6
push 0x446ea8
call fcn.0040a380
add esp, 8
cmp eax, 1
je 0x408fc5
test eax, eax
jl 0x408f9c
add esp, 0xc
pop edi
ret
xor ebx, ebx
push ebx
push ebx
push 1
call fcn.0040b970
push 0
push 0x3a
push 1
call fcn.0040b970
push ebx
push ebx
push 1
call fcn.0040b970
add esp, 0x24
push 1
call fcn.004171d6
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
add esp, 0xc
pop edi
jmp fcn.0040bc30
Function at 0x40acc0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 1
jmp 0x40acd0
Function at 0x420b42
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004209b8
Function at 0x417c10
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
lea eax, [esp + 0xc]
mov esi, ebx
push eax
push edi
and esi, 0xff
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ecx, ecx
cmp esi, 5
mov cl, bh
mov edi, ecx
jne 0x417c54
cmp edi, 1
jae 0x417c62
mov dword [0x4c4f58], 0x409
jmp 0x417c6c
ja 0x417c62
mov dword [0x4c4f58], 0x409
jmp 0x417c6c
mov dword [0x4c4f58], 0x7f
test eax, eax
je 0x417c82
mov edx, dword [0x4c5a84]
push 0x4c5770
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ba1e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2338
cmp edx, dword [eax]
je 0x4ba207
add eax, 8
inc ecx
cmp eax, 0x4c23c8
jl 0x4ba1f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2338]
jne 0x4ba335
mov eax, dword [0x4c6cc4]
cmp eax, 1
je 0x4ba30f
test eax, eax
jne 0x4ba238
cmp dword [0x4c2264], 1
je 0x4ba30f
cmp edx, 0xfc
je 0x4ba335
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba26f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004babd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb060
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba2b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb060
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf81c
push edi
call fcn.004bcf30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004babd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004babe0
lea eax, [ebp - 0xa0]
push 0x4bf7fc
push eax
call fcn.004babe0
push dword [esi + 0x4c233c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004babe0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bcea4
add esp, 0x2c
pop edi
jmp 0x4ba335
lea eax, [ebp + 8]
lea esi, [esi + 0x4c233c]
push 0
push eax
push dword [esi]
call fcn.004bb060
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401350
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401367
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401398
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401394
cmp esi, eax
jae 0x401398
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401384
cmp esi, eax
jb 0x40139e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x401d20
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c4
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x4c0], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0x64
mov dword [0x413508], eax
call ebx
lea ecx, [esp + 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDynamicTimeZoneInformation]
push 0xc4
lea edx, [esp + 0x408]
push 0
push edx
mov dword [esp + 0x40c], 0
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x178]
add esp, 0xc
mov edx, eax
jmp 0x401d90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d90
lea edi, [esp + 0x400]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401db0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401db0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0xbb8
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x40abb0
push 0
push 0
call esi
push 0xbb8
call ebx
call fcn.00402450
push 0
push 0
push 0
push 0x40a0b0
push 0
push 0
call esi
push 0x1e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.................
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
call fcn.00408120
add esp, 0x20
call fcn.00402450
call fcn.00402450
push 0
push 0
push 0
push 0x40a0b0
push 0
push 0
call esi
call fcn.00402450
lea eax, [esp + 0x270]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401e68
push 0x3a98
call ebx
call fcn.00407f90
push 0
push 0
push 0
push 0x40a0b0
push 0
push 0
call esi
mov eax, 0x415c68
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401e81
sub eax, edx
jne 0x401eaf
lea esp, [esp]
call fcn.00406d30
push 0x2cec
call ebx
mov eax, 0x415c68
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ea4
sub eax, edx
je 0x401e90
call fcn.00401f80
push 0x1770
call ebx
push 0
push 0
push 0
push 0x40ac80
push 0
push 0
call esi
call fcn.00402450
call fcn.00402450
call fcn.00402450
call fcn.00408d90
push 0
push 0
push 0
push 0x40ad70
push 0
push 0
call esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0xc4
lea edx, [esp + 0x408]
push 0
push edx
mov dword [esp + 0x40c], 0
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x20]
add esp, 0xc
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f24
lea edi, [esp + 0x400]
sub eax, edx
add edi, 0xfffffffe
jmp 0x401f40
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x401f40
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 esp, [esp]
push 0x7530
call ebx
jmp 0x401f60
Function at 0x406d30
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1c0
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x30]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
cmp dword [0x416280], 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x41626c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 6
jae 0x406da5
mov eax, 0x41626c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x406dfb
mov esi, dword [esp + 0xc]
test esi, esi
je 0x406df4
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, dword [sym.imp.MSVCR90.dll_strcpy_s]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
push eax
call edi
push eax
push 0x104
push 0x415c68
call ebx
mov esi, dword [esi + 0x1c]
add esp, 0xc
test esi, esi
jne 0x406dd0
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c106
add esp, 0x1c0
ret
Function at 0x407cb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
push eax
push 0
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
add esp, 0x5c
ret

Function at 0x407f90
Capabilities:
Terminate process

Disassembly:
sub esp, 0x444
mov eax, dword [0x41304c]
xor eax, esp
mov dword [esp + 0x43c], eax
push 0x434
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.00407c50
lea edx, [esp]
jmp 0x407fd0
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x407fd0
lea ecx, [esp]
push ecx
call fcn.00407cb0
add esp, 4
push 0
call dword [sym.imp.MSVCR90.dll_exit]
int3

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x408032
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [0x415530]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x408038
add esi, eax
cmp esi, edi
jl 0x408013
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x408040
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test edi, edi
jle 0x408072
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov edx, dword [0x415530]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x408078
add esi, eax
cmp esi, edi
jl 0x408053
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x408080
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], eax
xor esi, esi
lea esp, [esp]
mov eax, dword [0x415530]
push 0
mov ecx, 4
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x14]
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x4080c8
add esi, eax
cmp esi, 4
jl 0x4080a0
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret