joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100019ad
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
xor eax, eax
pop ebp
ret

Function at 0x100023cb
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
push 3
pop ebx
mov ecx, dword [ebp + 0x14]
lea eax, [edi + 2]
div ebx
lea eax, [eax*4 + 1]
cmp dword [ecx], eax
jae 0x100023f7
push 6
mov dword [ecx], eax
pop eax
jmp 0x100024fe
xor edx, edx
mov eax, edi
div ebx
mov ebx, dword [ebp + 0x18]
xor ecx, ecx
imul eax, eax, 3
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
test eax, eax
je 0x10002481
xor edx, edx
dec eax
push 3
pop ecx
div ecx
inc eax
imul edx, eax, 3
mov edi, eax
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shr eax, 2
push 3
mov al, byte [eax + ebx]
mov byte [esi], al
movzx ecx, byte [edx]
pop eax
and ecx, eax
movzx eax, byte [edx + 1]
shr eax, 4
shl ecx, 4
add ecx, ebx
push 3
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
movzx ecx, byte [edx + 1]
shr eax, 6
and ecx, 0xf
add eax, ebx
mov al, byte [eax + ecx*4]
mov byte [esi + 2], al
movzx eax, byte [edx + 2]
and eax, 0x3f
mov al, byte [eax + ebx]
mov byte [esi + 3], al
add esi, 4
pop eax
add edx, eax
sub edi, 1
jne 0x10002424
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
jmp 0x10002484
mov edx, dword [ebp + 8]
cmp ecx, edi
jae 0x100024f0
movzx eax, byte [edx]
mov dword [ebp + 0xc], eax
lea eax, [ecx + 1]
cmp eax, edi
jae 0x1000249b
movzx ecx, byte [edx + 1]
jmp 0x1000249d
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov eax, edx
shr eax, 2
shl edx, 4
mov al, byte [eax + ebx]
mov byte [esi], al
mov eax, ecx
shr eax, 4
add eax, edx
and eax, 0x3f
mov al, byte [eax + ebx]
mov byte [esi + 1], al
add esi, 2
mov eax, dword [ebp - 4]
inc eax
cmp dword [ebp + 0x1c], 0
je 0x100024e3
cmp eax, edi
jae 0x100024d6
and ecx, 0xf
mov al, byte [ebx + ecx*4]
jmp 0x100024d8
mov al, 0x3d
mov byte [esi], al
mov byte [esi + 1], 0x3d
add esi, 2
jmp 0x100024f0
cmp eax, edi
jae 0x100024f0
and ecx, 0xf
mov al, byte [ebx + ecx*4]
mov byte [esi], al
inc esi
mov eax, dword [ebp + 0x14]
mov byte [esi], 0
sub esi, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ax, word [esi]
add esi, 2
cmp ax, 0x22
jne 0x10001041
push 0x22
push esi
call fcn.10001096
mov edi, eax
add esp, 8
test edi, edi
je 0x10001058
push edi
call fcn.10001080
add esp, 4
cmp eax, 2
ja 0x1000103c
mov esi, 0x100050d0
jmp 0x10001058
lea esi, [edi + 4]
jmp 0x10001058
push 0x20
push esi
call fcn.10001096
add esp, 8
test eax, eax
mov esi, 0x100050d4
je 0x10001058
lea esi, [eax + 2]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 0
push 0x3e8
push ecx
push esi
push edx
push eax
call sub.PBVM105.dll_Ordinal_67
pop edi
pop esi
ret 0x10
Function at 0x100010dd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x100050d8
call fcn.10001e68
mov edi, 0x94
mov eax, edi
call fcn.10001fc0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x100072b8], ecx
mov eax, dword [esi + 4]
mov dword [0x100072c4], eax
mov edx, dword [esi + 8]
mov dword [0x100072c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100072bc], esi
cmp ecx, 2
je 0x1000113d
or esi, 0x8000
mov dword [0x100072bc], esi
shl eax, 8
add eax, edx
mov dword [0x100072c0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10001178
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10001178
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10001190
cmp eax, 0x20b
je 0x1000117d
mov dword [ebp - 0x1c], esi
jmp 0x100011a4
cmp dword [ecx + 0x84], 0xe
jbe 0x10001178
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1000119e
cmp dword [ecx + 0x74], 0xe
jbe 0x10001178
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.10001e16
pop ecx
test eax, eax
jne 0x100011d0
cmp dword [0x100072a8], 1
jne 0x100011bd
call fcn.100015cb
push 0x1c
call fcn.10001454
push 0xff
call fcn.100012b9
pop ecx
pop ecx
call fcn.10001d74
mov dword [ebp - 4], esi
call fcn.10001bc9
test eax, eax
jge 0x100011e9
push 0x1b
call fcn.100010b8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10007834], eax
call fcn.10001aa7
mov dword [0x100072a0], eax
call fcn.10001a05
test eax, eax
jge 0x1000120f
push 8
call fcn.100010b8
pop ecx
call fcn.100017d2
test eax, eax
jge 0x10001220
push 9
call fcn.100010b8
pop ecx
push 1
call fcn.100012e9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x10001236
push eax
call fcn.100010b8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.10001775
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x10001257
movzx eax, word [ebp - 0x40]
jmp 0x1000125a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x10001278
push edi
call fcn.10001414
call fcn.10001436
jmp 0x100012aa
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.10001ea3
ret
Function at 0x10001353
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x100072f8], esi
push edi
jne 0x10001373
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x100072f4], esi
mov byte [0x100072f0], al
jne 0x100013d9
mov ecx, dword [0x10007828]
test ecx, ecx
je 0x100013ba
mov eax, dword [0x10007824]
sub eax, 4
cmp eax, ecx
jmp 0x100013b3
mov eax, dword [eax]
test eax, eax
je 0x100013a5
call eax
mov eax, dword [0x10007824]
sub eax, 4
cmp eax, dword [0x10007828]
mov dword [0x10007824], eax
jae 0x1000139d
mov eax, 0x1000701c
mov esi, 0x10007020
cmp eax, esi
mov edi, eax
jae 0x100013d9
mov eax, dword [edi]
test eax, eax
je 0x100013d2
call eax
add edi, 4
cmp edi, esi
jb 0x100013ca
mov eax, 0x10007024
mov esi, 0x10007028
cmp eax, esi
mov edi, eax
jae 0x100013f8
mov eax, dword [edi]
test eax, eax
je 0x100013f1
call eax
add edi, 4
cmp edi, esi
jb 0x100013e9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x10001412
push dword [ebp + 8]
mov dword [0x100072f8], 1
call fcn.100012b9
pop ebp
ret

Function at 0x10001454
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10007170]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x10007038]
je 0x10001489
inc eax
cmp eax, 0x13
jb 0x1000147a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10007038]
jne 0x100015af
mov eax, dword [0x100072a8]
cmp eax, 1
je 0x10001587
cmp eax, edx
jne 0x100014b9
cmp dword [0x10007034], 1
je 0x10001587
cmp ecx, 0xfc
je 0x100015af
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100014ef
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100021c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100023f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10001523
mov eax, edi
push eax
call fcn.100023f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x100054f0
push edi
call fcn.100022c0
add esp, 0x10
push edi
call fcn.100023f0
push dword [esi + 0x1000703c]
mov ebx, eax
call fcn.100023f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10001fc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100021c0
push edi
push ebx
call fcn.100021d0
push 0x100054d0
push ebx
call fcn.100021d0
push dword [esi + 0x1000703c]
push ebx
call fcn.100021d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100020b9
add esp, 0x2c
jmp 0x100015af
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1000703c]
push dword [esi]
call fcn.100023f0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.100024ac
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x100020b9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10007414], ebx
push esi
push edi
jne 0x10002139
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10002174
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10007414], eax
je 0x10002174
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10007418], eax
call esi
cmp dword [0x100072b8], 2
mov dword [0x1000741c], eax
jne 0x10002139
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10007424], eax
je 0x10002139
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10007420], eax
mov eax, dword [0x10007420]
test eax, eax
je 0x1000217e
call eax
test eax, eax
je 0x10002165
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10007424]
test eax, eax
je 0x10002165
test byte [ebp - 8], 1
jne 0x1000217e
cmp dword [0x100072c4], 4
jb 0x10002178
or byte [ebp + 0x12], 0x20
jmp 0x1000219d
xor eax, eax
jmp 0x100021ad
or byte [ebp + 0x12], 4
jmp 0x1000219d
mov eax, dword [0x10007418]
test eax, eax
je 0x1000219d
call eax
mov ebx, eax
test ebx, ebx
je 0x1000219d
mov eax, dword [0x1000741c]
test eax, eax
je 0x1000219d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10007414]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100049ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10001fc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10004a47
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x100072b8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10004a47
cmp eax, 1
je 0x10004a68
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10004a47
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10004a14
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10004a43
xor eax, eax
inc eax
jmp 0x10004a87
cmp edi, eax
jae 0x10004a4b
xor eax, eax
jmp 0x10004a87
cmp eax, esi
jae 0x10004a52
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100072b8]
jmp 0x10004a6b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eb68
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ec58
push ebx
push 0x40ec68
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ebe8
mov al, 0x6a
call fcn.0040e788
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb3c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ebf1
call fcn.0040eb3c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec44
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ed58
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
jmp 0x40ee17
cmp dword [esi + 0x10], 0x1000
jne 0x40ee03
test byte [esi + 0x15], 1
jne 0x40ee03
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb4
cmp ebp, 2
je 0x40edb4
cmp ebp, 0x10
je 0x40edb4
cmp ebp, 0x20
jne 0x40edd0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40edd0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ede1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed50
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd4
cmp byte [esp + 4], 0
je 0x40ee03
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40ee23
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed89
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4298bc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x405008], 0x8088405
inc edx
mov dword [ebx + 0x405008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x401070
Capabilities:
Access peb ldr_data

Disassembly:
push esi
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
pop esi
ret

Function at 0x401158
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x4011a0
mov ebx, dword [esi + 0x20]
add ebx, edi
or ebx, ebx
je 0x401192
mov eax, dword [ebx]
push 0xffffffffffffffff
push 0xffffffffffffffff
add eax, edi
push eax
push dword [ebp + 8]
call fcn.0040109e
add esp, 0x10
or eax, eax
je 0x4011a6
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
sub ebx, 0xfffffffc
cmp eax, dword [esi + 0x18]
jb 0x401176
sub eax, eax
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x4011a2

Function at 0x4011c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x401050]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x24], 0xfafff1d2
mov dword [ebp - 0x20], 0xecfcf7d2
mov dword [ebp - 0x1c], 0xdbe7ecff
mov word [ebp - 0x18], 0xdfe6
mov byte [ebp - 0x16], 0
mov dword [ebp - 0x14], 0xceeafbd9
mov dword [ebp - 0x10], 0xdffdf1ec
mov dword [ebp - 0xc], 0xfbecfafa
mov word [ebp - 8], 0xeded
mov byte [ebp - 6], 0
call fcn.00401070
push eax
pop edi
sub eax, eax
xor byte [ebp + eax - 0x14], 0x9e
inc eax
cmp eax, 0xe
jb 0x401218
sub eax, eax
xor byte [ebp + eax - 0x24], 0x9e
inc eax
cmp eax, 0xe
jb 0x401225
lea eax, [ebp - 0x14]
push eax
call fcn.00401158
mov dword [0x403014], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401158
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x403018], eax
pop edi
call fcn.00402d9a
leave
ret
Function at 0x40125b
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x401050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x410], eax
sub edi, edi
sub eax, eax
mov dword [ebp + eax*4 - 0x404], eax
inc eax
cmp eax, 0x100
jl 0x40128a
sub ecx, ecx
sub edx, edx
push ecx
pop eax
div dword [ebp - 0x410]
lea esi, [ebp + ecx*4 - 0x404]
movzx eax, byte [edx + ebx]
add eax, dword [esi]
add edi, eax
and edi, 0x800000ff
jns 0x4012c4
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esi]
mov byte [ebp - 0x405], al
lea eax, [ebp + edi*4 - 0x404]
mov edx, dword [eax]
mov dword [esi], edx
movzx edx, byte [ebp - 0x405]
inc ecx
mov dword [eax], edx
cmp ecx, 0x100
jl 0x40129b
sub ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x401360
add ecx, 0x1a
and ecx, 0x800000ff
jns 0x401303
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [ebp + ecx*4 - 0x404]
mov edx, dword [eax]
add edi, edx
and edi, 0x800000ff
jns 0x40131e
dec edi
or edi, 0xffffff00
inc edi
lea esi, [ebp + edi*4 - 0x404]
mov byte [ebp - 0x405], dl
mov edx, dword [esi]
mov dword [eax], edx
movzx edx, byte [ebp - 0x405]
mov dword [esi], edx
mov eax, dword [eax]
mov esi, dword [ebp - 0x40c]
add eax, edx
and eax, 0x800000ff
jns 0x401350
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax*4 - 0x404]
xor byte [esi + ebx], al
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x4012f0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d9a
leave
ret
Function at 0x402d9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401050]
jne 0x402da4
repz ret
jmp 0x402e73
nop
nop
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x403128], eax
mov dword [0x403124], ecx
mov dword [0x403120], edx
mov dword [0x40311c], ebx
mov dword [0x403118], esi
mov dword [0x403114], edi
mov word [0x403140], ss
mov word [0x403134], cs
mov word [0x403110], ds
mov word [0x40310c], es
mov word [0x403108], fs
mov word [0x403104], gs
pushfd
pop dword [0x403138]
mov eax, dword [ebp]
mov dword [0x40312c], eax
mov eax, dword [ebp + 4]
mov dword [0x403130], eax
lea eax, [ebp + 8]
mov dword [0x40313c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x403078], 0x10001
mov eax, dword [0x403130]
mov dword [0x40302c], eax
mov dword [0x403020], 0xc0000409
mov dword [0x403024], 1
mov eax, dword [0x401050]
mov dword [ebp - 0x328], eax
mov eax, dword [0x401054]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x403070], eax
push 1
call fcn.00402f79
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x401060
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x403070], 0
jne 0x402f65
push 1
call fcn.00402f79
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x402e73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401050]
jne 0x402da4
repz ret
jmp 0x402e73
nop
nop
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x403128], eax
mov dword [0x403124], ecx
mov dword [0x403120], edx
mov dword [0x40311c], ebx
mov dword [0x403118], esi
mov dword [0x403114], edi
mov word [0x403140], ss
mov word [0x403134], cs
mov word [0x403110], ds
mov word [0x40310c], es
mov word [0x403108], fs
mov word [0x403104], gs
pushfd
pop dword [0x403138]
mov eax, dword [ebp]
mov dword [0x40312c], eax
mov eax, dword [ebp + 4]
mov dword [0x403130], eax
lea eax, [ebp + 8]
mov dword [0x40313c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x403078], 0x10001
mov eax, dword [0x403130]
mov dword [0x40302c], eax
mov dword [0x403020], 0xc0000409
mov dword [0x403024], 1
mov eax, dword [0x401050]
mov dword [ebp - 0x328], eax
mov eax, dword [0x401054]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x403070], eax
push 1
call fcn.00402f79
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x401060
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x403070], 0
jne 0x402f65
push 1
call fcn.00402f79
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x43b638
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
sub edx, edx
add edx, edi
sub edx, 0xa181d616
call fcn.0043b65d
and edi, edx
xor dword [ecx], eax
and edx, edi
inc ecx
dec edi
or edx, edx
cmp ecx, esi
jne fcn.0043b638
inc edi
ret
Function at 0x1000ba80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
cmp byte [ebx + 0x47], 0
je 0x1000bc14
movaps xmm5, xmmword [0x10406960]
lea ecx, [ebx + 8]
movaps xmm6, xmmword [str.__ABCDEFGHIJKLMN]
mov edx, 0x46
movups xmm4, xmmword [0x10406a00]
mov dword [ebp - 8], ecx
sub edx, ebx
push esi
mov ecx, 0x44
mov dword [ebp - 4], 0x3f
sub ecx, ebx
mov dword [ebp - 0x14], edx
push edi
mov dword [ebp - 0xc], ecx
mov edi, 0x43
sub edi, ebx
mov esi, 0x45
sub esi, ebx
mov dword [ebp - 0x10], edi
mov ecx, 0x3b
mov dword [ebp - 0x18], esi
sub ecx, ebx
xor eax, eax
sub dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
movd xmm0, eax
add ecx, ebx
pshufd xmm1, xmm0, 0
add edi, ebx
movd xmm0, dword [ebx - 8]
paddd xmm1, xmm6
punpcklbw xmm0, xmm0
add eax, 0x10
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm3, edi
xorps xmm1, xmm0
mov edi, dword [ebp - 0x10]
andps xmm1, xmm4
movd xmm0, ecx
mov ecx, dword [ebp - 4]
packuswb xmm1, xmm1
add ecx, ebx
packuswb xmm1, xmm1
movd dword [ebx - 8], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [ebx - 4]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, ecx
andps xmm1, xmm4
lea ecx, [edx + ebx]
packuswb xmm1, xmm1
lea edx, [esi + ebx]
mov esi, dword [ebp - 0xc]
packuswb xmm1, xmm1
add esi, ebx
movd dword [ebx - 4], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [ebx]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm2, ecx
xorps xmm1, xmm0
mov ecx, dword [ebp - 0x1c]
andps xmm1, xmm4
movd xmm0, edx
mov edx, dword [ebp - 0x14]
punpckldq xmm3, xmm0
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [ebx], xmm1
movd xmm0, dword [ebx + 4]
punpcklbw xmm0, xmm0
movd xmm1, esi
mov esi, dword [ebp - 0x18]
punpcklwd xmm0, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
psrad xmm0, 0x18
xorps xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd dword [ebx + 4], xmm3
add ebx, 0x10
cmp eax, 0x40
jb 0x1000baf4
mov ebx, dword [ebp - 0x20]
pop edi
pop esi
cmp eax, 0x46
jae 0x1000bc10
lea edx, [ebx + eax]
lea ecx, [eax + 0x3f]
inc eax
xor byte [edx], cl
cmp eax, 0x46
jb 0x1000bc02
mov byte [ebx + 0x47], 0
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret