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

Disassembly:
push ebp
mov edx, dword [0x415d64]
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test edx, edx
jne 0x40e438
mov edx, 1
test byte [eax + 0x40], 0x40
je 0x40e428
mov eax, edx
pop ebp
ret
mov edx, dword [eax + 0x3c]
pop ebp
mov eax, ecx
jmp sym._UpdateExpandingTree.part.0
xor edx, edx
pop ebp
mov eax, edx
ret

Function at 0x40e860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40e8b8
cmp byte [esi + ebx - 1], 0xa
je 0x40e88c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x415e04], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x40eee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x40f0b8
mov edi, dword [0x415e04]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x40efc7
test byte [0x4103e0], 8
jne 0x40f060
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x4103f0], 8
jne 0x40f020
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40ef69
cmp esi, 3
jbe 0x40efd8
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x40ef7a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x411f80]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x40ef69
mov dword [esp], 0x4103f0
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40ef40
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x40ef40
mov dword [esp], 0x4103e0
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x40ef2b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x40ef33
mov eax, 0xffffffff
jmp 0x40efc7

Function at 0x40f1a0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x40f210
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40f29b
cmp ax, 9
je 0x40f288
cmp ax, 0x20
je 0x40f288
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x40f2f0
cmp ax, 0x22
je 0x40f300
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40f29b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x40f240
test edi, 1
jne 0x40f240
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x40f288
cmp ax, 0x20
je 0x40f288
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x40f318
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40f25b
and dword [ebp - 0x54], 1
jne 0x40f254
xor edi, 1
jmp 0x40f25b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x40f2b4
Function at 0x40c393
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c430
push ebx
push esi
call fcn.0040c35c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c2f0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c3dd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c42f
push edi
push eax
call fcn.0040cfb0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c3fd
call fcn.0040ae51
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c42e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c2f0
add esp, 0x20
test eax, eax
jne 0x40c41c
push edi
call fcn.0040ae51
jmp 0x40c424
push ebx
call fcn.0040ae51
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d72d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441130
push 0x441128
push str.FlsAlloc
push 0x1f
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d761
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
jmp 0x40d767
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d7ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441140
push 0x441138
push str.FlsGetValue
push 0x21
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d7e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d7ea
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441148
push 0x441140
push str.FlsSetValue
push 0x22
call fcn.0040d5ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d824
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42114c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4017d0
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push 0
push 0
push 0
push 0
push 0x404288
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40188a
push 0
push 0
push 0
push 0
push str.http:__icanhazip.com_
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x40187e
lea ecx, [ebp - 0x6c]
push ecx
push 0x63
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x68]
test ecx, ecx
je 0x40187e
push 0x404314
lea edx, [ebp - 0x68]
push edx
call fcn.004018b0
add esp, 8
test eax, eax
je 0x40186b
lea eax, [ebp - 0x68]
push eax
call fcn.00401400
add esp, 4
lea ecx, [ebp - 0x68]
push ecx
push 0x404318
push 0x4083b8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40187e
push 0x404320
push 0x4083b8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40189d
push str._0.0.0.0_
push 0x4083b8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x4083b8
mov esp, ebp
pop ebp
ret
Function at 0x4018d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x400
push 0
push 0x408480
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_96.0.4664.110_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4019c3
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4019b9
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x4019a1
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40199f
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x408480
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401995
cmp dword [ebp - 0x10], 0
je 0x401995
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x408480
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401958
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019b9
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x408480
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x408480
mov esp, ebp
pop ebp
ret
Function at 0x402720
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.523535
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40275e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
push str._s:Zone.Identifier
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6b0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401760
movzx edx, al
test edx, edx
jne 0x4027cb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x40837c
call section..text
add esp, 4
push eax
push 0x404e20
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x318]
push ecx
push 0x402430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
test edx, edx
je 0x40281e
push 0xcdfe600
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402808
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001ac6c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001acef
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001acb9
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001acb9
cmp edi, ebx
jge 0x1001acb9
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ace9
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ace9
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
push 1
push dword [esi + 0x20]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
jmp 0x1001ad01
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc

Function at 0x1001aedb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100296f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100299a8], 0
mov eax, dword [ebp + 8]
je 0x1001af03
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001af1d
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10008e2b
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.100204a4
mov esp, ebp
pop ebp
ret 4

Function at 0x1001b0c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100296f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100299a8], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001b0fa
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001b160
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10008e2b
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10008e2b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10008e2b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100204a4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001b173
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100296f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100299a8], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001b19f
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001b1d0
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001b1ce
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10008e2b
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001b1d0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100204a4
mov esp, ebp
pop ebp
ret 8
Function at 0x404f7c
Capabilities:
Encode data using xor

Disassembly:
push 0x405248
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
pushal
add byte [eax], al
add byte [eax], dh
add byte [eax], al
add byte [eax], bl
add byte [eax], al
inc eax
add byte [eax], al
add byte [ebx + 0x4d219e57], bl
pop ds
aad 0x4e
mov byte [eax - 0x7d], dh
sahf
invalid
Function at 0x4010d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x88], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x88], 0
jne 0x401104
xor al, al
jmp 0x401129
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40112d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x4011b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
call fcn.0040433b
mov dword [ebp - 4], eax
mov eax, dword [0x412f28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x10]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xc], eax
push 0x4071c8
mov edx, dword [ebp + 8]
push edx
push 0x412f30
mov ecx, 0x412e98
call fcn.00405cf0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x412f1c], eax
mov ax, word [0x4127f4]
mov word [ebp - 0x1c], ax
mov cl, byte [0x4127f6]
mov byte [ebp - 0x1a], cl
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401147
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4012d5
push str.UnregServer
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401280
push 0
push 0
push 0x64
push 0x412e98
call fcn.00405ef0
push 0
push 1
mov ecx, 0x412e98
call fcn.00405ed0
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4012d5
push str.RegServer
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4012bd
push 0
push 1
push 0x64
push 0x412e98
call fcn.00405ef0
push 0
push 1
mov ecx, 0x412e98
call fcn.00405eb0
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4012d5
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00401147
add esp, 8
mov dword [ebp - 0x18], eax
jmp 0x401239
cmp dword [ebp - 0x14], 0
je 0x40132b
mov ecx, 0x412e98
call fcn.004010d4
push 1
push 4
mov ecx, 0x412e98
call fcn.00405f20
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401316
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4012f6
mov ecx, 0x412e98
call fcn.00405f40
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x412e98
call fcn.00405e50
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40137d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xb0
jae 0x401407
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040137d
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x4013cb
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jmp 0x401405
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x4013e9
push 0xe
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x401405
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 7
div ecx
test edx, edx
jne 0x401405
push 0xe
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x401410
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4019d7
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x8c], 0
je 0x401a15
mov eax, dword [ebp - 8]
add eax, 0x7c
mov dword [ebp - 8], eax
jmp 0x401a9d
push 0
push 0
push 4
push 0
push 0
push 2
push 0x41286c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401a88
push 0x80
call fcn.004061d3
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x401a88
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x401a88
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
add eax, 0x600
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.wing.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x8c]
mov dword [eax + 0x78], edx
mov eax, dword [ebp - 4]
mov ecx, dword [section..data]
mov dword [eax + 0x70], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x408004]
mov dword [edx + 0x74], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x17c], 0x40f59c
mov edx, dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edx + 0x170], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + reloc.KERNEL32.dll_SetThreadPriority], 0x408008
mov edx, dword [ebp - 4]
push edx
call fcn.004044df
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x404017
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], 0x4d42
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x26], edx
mov word [ebp - 0x22], 0
mov word [ebp - 0x20], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov dword [ebp - 0x1e], edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
lea eax, [edx*4 + 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404135
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x404135
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret