joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40125b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.004013ec
add esp, 4
test eax, eax
jne 0x401278
xor eax, eax
jmp 0x4013e8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401465
add esp, 8
test eax, eax
jne 0x401293
xor eax, eax
jmp 0x4013e8
push 0
push 0xfffffffffffffffe
push 0x400
mov eax, dword [0x4389d0]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4012d2
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4012a8
push str._nafter_dispatches_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [0x438808]
cmp dword [ecx], 4
jne 0x4013c9
mov dword [ebp - 4], 0
jmp 0x4012fe
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [0x438808]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x418]
jge 0x4013c9
mov edx, dword [ebp - 4]
imul edx, edx, 0x110
mov eax, dword [0x438808]
mov ecx, dword [eax + 0x41c]
lea edx, [ecx + edx + 4]
push edx
push str._nPrinter_Name_____s_n
push 0x438860
call fcn.00405af0
add esp, 0xc
push 0x438860
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], 0
jmp 0x40135a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x110
mov edx, dword [0x438808]
mov eax, dword [edx + 0x41c]
mov edx, dword [ebp - 8]
cmp edx, dword [eax + ecx + 0x108]
jge 0x4013c4
mov eax, dword [ebp - 4]
imul eax, eax, 0x110
mov ecx, dword [0x438808]
mov edx, dword [ecx + 0x41c]
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x108
mov edx, dword [edx + eax + 0x10c]
lea eax, [edx + ecx + 4]
push eax
push str._n_Profile_____s_n
push 0x438860
call fcn.00405af0
add esp, 0xc
push 0x438860
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x401351
jmp 0x4012f5
mov ecx, dword [ebp + 8]
push ecx
push 0x432af4
call dword [sym.imp.USER32.dll_UnregisterClassA]
push str._nReturning_From_Message_loop.....
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4019f0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov dword [ebp - 0x108], 1
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00405d80
add esp, 0xc
mov dword [ebp - 0x110], 0x100
lea edx, [ebp - 0x518]
push edx
push 1
push 0
push 0x432cd0
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x401ab5
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x518]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x401a9c
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00405840
add esp, 8
jmp 0x401aa6
mov dword [ebp - 0x108], 0
mov ecx, dword [ebp - 0x518]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401abf
mov dword [ebp - 0x108], 0
cmp dword [ebp - 0x108], 0
jne 0x401b00
mov edx, dword [ebp + 8]
push edx
call fcn.00405cb0
add esp, 4
mov dword [ebp - 0x51c], eax
cmp dword [ebp - 0x51c], 0
je 0x401b00
mov eax, dword [ebp - 0x51c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00405840
add esp, 8
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x114], 0
jmp 0x401b1b
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x114]
movsx ecx, byte [eax]
test ecx, ecx
je 0x401b4a
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x114]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x401b48
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x114]
mov byte [ecx], 0x2f
jmp 0x401b0c
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.query_registry:_e_:_s:_s:_n
lea ecx, [ebp - 0x514]
push ecx
call fcn.00405af0
add esp, 0x10
lea edx, [ebp - 0x514]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x108]
mov esp, ebp
pop ebp
ret
Function at 0x401b7d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x104], 1
push 0x100
push 0
lea eax, [ebp - 0x100]
push eax
call fcn.00405d80
add esp, 0xc
mov dword [ebp - 0x10c], 0x100
lea ecx, [ebp - 0x110]
push ecx
push 3
push 0
push 0x432cfc
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x401c22
mov edx, dword [ebp + 0xc]
push edx
call fcn.00405de0
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x104], 1
jmp 0x401c81
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0x432d0c
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x401c6b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401b7d
add esp, 8
jmp 0x401c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x104]
mov esp, ebp
pop ebp
ret

Function at 0x401f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push 0x318
push 1
call fcn.00406270
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x10c
push edx
call fcn.00405840
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 8
push ecx
call fcn.00405840
add esp, 8
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
add eax, 0x210
push eax
call fcn.00405840
add esp, 8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x314], edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0x401f94
call fcn.00417c80
add esp, 0xc
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x402893
Capabilities:
Create directory
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x436a50
push 2
call sub.WS2_32.dll_WSAStartup
push 0x80
push 0x438320
call sub.WS2_32.dll_gethostname
call sub.WS2_32.dll_WSACleanup
push 0x4385e0
call fcn.00404d50
add esp, 4
test eax, eax
jne 0x4028e6
push 0
push 0x432eb0
push str.Cannot_Find_Home_Directory...
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x402a4e
push str._print_submit
push 0x4385e0
call fcn.00405850
add esp, 8
push 0x4385e0
call fcn.00404710
add esp, 4
test eax, eax
jne 0x402938
push 0
push 0x4385e0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402938
push 0
push 0x432ef4
push 0x432f08
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x402a4e
push 0x432f28
push 0x4385e0
call fcn.00405850
add esp, 8
push 0x438320
push 0x4385e0
call fcn.00405850
add esp, 8
push 0x4385e0
call fcn.00404710
add esp, 4
test eax, eax
jne 0x40299c
push 0
push 0x4385e0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40299c
push 0
push str.Environment_Error
push str.Cannot_Create_Home_Directory
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x402a4e
push 0x438440
push str.SDI_SERVER_TYPE
call fcn.004019f0
add esp, 8
test eax, eax
jne 0x4029c4
push 0x432f70
push 0x438440
call fcn.00405840
add esp, 8
push 0x432f74
push 0x438440
call fcn.00405bf0
add esp, 8
test eax, eax
jne 0x4029e6
mov dword [0x436c60], 0
jmp 0x402a06
push str.WORKGROUP
push 0x438440
call fcn.00405bf0
add esp, 8
test eax, eax
jne 0x402a06
mov dword [0x436c60], 1
push 0x4380e0
push str.SDI_BIN
call fcn.004019f0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402a3c
push 0
push str.Environemt_Error
push str.Cannot_Find_SDI_BIN_Directory__Contact_System_Administrator.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x402a4e
call fcn.00402590
test eax, eax
je 0x402a4c
mov eax, 1
jmp 0x402a4e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Create process on windows
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push str._n_Execute_This_____
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x433018
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 8
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push 0x436d68
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x436d68
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._nExec__s_ret____d__error____d_current_directory__s
push 0x436f68
call fcn.00405af0
add esp, 0x18
push 0x436f68
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 4], 0
jne 0x402e6a
or eax, 0xffffffff
jmp 0x402ef2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.exec_program:_After_Wait_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x402ebd
push str.exec_program:_GetExitCodeProcess_Failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x402ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 8]
push eax
push str.exec_program:_RESULT__d__d
push 0x436f68
call fcn.00405af0
add esp, 0x10
push 0x436f68
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403d02
or eax, 0xffffffff
jmp 0x403da2
mov word [ebp - 0x20], 2
mov ax, word [ebp + 0xc]
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x1e], ax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x403d67
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403d48
mov eax, dword [ebp - 4]
push eax
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
jmp 0x403da2
mov ecx, dword [ebp - 0x10]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00408330
add esp, 0xc
jmp 0x403d79
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00408330
add esp, 0xc
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.WS2_32.dll_connect
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x403d9f
mov edx, dword [ebp - 4]
push edx
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
jmp 0x403da2
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403ce0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x403dfc
xor eax, eax
jmp 0x403e3e
mov edx, dword [ebp + 0x10]
push edx
call fcn.00405de0
add esp, 4
add eax, 1
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.WS2_32.dll_send
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call sub.WS2_32.dll_closesocket
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
je 0x403e39
xor eax, eax
jmp 0x403e3e
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x403fce
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403ce0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x404000
jmp 0x40409a
mov edx, dword [ebp + 0x10]
push edx
call fcn.00405de0
add esp, 4
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.WS2_32.dll_htonl
mov dword [ebp - 8], eax
push 0
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.WS2_32.dll_send
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.ntserv_cmd:_send_len_ret__d_len___d__n
push 0x437568
call fcn.00405af0
add esp, 0x10
push 0x437568
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 4], 0
jge 0x40405f
jmp 0x40409a
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.WS2_32.dll_send
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push str.ntserv_cmd:_send_cmd_ret__d_cmd___s__n
push 0x437568
call fcn.00405af0
add esp, 0x10
push 0x437568
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0xc], 0xffffffff
je 0x4040a9
mov ecx, dword [ebp - 0xc]
push ecx
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x404710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404726
xor eax, eax
jmp 0x40472b
mov eax, 1
pop ebp
ret

Function at 0x40472d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00404710
add esp, 4
test eax, eax
jne 0x404746
or eax, 0xffffffff
jmp 0x404772
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40475e
or eax, 0xffffffff
jmp 0x404772
mov edx, dword [ebp - 4]
and edx, 0x10
cmp edx, 0x10
jne 0x404770
mov eax, 1
jmp 0x404772
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404d50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
mov dword [ebp - 0x510], 0
lea eax, [ebp - 0x518]
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
je 0x404d8a
xor eax, eax
jmp 0x404e64
lea ecx, [ebp - 0x514]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
je 0x404dad
xor eax, eax
jmp 0x404e64
lea edx, [ebp - 0x508]
push edx
push 0x8000
mov eax, dword [ebp - 0x518]
push eax
mov ecx, dword [ebp - 0x514]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x514]
push eax
call dword [edx + 0x2c]
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
je 0x404de5
xor eax, eax
jmp 0x404e64
cmp dword [ebp - 0x508], 0
jne 0x404e2b
lea ecx, [ebp - 0x400]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp - 0x504]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x404e53
cmp dword [ebp - 0x508], 2
jne 0x404e49
lea edx, [ebp - 0x504]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405840
add esp, 8
jmp 0x404e53
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
xor eax, eax
jmp 0x404e64
mov edx, dword [ebp + 8]
push edx
call fcn.004050fb
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x408800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40882b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410f90
add esp, 4
or eax, 0xffffffff
jmp 0x40885a
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x408858
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x408858
mov dword [0x437e2c], 0xd
mov dword [0x437e30], 5
or eax, 0xffffffff
jmp 0x40885a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4010d9
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x437558
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x4010fd
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x40110a
lea eax, [esi + 0x78]
lea ecx, [esi + 0x74]
push eax
call fcn.0042ec77
jmp 0x4012a4
cmp eax, 2
jne 0x401168
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
jne 0x401116
mov dword [esi + 0x6c], 0
jmp 0x4011aa
test eax, eax
jne 0x401126
mov dword [esi + 0x6c], 1
jmp 0x4011aa
lea edi, [esi + 0x74]
lea ecx, [esp + 0x14]
push edi
call fcn.0042e8ff
add esi, 0x78
mov ecx, edi
push esi
mov dword [esp + 0x2c], 0
call fcn.0042ec77
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0042ec77
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0042eb8a
jmp 0x4012a4
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x401192
push 0
call fcn.0041de81
push eax
call fcn.0041de52
add esp, 8
call fcn.0041de5f
cdq
idiv dword [esi + 4]
cmp edx, dword [esi + 0x6c]
je 0x40117f
mov dword [esi + 0x6c], edx
jmp 0x4011aa
mov ebp, dword [esi + 0x6c]
xor edx, edx
inc ebp
mov ecx, ebp
mov dword [esi + 0x6c], ebp
cmp ecx, eax
setge dl
dec edx
and edx, ecx
mov eax, edx
mov dword [esi + 0x6c], eax
xor eax, eax
push ebx
mov ax, word [esi + 0x6c]
push 0x13ec
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, ebp
mov dword [esp + 0x14], 0
mov ebx, eax
mov dx, word [ecx]
mov word [esp + 0x14], dx
mov al, byte [ecx + 2]
mov ecx, dword [0x444aa0]
mov byte [esp + 0x16], al
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], 1
push edx
call fcn.0040cf50
mov edx, dword [esi + 0x6c]
mov eax, dword [eax]
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
push ecx
push edx
push 0x448310
push eax
lea ecx, [esp + 0x24]
push str._s_s_d._s
push ecx
call fcn.0042d885
add esp, 0x1c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.0042eb8a
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [esp + 0x20]
push 0
add ebx, 0xfffffffd
push eax
add ebp, 3
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x74]
call fcn.0042ec77
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042eb8a
pop ebx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4012d6
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x437578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x4012f4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea edi, [esi + 0x74]
lea ecx, [esi + 0xc]
push edi
call fcn.004033d0
test eax, eax
jne 0x401315
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [0x444aa0]
push ebx
mov dword [esp + 0xc], eax
lea ebx, [esi + 0x78]
lea ecx, [esp + 0xc]
push ebx
mov dword [esp + 0x1c], 0
call fcn.0042ec77
push edi
mov ecx, ebx
call fcn.0042ec77
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.0042ec77
mov eax, dword [esi + 4]
pop ebx
cmp eax, 2
jle 0x401367
push edi
call fcn.0040cfd0
add esp, 4
test eax, eax
je 0x401367
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0042eb8a
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4013b0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x74]
push esi
call fcn.0040cfd0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
test eax, eax
je 0x4013d0
mov eax, dword [esi]
push eax
call ebx
lea esi, [edi + 0x78]
push esi
call fcn.0040cfd0
add esp, 4
test eax, eax
je 0x4013e5
mov ecx, dword [esi]
push ecx
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x401f90
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x4376f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004309d6
mov dword [esi], vtable.CStatic.0
lea edi, [esi + 0x68]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 4], ebx
mov dword [edi], vtable.CBrush.0
push fcn.00409630
push 0x4022e0
lea ebp, [esi + 0x70]
push 2
push 8
push ebp
mov byte [esp + 0x30], 1
call fcn.0041e1a6
mov dword [esi + 0x80], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x3c], ebx
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0x12
mov byte [esp + 0x20], 2
mov dword [esi], method.CStatic.virtual_0
mov dword [esi + 0x84], 0x400
call ebx
push 0xf
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
call ebx
push eax
mov ecx, edi
call fcn.004348b6
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
mov ecx, ebp
call fcn.004348b6
mov eax, dword [esi + 0x54]
push eax
call ebx
push eax
lea ecx, [esi + 0x78]
call fcn.004348b6
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret