joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100070ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, esi
push dword [edi + 0x10194]
call fcn.1000a008
pop ecx
cmp dword [ebp + 0x10], ebx
jbe 0x10007118
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push esi
sub eax, ebx
mov dword [ebp + 8], esi
push eax
push dword [ebp + 0xc]
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
lea eax, [ebp + 8]
push eax
lea eax, [edi + 0x14]
push eax
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x10007110
add ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
cmp ebx, dword [ebp + 0x10]
jb 0x100070cf
jmp 0x10007118
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [edi + 0x10194]
call fcn.1000a01e
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000769c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x10028fd4
xor esi, esi
call fcn.1000760b
mov edi, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
test eax, eax
jne 0x10007714
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10007504
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, 0x10000
push eax
push eax
push 0xff
push esi
push 0x40000003
lea eax, [edi + 0x28]
push eax
call ebx
mov dword [edi + 0x170], eax
cmp dword [ebp - 4], esi
jne 0x10007714
lea eax, [ebp - 4]
push eax
push esi
push 0x10028ffc
call fcn.1000760b
add esp, 0xc
cmp dword [edi + 0x170], 0xffffffff
jne 0x1000774f
push esi
push esi
push 0x10000
push 0x10000
push 0xff
push esi
push 0x40000003
lea eax, [edi + 0x28]
push eax
call ebx
mov dword [edi + 0x170], eax
cmp eax, 0xffffffff
jne 0x1000774f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10007789
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push 1
push esi
call ebx
mov dword [edi + 0x10], eax
test eax, eax
je 0x10007745
push esi
push esi
push 1
push esi
call ebx
mov dword [edi + 0x24], eax
test eax, eax
je 0x10007745
push 0x10007042
push 0x10006d7e
push esi
push edi
push dword [edi + 0x10]
call fcn.1000690f
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007df9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [edi], esi
test ebx, ebx
je 0x10007e53
mov edx, 0x10000
mov eax, ebx
sub eax, dword [edi]
cmp eax, edx
push esi
cmova eax, edx
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp + 0xc]
add eax, dword [edi]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007e4b
mov eax, dword [ebp - 4]
mov edx, 0x10000
add dword [edi], eax
cmp dword [edi], ebx
jb 0x10007e16
jmp 0x10007e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007e5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
mov byte [ebp - 0x2c], 0
push 7
pop ecx
lea edi, [ebp - 0x2b]
mov dword [ebp - 0xc], 1
rep stosd dword es:[edi], eax
xor esi, esi
xor ebx, ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
push dword [edi + 0x14]
mov eax, dword [eax + 0x30]
mov dword [ebp - 8], eax
call fcn.1000a008
xor eax, eax
pop ecx
inc eax
test eax, eax
je 0x10007ede
push 0
lea eax, [ebp - 4]
push eax
push 0x20
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x2c]
add eax, esi
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10007ed1
add esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp esi, 0x20
jne 0x10007e99
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x10007e99
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10007f22
cmp esi, 0x20
jne 0x10007f22
cmp byte [ebp - 0x29], bl
jne 0x10007f47
mov edi, dword [ebp - 0x2c]
add edi, 0xffffffe4
push edi
call fcn.1000f6be
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp - 8]
call fcn.10007df9
push esi
call fcn.1000f686
add esp, 0x18
cmp edi, dword [ebp - 4]
jne 0x10007f1f
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
and dword [eax], ebx
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
je 0x10007f35
push ebx
call fcn.1000f686
pop ecx
push dword [edi + 0x14]
call fcn.1000a01e
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100050ae
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.100050d3
add esp, 0x10
test eax, eax
je 0x10007f7e
push 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
call fcn.1000f750
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
lea esi, [eax - 8]
lea eax, [esi + 0x20]
push eax
call fcn.1000f6be
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10007fa1
push 8
jmp 0x10007ed6
push 0x1c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100050ae
push 0x20
lea eax, [ebp - 0x2c]
push eax
push 0x20
push ebx
call fcn.10012a78
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebx + 0x20]
push eax
push dword [ebp - 8]
call fcn.10007df9
add esp, 0x2c
cmp dword [ebp - 4], esi
je 0x10007fdd
push eax
jmp 0x10007ed6
lea eax, [esi + 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.1000569e
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.1000f686
pop ecx
xor ebx, ebx
jmp 0x10007f22
Function at 0x1000818e
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push 1
push 0x100290ac
call fcn.1000760b
mov ebx, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test eax, eax
jne 0x1000820c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.10007504
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, 0x10000
push eax
push eax
push 0xff
push esi
push 3
push dword [ebp + 8]
call ebx
mov esi, eax
call edi
cmp dword [ebp - 4], 0
jne 0x10008205
lea eax, [ebp - 4]
push eax
push 0
push str.SeSecurityPrivilege
call fcn.1000760b
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10008233
xor esi, esi
push esi
push esi
push 0x10000
push 0x10000
push 0xff
push esi
push 3
push dword [ebp + 8]
call ebx
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x10008233
or eax, 0xffffffff
jmp 0x10008272
call fcn.1000506d
mov ebx, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10008270
call edi
cmp eax, 0x217
je 0x10008270
push 1
call fcn.1000502a
pop ecx
call fcn.1000506d
mov ecx, dword [ebp + 0xc]
sub eax, ebx
cmp eax, dword [ecx + 4]
jb 0x1000823a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000822e
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100085ae
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call fcn.1000506d
mov edi, eax
call fcn.1000506d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100085f3
push dword [ebp + 0x18]
call fcn.1000502a
pop ecx
call fcn.1000506d
sub eax, edi
cmp eax, dword [ebp + 0x14]
jb 0x100085ba
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100085f9
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
mov esi, dword [ebp + 0x18]
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x1a0], ax
lea eax, [ebp - 0x19e]
and dword [esi], 0
push eax
call fcn.10010040
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008645
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x100086ad
push ebx
push edi
push 6
push 1
push 2
pop ebx
push ebx
call dword [sym.imp.WS2_32.dll_socket]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x10], xmm0
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], bx
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x14]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push dword [ebp + 0x10]
push 0x10
push eax
push edi
call fcn.100085ae
add esp, 0x14
test eax, eax
jne 0x100086ab
mov dword [esi], edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100086b2
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [ebp + 0x1c]
push esi
xor esi, esi
push 0x18e
mov dword [eax], esi
xor eax, eax
mov word [ebp - 0x1bc], ax
lea eax, [ebp - 0x1ba]
push esi
push eax
call fcn.10010040
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008702
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x100087bc
push ebx
push edi
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x2c], esi
push 0x17
lea edi, [ebp - 0x28]
xor ebx, ebx
rep stosd dword es:[edi], eax
pop edi
lea eax, [ebp - 8]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 6
push eax
push dword [ebp + 0xc]
inc ebx
push dword [ebp + 8]
mov dword [ebp - 0x24], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1000874d
push 6
push ebx
push edi
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008755
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x100087ba
mov dword [ebp - 4], esi
call fcn.1000506d
mov dword [ebp - 0xc], eax
call fcn.1000506d
mov edi, dword [ebp - 8]
jmp 0x1000878b
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x18], ecx
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x100087c1
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x1000876a
push dword [ebp + 0x18]
call fcn.1000502a
pop ecx
call fcn.1000506d
sub eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x14]
jb 0x10008760
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
jmp 0x100087af
Function at 0x10008821
Capabilities:
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
push 0x18e
and dword [eax], 0
xor eax, eax
push eax
mov word [ebp - 0x1b4], ax
lea eax, [ebp - 0x1b2]
push eax
call fcn.10010040
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000886f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x10008935
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
xor esi, esi
push 6
push 1
push 0x17
pop eax
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
push 2
pop eax
cmp ebx, 0xffffffff
je 0x100088b4
and dword [ebp - 8], esi
lea eax, [ebp - 8]
push 4
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100088c2
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 2
pop eax
xor esi, esi
inc esi
push 6
push esi
push eax
mov dword [ebp - 4], esi
call edi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x22]
mov word [ebp - 0x24], ax
push 6
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
je 0x100088f4
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0
call esi
movzx eax, ax
push 2
mov dword [ebp - 0x20], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x24], ax
call esi
jmp 0x10008910
mov esi, 0x1002163c
lea edi, [ebp - 0x1c]
push 0x17
pop eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0xc]
cmp dword [ebp - 4], 0
push 0x1c
mov word [ebp - 0x22], ax
pop eax
push 0x10
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.100087c8
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a19a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000a1a9
xor eax, eax
jmp 0x1000a21e
push esi
push 0x1c
call fcn.1000f6be
mov esi, eax
pop ecx
test esi, esi
je 0x1000a217
push 0x1c
push 0
push esi
call fcn.10010040
add esp, 0xc
call fcn.1000a032
mov dword [esi + 8], eax
push esi
test eax, eax
jne 0x1000a1d9
call fcn.1000f686
jmp 0x1000a216
mov eax, dword [ebp + 0xc]
push 4
push esi
push 0x1000a2df
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x1000a21b
push dword [esi + 8]
call fcn.1000a072
push esi
call fcn.1000f686
pop ecx
pop ecx
xor eax, eax
jmp 0x1000a21d
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x1000a243
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000a24f
pop ebp
ret
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
pop ebp
ret

Function at 0x1000a274
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1000a280
pop ebp
ret
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x1000bb74
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 0x34]
mov ecx, dword [edi + 0x64]
sub esi, ecx
sub esi, dword [edi + 0x6c]
mov dword [ebp - 8], esi
jne 0x1000bba2
test ecx, ecx
jne 0x1000bbac
cmp dword [edi + 0x6c], ecx
jne 0x1000bbac
mov esi, ebx
jmp 0x1000bc29
cmp esi, 0xffffffff
jne 0x1000bbac
push 0xfffffffffffffffe
pop esi
jmp 0x1000bc29
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, ebx
cmp ecx, eax
jb 0x1000bc29
mov ecx, dword [edi + 0x30]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.1000f750
mov ecx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
mov esi, ecx
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x1000bbe2
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x38]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx edx, word [edi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
dec esi
jne 0x1000bc07
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x1000bc82
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push esi
push eax
push ecx
call fcn.1000c3b9
add dword [edi + 0x6c], eax
add esp, 0xc
cmp dword [edi + 0x6c], 3
jb 0x1000bc6d
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx esi, byte [edx + eax]
mov dword [edi + 0x40], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x4c]
mov dword [edi + 0x40], esi
cmp dword [edi + 0x6c], 0x106
jae 0x1000bc82
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1000bb82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019658
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002a140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10018845
mov dword [ebp - 0x14], eax
cmp dword [0x1002ced4], esi
jne 0x1001974b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x100196d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001982b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1001982b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001982b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x1002ced4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x1002ced8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10022a98
push edi
mov dword [0x1002cedc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002cee4], eax
test eax, eax
je 0x10019748
push 0x10022ab4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002cee0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10019770
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10019763
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10019785
push 4
pop eax
jmp 0x1001982d
cmp dword [ebp - 0x14], esi
je 0x10019785
push dword [0x1002ced4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1001976a
mov eax, dword [0x1002cee0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x100197e3
cmp dword [0x1002cee4], edi
je 0x100197e3
push eax
call ebx
push dword [0x1002cee4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x100197e3
test eax, eax
je 0x100197e3
call ecx
test eax, eax
je 0x100197d8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x100197d8
test byte [ebp - 8], 1
jne 0x100197e3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10019813
mov eax, dword [0x1002ced8]
cmp eax, edi
je 0x10019810
push eax
call ebx
test eax, eax
je 0x10019810
call eax
mov esi, eax
test esi, esi
je 0x10019810
mov eax, dword [0x1002cedc]
cmp eax, edi
je 0x10019810
push eax
call ebx
test eax, eax
je 0x10019810
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1002ced4]
call ebx
test eax, eax
je 0x1001982b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1001982d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015990
mov esp, ebp
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..data
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x71246972
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x771351f1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100011c0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 4]
push esi
push edi
test byte [edx + 0x48], 0x10
je 0x10001213
mov eax, dword [esp + 0x14]
mov esi, dword [edx + 0x24]
mov ecx, dword [edx + 0x10]
lea edi, [esi + eax]
cmp edi, ecx
jbe 0x100011e1
sub ecx, esi
mov eax, ecx
test eax, eax
je 0x1000120e
mov esi, dword [edx + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, eax
push ebx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [edx + 0xc]
mov ecx, dword [edx + 0x24]
add esi, eax
add ecx, eax
mov dword [edx + 0xc], esi
mov dword [edx + 0x24], ecx
pop edi
pop esi
ret 0xc
mov edx, dword [edx + 0x38]
pop edi
pop esi
mov dword [esp + 4], edx
jmp fcn.100108c0
Function at 0x100108c0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x100108e7
or eax, 0xffffffff
ret 0xc
mov eax, dword [esp + 0xc]
ret 0xc

Function at 0x10010910
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x10010937
or eax, 0xffffffff
ret 0xc
mov eax, dword [esp + 0xc]
ret 0xc

Function at 0x1001395e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10023fc0
cmp edx, dword [eax]
je 0x10013980
add eax, 8
inc ecx
cmp eax, 0x10024050
jl 0x10013971
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10023fc0]
jne 0x10013aae
mov eax, dword [0x10027744]
cmp eax, 1
je 0x10013a88
test eax, eax
jne 0x100139b1
cmp dword [0x10027748], 1
je 0x10013a88
cmp edx, 0xfc
je 0x10013aae
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100139e8
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10014340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10014430
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10013a2b
lea eax, [ebp - 0x1a4]
push eax
call fcn.10014430
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10016704
push edi
call fcn.10014930
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10014340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10014350
lea eax, [ebp - 0xa0]
push 0x100166e4
push eax
call fcn.10014350
push dword [esi + 0x10023fc4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10014350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1001489f
add esp, 0x2c
pop edi
jmp 0x10013aae
lea eax, [ebp + 8]
lea esi, [esi + 0x10023fc4]
push 0
push eax
push dword [esi]
call fcn.10014430
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret