joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb0df10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xb229fb
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 0xb0e002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00b11dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xb0e002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00b096e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00b1220b
push 0x10
call fcn.00b121d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xb0dfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00afe1c0
jmp 0xb0dfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00b0db80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xb0dff0
mov ecx, edi
call fcn.00afe2c0
push edi
call fcn.00b121c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xb0e021
inc ebx
cmp ebx, 0x20
jb 0xb0df3e
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 0xb0f250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb23808
push 0xb13288
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 0xb0f329
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 0xb0f329
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.00b121d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xb0f329
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 0xb0f329
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 0xb0f32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00b0f351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb0fd20
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 0xb0fd58
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 0xb0fd60
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 0xb0fd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xb0fd94
push eax
push esi
call fcn.00b1220b
add esp, 8
pop esi
ret 0x10

Function at 0xb0fda0
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 0xb0fe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xb0fe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xb28320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b11dff
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 0xb0fdda
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 0xb0fe30
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 0xb0fec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xb0feb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xb28320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00b11dff
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 0xb0feab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xb0fe6a
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 0xb10000
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 0xb10131
push esi
call fcn.00b13145
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.00b02080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xb10131
push 0
push ebp
call fcn.00b023a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00b02260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xb1008b
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.00b022f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb10121
push 0xb28918
push edi
call fcn.00b113f0
push eax
push ebx
push esi
call fcn.00b0ff60
push 0xb288f8
push edi
call fcn.00b113f0
push eax
push ebx
push esi
call fcn.00b0ff60
push 0xb288d8
push edi
call fcn.00b113f0
push eax
push ebx
push esi
call fcn.00b0ff60
push 0xb288c0
push edi
call fcn.00b113f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00b0ff60
push 0xb288a0
push edi
call fcn.00b113f0
push eax
push ebx
push esi
call fcn.00b0ff60
push 0xb28888
push edi
call fcn.00b113f0
push eax
push ebx
push esi
call fcn.00b0ff60
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 0xb111b0
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.00b11140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b11140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b11140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b11140
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 0xb11bfa
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 0xb11c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb2387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb11c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb11c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41c844
mov edi, eax
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4011ab
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [eax], esi
call fcn.0040a951
push esi
mov edi, eax
push 0
push edi
call fcn.00411f50
mov ecx, dword [ebp - 4]
push esi
push ecx
push edi
call fcn.0040e420
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401310
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40], eax
xor eax, eax
push edi
push 0x288
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], 0xffffffff
mov word [ebp - 0x24], ax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
xor ebx, ebx
call fcn.0040ad88
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
add esp, 4
lea ecx, [ebp - 0x34]
mov edi, eax
push ecx
push edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], 0x288
call esi
cmp eax, 0x6f
jne 0x401399
push edi
call fcn.0040ae1c
mov edx, dword [ebp - 0x34]
push edx
call fcn.0040ad88
add esp, 8
mov dword [ebp - 0x2c], eax
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push edi
call esi
test eax, eax
jne 0x401460
mov eax, edi
mov dword [ebp - 0x30], edi
test edi, edi
je 0x401460
jmp 0x4013ba
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
inc dword [ebp - 0x28]
test ecx, ecx
je 0x4013d7
mov edx, dword [eax + 0x194]
mov dword [ecx], edx
mov dx, word [eax + 0x198]
mov word [ecx + 4], dx
lea edi, [eax + 0x1ac]
test edi, edi
je 0x40144c
lea eax, [edi + 4]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013e7
sub eax, esi
mov ecx, eax
cmp ecx, 0x10
jle 0x4013fc
mov ecx, 0x10
xor eax, eax
test ecx, ecx
js 0x40141d
cmp eax, ecx
jne 0x40140d
xor esi, esi
mov word [ebp + eax*2 - 0x24], si
movsx si, byte [edi + eax + 4]
mov word [ebp + eax*2 - 0x24], si
inc eax
cmp eax, ecx
jle 0x401404
lea eax, [ebp - 0x24]
push eax
call fcn.00401540
add esp, 4
test eax, eax
je 0x401442
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ebx*4]
lea ecx, [ebp - 0x24]
push ecx
push 0x10
push eax
call fcn.0040a83e
add esp, 0xc
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x4013e1
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x40145d
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4013b7
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], ebx
test edi, edi
je 0x401472
push edi
call fcn.0040ae1c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x401720
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00411f50
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4017eb
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x4017bc
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x40179c
cmp word [ebp - 0xc], 4
jb 0x4017eb
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
cmp eax, 2
jae 0x4017a6
cmp eax, 1
jne 0x4017eb
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4017eb
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4017e1
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4017eb
mov esi, 5
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a82f
mov esp, ebp
pop ebp
ret

Function at 0x401900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411f50
add esp, 0xc
cmp dword [0x422f30], 3
jne 0x401967
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x420c1c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b2c5
add esp, 0xc
jmp 0x401979
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x420c20
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x401be0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
je 0x401d07
push 0xc00
call fcn.0040a951
mov ecx, dword [ebp + 8]
add esp, 4
push ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401cfa
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x401c5a
jg 0x401c4b
test ecx, ecx
je 0x401c5a
mov ebx, dword [esi + 0x40]
mov edi, eax
mov eax, dword [esi + 0x44]
mov edx, ecx
mov dword [ebp - 0x14], eax
jmp 0x401c5d
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xc8]
cmp eax, edi
jl 0x401c8a
jg 0x401c73
cmp ecx, edx
jbe 0x401c8a
mov ebx, dword [esi + 0xd0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0xd4]
mov edx, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x14], ecx
mov eax, dword [esi + 0x15c]
mov ecx, dword [esi + 0x158]
cmp eax, edi
jl 0x401cb6
jg 0x401ca0
cmp ecx, edx
jbe 0x401cb6
mov edx, dword [esi + 0x164]
mov ebx, dword [esi + 0x160]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
mov ecx, dword [esi + 0x1e8]
cmp eax, edi
jl 0x401ce2
jg 0x401ccc
cmp ecx, edx
jbe 0x401ce2
mov ebx, dword [esi + 0x1f0]
mov edi, eax
mov eax, dword [esi + 0x1f4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
mov edx, ecx
mov eax, dword [ebp - 0x14]
push 0
add ebx, edx
push 0x200
adc eax, edi
push eax
push ebx
call fcn.00415b30
mov dword [ebp - 4], eax
test esi, esi
je 0x401d07
push esi
call fcn.0040b25b
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
push edi
xor eax, eax
xor edi, edi
mov dword [ebp - 4], eax
cmp esi, 0xffffffff
je 0x401e68
push 0x400
call fcn.0040a951
add esp, 4
push 0x400
mov ebx, eax
push edi
push ebx
call fcn.00411f50
add esp, 0xc
push esi
call fcn.00401be0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
shld ecx, eax, 9
add esp, 4
shl eax, 9
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 8]
push ecx
push 0x400
push ebx
push esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x401e58
cmp dword [ebx + 4], 0x5042475f
jne 0x401de3
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401dd2
sub eax, edx
sar eax, 1
jne 0x401e41
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x400
push ebx
push esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 0x3c00
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x401e58
cmp dword [ebx + 4], 0x5042475f
jne 0x401e58
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401e30
sub eax, edx
sar eax, 1
je 0x401e58
mov edi, dword [ebp + 8]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
mov dword [ebp - 4], 1
cmp ebx, edi
je 0x401e65
push ebx
call fcn.0040b25b
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00411f50
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
lea ebx, [ebp - 0x214]
call fcn.00401ae0
mov ebx, dword [ebp - 0x214]
add esp, 4
call fcn.00401a30
cmp eax, 0xffffffff
jne 0x401ef8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
push esi
call fcn.00401d40
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x403130
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.00413d80
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x420720
push eax
lea eax, [ebp - 0x1064]
xor ebx, ebx
push eax
mov dword [ebp - 0x1064], ebx
call fcn.0040aa8f
mov eax, dword [ebp - 0x1064]
add esp, 0xc
cmp eax, ebx
jne 0x403191
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
push esi
push 2
push ebx
push eax
call fcn.0040b7b7
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.0040b9c7
mov edx, dword [ebp - 0x1064]
push ebx
push ebx
push edx
mov dword [ebp - 0x1068], eax
call fcn.0040b7b7
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
mov dword [ebp - 0x105c], ebx
mov dword [ebp - 0x1060], ebx
mov dword [ebp - 0x1058], 0x67452301
mov dword [ebp - 0x1054], 0xefcdab89
mov dword [ebp - 0x1050], 0x98badcfe
mov dword [ebp - 0x104c], 0x10325476
mov dword [ebp - 0x1048], 0xc3d2e1f0
call fcn.0040bc76
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x403258
lea esp, [esp]
lea edx, [ebp - 0x1060]
push edx
push esi
lea ecx, [ebp - 0x1004]
call fcn.00402fa0
mov eax, dword [ebp - 0x1064]
push eax
push 0x1000
lea ecx, [ebp - 0x1004]
push 1
push ecx
add ebx, esi
call fcn.0040bc76
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x403220
push edi
lea esi, [ebp - 0x1060]
call fcn.00403040
mov edx, dword [ebp - 0x1064]
push edx
call fcn.0040ad14
add esp, 8
pop esi
cmp ebx, dword [ebp - 0x1068]
jb 0x403172
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
Function at 0x4032a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x806]
push edx
mov dword [ebp - 0x9b4], eax
mov word [ebp - 0x808], cx
call fcn.00411f50
xor eax, eax
add esp, 0xc
lea esi, [ebp - 0x808]
cmp edi, eax
je 0x4032ec
mov esi, edi
lea edx, [ebp - 0x9a8]
push edx
xor ecx, ecx
push 0x101
mov word [esi], cx
mov dword [ebp - 0x9ac], eax
mov dword [ebp - 0x9b0], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403358
push 0x420338
push 0x3ff
push esi
call fcn.0040a83e
push 0x420358
push 0x3ff
push esi
call fcn.0040b2c5
push 0x42035c
push 0x3ff
push esi
call fcn.0040b2c5
add esp, 0x24
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x403392
push 0x42039c
push 0x3ff
push esi
call fcn.0040a83e
push 0x4203bc
push 0x3ff
push esi
call fcn.0040b2c5
push 0x4203c0
jmp 0x403338
mov edi, dword [ebp - 0x9b4]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403421
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9ac], eax
push 4
lea eax, [ebp - 0x9ac]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x403421
push 0x420400
push 0x3ff
push esi
call fcn.0040a83e
push 0x420420
push 0x3ff
push esi
call fcn.0040b2c5
push 0x420424
push 0x3ff
push esi
call fcn.0040b2c5
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x40340b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0
mov eax, dword [ebp - 0x9b0]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a82f
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
mov ecx, 2
push edx
mov dword [ebp - 0x814], eax
mov word [ebp - 0x818], cx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebx]
mov word [ebp - 0x816], ax
push 0x10
lea eax, [ebp - 0x818]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40348b
push 0x420464
push 0x3ff
push esi
call fcn.0040a83e
push 0x420484
push 0x3ff
push esi
call fcn.0040b2c5
push 0x420488
jmp 0x4033ea
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x9b0], 1
mov eax, dword [ebp - 0x9b0]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a82f
mov esp, ebp
pop ebp
ret