joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e2dea
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x100e2e0e
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x100e2e13
mov ebx, 0xfff80000
jmp 0x100e2e19
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x1013dde4]
mov eax, dword [0x1013ddd0]
test edx, edx
jne 0x100e2e34
test eax, eax
je 0x100e2e47
mov edx, eax
mov dword [0x1013dde4], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x100e2e47
cmp ecx, edi
jb 0x100e2e47
cmp ecx, ebx
jbe 0x100e2ecb
mov edx, eax
test eax, eax
jmp 0x100e2e65
test edx, edx
je 0x100e2e60
mov eax, dword [edx + 8]
test eax, eax
je 0x100e2e60
cmp eax, edi
jb 0x100e2e60
cmp eax, ebx
jbe 0x100e2ecb
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x1013dde4], edx
jne 0x100e2e4d
and esi, 0xffff0000
mov ecx, edi
mov edx, esi
call fcn.100e2cc2
mov edx, eax
test edx, edx
jne 0x100e2e91
mov edx, ebx
mov ecx, esi
call fcn.100e2d50
mov edx, eax
test edx, edx
je 0x100e2ef0
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x2a7
mov eax, dword [0x1013ddd0]
mov dword [edx + 4], eax
lea eax, [edx + 0xff60]
mov dword [0x1013dde4], edx
mov dword [0x1013ddd0], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x60
sub esi, 1
jne 0x100e2ebb
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x100e2ef0
cmp esi, ebx
ja 0x100e2ef0
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.100638f0
add esp, 0xc
mov eax, esi
jmp 0x100e2ef2
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x100e3184
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10129490
call fcn.100622e0
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x100e31fa
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x100e31fa
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x100e31fa
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x100e31fa
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x100e3203
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100e35a5
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov ebx, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1013dde8], eax
je 0x100e35ca
mov eax, 0x10dd
jmp 0x100e36ad
mov eax, dword [0x1013dde0]
test eax, eax
jne 0x100e36ad
test ebx, ebx
jne 0x100e35e3
push 0x57
pop eax
jmp 0x100e36ad
test edi, edi
jne 0x100e35eb
push 6
jmp 0x100e35dd
cmp dword [edi], 0
jne 0x100e3603
push 6
pop eax
mov dword [0x1013dde0], eax
mov dword [0x1013ddd4], edi
jmp 0x100e36ad
push esi
push 0x18
call fcn.10061922
pop ecx
mov ecx, dword [edi]
mov esi, eax
call fcn.100e353b
mov ecx, ebx
mov dword [ebp - 8], eax
call fcn.100e353b
mov ebx, dword [ebp - 8]
mov edx, eax
movzx ecx, byte [ebx + 0x36]
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x100e3688
cmp ecx, 0x1e
ja 0x100e3688
cmp dword [ebx + 0x44], edx
jne 0x100e3688
and dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100e365e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100e3694
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 1
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x1013ddc8]
mov dword [esi], eax
xor eax, eax
mov dword [0x1013ddc8], esi
jmp 0x100e36ac
cmp dword [0x1013ddcc], 0
push 9
pop ebx
jne 0x100e369a
mov dword [0x1013dde0], ebx
push 0x18
push esi
call fcn.10061ce6
pop ecx
pop ecx
mov dword [0x1013ddd4], edi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x100e36dd
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1013dde8], eax
je 0x100e36f8
mov eax, 0x10dd
leave
ret
push ebx
push esi
push edi
mov edi, dword [0x1013ddc8]
xor ebx, ebx
test edi, edi
je 0x100e3745
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x36]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x100e3733
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100e3733
call fcn.100e2f5b
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.10061ce6
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x100e3707
mov dword [0x1013ddc8], ebx
call fcn.100e3219
mov edi, dword [0x1013ddd8]
test edi, edi
je 0x100e3775
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.10061ce6
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x100e375a
pop edi
pop esi
mov dword [0x1013ddd8], ebx
xor eax, eax
mov dword [0x1013dde8], ebx
pop ebx
leave
ret
Function at 0x100e3a55
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1013dde0]
push esi
mov esi, ecx
test eax, eax
jne 0x100e3abc
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x100e3a6f
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.10061922
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100e3aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.10061ce6
and dword [0x1013ddd4], 0
mov eax, esi
pop ecx
pop ecx
mov dword [0x1013dde0], esi
jmp 0x100e3abb
mov eax, dword [0x1013ddd8]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x1013ddd8], edi
pop edi
pop esi
ret

Function at 0x100e3ac4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
xor ebx, ebx
push ecx
push 0x1013d968
lea ecx, [edi + 4]
mov word [edi], bx
call fcn.1006b5df
cmp dword [0x1013dde8], ebx
jne 0x100e3b55
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x1013dde8
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x100e3b55
push esi
mov esi, dword [0x1013ddd0]
mov dword [0x1013ddc8], ebx
mov dword [0x1013ddd8], ebx
mov dword [0x1013dde0], ebx
mov dword [0x1013ddd4], ebx
jmp 0x100e3b36
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x100e3b21
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, eax
call fcn.100e3a55
mov dword [0x1013ddcc], 1
mov byte [edi], 1
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x100ec66b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x1013c2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
je 0x100ec691
push 0x44
pop eax
lea edx, [eax + 0x48]
jmp 0x100ec70e
push edi
xor edi, edi
cmp dword [esi + 8], edi
jne 0x100ec6a9
call fcn.100ec978
or eax, 0x49
or edx, 0x140c
jmp 0x100ec70d
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov eax, 0x1003c884
jae 0x100ec6bd
mov eax, 0x1003c994
push ebx
push dword [esi + 8]
push eax
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.1008287c
add esp, 0x10
lea eax, [ebp - 0x84]
mov ebx, 0x80
push edi
push ebx
push 3
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x100ec708
call fcn.100ec978
or eax, 0x41
or edx, 0x180c
jmp 0x100ec70c
xor eax, eax
mov edx, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006190b
leave
ret
Function at 0x4a5b50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x7b000]
push edi
or ebp, 0xffffffff
jmp 0x4a5b72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a5b79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a5b68
mov eax, 1
add ebx, ebx
jne 0x4a5b8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a5b9c
jne 0x4a5bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a5bbb
dec eax
add ebx, ebx
jne 0x4a5ba8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4a5b80
add ebx, ebx
jne 0x4a5bb7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4a5c0d
xor ecx, ecx
sub eax, 3
jb 0x4a5bd3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a5c42
sar eax, 1
mov ebp, eax
jmp 0x4a5bde
add ebx, ebx
jne 0x4a5bde
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a5bac
inc ecx
add ebx, ebx
jne 0x4a5bec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a5bac
add ebx, ebx
jne 0x4a5bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a5bee
jne 0x4a5c0a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a5bee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a5c2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a5c1e
jmp 0x4a5b6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a5c2c
add edi, ecx
jmp 0x4a5b6e
pop esi
mov edi, esi
mov ecx, 0xd24
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a5c4a
cmp byte [edi], 0x13
jne 0x4a5c4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4a5c4f
lea edi, [esi + 0xa3000]
mov eax, dword [edi]
or eax, eax
je 0x4a5cbe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd72ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd7364]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a5c7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd736c]
or eax, eax
je 0x4a5cb8
mov dword [ebx], eax
add ebx, 4
jmp 0x4a5c99
call dword [esi + 0xd7368]
mov ebp, dword [esi + 0xd7370]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4a5cf2
sub esp, 0xffffff80
jmp 0x451e4f
Function at 0x61f02850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x61f028ab
cmp byte [esi + ebx - 1], 0xa
je 0x61f0287f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x61f080a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4011e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x8c], 0x6a09e667
push eax
mov dword [ebp - 0x88], 0xbb67ae85
mov dword [ebp - 0x84], 0x3c6ef372
mov dword [ebp - 0x80], 0xa54ff53a
mov dword [ebp - 0x7c], 0x510e527f
mov dword [ebp - 0x78], 0x9b05688c
mov dword [ebp - 0x74], 0x1f83d9ab
mov dword [ebp - 0x70], 0x5be0cd19
movlpd qword [ebp - 0x94], xmm0
mov byte [ebp - 0x2c], 0
call fcn.004016f0
lea eax, [ebp - 0x94]
push eax
call fcn.00401330
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00401600
add esp, 0x18
xor edx, edx
add esi, 2
nop
movzx ecx, byte [ebp + edx - 0x24]
lea esi, [esi + 8]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi - 0xa], al
movzx eax, byte [ecx + str.0123456789abcdef]
movzx ecx, byte [ebp + edx - 0x23]
mov byte [esi - 9], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi - 8], al
movzx eax, byte [ecx + str.0123456789abcdef]
movzx ecx, byte [ebp + edx - 0x22]
mov byte [esi - 7], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi - 6], al
movzx eax, byte [ecx + str.0123456789abcdef]
movzx ecx, byte [ebp + edx - 0x21]
add edx, 4
mov byte [esi - 5], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
movzx eax, byte [eax + str.0123456789abcdef]
mov byte [esi - 4], al
movzx eax, byte [ecx + str.0123456789abcdef]
mov byte [esi - 3], al
cmp edx, 0x20
jb 0x401280
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401cf0
mov esp, ebp
pop ebp
ret
Function at 0x4024ef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40252e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40252e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40252e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40252e
cmp dword [ecx + 0x74], 0xe
jbe 0x40252e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1a3a8c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1485000]
push edi
or ebp, 0xffffffff
jmp 0x1a3a8e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1a3a8e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a3a8d8
mov eax, 1
add ebx, ebx
jne 0x1a3a8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1a3a90c
jne 0x1a3a92b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a3a92b
dec eax
add ebx, ebx
jne 0x1a3a918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1a3a8f0
add ebx, ebx
jne 0x1a3a927
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1a3a97d
xor ecx, ecx
sub eax, 3
jb 0x1a3a943
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1a3a9b2
sar eax, 1
mov ebp, eax
jmp 0x1a3a94e
add ebx, ebx
jne 0x1a3a94e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a3a91c
inc ecx
add ebx, ebx
jne 0x1a3a95c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a3a91c
add ebx, ebx
jne 0x1a3a969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1a3a95e
jne 0x1a3a97a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1a3a95e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1a3a99c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1a3a98e
jmp 0x1a3a8de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1a3a99c
add edi, ecx
jmp 0x1a3a8de
pop esi
mov edi, esi
mov ecx, 0x4ca7fd
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1a3a9d7
cmp byte [edi], 0x65
jne 0x1a3a9bc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1a3a9ba
lea edi, [esi + 0x15fe000]
mov eax, dword [edi]
or eax, eax
je 0x1a3aa1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25d7c54]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25d7d84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1a3a9dd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25d7d8c]
or eax, eax
je 0x1a3aa19
mov dword [ebx], eax
add ebx, 4
jmp 0x1a3a9fa
call dword [esi + 0x25d7d88]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1a3aa50
cmp al, 0xef
ja 0x1a3aa43
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1a3aa25
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1a3aa32
mov ebp, dword [esi + 0x25d7d90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1a3aa84
sub esp, 0xffffff80
jmp 0x92006c
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x403e59
pop dword [ebp - 0x48]
mov eax, 0x403e59
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x9ec30fd1
add dword [ebp - 0x58], 0xaf8f357a
mov dword [ebp - 0x54], 0x4a66cba
sub dword [ebp - 0x54], 0xd2732075
mov dword [ebp - 0x50], 0x438f5873
sub dword [ebp - 0x50], 0xf7431445
mov dword [ebp - 0x4c], 0x9efa8ce2
add dword [ebp - 0x4c], 0x6105731e
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x977f23f4
add dword [ebp - 0x58], 0xdcf34562
mov dword [ebp - 0x54], 0xac122e3e
sub dword [ebp - 0x54], 0x6aa5ccc9
mov dword [ebp - 0x50], 0x917ab0a6
add dword [ebp - 0x50], 0xd1f4bbc6
mov dword [ebp - 0x4c], 0xe1ecadee
add dword [ebp - 0x4c], 0x1e135212
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x1222ba6c
sub eax, 0x11e23998
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x38345
push 0
call eax
mov ecx, 0x5cad11be
sub ecx, 0x5cacc3ea
xor edi, edi
add edi, eax
mov ebx, 0x411000
add ebx, dword [ebp - 0x48]
mov esi, 0x48e573ea
add esi, 0x484e52e4
add dword [ebp - 0x2c], ebx
mov edx, dword [ebx]
mov dword [ebp - 0x44], 0xfcb0e947
sub edx, esi
sub dword [ebp - 0xc], 0xa085b369
mov dword [edi], edx
xor dword [ebp - 4], esi
add edi, 4
add ebx, 0x5f061db9
add ebx, 0xa0f9e24b
loop 0x403f6d
add eax, 0x8c626bd7
sub eax, 0x8c6141b4
mov ebx, eax
add eax, 0x19bae0e3
sub eax, 0x19bae0de
mov ecx, 0xbbc93b78
sub ecx, 0xbb893b78
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret

Function at 0x40aec9
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x4976a0]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
mov esi, dword [ebp + 0xb4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x49afc4]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call fcn.0040f532
mov dword [esi + 0x3c], eax
xor eax, eax
mov byte [ebp - 0x7c], bl
lea edi, [ebp - 0x7b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov dword [ebp - 0x68], ebx
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.SunJavaUpdateRecheckUpdateEvent
lea eax, [ebp - 0x7c]
push ebx
mov dword [ebp - 0x64], eax
push ebx
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], 0xc
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
push 0x40b4b9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40afb1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x54]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x5c]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.0040b19d
mov ecx, dword [ebp + 0xa8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0044a659
add ebp, 0xac
leave
ret 4
Function at 0x418877
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x98
mov eax, 0x4689f8
call fcn.004525fd
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x84], ebx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x88], eax
cmp ecx, ebx
jne 0x4188ad
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x4189e7
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x84], ebx
jb 0x4188bd
mov eax, dword [edi]
jmp 0x4188bf
mov eax, edi
push ebx
push ebx
lea edx, [ebp - 0x84]
push edx
push ebx
push 1
push ecx
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x418918
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea esi, [ebp - 0x48]
call fcn.004184f6
push eax
lea eax, [ebp - 0x80]
push str.string2binary__phase1__failed__sysError
push eax
mov dword [ebp - 4], ebx
call fcn.00408a07
add esp, 0x14
lea esi, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0040102d
push 0x4875d4
mov eax, esi
push eax
call fcn.00452164
mov esi, dword [ebp - 0x84]
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
call fcn.0040faa8
mov dword [ebp - 4], 2
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x41894d
mov edi, dword [edi]
push ebx
push ebx
lea ecx, [ebp - 0x84]
push ecx
push dword [ebp - 0x98]
push 1
push eax
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4189ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea esi, [ebp - 0x64]
call fcn.004184f6
push eax
lea eax, [ebp - 0x2c]
push str.string2binary__phase2__failed__sysError
push eax
mov byte [ebp - 4], 3
call fcn.00408a07
add esp, 0x14
lea esi, [ebp - 0xa4]
mov byte [ebp - 4], 4
call fcn.0040102d
push 0x4875d4
mov eax, esi
jmp 0x418912
mov esi, dword [ebp - 0x84]
lea eax, [ebp - 0x98]
call fcn.0040faa8
mov eax, dword [ebp - 0x88]
lea edi, [ebp - 0x98]
call fcn.00418b0d
cmp dword [ebp - 0x98], ebx
je 0x4189e1
push dword [ebp - 0x98]
call fcn.0044a64e
pop ecx
mov eax, dword [ebp - 0x88]
call fcn.00452680
ret

Function at 0x419296
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46d953
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4976a0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea edi, [ebx + 0x44]
mov eax, edi
lea esi, [esp + 0xc]
call fcn.00436d5b
mov dword [esp + 0x20], edi
and dword [esp + 0x30], 0
mov eax, dword [ebp + 8]
push 0
mov dword [ebx + 0x50], eax
push dword [edi + 8]
call fcn.00437102
or dword [esp + 0x30], 0xffffffff
mov ecx, esi
call fcn.00436da5
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4