joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022b260
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1022b44d
pushal
mov esi, section..data
lea edi, [esi - 0xc1000]
push edi
or ebp, 0xffffffff
jmp 0x1022b28a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1022b291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1022b280
mov eax, 1
add ebx, ebx
jne 0x1022b2a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1022b2b4
jne 0x1022b2d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1022b2d3
dec eax
add ebx, ebx
jne 0x1022b2c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1022b298
add ebx, ebx
jne 0x1022b2cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1022b325
xor ecx, ecx
sub eax, 3
jb 0x1022b2eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1022b35a
sar eax, 1
mov ebp, eax
jmp 0x1022b2f6
add ebx, ebx
jne 0x1022b2f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1022b2c4
inc ecx
add ebx, ebx
jne 0x1022b304
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1022b2c4
add ebx, ebx
jne 0x1022b311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1022b306
jne 0x1022b322
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1022b306
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1022b344
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1022b336
jmp 0x1022b286
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1022b344
add edi, ecx
jmp 0x1022b286
pop esi
mov edi, esi
mov ecx, 0x4327
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1022b362
cmp byte [edi], 0x12
jne 0x1022b362
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 0x1022b367
lea edi, [esi + 0x224000]
mov eax, dword [edi]
or eax, eax
je 0x1022b3df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22b324]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22b43c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1022b394
mov ecx, edi
jns 0x1022b3c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22b440]
or eax, eax
je 0x1022b3d9
mov dword [ebx], eax
add ebx, 4
jmp 0x1022b3b1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1022b410
cmp al, 0xef
ja 0x1022b403
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1022b3e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1022b3f2
mov ebp, dword [esi + 0x22b444]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x1022b444
sub esp, 0xffffff80
jmp 0x10061afd
Function at 0x40296d
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4092c5
call fcn.00403df0
sub esp, 0x20
cmp dword [ebp + 8], 2
push esi
push edi
jne 0x4029ef
mov esi, dword [ebp + 0xc]
push dword [esi + 4]
call fcn.00402cf0
cmp eax, 0x14
pop ecx
jae 0x4029ba
mov edi, str._unloadkklvasensor
push edi
call fcn.00402cf0
mov ecx, dword [esi + 4]
push eax
push edi
push ecx
call fcn.00403766
add esp, 0x10
test eax, eax
jne 0x4029ba
call fcn.0040260a
jmp 0x402ac6
push dword [esi + 4]
call fcn.00402cf0
cmp eax, 0x14
pop ecx
jae 0x402a38
mov edi, str._renamekklvasensor
push edi
call fcn.00402cf0
mov esi, dword [esi + 4]
push eax
push edi
push esi
call fcn.00403766
add esp, 0x10
test eax, eax
jne 0x402a38
call fcn.004011d1
jmp 0x402ac6
cmp dword [ebp + 8], 3
jne 0x402a38
mov edi, dword [ebp + 0xc]
push dword [edi + 4]
call fcn.00402cf0
cmp eax, 0x14
pop ecx
jae 0x402a38
mov esi, str._loadkklvasensor
push esi
call fcn.00402cf0
mov ecx, dword [edi + 4]
push eax
push esi
push ecx
call fcn.00403766
add esp, 0x10
test eax, eax
jne 0x402a38
push dword [edi + 8]
call fcn.00403f3e
push eax
call fcn.0040228f
pop ecx
pop ecx
jmp 0x402ac6
xor edi, edi
push edi
call fcn.00401765
mov esi, eax
cmp esi, edi
pop ecx
je 0x402aad
push str.http:__www.xunlei.com_id6030
lea ecx, [ebp + 8]
call fcn.00401538
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
lea edx, [ebp - 0x1c]
push edx
push edx
push edx
lea edx, [ebp - 0x2c]
push edx
push eax
push esi
mov dword [ebp - 4], edi
mov word [ebp - 0x1c], di
mov word [ebp - 0x2c], 3
mov dword [ebp - 0x24], 0x800
mov dword [ebp + 8], edi
call dword [ecx + 0x2c]
cmp eax, edi
je 0x402a9e
cmp eax, 0x80070057
je 0x402a9e
cmp eax, 0x8007000e
je 0x402a9e
cmp eax, 0x80004005
je 0x402a9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x402ac6
push 1
push edi
push str.http:__www.xunlei.com_id6030
push str.IEXPLORE.EXE
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404024
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x40a4e8
call fcn.004034d0
mov edi, 0x94
mov eax, edi
call fcn.00407c30
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40d864], ecx
mov eax, dword [esi + 4]
mov dword [0x40d870], eax
mov edx, dword [esi + 8]
mov dword [0x40d874], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40d868], esi
cmp ecx, 2
je 0x404084
or esi, 0x8000
mov dword [0x40d868], esi
shl eax, 8
add eax, edx
mov dword [0x40d86c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4040bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4040bd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4040d5
cmp eax, 0x20b
je 0x4040c2
mov dword [ebp - 0x1c], edi
jmp 0x4040e9
cmp dword [ecx + 0x84], 0xe
jbe 0x4040bd
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4040e3
cmp dword [ecx + 0x74], 0xe
jbe 0x4040bd
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004042a4
pop ecx
test eax, eax
jne 0x404115
cmp dword [0x40d7e0], 2
je 0x404102
call fcn.00407450
push 0x1c
call fcn.004072d9
push 0xff
call fcn.00407106
pop ecx
pop ecx
call fcn.00407b9c
mov dword [ebp - 4], edi
call fcn.004079f1
test eax, eax
jge 0x40412e
push 0x1b
call fcn.00403fff
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ede4], eax
call fcn.004078cf
mov dword [0x40d7d8], eax
call fcn.0040782d
test eax, eax
jge 0x404154
push 8
call fcn.00403fff
pop ecx
call fcn.004075fa
test eax, eax
jge 0x404165
push 9
call fcn.00403fff
pop ecx
push 1
call fcn.00407136
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40417b
push eax
call fcn.00403fff
pop ecx
mov eax, dword [0x40d884]
mov dword [0x40d888], eax
push eax
push dword [0x40d87c]
push dword [0x40d878]
call fcn.0040296d
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4041aa
push esi
call fcn.00407261
call fcn.00407283
jmp 0x4041dc
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040350b
ret
Function at 0x4050c6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4050f4
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4050fb
cmp ebx, dword [eax + 4]
jae 0x4050fb
xor eax, eax
jmp 0x4052eb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40510c
xor eax, eax
inc eax
jmp 0x4052ea
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405122
cmp ecx, edx
jae 0x405267
cmp dword [eax + 4], 0
je 0x40512b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405113
cmp dword [ebp + 8], 0
je 0x40514d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405267
cmp eax, esi
jae 0x405267
mov eax, dword [0x40d7f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405172
cmp dword [esi*4 + 0x40d7f8], edi
je 0x40526b
inc esi
cmp esi, eax
jl 0x405160
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4052e7
cmp dword [ebp - 8], 0x1000000
jne 0x4052e7
test byte [ebp - 0xc], 0xcc
je 0x4051f0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4052e7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4052e7
cmp word [eax + 0x18], 0x10b
jne 0x4052e7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4052e7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4051f0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4051f0
test byte [ecx + 0x27], 0x80
jne 0x405267
push 1
push 0x40d838
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405104
mov ecx, dword [0x40d7f0]
test ecx, ecx
mov edx, ecx
jle 0x405224
lea eax, [ecx*4 + 0x40d7f4]
cmp dword [eax], edi
je 0x405224
dec edx
sub eax, 4
test edx, edx
jg 0x405218
test edx, edx
jne 0x405255
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405231
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405249
lea eax, [edx*4 + 0x40d7f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405237
cmp ecx, 0x10
jge 0x405255
inc ecx
mov dword [0x40d7f0], ecx
push 0
push 0x40d838
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405104
xor eax, eax
jmp 0x4052ea
test esi, esi
jle 0x405104
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40d838
call ebx
test eax, eax
jne 0x405104
cmp dword [esi*4 + 0x40d7f8], edi
je 0x4052c1
mov eax, dword [0x40d7f0]
lea esi, [eax - 1]
test esi, esi
jl 0x4052af
cmp dword [esi*4 + 0x40d7f8], edi
je 0x4052ab
dec esi
jns 0x40529f
test esi, esi
jge 0x4052bf
cmp eax, 0x10
jge 0x4052ba
inc eax
mov dword [0x40d7f0], eax
lea esi, [eax - 1]
jmp 0x4052c1
je 0x4052d9
xor ecx, ecx
test esi, esi
jl 0x4052d9
lea eax, [ecx*4 + 0x40d7f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4052c7
push 0
push 0x40d838
call ebx
jmp 0x405104
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4071a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40d8a4], esi
push edi
jne 0x4071c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40d8a0], esi
mov byte [0x40d89c], al
jne 0x407226
mov ecx, dword [0x40eb88]
test ecx, ecx
je 0x407207
mov eax, dword [0x40eb84]
sub eax, 4
cmp eax, ecx
jmp 0x407200
mov eax, dword [eax]
test eax, eax
je 0x4071f2
call eax
mov eax, dword [0x40eb84]
sub eax, 4
cmp eax, dword [0x40eb88]
mov dword [0x40eb84], eax
jae 0x4071ea
mov eax, 0x40d028
mov esi, 0x40d030
cmp eax, esi
mov edi, eax
jae 0x407226
mov eax, dword [edi]
test eax, eax
je 0x40721f
call eax
add edi, 4
cmp edi, esi
jb 0x407217
mov eax, 0x40d034
mov esi, 0x40d03c
cmp eax, esi
mov edi, eax
jae 0x407245
mov eax, dword [edi]
test eax, eax
je 0x40723e
call eax
add edi, 4
cmp edi, esi
jb 0x407236
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40725f
push dword [ebp + 8]
mov dword [0x40d8a4], 1
call fcn.00407106
pop ebp
ret

Function at 0x4072d9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40d0f8]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40d250]
je 0x40730e
inc eax
cmp eax, 0x13
jb 0x4072ff
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d250]
jne 0x407434
mov eax, dword [0x40d7e0]
cmp eax, 1
je 0x40740c
cmp eax, edx
jne 0x40733e
cmp dword [0x40d134], 1
je 0x40740c
cmp ecx, 0xfc
je 0x407434
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407374
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00406de0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402cf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4073a8
mov eax, edi
push eax
call fcn.00402cf0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a52c
push edi
call fcn.00407d70
add esp, 0x10
push edi
call fcn.00402cf0
push dword [esi + 0x40d254]
mov ebx, eax
call fcn.00402cf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407c30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00406de0
push edi
push ebx
call fcn.00406df0
push 0x40a528
push ebx
call fcn.00406df0
push dword [esi + 0x40d254]
push ebx
call fcn.00406df0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407c6d
add esp, 0x2c
jmp 0x407434
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40d254]
push dword [esi]
call fcn.00402cf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00402ce0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x407c6d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40d9c0], ebx
push esi
push edi
jne 0x407ced
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407d28
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40d9c0], eax
je 0x407d28
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40d9c4], eax
call esi
cmp dword [0x40d864], 2
mov dword [0x40d9c8], eax
jne 0x407ced
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40d9d0], eax
je 0x407ced
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40d9cc], eax
mov eax, dword [0x40d9cc]
test eax, eax
je 0x407d32
call eax
test eax, eax
je 0x407d19
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40d9d0]
test eax, eax
je 0x407d19
test byte [ebp - 8], 1
jne 0x407d32
cmp dword [0x40d870], 4
jb 0x407d2c
or byte [ebp + 0x12], 0x20
jmp 0x407d51
xor eax, eax
jmp 0x407d61
or byte [ebp + 0x12], 4
jmp 0x407d51
mov eax, dword [0x40d9c4]
test eax, eax
je 0x407d51
call eax
mov ebx, eax
test ebx, ebx
je 0x407d51
mov eax, dword [0x40d9c8]
test eax, eax
je 0x407d51
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40d9c0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4082aa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407c30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408345
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40d864]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x408345
cmp eax, 1
je 0x408366
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408345
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x408312
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x408341
xor eax, eax
inc eax
jmp 0x408385
cmp edi, eax
jae 0x408349
xor eax, eax
jmp 0x408385
cmp eax, esi
jae 0x408350
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40d864]
jmp 0x408369
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4085ad
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40ea64]
mov eax, dword [0x40d0f8]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x408773
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ea80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x408773
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x408617
xor eax, eax
jmp 0x408787
test al, 0x20
je 0x408628
push 2
push edi
push edi
push ecx
call fcn.00408beb
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4086fd
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x408744
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40868a
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40867b
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40865d
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4086ca
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4086d6
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x408651
jmp 0x4086d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40876e
cmp dword [ebp + 0x3a4], edi
je 0x408744
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x408736
mov dword [0x40d85c], eax
jmp 0x40877a
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408728
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4086d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4086d8
push dword [ebp + 0x3a4]
call fcn.00408ad6
pop ecx
jmp 0x408784
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40875c
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x408610
mov dword [0x40d858], 0x1c
mov dword [0x40d85c], edi
jmp 0x408784
sub eax, dword [ebp - 0x7c]
jmp 0x408787
and dword [0x40d85c], 0
mov dword [0x40d858], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00402ce0
add ebp, 0x39c
leave
ret
Function at 0x100145b
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x10018e8
call fcn.010015f4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001270
cmp eax, esi
jne 0x1001263
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001273
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100124a
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001286
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10012c1
mov eax, dword [0x100236c]
test eax, eax
jne 0x10012bb
mov dword [0x100236c], esi
push 0x1001098
push 0x100108c
call fcn.010011c7
pop ecx
pop ecx
test eax, eax
je 0x10012c1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100138b
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10012e5
push 0x1001088
push 0x1001080
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10012f2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x1001313
push 0x1002374
call fcn.01001569
pop ecx
test eax, eax
je 0x1001313
push ebx
push 2
push ebx
call dword [0x1002374]
push dword [0x100201c]
push dword [0x1002020]
push dword [0x1002018]
call fcn.01001195
add esp, 0xc
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x1001371
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 - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1002034], ebx
jne 0x100137f
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
call fcn.01001639
ret
call fcn.01001741
jmp 0x1001228
Function at 0x422f38
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004169e0
and dword [ebp - 4], 0
cmp dword [0x496efc], 0
mov ebx, eax
jne 0x422fe9
push 0x483dec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42309a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x483de0
push edi
call esi
test eax, eax
je 0x42309a
push eax
call fcn.0041696e
mov dword [esp], 0x483dd0
push edi
mov dword [0x496efc], eax
call esi
push eax
call fcn.0041696e
mov dword [esp], 0x483dbc
push edi
mov dword [0x496f00], eax
call esi
push eax
call fcn.0041696e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x496f04], eax
call esi
push eax
call fcn.0041696e
pop ecx
mov dword [0x496f0c], eax
test eax, eax
je 0x422fe9
push 0x483d88
push edi
call esi
push eax
call fcn.0041696e
pop ecx
mov dword [0x496f08], eax
mov eax, dword [0x496f08]
cmp eax, ebx
je 0x423041
cmp dword [0x496f0c], ebx
je 0x423041
push eax
call fcn.004169e9
push dword [0x496f0c]
mov esi, eax
call fcn.004169e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423041
test edi, edi
je 0x423041
call esi
test eax, eax
je 0x423038
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423038
test byte [ebp - 0xc], 1
jne 0x423041
or dword [ebp + 0x10], 0x200000
jmp 0x42307a
mov eax, dword [0x496f00]
cmp eax, ebx
je 0x42307a
push eax
call fcn.004169e9
pop ecx
test eax, eax
je 0x42307a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42307a
mov eax, dword [0x496f04]
cmp eax, ebx
je 0x42307a
push eax
call fcn.004169e9
pop ecx
test eax, eax
je 0x42307a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x496efc]
call fcn.004169e9
pop ecx
test eax, eax
je 0x42309a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42309c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x20b4449c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x4d8d0bb3
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219