joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c4d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x45b050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00403710
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
add esp, 8
mov esi, dword [ebp - 0xc]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax + esi - 2], 0x36
jne 0x41c524
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
cmovae eax, edx
cmp byte [eax + esi - 1], 0x34
je 0x41c54c
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
cmovae eax, edx
cmp byte [eax + esi - 2], 0x38
jne 0x41c652
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
cmovae eax, edx
cmp byte [eax + esi - 1], 0x36
jne 0x41c652
lea ecx, [ebp - 0x35]
call fcn.0040c1e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp byte [edx], 0
jne 0x41c577
xor ecx, ecx
jmp 0x41c589
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c580
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.004043d0
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00406df0
mov eax, dword [ebp - 0x20]
add esp, 8
cmp eax, 0x10
jb 0x41c5b6
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00404770
cmp dword [0x45d3e8], 0
je 0x41c5ed
cmp dword [0x45d3ec], 0x10
mov eax, 0x45d3d8
cmovae eax, dword [0x45d3d8]
push eax
call fcn.0040c010
add esp, 4
lea ecx, [ebp - 0x35]
mov esi, eax
call sub.ole32.dll_OleUninitialize
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
jmp 0x41c655
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 8
push eax
mov dword [ebp - 0x3c], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push dword [ebp + 8]
mov ecx, 0x45d3f4
push 0
call fcn.00419a50
push dword [ebp + 0x14]
push edi
call fcn.0041b1e0
add esp, 8
mov ecx, 0x45d3f4
mov esi, eax
call fcn.0041b710
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x35]
call sub.ole32.dll_OleUninitialize
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
jmp 0x41c655
or esi, 0xffffffff
cmp ecx, 0x10
jb 0x41c667
lea eax, [ecx + 1]
push eax
push edx
lea ecx, [ebp - 0x1c]
call fcn.00404770
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004204ef
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41c690
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445be6
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x45b050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], 0
push dword [edi]
mov dword [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
test esi, esi
jle 0x41c7b9
lea eax, [esi + 1]
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
test edx, edx
jne 0x41c74f
cmp eax, 0xffffffff
ja 0x41c74f
cmp eax, 0x80
jbe 0x41c741
push eax
lea ecx, [ebp - 0x98]
call fcn.00418e60
jmp 0x41c771
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x98], ecx
jmp 0x41c777
push 0x80070216
call fcn.00403440
mov eax, 0x41c75f
ret
mov ecx, dword [ebp - 0x98]
test ecx, ecx
jne 0x41c794
lea eax, [ebp - 0x94]
test eax, eax
je 0x41c790
lea ecx, [ebp - 0x98]
call fcn.0041c680
xor eax, eax
jmp 0x41c7f2
lea eax, [esi + 1]
push eax
push ecx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x41c7b3
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
jmp 0x41c783
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ebx, ebx
mov dword [edi], eax
test esi, esi
je 0x41c7cd
test eax, eax
setne bl
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x41c7f0
lea ecx, [ebp - 0x98]
call fcn.0041c680
nop word [eax + eax]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004204ef
mov esp, ebp
pop ebp
ret 4
Function at 0x41dd50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45b050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x20000
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x41dd8b
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204ef
mov esp, ebp
pop ebp
ret
push edi
push 5
push str.KuaiZipDrive
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x41ddba
pop edi
pop esi
mov dword [ebx + 4], 1
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204ef
mov esp, ebp
pop ebp
ret
push 0x2000
push 0x40
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push ecx
push 0x2000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x41de15
mov eax, dword [ebp - 0x30]
cmp dword [eax + 4], 2
je 0x41de15
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx + 4], 2
call esi
push edi
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204ef
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
mov dword [ebp - 8], 0
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 0
push eax
xorps xmm0, xmm0
push 0
push edi
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
mov eax, dword [ebp - 0x24]
je 0x41de4d
cmp eax, 3
je 0x41de52
cmp eax, 1
jne 0x41de78
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebx + 4], 3
call esi
push edi
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004204ef
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004204ef
mov esp, ebp
pop ebp
ret
Function at 0x439a83
Capabilities:
Read file on windows

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a

Function at 0x414ddd
Capabilities:
Encode data using xor

Disassembly:
xor dword [esi], ecx
add eax, edx
add esi, 4
mov edx, 0x9eaa6239
sub edx, 0xf7297631
cmp esi, edi
jne fcn.00414ddd
inc eax
dec eax
sub eax, 0x348e0d5f
ret
Function at 0x405240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bcbb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4ad3b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
lea ebx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x405290
sub edx, ebx
push edx
push dword [ebp + 8]
call fcn.00403900
push 3
call fcn.0040d6c0
add esp, 4
call fcn.0040d4c0
mov dword [esi], eax
test eax, eax
je 0x4052fd
push 0
push 0x40
push eax
call fcn.00411140
push 0
push 0xe8
push dword [esi]
call fcn.00411140
push 0
push 0x51
push dword [esi]
call fcn.00411140
push 0
push 0x29
push dword [esi]
call fcn.00411140
add esp, 0x30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0040d670
push 0
call fcn.0046a0c6
int3
Function at 0x407100
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4ad3b0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4071c2
cmp byte [esi + 0x3d], 0
je 0x4071c2
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4071af
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x407174
sub eax, 1
je 0x407178
sub eax, 2
jne 0x4071af
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00464714
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x407197
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046b252
add esp, 0x10
cmp edi, eax
jne 0x4071af
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00464714
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00464714
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.00464714
add esp, 0x28
ret
Function at 0x407ee0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4ad3b0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x407f10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00464714
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407f4d
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x407f4d
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00464714
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x408042
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x407f75
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x407fa9
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0046a8db
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00464714
add esp, 0x30
ret 4
mov byte [esp + 0xc], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x408042
cmp eax, 1
jle 0x408011
cmp eax, 3
jne 0x408042
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.00404950
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00464714
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x408030
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0046b252
add esp, 0x10
cmp edi, eax
jne 0x408042
lea eax, [esp + 0xc]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x407f37
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00464714
add esp, 0x30
ret 4
Function at 0x408990
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, ecx
test eax, eax
jg 0x4089b1
jl 0x4089a7
test esi, esi
jne 0x4089b1
pop edi
xor eax, eax
xor edx, edx
pop esi
pop ecx
ret 0xc
cmp dword [edi + 0x38], 0
push ebx
push ebp
mov ebx, esi
je 0x408a64
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, edi
call fcn.004071e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x408a21
jg 0x4089e9
test esi, esi
je 0x408a21
cmp ebp, eax
jg 0x4089f9
jl 0x4089f3
cmp ebx, esi
jae 0x4089f9
mov esi, ebx
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.00466370
mov eax, dword [edi + 0x2c]
add esp, 0xc
sub ebx, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [edi + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x408a40
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x408a50
mov eax, dword [esp + 0x18]
add ebx, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x4089d0
jl 0x408a50
test ebx, ebx
jne 0x4089d0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, ebx
sbb edx, ebp
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret 0xc
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
test ecx, ecx
je 0x408a74
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x408a76
xor eax, eax
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], esi
test eax, eax
je 0x408aac
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
cmovb esi, eax
push esi
push ecx
push ebp
call fcn.00466370
mov eax, dword [edi + 0x2c]
sub ebx, esi
add ebp, esi
mov dword [esp + 0x1c], ebx
add esp, 0xc
sub dword [eax], esi
mov eax, dword [edi + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
cmp dword [edi + 0x4c], 0
je 0x408b59
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [ecx], eax
jne 0x408ad7
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], edx
cmp edx, 0xfff
jbe 0x408b18
nop word [eax + eax]
push dword [edi + 0x4c]
push 0xfff
push 1
push ebp
call fcn.0046abcb
sub ebx, eax
add esp, 0x10
add ebp, eax
mov dword [esp + 0x18], ebx
mov edx, ebx
cmp eax, 0xfff
jne 0x408b46
cmp ebx, eax
ja 0x408af0
mov ecx, edx
test edx, edx
je 0x408b5d
push dword [edi + 0x4c]
push ebx
push 1
push ebp
call fcn.0046abcb
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x20]
sub ecx, eax
sub esi, ecx
mov eax, esi
pop ebp
pop ebx
pop edi
sbb edx, 0
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x20]
sub esi, ebx
pop ebp
pop ebx
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
sub esi, ecx
pop ebp
pop ebx
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ecx
ret 0xc
Function at 0x408c50
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp + 0x38], 0
je 0x408d26
mov edx, dword [esp + 0x24]
mov ebx, edx
mov ecx, dword [esp + 0x20]
mov edi, ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
test edx, edx
jl 0x408d16
jg 0x408c90
test ecx, ecx
je 0x408d16
nop dword [eax]
mov ecx, ebp
call fcn.00407690
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x408cde
jg 0x408ca9
test esi, esi
je 0x408cde
cmp ebx, eax
jg 0x408cb9
jl 0x408cb3
cmp edi, esi
jae 0x408cb9
mov esi, edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
push esi
push eax
mov eax, dword [ebp + 0x20]
push dword [eax]
call fcn.00466370
mov eax, dword [ebp + 0x30]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebp + 0x20]
add dword [eax], esi
jmp 0x408d00
mov eax, dword [ebp]
mov ecx, ebp
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x408d0e
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x1c], esi
test ebx, ebx
jg 0x408c90
jl 0x408d0e
test edi, edi
jne 0x408c90
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub ecx, edi
pop edi
pop esi
pop ebp
sbb edx, ebx
mov eax, ecx
pop ebx
add esp, 8
ret 0xc
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x408d46
mov eax, dword [ebp + 0x30]
mov eax, dword [eax]
jmp 0x408d48
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x408dc2
jg 0x408d5b
test esi, esi
je 0x408dc2
test eax, eax
jl 0x408d9b
jg 0x408d65
test ebx, ebx
je 0x408d9b
cmp edi, eax
jg 0x408d75
jl 0x408d6f
cmp esi, ebx
jae 0x408d75
mov ebx, esi
mov dword [esp + 0x20], edi
push ebx
push dword [esp + 0x20]
push ecx
call fcn.00466370
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebp + 0x30]
add ecx, ebx
sub esi, ebx
sbb edi, dword [esp + 0x20]
sub dword [eax], ebx
mov eax, dword [ebp + 0x20]
add dword [eax], ebx
jmp 0x408d9f
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x408dc2
jg 0x408da9
test esi, esi
je 0x408dc2
mov eax, dword [ebp + 0x4c]
test eax, eax
je 0x408dc2
push eax
push esi
push 1
push ecx
call fcn.0046b252
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x40a7a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x20
push ebp
push 0
push 0x40
push 0x3000
push 0x2710
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
test eax, eax
je 0x40a8a1
push 0
call dword [sym.imp.KERNEL32.dll_FlsAlloc]
cmp eax, 0xffffffff
je 0x40a8a1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040c060
lea eax, [esp + 0x28]
push eax
call fcn.0040c060
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xc]
push eax
call fcn.0040c060
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, 0x5f5e100
mov dword [esp + 0x18], ecx
adc eax, 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
call fcn.00408f10
lea eax, [esp + 0x1c]
push eax
call fcn.0040c060
mov ecx, dword [eax]
mov esi, dword [eax + 4]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x1c], ecx
call fcn.0040c060
add esp, 0x10
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esp + 0xc]
sub ecx, ebx
sub eax, dword [esp + 0x1c]
sbb esi, dword [esp + 0x20]
mov dword [esp + 0x20], esi
pop esi
pop ebx
js 0x40a8a1
jg 0x40a87a
test eax, eax
jb 0x40a8a1
sub ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
sbb eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
js 0x40a8a1
jg 0x40a892
test ebp, ebp
jb 0x40a8a1
cmp ecx, 0x96
jb 0x40a8a1
mov al, 1
pop ebp
add esp, 0x20
ret
xor al, al
pop ebp
add esp, 0x20
ret
Function at 0x40d070
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
lea eax, [esp + 0x10]
push 0x44
push 0
push eax
call fcn.00466e70
add esp, 0xc
lea eax, [esp]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40d0c2
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0x54
ret
xor al, al
add esp, 0x54
ret
Function at 0x416b30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x416bdf
push esi
call fcn.00429bb0
add esp, 4
test al, al
jne 0x416bdf
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x416b57
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00435950
add esp, 0xc
test eax, eax
je 0x416b8b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00435950
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x416b8d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x416bbe
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00426b00
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x416ba0
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret