joyce8/EMBER2024-capa huggingface dataset:
Function at 0x785b50
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x25c
mov eax, dword [0xb6160c]
mov dword [esp + 0x24], str.getaddrinfo
movzx ebx, word [esp + 0x270]
mov dword [esp + 0x28], 0x785d60
mov dword [esp + 0x2c], str.getnameinfo
mov dword [esp + 0x30], 0x786110
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], fcn.00785d10
test eax, eax
je 0x785bb0
mov eax, dword [ebx*8 + 0x8b953c]
add esp, 0x25c
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea esi, [esp + 0x3f]
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
sub esp, 8
test eax, eax
jne 0x785be0
mov dword [0xb6160c], 1
jmp 0x785b9b
lea edi, [esp + 0x144]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, edi
mov dword [eax], 0x3273775c
mov dword [eax + 4], 0x32335f
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call eax
sub esp, 4
mov ebp, eax
test eax, eax
je 0x785c9c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 0x18], eax
call eax
sub esp, 8
test eax, eax
je 0x785c90
lea esi, [esp + 0x24]
lea edi, [esp + 0x3c]
mov eax, dword [esi]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
call eax
mov dword [esi + 4], eax
sub esp, 8
test eax, eax
je 0x785cf6
add esi, 8
cmp esi, edi
jne 0x785c46
mov eax, dword [esp + 0x28]
mov dword [0x8b953c], eax
mov eax, dword [esp + 0x30]
mov dword [0x8b9544], eax
mov eax, dword [esp + 0x38]
mov dword [fcn.00785d10], eax
jmp 0x785bcc
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov dword [esp], edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add eax, edi
mov dword [eax], 0x6873775c
mov dword [eax + 4], 0x367069
mov eax, dword [esp + 0x1c]
mov dword [esp], edi
call eax
sub esp, 4
mov ebp, eax
test eax, eax
je 0x785bcc
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 0x18], eax
call eax
sub esp, 8
test eax, eax
jne 0x785c3e
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x785bcc
Function at 0x786690
Capabilities:
Resolve dns

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov dword [ebx], 0
mov byte [eax], 0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
sub esp, 4
test eax, eax
je 0x786768
cmp dword [eax + 8], 0x40002
mov ecx, eax
jne 0x786734
mov edi, dword [eax + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x786734
mov dword [esp + 0x1c], ecx
movzx esi, si
jmp 0x7866f4
add edi, 4
lea ebx, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
je 0x786730
mov eax, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00786430
mov dword [ebx], eax
sub esp, 0x10
test eax, eax
jne 0x7866e8
add esp, 0x2c
mov eax, 8
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], 0x400
mov eax, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
mov eax, dword [esp + 0x50]
mov byte [eax + 0x400], 0
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [eax - 0x2afa]
cmp edx, 3
mov edx, 0x2af9
cmovae eax, edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 0x18

Function at 0x7871c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___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 sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]
Function at 0x787220
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xb6164c]
test esi, esi
jle 0x787340
mov eax, dword [0xb61650]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x787254
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x7872d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x787240
mov dword [esp], ebx
call fcn.00787c10
mov edi, eax
test eax, eax
je 0x787367
mov eax, dword [0xb61650]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00787d50
mov edx, dword [0xb61650]
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 0x787347
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x7872d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x7872e0
add dword [0xb6164c], 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 [0xb61650]
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 0x7872d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.007871c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x78725e
mov eax, dword [0xb61650]
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 fcn.007871c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.007871c0
lea esi, [esi]
nop

Function at 0x787880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xb61668
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xb61660]
sub esp, 4
test ebx, ebx
je 0x7878d5
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 0x7878ce
test esi, esi
je 0x7878ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x7878b0
mov dword [esp], 0xb61668
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x787c10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x787c35
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x787c40
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x787c35
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x787c88
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x787c7e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x787c8a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x787c70
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [esp + 0x150]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x7887d0
cmp byte [ebx], 0
je 0x788798
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x7887e0
test al, 0x10
je 0x788798
lea esi, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__fullpath
mov dword [esp], esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [esp + 0x1c], eax
mov ebx, eax
lea eax, [eax + 0x233]
mov dword [esp], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edx, eax
test eax, eax
je 0x7887ef
lea ebp, [eax + 0x22c]
lea eax, [ebx + 1]
cmp eax, 4
jb 0x788770
mov ecx, dword [esp + eax + 0x28]
mov edi, ebp
mov dword [ebp + eax - 4], ecx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
cmp byte [edx + 0x22c], 0
je 0x78871a
movzx ecx, byte [edx + ebx + 0x22b]
cmp cl, 0x5c
je 0x78871a
cmp cl, 0x2f
jne 0x7887b8
mov eax, dword [esp + 0x1c]
mov ecx, 0x2a
lea ebx, [edx + 0x120]
mov edi, ebx
mov word [ebp + eax], cx
xor eax, eax
mov ecx, 0x41
mov dword [edx + 0x224], 0xffffffff
mov dword [edx + 0x228], 0
mov dword [edx + 0x118], 0
mov dword [edx + 0x11c], 0
rep stosd dword es:[edi], eax
add esp, 0x13c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x7886fb
movzx ecx, byte [esp + 0x2c]
mov byte [ebp], cl
test al, 2
je 0x7886fb
movzx ecx, word [esp + eax + 0x2a]
mov word [ebp + eax - 2], cx
jmp 0x7886fb
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor edx, edx
mov dword [eax], 0x14
add esp, 0x13c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x5c
mov dword [esp + 0x1c], eax
mov word [ebp + ebx], si
jmp 0x78871a
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor edx, edx
mov dword [eax], 0xe
jmp 0x7887a5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor edx, edx
mov dword [eax], 2
jmp 0x7887a5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
xor edx, edx
mov dword [eax], 0xc
jmp 0x7887a5
Function at 0x8471d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x10
mov eax, dword [ebp + 0x78]
mov edx, dword [0xb61618]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 8]
mov dword [eax + 0x344], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x348], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x34c], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x350], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x354], edx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0x358], edx
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x35c], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x360], edx
mov edx, dword [ebp + 0x28]
mov dword [eax + 0x364], edx
mov edx, dword [ebp + 0x2c]
mov dword [eax + 0x368], edx
mov edx, dword [ebp + 0x30]
mov dword [eax + 0x36c], edx
mov edx, dword [ebp + 0x34]
mov dword [eax + 0x370], edx
mov edx, dword [ebp + 0x38]
mov dword [eax + 0x374], edx
mov edx, dword [ebp + 0x3c]
mov dword [eax + 0x378], edx
mov edx, dword [ebp + 0x40]
vmovd xmm2, dword [ebp + 0x70]
vmovd xmm3, dword [ebp + 0x68]
mov dword [eax + 0x37c], edx
mov edx, dword [ebp + 0x44]
vpinsrd xmm1, xmm2, dword [ebp + 0x74], 1
vpinsrd xmm0, xmm3, dword [ebp + 0x6c], 1
mov dword [eax + 0x380], edx
mov edx, dword [ebp + 0x48]
vpunpcklqdq xmm0, xmm0, xmm1
mov dword [eax + 0x384], edx
mov edx, dword [ebp + 0x4c]
vmovdqu xmmword [eax + 0x3a4], xmm0
mov dword [eax + 0x388], edx
mov edx, dword [ebp + 0x50]
mov dword [eax + 0x38c], edx
mov edx, dword [ebp + 0x54]
mov dword [eax + 0x390], edx
mov edx, dword [ebp + 0x58]
mov dword [eax + 0x394], edx
mov edx, dword [ebp + 0x5c]
mov dword [eax + 0x398], edx
mov edx, dword [ebp + 0x60]
mov dword [eax + 0x39c], edx
mov edx, dword [ebp + 0x64]
mov dword [eax + 0x3a0], edx
mov eax, dword [esp + 0xc]
sub eax, dword [0xb61618]
jne 0x8472f0
call fcn.00786f10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4013d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xa
push dword [esp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40142f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40142f
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov edi, dword [esi + 4]
push dword [esi + 0x10]
add edi, esi
call fcn.004014f3
mov ebx, eax
test ebx, ebx
je 0x40142c
push ebx
push edi
call fcn.0040159c
cmp eax, dword [esi + 0x10]
jne 0x401420
push ebx
call fcn.00401705
push ebx
call fcn.00401a94
push ebx
call fcn.004014d8
pop edi
pop esi
pop ebx
xor eax, eax
ret 4

Function at 0x40159c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov cl, byte [eax]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
mov byte [ebx], cl
lea ecx, [ebx + 1]
inc eax
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
call fcn.00401553
test eax, eax
je 0x4016dd
call fcn.00401553
test eax, eax
je 0x401653
call fcn.00401553
test eax, eax
je 0x401614
push 4
xor esi, esi
pop edi
lea ecx, [ebp - 0x14]
call fcn.00401553
dec edi
lea esi, [eax + esi*2]
jne 0x4015e9
mov eax, dword [ebp - 0x10]
test esi, esi
je 0x401609
mov ecx, dword [ebp - 0x10]
sub eax, esi
mov al, byte [eax]
mov byte [ecx], al
jmp 0x40160c
mov byte [eax], 0
inc dword [ebp - 0x10]
jmp 0x4016ed
mov eax, dword [ebp - 0x14]
movzx esi, byte [eax]
inc dword [ebp - 0x14]
xor ecx, ecx
mov eax, esi
inc ecx
and eax, ecx
add eax, 2
shr esi, 1
je 0x40164b
test eax, eax
je 0x4016d5
mov ecx, dword [ebp - 0x10]
sub ecx, esi
mov edi, dword [ebp - 0x10]
mov dl, byte [ecx]
inc dword [ebp - 0x10]
inc ecx
dec eax
mov byte [edi], dl
jne 0x401638
jmp 0x4016d5
mov dword [ebp - 4], ecx
jmp 0x4016d5
call fcn.00401583
test esi, esi
jne 0x401688
cmp eax, 2
jne 0x401683
lea ecx, [ebp - 0x14]
call fcn.00401583
test eax, eax
je 0x4016d8
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov dl, byte [ecx]
inc dword [ebp - 0x10]
inc ecx
dec eax
mov byte [esi], dl
jne 0x401673
jmp 0x4016d8
sub eax, 3
jmp 0x40168b
sub eax, 2
mov ecx, dword [ebp - 0x14]
movzx esi, byte [ecx]
shl eax, 8
add esi, eax
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
call fcn.00401583
cmp esi, 0x7d00
jb 0x4016aa
inc eax
cmp esi, 0x500
jb 0x4016b3
inc eax
cmp esi, 0x80
jae 0x4016be
add eax, 2
test eax, eax
je 0x4016d5
mov ecx, dword [ebp - 0x10]
sub ecx, esi
mov edi, dword [ebp - 0x10]
mov dl, byte [ecx]
inc dword [ebp - 0x10]
inc ecx
dec eax
mov byte [edi], dl
jne 0x4016c7
mov dword [ebp + 8], esi
xor esi, esi
inc esi
jmp 0x4016ef
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov al, byte [eax]
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov byte [ecx], al
xor esi, esi
cmp dword [ebp - 4], 0
je 0x4015c2
mov eax, dword [ebp - 0x10]
pop edi
pop esi
sub eax, ebx
pop ebx
leave
ret 8
Function at 0x401a94
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x401ab4
xor eax, eax
jmp 0x401c2f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x401ad2
xor eax, eax
jmp 0x401c2f
push 4
push 0x2000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401b0c
push 4
push 0x2000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401b19
xor eax, eax
jmp 0x401c2f
push 0x14
call fcn.004014f3
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x18]
and dword [eax + 0xc], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 0x10], 0
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x50]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
mov eax, dword [ebp - 0x20]
push dword [eax + 0x54]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00401489
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x34], ecx
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.0040171c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
je 0x401bc8
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00401884
push dword [ebp - 0x18]
call fcn.00401903
test eax, eax
jne 0x401bd8
jmp 0x401c25
push dword [ebp - 0x18]
call fcn.004017bf
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x401c20
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x401bff
jmp 0x401c25
push 0
push 1
push dword [ebp - 0xc]
call dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401c16
jmp 0x401c25
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 0x18]
jmp 0x401c2f
push dword [ebp - 0x18]
call fcn.00401a23
xor eax, eax
leave
ret 4
Function at 0x401c33
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push dword [ebp + 8]
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401ccc
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401cc0
push esi
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x14], eax
jne 0x401caf
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x18]
je 0x401c8c
cmp eax, dword [ebp + 0xc]
jne 0x401caf
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x401caf
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x401cac
inc dword [ebp - 4]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x401c76
pop esi
jmp 0x401cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call edi
pop edi
jmp 0x401cd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8
Function at 0x401cda
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2c0
push ebx
push esi
push edi
call fcn.004029c6
mov esi, 0x9c
push esi
mov ebx, eax
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00403510
add esp, 0xc
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x401d2c
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x94
call esi
test eax, eax
je 0x401e8f
cmp dword [ebp - 0x3c], 6
mov dword [ebp + 0x60], edi
jb 0x401d4d
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0040289c
test eax, eax
je 0x401e8f
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x5c]
push eax
push edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x68], edi
mov dword [ebp + 0x64], edi
call esi
push eax
call fcn.00402308
test eax, eax
je 0x401e8a
cmp dword [ebp + 0x5c], edi
jne 0x401e7c
cmp dword [ebp + 0x64], edi
jne 0x401e7c
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401e7c
push 0x103
lea eax, [ebp - 0x144]
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp + 0x74], edi
mov dword [ebp + 0x70], edi
call fcn.0040250c
test eax, eax
je 0x401e7c
mov ecx, dword [ebp + 0x74]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov ecx, 0x2000
or word [eax + 0x16], cx
cmp dword [ebp - 0x3c], 6
jb 0x401e3b
cmp ebx, edi
jne 0x401dfe
cmp dword [ebp + 0x6c], edi
je 0x401e3b
cmp dword [ebp + 0x60], 0x3000
jae 0x401e68
cmp dword [ebp + 0x68], edi
jne 0x401e68
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x248]
push 0x401174
push eax
call fcn.00403e87
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x74]
call fcn.00402bdc
jmp 0x401e68
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x248]
push 0x401164
push eax
call fcn.00403e87
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 0x70]
push dword [ebp + 0x74]
call fcn.00403143
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.004022dc
test eax, eax
jne 0x401e8a
call fcn.00401434
call fcn.00402481
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x78
leave
ret
Function at 0x401e99
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x104
dec eax
jne 0x401f62
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.004021bb
push 0x4011a8
lea eax, [ebp - 0x104]
push eax
call fcn.004025cb
push eax
call fcn.00403590
pop ecx
pop ecx
test eax, eax
je 0x401f69
push 0x40119c
lea eax, [ebp - 0x104]
push eax
call fcn.004025cb
push eax
call fcn.00403590
pop ecx
pop ecx
test eax, eax
je 0x401f69
push 0x401190
lea eax, [ebp - 0x104]
push eax
call fcn.004025cb
push eax
call fcn.00403590
pop ecx
pop ecx
test eax, eax
jne 0x401f60
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.0040289c
test eax, eax
je 0x401faf
cmp dword [ebp + 0xc], 0x3000
jb 0x401faf
push 0x50574e44
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
xor eax, eax
inc eax
leave
ret 0xc
push 0x401180
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov ebx, eax
cmp ebx, edi
je 0x401f8d
push ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401f93
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004027dd
test eax, eax
je 0x401faf
call esi
push eax
call fcn.00402822
cmp eax, edi
jbe 0x401faf
push edi
push eax
call fcn.00401c33
push edi
jmp 0x401f5a

Function at 0x401fb2
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x401ff4
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401ff4
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x401fe5
test eax, eax
je 0x401fe5
cmp eax, 2
je 0x401fe5
cmp eax, 3
jne 0x401ff4
push dword [esp + 0x10]
push eax
push esi
call fcn.00401e99
pop esi
ret 0xc
call fcn.00401cda
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402001
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [0x405030], eax
inc ecx
mov eax, 0x405030
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x4059ec
jl 0x402013
mov dword [0x405020], ecx
pop esi
ret 4