joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fc8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409170
push 0x408170
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 [0x40f0ec], 0xffffffff
or dword [0x40f0f0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40f0e8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40f0e4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40f0f4], eax
call fcn.00408117
cmp dword [0x40ea60], 0
jne 0x40804b
push 0x408114
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004080fc
push 0x40b00c
push 0x40b008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40f0e0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40f0dc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x40b004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
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 0x425a77
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x425a88
lcall 0x5de5, 0x8b10c483
jmp int.01e41eac

Function at 0x425a88
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x425a88
lcall 0x5de5, 0x8b10c483
jmp int.01e41eac
Function at 0x443740
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x44382a
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x4437bd
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.00442f00
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x443783
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x4438f3
call fcn.004437cf
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x44388a
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.00443320
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x44383b
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x4438f3
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.00443320
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x4438ee
jmp 0x4438f3
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x447ca0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582dcf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5faad0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], 0
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi + 8]
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], esi
test al, 1
jne 0x447d4d
or eax, 1
mov dword [edi + 8], eax
mov dword [ebp - 4], 1
call fcn.00462502
mov ecx, eax
mov dword [esi + 0x1384], 0xffffffff
mov dword [esi + 4], ecx
mov edx, 1
add esi, 8
mov eax, ecx
lea esi, [esi + 4]
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
inc edx
mov dword [esi - 4], ecx
cmp edx, 0x270
jb 0x447d24
mov esi, dword [ebp - 0x10]
mov dword [esi], 0x270
jmp 0x447d50
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 8]
test al, 2
jne 0x447d77
or eax, 2
mov dword [edi + 0x1398], 0
mov dword [edi + 8], eax
mov dword [edi + 0x139c], 0x3d
mov dword [ebx + 0x10], 0
xor eax, eax
mov dword [ebx + 0x14], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov byte [ebp - 0x14], al
mov ecx, ebx
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push 0xe
mov dword [ebp - 0x20], 1
call fcn.0045cbd0
mov dword [ebx + 0x10], 0
mov eax, 0xe
mov edi, dword [edi + 0x139c]
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1398]
sub edi, eax
mov dword [ebp - 0x28], eax
cmp edi, 0xffffffff
jne 0x447deb
mov ecx, esi
call fcn.00461a90
mov edx, eax
jmp 0x447e34
lea esi, [edi + 1]
mov dword [ebp - 0x14], esi
xor ebx, ebx
xor ecx, ecx
test edi, edi
je 0x447e06
mov ecx, dword [ebp - 0x10]
call fcn.00461a90
mov ebx, eax
or ecx, 0xffffffff
xor edx, edx
mov eax, ecx
div esi
xor edx, edx
mov esi, eax
mov eax, ebx
div dword [ebp - 0x14]
cmp eax, esi
jb 0x447e28
xor edx, edx
lea esi, [edi + 1]
mov eax, ecx
div esi
cmp edx, edi
jne 0x447df1
jmp 0x447e2b
mov esi, dword [ebp - 0x14]
mov eax, ebx
xor edx, edx
mov ebx, dword [ebp - 0x24]
div esi
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
movsx ax, byte [edx + eax + str.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]
movzx edx, ax
cmp ecx, esi
jae 0x447e69
lea eax, [ecx + 1]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp esi, 8
jb 0x447e5c
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
xor edx, edx
mov word [eax + ecx*2 + 2], dx
jmp 0x447e79
push edx
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
mov ecx, ebx
call fcn.0045d090
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
test eax, eax
jne 0x447dc3
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447f00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5faad0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
lea edx, [ebp - 0x60]
push edx
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x44
push edx
push 0
push 0
push 0x10
push 0
xorps xmm0, xmm0
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push 0
push ecx
push eax
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movups xmmword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x447fb5
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447fab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447fc3
push ecx
push edx
call fcn.0055948c
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055947e
mov esp, ebp
pop ebp
ret
call fcn.00561df7
int3
Function at 0x448c10
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5faad0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x6025d4], 8
mov eax, 0x6025c0
push esi
cmovae eax, dword [0x6025c0]
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x448d39
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
jne 0x448c8c
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055947e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call esi
mov dword [ebp - 0x30], 0xdcb24c06
mov dword [ebp - 0x2c], 0x315eda2d
mov dword [ebp - 0x28], 0x7741bc42
mov dword [ebp - 0x24], 0x4f5295e5
mov dword [ebp - 0x20], 0x51238b75
mov dword [ebp - 0x1c], 0xa0bc25ab
mov dword [ebp - 0x18], 0xfddca120
mov dword [ebp - 0x14], 0xb8d3ea26
movaps xmm1, xmmword [ebp - 0x30]
mov dword [ebp - 0x50], 0xbdd73e45
mov dword [ebp - 0x4c], 0x5818bf59
mov dword [ebp - 0x48], 0x5700d92e
mov dword [ebp - 0x44], 0x2020e780
pxor xmm1, xmmword [ebp - 0x50]
movaps xmmword [ebp - 0x30], xmm1
movaps xmm1, xmmword [ebp - 0x20]
push eax
mov dword [ebp - 0x40], 0x7403b107
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], 0xa0bc2fcf
mov dword [ebp - 0x38], 0xfddca120
mov dword [ebp - 0x34], 0xb8d3ea26
pxor xmm1, xmmword [ebp - 0x40]
push eax
movaps xmmword [ebp - 0x20], xmm1
call fcn.00446ea0
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055947e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x2f70
push 0x5fb570
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x448e17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], 0xc9be4c12
mov dword [ebp - 0x2c], 0x3471f93c
mov dword [ebp - 0x28], 0x2565f94b
mov dword [ebp - 0x24], 0x1a5288f2
mov dword [ebp - 0x20], 0x7e679427
mov dword [ebp - 0x1c], 0xa0bc2fcf
mov dword [ebp - 0x18], 0xfddca120
mov dword [ebp - 0x14], 0xb8d3ea26
movaps xmm1, xmmword [ebp - 0x30]
mov dword [ebp - 0x50], 0xbdd73e45
mov dword [ebp - 0x4c], 0x5818bf59
mov dword [ebp - 0x48], 0x5700d92e
mov dword [ebp - 0x44], 0x2020e780
pxor xmm1, xmmword [ebp - 0x50]
movaps xmmword [ebp - 0x30], xmm1
movaps xmm1, xmmword [ebp - 0x20]
push eax
mov dword [ebp - 0x40], 0x7403b107
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], 0xa0bc2fcf
mov dword [ebp - 0x38], 0xfddca120
mov dword [ebp - 0x34], 0xb8d3ea26
pxor xmm1, xmmword [ebp - 0x40]
push eax
movaps xmmword [ebp - 0x20], xmm1
call fcn.00446ea0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055947e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0x2f70
je 0x448c78
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0055947e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x449370
Capabilities:
Delete file
Delete service
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5faad0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x449409
mov dword [ebp - 0x30], 0xff807104
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x58188e09
mov dword [ebp - 0x28], 0x5700d92e
mov dword [ebp - 0x24], 0x2020e780
movaps xmm1, xmmword [ebp - 0x30]
push 0x10022
mov dword [ebp - 0x40], 0xbdd73e45
mov dword [ebp - 0x3c], 0x5818bf59
mov dword [ebp - 0x38], 0x5700d92e
mov dword [ebp - 0x34], 0x2020e780
pxor xmm1, xmmword [ebp - 0x40]
push eax
push edi
movaps xmmword [ebp - 0x30], xmm1
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x44941e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055947e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
cmp dword [0x6025d4], 8
mov eax, 0x6025c0
cmovae eax, dword [0x6025c0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.0055947e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x4495e0
Capabilities:
Get file size

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x4495e8
mov ecx, dword [ecx]
push edi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x449625
cmp edi, 0xffffffff
je 0x449625
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
ret
Function at 0x461a90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x461aee
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x461ab0
mov eax, dword [edi]
jmp 0x461bd9
cmp eax, 0x4e0
jb 0x461bd9
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x461b10
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x461b60
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4633ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x46340b
jl 0x463402
test edi, edi
jne 0x46340b
xor eax, eax
xor edx, edx
jmp 0x4634cc
cmp dword [ebx + 0x38], 0
je 0x463420
push eax
push edi
push dword [ebp + 8]
call fcn.004634d2
jmp 0x4634cc
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x463467
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x463467
cmp eax, edi
jb 0x463441
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0055ab30
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x46346d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4634c1
mov ecx, ebx
call fcn.00462c64
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4634ac
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.005679c8
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4634c1
jmp 0x46347f
test edx, edx
je 0x4634c1
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005679c8
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4635c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4635e3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004636a6
jmp 0x4636a1
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x463609
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x46360e
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x46366e
jg 0x463623
test esi, esi
je 0x46366e
test ecx, ecx
jl 0x463669
jg 0x46362d
test eax, eax
je 0x463669
cmp edi, ecx
jg 0x46363f
jl 0x463637
cmp esi, eax
jae 0x46363f
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0055ab30
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x463671
mov ecx, dword [ebp + 8]
jmp 0x46367b
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x463695
jg 0x46367b
test esi, esi
je 0x463695
cmp dword [ebx + 0x4c], 0
je 0x463695
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00567fce
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4dacd0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.00559b40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.004aa6c0
mov ebx, eax
push ebx
push esi
call fcn.004aa5a0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4dad59
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4dad33
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004aa610
push esi
call fcn.004aa760
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4dad59
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.004aa6c0
mov ebx, eax
push ebx
push esi
call fcn.004aa5a0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4dadc8
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4dadae
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.004aa610
push esi
call fcn.004aa760
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x4dad51
push esi
call fcn.004aa760
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4ee100
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x4ee114
mov dword [esp + 0x18], fcn.004ec8e0
jmp fcn.004e5ec0
mov dword [esp + 0x18], fcn.004ebb80
jmp fcn.004e5bf0
Function at 0x574d5f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00574bd5

Function at 0x57a772
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057a2c5
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3e563607
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x44f374d8
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xb612dcd
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2af82229
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
popal
nop
nop
nop
jmp 0x431219