joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404466
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.0040eb80
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x4044ac
xor eax, eax
jmp 0x4044f4
cmp dword [ebp - 0x78], ebx
jbe 0x4044e3
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x4044e3
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00404e19
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x4044b1
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00404c3b
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404553
add ebp, 0xf90
leave
ret

Function at 0x404553
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41704c]
jne 0x40455d
repz ret
jmp fcn.00405ed8
Function at 0x40ef8f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409cf4
and dword [ebp - 4], 0
cmp dword [0x418b2c], 0
mov ebx, eax
jne 0x40f040
push 0x413b98
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f0f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413b8c
push edi
call esi
test eax, eax
je 0x40f0f1
push eax
call fcn.00409c82
mov dword [esp], 0x413b7c
push edi
mov dword [0x418b2c], eax
call esi
push eax
call fcn.00409c82
mov dword [esp], 0x413b68
push edi
mov dword [0x418b30], eax
call esi
push eax
call fcn.00409c82
mov dword [esp], 0x413b4c
push edi
mov dword [0x418b34], eax
call esi
push eax
call fcn.00409c82
pop ecx
mov dword [0x418b3c], eax
test eax, eax
je 0x40f040
push 0x413b34
push edi
call esi
push eax
call fcn.00409c82
pop ecx
mov dword [0x418b38], eax
mov eax, dword [0x418b38]
cmp eax, ebx
je 0x40f098
cmp dword [0x418b3c], ebx
je 0x40f098
push eax
call fcn.00409cfd
push dword [0x418b3c]
mov esi, eax
call fcn.00409cfd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f098
test edi, edi
je 0x40f098
call esi
test eax, eax
je 0x40f08f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f08f
test byte [ebp - 0xc], 1
jne 0x40f098
or dword [ebp + 0x10], 0x200000
jmp 0x40f0d1
mov eax, dword [0x418b30]
cmp eax, ebx
je 0x40f0d1
push eax
call fcn.00409cfd
pop ecx
test eax, eax
je 0x40f0d1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f0d1
mov eax, dword [0x418b34]
cmp eax, ebx
je 0x40f0d1
push eax
call fcn.00409cfd
pop ecx
test eax, eax
je 0x40f0d1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418b2c]
call fcn.00409cfd
pop ecx
test eax, eax
je 0x40f0f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f0f3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
xor ebx, ebx
cmp dword [0x4126e4], ebx
je 0x4010b0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
xor edi, edi
cmp dword [ebp + 0xc], ebx
je 0x401079
mov eax, dword [0x4126e0]
cmp eax, ebx
jne 0x401035
mov eax, str._null_
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x108]
push str._s_error:__d_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
cmp dword [0x4126e8], ebx
lea eax, [ebp - 0x108]
push 1
mov dword [ebp - 8], eax
pop edi
je 0x401079
lea eax, [ebp - 0x108]
push eax
call dword [0x41287c]
pop ecx
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 8]
mov dword [ebp + edi*4 - 8], eax
inc edi
cmp dword [0x4126e8], ebx
je 0x401096
push eax
call dword [0x41287c]
pop ecx
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push 1
push dword [0x4126e4]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402e66
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x403a27
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403a40
lea ecx, [eax + 1]
mov eax, dword [esp + 4]
xor byte [eax], 0xa5
inc eax
dec ecx
jne 0x403a39
ret

Function at 0x4045b7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0x38]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__stat]
pop ecx
test eax, eax
pop ecx
je 0x40464c
push 0x40ea88
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x40464c
push esi
lea eax, [ebp + 0xc]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
lea esi, [ebp - 0x14]
pop ecx
push 8
pop edi
call dword [sym.imp.MSVCRT.dll_rand]
mov word [esi], ax
inc esi
inc esi
dec edi
jne 0x404604
mov eax, dword [ebp + 0xc]
pop edi
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [ebp - 0x11]
pop esi
mov dl, byte [ebp + ecx - 4]
inc ecx
mov byte [eax], dl
inc eax
inc eax
cmp ecx, 4
jb 0x40461f
mov al, byte [ebp + 0x10]
push ebx
mov byte [ebp - 0x10], al
push 0x10
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040465c
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x40473d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x40ea8c
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [ebp + 0x10]
pop ecx
test edi, edi
pop ecx
mov esi, eax
je 0x404762
and byte [edi], 0
test esi, esi
jne 0x40476d
push 5
jmp 0x4047f9
push esi
push 0x10
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
cmp ebx, 0x10
je 0x404791
push 4
jmp 0x4047f9
cmp byte [ebp - 0x10], 2
jne 0x40478d
xor ecx, ecx
lea eax, [ebp - 0x11]
mov dl, byte [eax]
mov byte [ebp + ecx + 8], dl
inc ecx
inc eax
inc eax
cmp ecx, 4
jb 0x40479c
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
imul esi, esi, 0x15180
test edi, edi
je 0x4047e1
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebx + esi]
push eax
call fcn.00403c9f
push edi
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040425d
add esp, 0x20
mov edi, dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 4]
push eax
call edi
add eax, 0x3f480
pop ecx
cmp ebx, eax
jle 0x4047fc
push 2
pop eax
jmp 0x40480f
lea eax, [ebp - 4]
push eax
call edi
pop ecx
add ebx, esi
xor ecx, ecx
cmp ebx, eax
setl cl
inc ecx
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404814
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x11c
call edi
push dword [ebp + 8]
mov esi, eax
call sub.MSVCRT.dll_strlen
add eax, 4
push eax
call edi
push dword [ebp + 8]
mov edi, eax
push edi
call sub.MSVCRT.dll_strcpy
push 0x40ea90
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov dword [esi], eax
call edi
cmp dword [esi], 0xffffffff
pop ecx
jne 0x4048be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x40488e
cmp eax, 3
jle 0x4048b0
cmp eax, 8
je 0x4048a2
cmp eax, 0x12
je 0x4048b0
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x16
push esi
call edi
pop ecx
xor eax, eax
jmp 0x404906
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xc
jmp 0x40489a
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 2
jmp 0x40489a
mov eax, dword [ebp - 0x140]
sub eax, 0x80
neg eax
sbb eax, eax
and eax, dword [ebp - 0x140]
mov word [esi + 0xa], 0xa
mov word [esi + 8], 0xa
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x114]
push eax
lea eax, [esi + 0x10]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov byte [esi + 0x118], 1
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x404dfa
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.0040aa60
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
xor edx, edx
cmp word [ecx + eax + 0x5c], 2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10a4]
push dword [ebp + 8]
sete dl
push eax
mov esi, edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
pop esi
je 0x404e75
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x10a4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x14
leave
ret
Function at 0x4056ae
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x412718], 2
push esi
push edi
jne 0x40579f
push str.advapi32.dll
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
je 0x4056e7
push str.GetUserNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
mov dword [ebp - 4], 0x208
je 0x40579f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x40579f
cmp word [ebp - 0x21c], di
lea eax, [ebp - 0x21c]
je 0x405794
push ebx
jmp 0x405720
mov eax, dword [ebp - 8]
movzx ebx, word [eax]
inc eax
inc eax
cmp ebx, 0x20
mov dword [ebp - 8], eax
jne 0x405733
push 0x5f
pop ebx
cmp ebx, 0x20
jl 0x405757
cmp ebx, 0x7e
jg 0x405757
push ebx
push str._:___
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
test eax, eax
pop ecx
jne 0x405757
and byte [ebp - 0x13], al
push 1
mov byte [ebp - 0x14], bl
pop eax
jmp 0x40576a
push ebx
lea eax, [ebp - 0x14]
push 0x40f060
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea esi, [eax + edi]
lea ecx, [esi + 1]
cmp ecx, dword [ebp + 0xc]
jae 0x40578a
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
add edi, eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edi, esi
mov eax, dword [ebp - 8]
cmp word [eax], 0
jne 0x40571d
pop ebx
mov eax, dword [ebp + 8]
and byte [edi + eax], 0
mov eax, edi
jmp 0x4057c0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4057b9
and byte [esi], al
push esi
call sub.MSVCRT.dll_strlen
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4066a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.00404814
mov edi, eax
pop ecx
test edi, edi
je 0x406763
push esi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x400]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [ebp + esi - 0x401]
add esp, 0x10
cmp al, 0x2f
je 0x4066f2
cmp al, 0x5c
je 0x4066f2
mov byte [ebp + esi - 0x400], 0x5c
inc esi
push edi
call fcn.0040490a
test eax, eax
pop ecx
je 0x40675b
cmp byte [eax + 0x10], 0x2e
lea ecx, [eax + 0x10]
jne 0x406718
mov dl, byte [eax + 0x11]
test dl, dl
je 0x4066f2
cmp dl, 0x2e
jne 0x406718
cmp byte [eax + 0x12], 0
je 0x4066f2
lea eax, [ebp + esi - 0x400]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x400]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__chmod]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 0x14
test eax, eax
je 0x4066f2
lea eax, [ebp - 0x400]
push eax
call fcn.004066a0
pop ecx
jmp 0x4066f2
push edi
call fcn.004049c9
pop ecx
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll__rmdir]
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x408ced
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
push 0x18
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x408d1b
xor eax, eax
jmp 0x408e56
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], 1
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x408d56
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call sub.MSVCRT.dll__strdup
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x408d72
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
jmp 0x408e56
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x408d9c
push 2
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x408da4
jmp 0x408e10
push 0x4110b4
push 0x4110b8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408de7
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x408de7
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00408e5a
add esp, 4
test eax, eax
je 0x408e09
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call fcn.00407eb0
add esp, 4
test eax, eax
jne 0x408e0b
jmp 0x408e10
mov eax, dword [ebp - 0xc]
jmp 0x408e56
cmp dword [ebp - 4], 0
jl 0x408e22
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll__close
add esp, 4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x408e39
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call sub.MSVCRT.dll_free
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x409383
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00409531
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4093bf
xor eax, eax
jmp 0x40952d
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040956d
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4093ec
xor eax, eax
jmp 0x40952d
lea ecx, [ebp - 0x18]
push ecx
push 0x40
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x409414
xor eax, eax
jmp 0x40952d
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x40950e
push str.KERNEL32.dll
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x409500
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
je 0x4094fe
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
and eax, 0x80000000
test eax, eax
jne 0x4094e7
mov dword [ebp - 0x30], str.DisableThreadLibraryCalls
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax + 2]
mov byte [ebp - 0x2c], cl
movsx edx, byte [ebp - 0x2c]
cmp edx, 0x44
je 0x4094b0
movsx eax, byte [ebp - 0x2c]
cmp eax, 0x46
je 0x4094b0
movsx ecx, byte [ebp - 0x2c]
cmp ecx, 0x47
je 0x4094b0
movsx edx, byte [ebp - 0x2c]
cmp edx, 0x4c
jne 0x4094e7
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x4094e7
mov ecx, dword [ebp - 0x28]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4094dc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xc
mov dword [ebp - 0x30], ecx
jmp 0x4094b0
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
jmp 0x409457
jmp 0x40950e
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
mov dword [ebp - 0x1c], ecx
jmp 0x409414
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x40956d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x4095b3
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x4095e4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
cmp eax, dword [ebp + 0xc]
ja 0x4095e2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
add edx, dword [eax + 8]
cmp dword [ebp + 0xc], edx
jae 0x4095e2
mov eax, dword [ebp - 8]
jmp 0x4095e6
jmp 0x4095a1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40aada
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f7b8
push 0x40ac1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4128e8], 0xffffffff
or dword [0x4128ec], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x412814]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x412810]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4128e4], eax
call fcn.0040ac1d
cmp dword [0x4112c0], 0
jne 0x40ab5d
push 0x40ac1a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040ac08
push 0x41100c
push 0x411008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x41280c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x412808]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x411004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00402608
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401154
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
add byte [esi + 0x4228d0], 0x63
call edi
add byte [esi + 0x4228d0], 0x37
call edi
xor byte [esi + 0x4228d0], 0x49
call edi
add byte [esi + 0x4228d0], 0x8e
call edi
add byte [esi + 0x4228d0], 0xda
call edi
add byte [esi + 0x4228d0], 0xe2
call edi
add byte [esi + 0x4228d0], 0xfb
call edi
xor byte [esi + 0x4228d0], 0xec
call edi
add byte [esi + 0x4228d0], 0x18
call edi
add byte [esi + 0x4228d0], 0xd6
call edi
xor byte [esi + 0x4228d0], 0xc0
call edi
add byte [esi + 0x4228d0], 0xca
call edi
add byte [esi + 0x4228d0], 0xf4
call edi
add byte [esi + 0x4228d0], 0xb5
call edi
add byte [esi + 0x4228d0], 0xb3
call edi
add byte [esi + 0x4228d0], 0x23
call edi
xor byte [esi + 0x4228d0], 0x5d
call edi
add byte [esi + 0x4228d0], 3
call edi
add byte [esi + 0x4228d0], 0xce
call edi
add byte [esi + 0x4228d0], 0xac
call edi
add byte [esi + 0x4228d0], 0x5f
call edi
add byte [esi + 0x4228d0], 0xdc
call edi
add byte [esi + 0x4228d0], 0x78
call edi
add byte [esi + 0x4228d0], 0x86
call edi
add byte [esi + 0x4228d0], 0xd1
call edi
xor byte [esi + 0x4228d0], 0x26
call edi
add byte [esi + 0x4228d0], 0x6c
call edi
add byte [esi + 0x4228d0], 0xd8
call edi
add byte [esi + 0x4228d0], 0xfe
call edi
add byte [esi + 0x4228d0], 0x34
call edi
add byte [esi + 0x4228d0], 0x3e
call edi
xor byte [esi + 0x4228d0], 0x41
call edi
xor byte [esi + 0x4228d0], 0x35
call edi
xor byte [esi + 0x4228d0], 0x8a
call edi
add byte [esi + 0x4228d0], 0x16
call edi
add byte [esi + 0x4228d0], 0xa9
call edi
xor byte [esi + 0x4228d0], 0x9a
call edi
add byte [esi + 0x4228d0], 0xdd
call edi
add byte [esi + 0x4228d0], 0x7c
call edi
xor byte [esi + 0x4228d0], 0x29
call edi
add byte [esi + 0x4228d0], 0x27
call edi
xor byte [esi + 0x4228d0], 0x2c
call edi
add byte [esi + 0x4228d0], 0x9a
call edi
xor byte [esi + 0x4228d0], 0x23
call edi
add byte [esi + 0x4228d0], 0xf2
call edi
xor byte [esi + 0x4228d0], 0xb6
call edi
add byte [esi + 0x4228d0], 6
call edi
add byte [esi + 0x4228d0], 0x79
call edi
add byte [esi + 0x4228d0], 0xc9
inc esi
cmp esi, 0x7800
jb 0x40115e
pop edi
pop esi
ret
Function at 0x418a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x411014
Capabilities:
Terminate process

Disassembly:
jmp 0x412a00
jmp fcn.00413000
cmp ecx, dword [0x417014]
jne 0x412a0a
repz ret
jmp 0x41107d