joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444360
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444393
push esi
call fcn.00447450
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44438c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444419
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444402
mov eax, dword [esi + 8]
test eax, eax
je 0x4443b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4443fe
cmp eax, 2
je 0x444402
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4443aa
cmp eax, 3
je 0x4443dd
cmp eax, 1
jne 0x4443aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4443aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4443aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444440
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444428
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444440
add esp, 4
pop esi
ret

Function at 0x4587f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x45880b
cmp ebx, 8
jg 0x45880b
mov eax, 1
jmp 0x45880d
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.00457070
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x458844
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x48bcf2]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x48bcf0]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x48bcf4]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x48bcf6]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x4588a5
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x4588b1
cmp ebx, 8
jl 0x4588b1
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x45892a
cmp eax, 0xffffffff
je 0x45892a
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x4588f5
push esi
call fcn.00458b40
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x4588fd
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x459bc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x459bcb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x459cce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x48bd40]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x48bd40]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x48bd40]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x48bd40]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x48bd40]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x48bd40]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x48bd40]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x48bd40]
xor eax, edx
inc ecx
dec edi
jne 0x459be6
pop edi
test esi, esi
je 0x459cf0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x48bd40]
xor eax, edx
inc ecx
dec esi
jne 0x459cd2
pop esi
pop ebx
not eax
ret
Function at 0x459eb0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x459ece
mov eax, 0x1000000
pop esi
add esp, 0x50
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x459ee8
mov eax, 0x200
pop esi
add esp, 0x50
ret
mov eax, dword [esp + 0x20]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x459efc
mov ebp, 1
test al, 2
je 0x459f03
or ebp, 2
test al, 4
je 0x459f0a
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x459f14
or ebp, 0x10
test al, 0x20
je 0x459f1b
or ebp, 0x20
test ecx, ecx
je 0x459f27
or ebp, 0x40000000
jmp 0x459f2d
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x459f3d
or ebp, 0x800000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x459feb
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x6c]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x64], 0x54ad
jne 0x459feb
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x459feb
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x2c]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x459fe5
cmp eax, 0x454e
je 0x459fe5
cmp eax, 0x454c
je 0x459fe5
cmp eax, 0x4550
jne 0x459feb
or ebp, 0x400000
mov eax, dword [esp + 0x68]
pop ebx
test eax, eax
je 0x459ff6
mov dword [eax], ebp
mov eax, dword [esp + 0x68]
test eax, eax
je 0x45a004
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov esi, dword [esp + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test esi, esi
je 0x45a06e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call edi
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00459df0
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00459df0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov dword [esi + 4], eax
call fcn.00459df0
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [esp + 0x70]
test esi, esi
je 0x45a0b1
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call edi
lea edx, [esp + 0x64]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x45b3b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x45b416
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x45b416
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45b3f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45bbb0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45bbe8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45c810
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0045c960
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x45c830
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x45c811
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0045c960
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x45c830
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x45c860
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x45c8b7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x45c8cd
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0045c8f0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x45c8f0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x45c980
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x45c9c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x45ce40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x481930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0045c9f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045ca70
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045ca70
lea ecx, [esi + 0xc]
call fcn.004730c4
lea ecx, [esi + 0x10]
call fcn.004730c4
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045f2a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045f2a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045f2a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00473139
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00473139
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45dae8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x481b58
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x45daf8
call fcn.0045e010
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45dbdb
cmp byte [edi], 0
je 0x45dbdb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45db1d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0045c810
test eax, eax
jne 0x45db3d
push 0x4a65f4
lea ecx, [esi + 0x38]
call fcn.00473276
jmp 0x45dbdb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0045c860
test eax, eax
jne 0x45db6c
mov ecx, esi
call fcn.0045c960
push edi
add esi, 0x38
push 0x4a65d0
push esi
call fcn.004710d5
add esp, 0xc
jmp 0x45dbdb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0045e890
test eax, eax
je 0x45dbd4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0045dcb0
test eax, eax
jne 0x45dbf0
push edi
lea eax, [esi + 0x38]
push 0x4a65ac
push eax
call fcn.004710d5
add esp, 0xc
mov ecx, esi
call fcn.0045e010
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x45dc98
mov ecx, dword [0x4a68c0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004710d5
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0045c910
test eax, eax
jne 0x45dc5a
push 0x4a6590
lea ecx, [esi + 0x38]
call fcn.00473276
jmp 0x45dc6a
push 0xfa
mov ecx, esi
call fcn.0045e890
test eax, eax
jne 0x45dc87
mov ecx, esi
call fcn.0045e010
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00473139
jmp 0x45dbdb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00473139
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4754dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x475515
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00473594
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047356c
jmp 0x475521
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x476bd2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x476c14
call fcn.0047c948
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x476c14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x476c0b
xor eax, eax
jmp 0x476c1c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00476c22
pop edi
pop esi
pop ebx
ret 4

Function at 0x47ce78
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47cea6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47cec4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047cdde
jmp 0x47cec4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47cec4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047cdde
test edi, edi
mov eax, edi
jne 0x47ceae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
mov esi, str._TEMP_
lea edi, [ebp - 0x418]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7e
movsw word es:[edi], word [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x40a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstW]
and word [ebp - 0x210], 0
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 8], 0xfffffffd
call fcn.00401180
test al, al
pop ecx
pop ecx
je 0x40108c
lea esi, [ebp - 8]
lea edi, [ebp - 0x210]
call fcn.00401370
test al, al
mov byte [ebp - 1], al
jne 0x4010d3
lea eax, [ebp - 0x210]
push eax
push 0
push 0x40309c
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 8], 0xfffffffd
call fcn.0040121d
test al, al
pop ecx
mov byte [ebp - 1], al
je 0x4010d3
lea esi, [ebp - 8]
lea edi, [ebp - 0x210]
call fcn.00401370
mov byte [ebp - 1], al
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 1], 0
jne 0x401176
xor eax, eax
push eax
push ebx
lea ecx, [ebp - 0x418]
push ecx
push eax
push 0x70
push eax
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x401176
mov esi, dword [ebp - 0x210]
push ebx
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.004014be
pop ecx
pop ecx
mov edi, eax
test edi, edi
push 2
pop ebx
je 0x401139
add edi, ebx
xor ax, ax
lea ecx, [ebp - 0x418]
call fcn.0040149b
mov word [eax], 0x28
add eax, ebx
mov word [eax], si
add eax, ebx
mov word [eax], 0x3a
add eax, ebx
push 0x10
mov word [eax], 0x29
and word [eax + 2], 0
push edi
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401180
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, ebx
jne 0x4011a6
xor al, al
jmp 0x401219
push esi
xor esi, esi
inc esi
cmp dword [ebp - 4], esi
jle 0x40120f
mov ecx, dword [edi + esi*4]
mov edx, str._DLL
call fcn.00401429
test eax, eax
jne 0x4011c8
lea eax, [esi + 1]
cmp eax, dword [ebp - 4]
jl 0x4011d0
inc esi
cmp esi, dword [ebp - 4]
jl 0x4011af
jmp 0x40120f
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040147c
pop ecx
mov ecx, dword [ebp + 0xc]
xor ax, ax
call fcn.0040149b
mov ecx, eax
sub ecx, dword [ebp + 0xc]
and ecx, 0xfffffffe
cmp ecx, 2
jle 0x40120f
cmp word [eax - 2], 0x5c
je 0x401202
mov word [eax], 0x5c
inc eax
inc eax
mov ecx, dword [edi + esi*4 + 4]
push eax
call fcn.0040147c
pop ecx
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, bl
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40121d
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x403080
push 0x90
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x401353
cmp esi, 0xffffffff
je 0x401353
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x401353
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [ebp - 8], eax
jbe 0x401353
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x401353
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x401353
cmp eax, 0xffffffff
je 0x401353
mov dword [ebp - 4], edi
xor ecx, ecx
lea eax, [esi + 5]
movzx edx, byte [eax]
shl edx, cl
add ecx, 8
add dword [ebp - 4], edx
inc eax
cmp ecx, 0x40
jb 0x4012b6
push dword [ebp - 4]
call fcn.004013f3
mov ebx, eax
cmp ebx, edi
pop ecx
jne 0x4012db
push 2
pop esi
jmp 0x401341
mov eax, dword [ebp - 8]
add eax, 0xfffffff3
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push 5
push esi
lea eax, [ebp - 0x10]
push eax
add esi, 0xd
push esi
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 0x1c], 0x40135a
mov dword [ebp - 0x18], 0x401365
call fcn.00402c41
mov esi, eax
add esp, 0x24
cmp esi, edi
jne 0x40133a
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x40133a
push 9
pop esi
push ebx
call fcn.0040140e
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, edi
sete al
jmp 0x401355
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d56
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401f06
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401e54
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401df7
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401e3a
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401e0e
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401e29
test al, 0x40
je 0x401e20
mov ecx, dword [edi + 0x20]
jmp 0x401e27
test al, 0x80
je 0x401e3a
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401e3a
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401dc6
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret