joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008070
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x1000808c
xor al, al
jmp 0x10008180
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
push 5
push 2
push 1
lea ecx, [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100080cd
cmp dword [ebp - 0x14], 0x7a
je 0x100080cd
jmp 0x1000816a
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100080e8
jmp 0x1000816a
push 0
push 5
push 2
push 1
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10008109
jmp 0x1000816a
mov dword [ebp - 0x10], 0
jmp 0x1000811b
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jge 0x10008162
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x18
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jne 0x10008160
mov byte [ebp - 0x15], 1
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x18
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 0x18]
mov dword [edx], ecx
jmp 0x10008162
jmp 0x10008112
xor edx, edx
jne 0x100080a5
cmp dword [ebp - 8], 0
je 0x1000817d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov al, byte [ebp - 0x15]
mov esp, ebp
pop ebp
ret

Function at 0x100086a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
pop ebp
ret
Function at 0x1000aa10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.readx:_fd_d_wanted_d_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0xc
cmp dword [ebp + 0x10], 0
jbe 0x1000aad0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x1000aa71
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x1000aacb
cmp dword [ebp - 8], 0
jge 0x1000aab4
call dword [sym.imp.MSVCR100.dll__errno]
mov edx, dword [eax]
push edx
call dword [sym.imp.MSVCR100.dll_strerror]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.readx:_fd_d_error__d:__s_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 0x10
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 4
jne 0x1000aab2
jmp 0x1000aa35
jmp 0x1000aac6
mov edx, dword [ebp + 8]
push edx
push str.readx:_fd_d_disconnected_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
or eax, 0xffffffff
jmp 0x1000aad2
jmp 0x1000aa35
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000c750
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10014018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], ecx
push 0x1000f4a0
mov ecx, dword [ebp - 0x24]
call fcn.1000bd80
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000c781
or eax, 0xffffffff
jmp 0x1000c8e3
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
jne 0x1000c791
mov ecx, dword [ebp - 0x24]
call fcn.1000cac0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov edx, 2
mov word [ebp - 0x1c], dx
movzx eax, word [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1000c7ff
push 0
push 0x154
call fcn.1000bb60
add esp, 8
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.1000be70
or eax, 0xffffffff
jmp 0x1000c8e3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
push 4
mov edx, dword [0x10025624]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
add ecx, 0xc
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x1000c8cd
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.1000be70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2740
jne 0x1000c89e
cmp dword [0x100255f0], 0xa
jl 0x1000c891
mov dword [0x100255f0], 0
push 0
push 0x158
call fcn.1000bb60
add esp, 8
or eax, 0xffffffff
jmp 0x1000c8e3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000c763
mov dword [0x100255f0], 0
push 1
call fcn.1000bc30
add esp, 4
cmp eax, 0x155
je 0x1000c8c8
push 0
push 0x155
call fcn.1000bb60
add esp, 8
or eax, 0xffffffff
jmp 0x1000c8e3
mov dword [0x100255f0], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.1000bd10
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1000d8d6
mov esp, ebp
pop ebp
ret 8

Function at 0x1000cac0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x10014018]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x19c], ecx
mov eax, dword [ebp - 0x19c]
cmp dword [eax], 0
jne 0x1000cb12
lea ecx, [ebp - 0x198]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 4], eax
push 0x1000cab0
call fcn.1000d9e5
add esp, 4
mov edx, dword [ebp - 0x19c]
mov dword [edx], 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000d8d6
mov esp, ebp
pop ebp
ret
Function at 0x1000d6c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.1000d670
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0xffffffff
jne 0x1000d6fa
xor eax, eax
jmp 0x1000d752
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x14]
je 0x1000d74d
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
je 0x1000d744
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffffff
push 1
call dword [sym.imp.MSVCR100.dll_exit]
xor eax, eax
jmp 0x1000d752
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1000d8d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014018]
jne 0x1000d8e0
repz ret
jmp fcn.1000dd8d
Function at 0x403c30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4186bf
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x45c], ecx
mov ecx, dword [ebp - 0x45c]
call fcn.00407510
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x45c]
add ecx, 8
call fcn.00402050
mov byte [ebp - 4], 1
mov al, byte [0x4193fc]
mov byte [ebp - 0x410], al
push 0x3ff
push 0
lea ecx, [ebp - 0x40f]
push ecx
call fcn.00409c60
add esp, 0xc
mov dword [ebp - 0x474], 0x400
mov edx, dword [ebp - 0x474]
push edx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x403d86
push str.Microsoft.NETFramework
lea ecx, [ebp - 0x458]
call fcn.00402010
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x470]
mov dword [ebp - 0x464], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x464]
push edx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x440]
call fcn.00402010
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x46c]
mov dword [ebp - 0x460], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x460]
push edx
lea eax, [ebp - 0x428]
push eax
call fcn.00405a60
add esp, 0xc
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x468]
push ecx
mov ecx, dword [ebp - 0x45c]
add ecx, 8
call fcn.004022b0
lea ecx, [ebp - 0x428]
call fcn.004021e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x440]
call fcn.004021e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x458]
call fcn.004021e0
mov ecx, dword [ebp - 0x45c]
call fcn.004042d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a758
mov esp, ebp
pop ebp
ret
Function at 0x415844
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00412f7d
mov dword [ebp - 0x14], eax
cmp dword [0x4221c4], esi
jne 0x415937
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4158c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x415a17
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x415a17
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415a17
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4221c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4221c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4221cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4221d4], eax
test eax, eax
je 0x415934
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4221d0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41595c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41594f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x415971
push 4
pop eax
jmp 0x415a19
cmp dword [ebp - 0x14], esi
je 0x415971
push dword [0x4221c4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x415956
mov eax, dword [0x4221d0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4159cf
cmp dword [0x4221d4], edi
je 0x4159cf
push eax
call ebx
push dword [0x4221d4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4159cf
test eax, eax
je 0x4159cf
call ecx
test eax, eax
je 0x4159c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4159c4
test byte [ebp - 8], 1
jne 0x4159cf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4159ff
mov eax, dword [0x4221c8]
cmp eax, edi
je 0x4159fc
push eax
call ebx
test eax, eax
je 0x4159fc
call eax
mov esi, eax
test esi, esi
je 0x4159fc
mov eax, dword [0x4221cc]
cmp eax, edi
je 0x4159fc
push eax
call ebx
test eax, eax
je 0x4159fc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4221c4]
call ebx
test eax, eax
je 0x415a17
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x415a19
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a758
mov esp, ebp
pop ebp
ret
Function at 0x1002f9fd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 0x197f
lea eax, [ebp - 0x10]
push eax
push 1
push 0x3887
lea eax, [ebp + 8]
push eax
call fcn.1002f7e5
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002fa37
xor eax, eax
jmp 0x1002fb64
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002fa55
xor eax, eax
jmp 0x1002fb64
push 1
push 0x1c56
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x2cd7
call fcn.1002f866
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1002fa7e
xor eax, eax
jmp 0x1002fb64
push 0x3092
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push 0x5b84
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.1002f8d7
add esp, 0x20
push dword [ebp - 4]
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.1002a6c1
add esp, 0x10
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1002fae1
push 0x1ab5
push 1
push dword [ebp - 4]
push dword [ebp - 0x14]
push 0x7594
call fcn.10028b99
add esp, 0x14
push dword [ebp - 4]
call fcn.1002ecc3
pop ecx
test eax, eax
jne 0x1002faf2
xor eax, eax
jmp 0x1002fb64
push 1
push 0x3c13
lea eax, [ebp - 4]
push eax
push 0x740b
call fcn.1002f999
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002fb4c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002fb29
xor eax, eax
jmp 0x1002fb64
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002fb42
xor eax, eax
jmp 0x1002fb64
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002fb5d
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002fb61
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10035500
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10035538
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x10035533
push 0x1adf
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x1003566b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x10035587
mov dword [ebp - 0x14], 1
jmp 0x1003558b
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jbe 0x1003559a
mov dword [ebp - 0x18], 1
jmp 0x1003559e
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
imul eax, dword [ebp - 0x18]
test eax, eax
je 0x100355bc
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x100355bc
mov dword [ebp - 8], 1
jmp 0x100355c0
and dword [ebp - 8], 0
push 1
mov ecx, dword [ebp - 0x28]
call fcn.100091ce
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
sub eax, dword [ebp - 8]
add eax, 8
cmp eax, 0x5755261f
jl 0x100355ea
mov dword [ebp - 0x1c], 1
jmp 0x100355ee
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
add eax, 0x2ff1
cmp eax, 0x23b1a956
jge 0x10035606
mov dword [ebp - 0x20], 1
jmp 0x1003560a
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jge 0x1003561d
mov dword [ebp - 0x24], 1
jmp 0x10035621
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jle 0x10035643
push 1
mov ecx, dword [ebp - 0x28]
call fcn.100091ce
cmp dword [eax], 0
je 0x10035643
mov dword [ebp - 0x2c], 1
jmp 0x10035647
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jl 0x1003565f
or eax, 0xffffffff
je 0x1003565f
mov dword [ebp - 0x30], 1
jmp 0x10035663
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10044ca3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10044cbb
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10044d06
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10044ce9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10044d06
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.100091ce
mov dword [eax], 0x1479
jmp 0x10044cde
mov esp, ebp
pop ebp
ret

Function at 0x10047433
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10047474
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10047472
push 0x1ef6
push 0
push 0x1197
push 0x16c9
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100474bf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100474a2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100474bf
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100091ce
mov dword [eax], 0xd55adb51
jmp 0x10047497
mov esp, ebp
pop ebp
ret
Function at 0x1007baa5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008438c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006cb24
mov dword [ebp - 0x14], eax
cmp dword [0x1067150c], esi
jne 0x1007bb98
push 0x800
push esi
push 0x10007f3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007bb25
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007bc78
push esi
push esi
push 0x10007f3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007bc78
push 0x10007f54
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007bc78
push eax
call ebx
push 0x10007f60
push edi
mov dword [0x1067150c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007f70
push edi
mov dword [0x10671510], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007f84
push edi
mov dword [0x10671514], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1067151c], eax
test eax, eax
je 0x1007bb95
push 0x10007fa0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10671518], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007bbbd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007bbb0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007bbd2
push 4
pop eax
jmp 0x1007bc7a
cmp dword [ebp - 0x14], esi
je 0x1007bbd2
push dword [0x1067150c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007bbb7
mov eax, dword [0x10671518]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007bc30
cmp dword [0x1067151c], edi
je 0x1007bc30
push eax
call ebx
push dword [0x1067151c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007bc30
test eax, eax
je 0x1007bc30
call ecx
test eax, eax
je 0x1007bc25
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007bc25
test byte [ebp - 8], 1
jne 0x1007bc30
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007bc60
mov eax, dword [0x10671510]
cmp eax, edi
je 0x1007bc5d
push eax
call ebx
test eax, eax
je 0x1007bc5d
call eax
mov esi, eax
test esi, esi
je 0x1007bc5d
mov eax, dword [0x10671514]
cmp eax, edi
je 0x1007bc5d
push eax
call ebx
test eax, eax
je 0x1007bc5d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1067150c]
call ebx
test eax, eax
je 0x1007bc78
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007bc7a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x4010b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push 0x400
push esi
push ebx
mov dword [esp + 0x24], 0
call ebp
test eax, eax
je 0x401160
cmp dword [esp + 0x10], 0x400
jne 0x401160
push edi
push esi
call fcn.00401170
mov edi, eax
add esp, 4
cmp edi, 0x400
jbe 0x401144
push edi
push esi
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov esi, eax
lea ecx, [esp + 0x14]
add edi, 0xfffffc00
push 0
push ecx
lea edx, [esi + 0x400]
push edi
push edx
push ebx
call ebp
push esi
call fcn.00401170
add esp, 4
mov edi, eax
push esi
call fcn.00403aa0
push esi
mov dword [0x412a38], eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
ret

Function at 0x401170
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40117e
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x40118e
xor eax, eax
ret
mov eax, dword [eax + 0x54]
ret