joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c59a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, 0x4e5d8c
push 0x4c5a98
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4c5a95
push 0x12
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8934], eax
push 0x13
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8938], eax
push 0x19
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e893c], eax
push 0x99
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8940], eax
push 0x10
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8944], eax
push 0x15
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8958], eax
push 0x11
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8948], eax
push 0x98
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e894c], eax
push 0x9b
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e8950], eax
push 2
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5d90], eax
push 4
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5d94], eax
push 0x284
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5d98], eax
push 0x285
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e5d9c], eax
pop ebx
ret

Function at 0x4c6e4c
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, eax
cmp byte [0x4e5dac], 0
jne 0x4c6ea2
push 0x4e8970
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4c6e9b
mov dword [esp], esi
mov byte [esp + 4], 6
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
push esp
push 1
mov ecx, 0x4c6eb4
mov dl, 1
mov eax, dword [0x4c6388]
call fcn.0040d308
call fcn.00403c38
mov byte [0x4e5dac], 1
mov al, 1
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x4c7068
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov ebx, eax
mov edi, esp
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x4c70ce
push edi
call sub.user32.dll_TranslateMessage
push edi
call sub.user32.dll_DispatchMessageA
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [ebx + 0x600]
cdq
cmp edx, dword [esp + 4]
jne 0x4c70b4
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4c70ce
jmp 0x4c70b8
pop edx
pop eax
jg 0x4c70ce
mov ecx, 0x4c70f0
mov dl, 1
mov eax, dword [0x407e44]
call fcn.0040d2cc
call fcn.00403c38
push 1
push 0
push 0
push 0
push edi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4c707b
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x4c751c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, eax
mov bl, 1
jmp 0x4c7656
cmp dword [edi + 0x30], 0xffffffff
jne 0x4c753e
mov byte [edi + 0x19c], 0
jmp 0x4c765e
mov esi, 0xfffffffe
cmp byte [edi + 0x64], 4
jne 0x4c7592
lea eax, [esp + 4]
push eax
push 0x4004667f
mov eax, dword [edi + 0x30]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x4c7577
mov byte [edi + 0x19c], 0
mov edx, 0x4c7670
mov eax, edi
call fcn.004c9590
jmp 0x4c765e
cmp dword [esp + 4], 0
jle 0x4c7592
push 0
push 1
lea eax, [esp + 8]
push eax
mov eax, dword [edi + 0x30]
push eax
call sub.wsock32.dll_recv
mov esi, eax
cmp esi, 1
jne 0x4c7604
inc dword [edi + 0x1a0]
cmp byte [esp], 0xa
je 0x4c75cb
cmp byte [esp], 0xd
je 0x4c75cb
inc dword [edi + 0x198]
mov eax, dword [edi + 0x198]
mov dl, byte [esp]
mov byte [edi + eax + 0x96], dl
mov eax, dword [edi + 0x198]
mov byte [edi + 0x96], al
cmp dword [edi + 0x198], 0xfe
jl 0x4c75f3
mov byte [esp], 0xa
cmp word [edi + 0x5ea], 0
je 0x4c75f3
mov edx, edi
mov eax, dword [edi + 0x5ec]
call dword [edi + 0x5e8]
cmp byte [esp], 0xa
jne 0x4c7656
xor ebx, ebx
mov byte [edi + 0x19c], 0
jmp 0x4c7656
test esi, esi
jne 0x4c761a
xor ebx, ebx
mov byte [edi + 0x19c], 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x6c]
jmp 0x4c7656
inc esi
jne 0x4c7654
call sub.wsock32.dll_WSAGetLastError
mov ebp, eax
cmp ebp, 0x2746
jne 0x4c763e
xor ebx, ebx
mov byte [edi + 0x19c], 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x6c]
jmp 0x4c7656
cmp ebp, 0x2733
je 0x4c7656
mov edx, 0x4c7684
mov eax, edi
call fcn.004c9590
jmp 0x4c765e
xor ebx, ebx
test bl, bl
jne 0x4c752c
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c7ac4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
jmp 0x4c7bb2
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7c], edx
xor eax, eax
push ebp
push 0x4c7ba6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x19c], 0
je 0x4c7b09
mov eax, dword [ebp - 4]
call fcn.004c751c
jmp 0x4c7b60
mov edx, dword [ebp - 8]
mov dx, word [edx + 0xa]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
test al, al
jne 0x4c7b60
push 0
push 0x400
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.wsock32.dll_recv
inc eax
jne 0x4c7b60
call sub.wsock32.dll_WSAGetLastError
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x7c], esi
cmp esi, 0x2733
jne 0x4c7b60
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x7c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c7bba
mov eax, dword [ebp - 4]
cmp dword [eax + 0x7c], 0
je 0x4c7b6d
xor ebx, ebx
jmp 0x4c7b9c
lea eax, [ebp - 0xc]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x4c7b94
call sub.wsock32.dll_WSAGetLastError
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
xor ebx, ebx
jmp 0x4c7b9c
cmp dword [ebp - 0xc], 0
jne 0x4c7b9c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c7bb2
test bl, bl
jne 0x4c7add
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c83e4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4c84de
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 4]
call fcn.0040900c
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x10d]
call fcn.00409d98
cmp byte [0x4e5dac], 0
jne 0x4c8440
mov eax, 0x4c84ec
call fcn.004c6e4c
lea eax, [ebp - 0x10d]
push eax
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x4c84ba
mov edx, 0x4c84f8
lea eax, [ebp - 0x10d]
call fcn.00409ddc
test eax, eax
jne 0x4c846a
or eax, 0xffffffff
jmp 0x4c84ba
lea eax, [ebp - 0x10d]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c84b0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 0x118], 0xb
lea eax, [ebp - 0x11c]
push eax
push 0
mov ecx, 0x4c8510
mov dl, 1
mov eax, dword [0x4c6388]
call fcn.0040d308
call fcn.00403c38
jmp 0x4c84ba
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c84e5
lea eax, [ebp - 0x114]
call fcn.004042bc
lea eax, [ebp - 4]
call fcn.004042bc
ret
Function at 0x4ca618
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
mov edx, ebx
add edx, 4
mov eax, esi
call fcn.00404934
mov eax, esi
call fcn.00404800
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.00402de8
cmp byte [ebp - 1], 0
jne 0x4ca68b
mov eax, esi
call fcn.00404800
mov dl, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov al, byte [ebp - 1]
sub al, 1
jb 0x4ca6a4
sub al, 2
jb 0x4ca6ab
jmp 0x4ca6b0
mov ebx, 2
jmp 0x4ca6b0
mov ebx, 1
mov eax, esi
call fcn.00404800
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4ca792
test edi, edi
jle 0x4ca70c
mov eax, esi
call fcn.00404800
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.00404800
mov byte [eax + ebx - 1], 0
jmp 0x4ca786
test edi, edi
jge 0x4ca752
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00404800
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x4ca786
mov eax, esi
call fcn.00404800
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc dword [ebp - 0x10]
inc ebx
mov eax, esi
call fcn.00404800
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4ca6c8
mov al, byte [ebp - 1]
sub al, 1
jb 0x4ca79f
sub al, 2
jb 0x4ca7d7
jmp 0x4ca81d
cmp edi, 2
jne 0x4ca7a5
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4ca81d
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00404800
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, 0x4ca838
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4ca7b5
jmp 0x4ca81d
cmp edi, 2
jne 0x4ca7dd
dec ebx
test ebx, ebx
jle 0x4ca818
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00404800
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, 0x4ca884
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4ca7e9
jmp 0x4ca818
inc ebx
mov eax, esi
call fcn.00404800
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4ca80b
mov eax, esi
mov edx, ebx
call fcn.00404934
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d306c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d31d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e616c]
cmp byte [eax], 0
jne 0x4d30c7
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404570
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, ebx
call fcn.00439c38
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00404b90
jmp 0x4d31ae
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00404c0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4d30f9
mov eax, esi
call fcn.004049c8
jmp 0x4d31ae
mov eax, dword [ebp - 4]
dec eax
sub eax, 2
jb 0x4d3130
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x4e62a0]
call fcn.004064f8
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4395dc]
call fcn.0040d308
call fcn.00403c38
cmp dword [ebp - 8], 1
jne 0x4d313d
mov dword [ebp - 8], 2
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, esi
call fcn.00404f80
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
call fcn.00404c0c
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00404c0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4d319e
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x4e6658]
call fcn.004064f8
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4395dc]
call fcn.0040d308
call fcn.00403c38
mov eax, dword [esi]
call fcn.00404c0c
mov edx, eax
mov eax, esi
call fcn.00404b20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d31dd
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004042e0
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004042e0
ret
Function at 0x4d31e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4d32ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e616c]
cmp byte [eax], 0
jne 0x4d326f
cmp dword [ebp - 4], 1
jne 0x4d324a
lea eax, [ebp - 8]
mov edx, esi
call fcn.00404570
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.00404570
mov edx, dword [ebp - 0xc]
mov eax, ebx
pop ecx
call fcn.00439be0
jmp 0x4d32cb
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00404570
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00404570
mov edx, dword [ebp - 0x14]
mov eax, ebx
pop ecx
call fcn.00439c0c
jmp 0x4d32cb
mov eax, esi
call fcn.00404c1c
inc eax
add eax, eax
push eax
mov eax, esi
call fcn.00404c0c
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00404c0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4d32cb
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x18], 0xf
lea eax, [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x4e639c]
call fcn.004064f8
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4395dc]
call fcn.0040d308
call fcn.00403c38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d32f5
lea eax, [ebp - 0x20]
call fcn.004042bc
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004042e0
ret
Function at 0x4db274
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4db27d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 8]
call fcn.00404fc4
xor eax, eax
push ebp
push 0x4db453
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 6
mov eax, dword [ebx + 0x424]
mov byte [eax + 0x14c], 1
mov edx, dword [ebx + 0x508]
mov dword [eax + 0x150], edx
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004da850
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404d34
jne 0x4db2e9
mov esi, 2
jmp 0x4db42b
mov eax, dword [ebp - 0xc]
call fcn.004743a0
test al, al
je 0x4db30e
mov eax, 0x4db468
call fcn.0049b268
cmp eax, 2
jne 0x4db30e
mov esi, 2
jmp 0x4db42b
mov eax, dword [ebx + 0x424]
mov eax, dword [eax + 0x150]
mov dword [ebx + 0x508], eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.0047457c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0047434c
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0047457c
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.0047434c
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00404d34
jne 0x4db3b4
cmp dword [0x4e8b58], 1
jg 0x4db37d
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00404570
mov eax, dword [ebp - 0x20]
call fcn.0049c214
test al, al
jne 0x4db3b4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c0c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404c0c
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x4db3ab
mov eax, 0x4db48c
call fcn.0049b1f0
jmp 0x4db42b
mov byte [0x4e8b29], 0
jmp 0x4db42b
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404570
mov eax, dword [ebp - 0x24]
call fcn.0049c214
test al, al
je 0x4db421
cmp byte [ebx + 0x4fc], 0
je 0x4db40e
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call fcn.00404570
mov eax, dword [ebp - 0x28]
call fcn.0049b8d8
cmp al, 3
jne 0x4db40e
mov eax, dword [ebx + 0x428]
call fcn.00487bb0
xor edx, edx
mov eax, ebx
call fcn.004d8270
xor edx, edx
mov eax, dword [ebx + 0x428]
call fcn.00487bb8
push 1
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004db094
jmp 0x4db42b
mov eax, 0x4db49c
call fcn.0049b1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db45a
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004042e0
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004049e0
ret
Function at 0x4dbc98
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [0x4e6000]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4dbcc6
cmp eax, 0x14
jae 0x4dbcc8
jmp 0x4dbd3e
jl 0x4dbd3e
xor eax, eax
push ebp
push 0x4dbd2a
push dword fs:[eax]
mov dword fs:[eax], esp
sub esi, 7
je 0x4dbce6
dec esi
je 0x4dbcf5
dec esi
je 0x4dbd04
dec esi
je 0x4dbd13
jmp 0x4dbd20
mov edx, dword [ebx + 0x398]
mov eax, ebx
call fcn.004d8400
jmp 0x4dbd20
mov edx, dword [ebx + 0x394]
mov eax, ebx
call fcn.004d8400
jmp 0x4dbd20
mov edx, dword [ebx + 0x388]
mov eax, ebx
call fcn.004d9360
jmp 0x4dbd20
mov edx, dword [ebx + 0x384]
mov eax, ebx
call fcn.004d9360
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dbd34
call sub.kernel32.dll_GetTickCount_1
mov dword [0x4e6000], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1002f3f0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002f42e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1002f426
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1002f430
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1002f416
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002f500
Capabilities:
Parse pe header

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

Function at 0x10036174
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5b
xor dword [esp + 0x57], ebp
xor ebp, dword [esp + 0x57]
xor dword [esp + 0x57], ebp
mov ebp, dword [esp + 0x57]
add esp, 0x57
mov ebp, esp
push 0
add dword [esp], edx
sub esp, 4
mov dword [esp], 0x8744bbc7
and dword [esp], ecx
or dword [esp], ecx
sub esp, 4
xor dword [esp], ebx
xor ebx, dword [esp]
xor dword [esp], ebx
mov ebx, dword [esp]
lea esp, [esp - 4]
mov dword [esp], edi
sub esp, 4
xor dword [esp], esi
xor esi, dword [esp]
xor dword [esp], esi
mov esi, dword [esp]
mov esi, dword [ebp + 8]
shl ecx, 0xd
shl ecx, 0x13
add ecx, dword [ebp + 0xc]
xor edx, edx
xor eax, eax
cmp ecx, 0
je 0x1003622f
mov ebx, dword [ebp + 0x10]
push 0
or dword [esp], ebp
not edi
xor edi, edi
add edi, dword [esp]
add esp, 4
push eax
or eax, 0xffffffff
inc eax
sub eax, 0x29a58556
neg eax
xchg dword [esp], eax
xor dword [esp], 0x29a58542
add edi, dword [esp]
lea esp, [esp + 4]
mov edi, dword [edi]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x10036214
shl eax, 0xf
shl eax, 0x11
add eax, ebx
pop esi
pop edi
pop ebx
sub ecx, ecx
add ecx, esp
sub ecx, 0x5f
mov ecx, dword [ecx + 0x4c]
and ecx, dword [esp]
or ecx, dword [esp]
add esp, 4
mov edx, dword [esp]
lea esp, [esp + 4]
leave
ret 0x10
Function at 0x10036253
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf
mov dword [esp + 0xb], esi
add esp, 0xb
push edi
sub esp, 0x3e
mov dword [esp + 0x3a], ecx
add esp, 0x3a
shl edi, 0xb
shl edi, 0x15
not edi
and edi, 0x4e12ec40
xor edi, 0x4e12ec4c
add edi, ebp
mov edi, dword [edi]
mov esi, dword [ebp + 8]
xchg ecx, ebp
mov ebp, ecx
push ebx
xor ebx, edx
lea esp, [esp - 0x11]
mov dword [esp + 0xd], 0x69a8452d
lea esp, [esp + 0xd]
lea ebx, [eax + ecx*4 + 0x52d83bd7]
sub ebx, ebx
or ebx, dword [esp]
add esp, 4
xor ebx, 0x69a8453d
add ecx, ebx
lea esp, [esp - 0x53]
mov ebx, dword [esp + 0x53]
lea esp, [esp + 0x57]
mov ecx, dword [ecx]
cmp ecx, 0
je 0x100362e0
push 0
xor dword [esp], esi
call fcn.1003636c
mov byte [edi], al
inc edi
inc esi
dec ecx
jne 0x100362cb
sub eax, eax
add eax, edi
lea esp, [esp - 0x39]
mov ecx, dword [esp + 0x39]
lea esp, [esp + 0x3d]
shl edi, 1
shl edi, 0x1f
not edi
and edi, 0xffffffff
and edi, dword [esp]
add esp, 4
mov esi, dword [esp]
lea esp, [esp + 4]
leave
ret 0xc

Function at 0x10036c5a
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
lea esp, [esp - 4]
mov dword [esp], ecx
sub esp, 0x2b
mov dword [esp + 0x27], 0xf6a47d7
add esp, 0x27
mov dword [esp], edx
sub esp, 0x65
xor dword [esp + 0x61], ebx
xor dword gs:[esp + 0x61], ebx
xor ebx, dword [esp + 0x61]
xor dword [esp + 0x61], ebx
mov ebx, dword [esp + 0x61]
add esp, 0x61
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0x10]
movzx ecx, word [esi + 0x38]
mov esi, dword [esi + 0x3c]
push 0xffffffffffffffff
call fcn.100377c2
cmp ecx, 0
je 0x10036cc3
xor eax, eax
xor edx, edx
cld
rol edx, 7
xor dl, al
mov al, byte [esi]
inc esi
dec ecx
jne 0x10036cb0
xor eax, eax
add eax, edx
or ebx, ebx
and ebx, dword [esp]
or ebx, dword [esp]
add esp, 4
call fcn.10036cdf
enter 0xffffffffffff8661, 0x47
je 0x10036c76
adc ah, bl
loopne 0x10036c76
pop esi
aas