joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cf26
Capabilities:
Check if file exists
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0xc]
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x10]
shr eax, 2
push edi
test esi, esi
jne 0x100cf46
mov ecx, 0x80070057
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cfe9
test byte [eax + 0x1c], 1
je 0x100cfe9
push ecx
push 0x10018f8
push 0x12
jmp 0x100cfd5
and dword [esi], 0
cmp byte [ecx + 0x1c], 0
jne 0x100cf76
mov ecx, 0x8000ffff
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cfe9
test byte [eax + 0x1c], 1
je 0x100cfe9
push ecx
push 0x10018f8
push 0x13
jmp 0x100cfd5
mov edx, dword [ebp + 0xc]
cmp edx, eax
jb 0x100cfa0
mov ecx, 0x80070103
mov edi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cfe9
test byte [eax + 0x1c], 1
je 0x100cfe9
push ecx
push 0x10018f8
push 0x14
jmp 0x100cfd5
lea eax, [ebp - 4]
push eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 8]
push 4
lea eax, [eax + edx*4]
push eax
call fcn.0100c2bd
mov edi, eax
test edi, edi
jge 0x100cfe2
mov eax, dword [section..data]
cmp eax, section..data
je 0x100cfe9
test byte [eax + 0x1c], 1
je 0x100cfe9
push edi
push 0x10018f8
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002fd5
jmp 0x100cfe9
mov eax, dword [ebp - 4]
mov dword [esi], eax
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x10110ed
Capabilities:
Get file size
Read file via mapping

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

Function at 0x1011429
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x101a7b8], eax
mov dword [0x101a7b4], ecx
mov dword [0x101a7b0], edx
mov dword [0x101a7ac], ebx
mov dword [0x101a7a8], esi
mov dword [0x101a7a4], edi
mov word [0x101a7d0], ss
mov word [0x101a7c4], cs
mov word [0x101a7a0], ds
mov word [0x101a79c], es
mov word [0x101a798], fs
mov word [0x101a794], gs
pushfd
pop dword [0x101a7c8]
mov eax, dword [ebp]
mov dword [0x101a7bc], eax
mov eax, dword [ebp + 4]
mov dword [0x101a7c0], eax
lea eax, [ebp + 8]
mov dword [0x101a7cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x101a708], 0x10001
mov eax, dword [0x101a7c0]
mov dword [0x101a6c4], eax
mov dword [0x101a6b8], 0xc0000409
mov dword [0x101a6bc], 1
mov eax, dword [0x101a018]
mov dword [ebp - 0x328], eax
mov eax, dword [0x101a01c]
mov dword [ebp - 0x324], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x1001cf4
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x1012594
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
cmp ecx, ebx
je 0x10124a1
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x10124ab
mov esi, 0x80070057
jmp 0x1012656
mov dword [ecx], ebx
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.01011fec
mov esi, eax
cmp esi, ebx
jge 0x1012510
cmp esi, 0x80041007
je 0x1012656
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012656
test byte [eax + 0x1c], 1
je 0x1012656
push esi
push 0x10023d8
call fcn.01011a52
mov eax, dword [section..data]
pop ecx
pop ecx
push esi
push 0x1001d70
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01011846
jmp 0x1012656
cmp dword [ebp - 4], ebx
jbe 0x1012654
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp - 4]
call fcn.0101597e
mov esi, eax
cmp esi, ebx
jge 0x1012561
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012632
test byte [eax + 0x1c], 1
je 0x1012632
push esi
push 0x1002370
call fcn.01011a52
pop ecx
pop ecx
push esi
push 0x1001d70
push 0x3c
jmp 0x1012622
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.0101501a
mov esi, eax
cmp esi, ebx
jge 0x10125ab
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012632
test byte [eax + 0x1c], 1
je 0x1012632
push esi
push 0x1002300
call fcn.01011a52
pop ecx
pop ecx
push esi
push 0x1001d70
push 0x3d
jmp 0x1012622
mov esi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push esi
mov ecx, edi
call fcn.01011c6e
mov edi, eax
cmp edi, ebx
jge 0x10125e9
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012632
test byte [eax + 0x1c], 1
je 0x1012632
push edi
push 0x10022b8
call fcn.01011a52
pop ecx
pop ecx
push edi
push 0x1001d70
push 0x3e
jmp 0x1012622
lea eax, [ebp - 0x10]
push eax
push 2
push esi
call fcn.0101504c
mov edi, eax
cmp edi, ebx
jge 0x1012639
mov eax, dword [section..data]
cmp eax, section..data
je 0x1012632
test byte [eax + 0x1c], 1
je 0x1012632
push edi
push 0x1002230
call fcn.01011a52
pop ecx
pop ecx
push edi
push 0x1001d70
push 0x3f
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01011846
mov esi, 0x80041005
jmp 0x1012656
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, ecx
cmp byte [eax], bl
jne 0x1012632
cmp byte [eax + 1], bl
jne 0x1012632
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1014849
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x1002ae0
push ecx
mov ebx, ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
mov dword [ebp - 4], ebx
call fcn.01013caa
mov ecx, ebx
call fcn.01014546
mov edi, eax
test edi, edi
jge 0x1014735
mov eax, dword [ebp + 8]
test eax, eax
je 0x101472e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x1014848
lea eax, [esi + 4]
push eax
push 1
push 0x1002ac8
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.01013caa
mov ecx, ebx
call fcn.01014143
mov edi, eax
test edi, edi
jl 0x1014721
lea edi, [esi + 8]
push edi
push 0x1002abc
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.01013caa
mov ecx, ebx
call fcn.010142ab
mov ebx, eax
cmp ebx, 0x80004003
jne 0x1014784
mov byte [edi], 0
xor ebx, ebx
test ebx, ebx
jge 0x101479c
mov eax, dword [ebp + 8]
test eax, eax
je 0x1014795
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x1014848
test byte [edi], 0xfe
je 0x10147b8
mov eax, dword [ebp + 8]
test eax, eax
je 0x10147ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000d
jmp 0x1014848
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.01013d94
jmp 0x1014832
push 0x18
call fcn.0101104a
xor edi, edi
pop ecx
cmp eax, edi
je 0x10147e4
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov edi, eax
test edi, edi
je 0x101484f
push edi
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.01013caa
mov ecx, dword [ebp - 4]
call fcn.010146ef
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x101486d
mov eax, dword [esi + 0x10]
mov dword [edi + 0x14], eax
inc dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
mov ecx, ebx
mov dword [esi + 0x10], edi
call fcn.01013db9
push dword [eax]
lea ecx, [ebp + 0xc]
call fcn.01013ccf
mov eax, dword [ebp - 8]
test eax, eax
je 0x1014832
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x10147c6
mov eax, dword [ebp + 8]
test eax, eax
je 0x1014846
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
test ebx, ebx
je 0x1014859
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp + 8]
test eax, eax
je 0x1014866
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x8007000e
jmp 0x1014848
push 1
mov ecx, edi
call fcn.01013316
test ebx, ebx
je 0x1014880
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov eax, dword [ebp + 8]
test eax, eax
je 0x101488d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
jmp 0x1014848

Function at 0x101503e
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
ja 0x1015038
mov eax, dword [ebp + 8]
jb 0x101502f
cmp eax, 0xffffffff
ja 0x1015038
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x1015043
mov eax, dword [ebp + 0x10]
or dword [eax], 0xffffffff
mov eax, 0x80070216
pop ebp
ret 0xc
Function at 0x10151df
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp ax, 1
jb 0x10151f7
mov ecx, 0xfb
cmp ax, cx
ja 0x10151f7
push 0x10
push dword [ebp + 0x10]
add eax, 4
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.01015130
pop ebp
ret 0xc
push 0x57
pop eax
jmp 0x10151f3
Function at 0x1015372
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x404]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.0101501a
test eax, eax
jge 0x101535d
mov edi, 0x216
jmp 0x10154f3
push 0x14
pop ecx
or eax, 0xffffffff
shr ecx, 1
inc eax
test ecx, ecx
ja 0x1015363
push esi
lea ecx, [eax + 1]
xor esi, esi
inc esi
shl esi, cl
lea eax, [ebp - 4]
push eax
mov eax, esi
mul dword [ebp - 0x1c]
push edx
push eax
call fcn.0101501a
test eax, eax
jge 0x1015391
mov edi, 0x216
jmp 0x10154f2
mov eax, 0x400
cmp dword [ebp - 4], eax
jae 0x101539e
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push 8
pop edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edx, edx
mov dword [ebp - 0xc], eax
cmp eax, edx
je 0x10154d5
or eax, 0xffffffff
mov ecx, esi
cmp esi, edx
jbe 0x10153d4
shr ecx, 1
inc eax
cmp ecx, edx
ja 0x10153cd
lea ecx, [esi - 1]
mov dword [ebp - 8], eax
test esi, ecx
je 0x10153e2
inc eax
mov dword [ebp - 8], eax
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
shr esi, cl
lea eax, [esi - 1]
mov dword [ebp - 0x14], esi
test esi, eax
je 0x101540a
or ecx, 0xffffffff
jmp 0x10153fc
shr esi, 1
inc ecx
cmp esi, edx
ja 0x10153f9
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x14], eax
mov esi, eax
mov dword [ebp - 0x1c], edx
cmp dword [ebx + 0x404], edx
jbe 0x10154c3
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
push 0x14
push dword [ebp - 0x18]
push dword [eax + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.01015a5d
mov edi, eax
test edi, edi
jne 0x10154d5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test esi, esi
jne 0x101544b
push 0x57
pop edi
jmp 0x1015482
lea edi, [esi - 1]
mov edx, edi
and edx, eax
xor ebx, ebx
jmp 0x101546f
test ebx, ebx
jne 0x101546b
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
imul ebx, ebx, 0x9e3779b1
test bl, 1
jne 0x101546b
inc ebx
add edx, ebx
and edx, edi
mov ecx, dword [ebp - 8]
mov eax, edx
shl eax, cl
add eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1015456
mov ebx, eax
xor edi, edi
test edi, edi
jne 0x10154d5
cmp dword [ebx], edi
jne 0x10154aa
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
xor eax, eax
inc eax
shl eax, cl
push eax
push edi
push ebx
call fcn.01010f7a
add esp, 0xc
push 5
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
inc dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x18], 0x14
cmp ecx, dword [eax + 0x404]
jb 0x101541f
push dword [ebp - 4]
push dword [ebp - 0xc]
push 3
push dword [ebp + 8]
call fcn.01015e12
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x10154f2
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x10154e5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x404]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.0101501a
test eax, eax
jge 0x101535d
mov edi, 0x216
jmp 0x10154f3
push 0x14
pop ecx
or eax, 0xffffffff
shr ecx, 1
inc eax
test ecx, ecx
ja 0x1015363
push esi
lea ecx, [eax + 1]
xor esi, esi
inc esi
shl esi, cl
lea eax, [ebp - 4]
push eax
mov eax, esi
mul dword [ebp - 0x1c]
push edx
push eax
call fcn.0101501a
test eax, eax
jge 0x1015391
mov edi, 0x216
jmp 0x10154f2
mov eax, 0x400
cmp dword [ebp - 4], eax
jae 0x101539e
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push 8
pop edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor edx, edx
mov dword [ebp - 0xc], eax
cmp eax, edx
je 0x10154d5
or eax, 0xffffffff
mov ecx, esi
cmp esi, edx
jbe 0x10153d4
shr ecx, 1
inc eax
cmp ecx, edx
ja 0x10153cd
lea ecx, [esi - 1]
mov dword [ebp - 8], eax
test esi, ecx
je 0x10153e2
inc eax
mov dword [ebp - 8], eax
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
shr esi, cl
lea eax, [esi - 1]
mov dword [ebp - 0x14], esi
test esi, eax
je 0x101540a
or ecx, 0xffffffff
jmp 0x10153fc
shr esi, 1
inc ecx
cmp esi, edx
ja 0x10153f9
xor eax, eax
inc eax
shl eax, cl
mov dword [ebp - 0x14], eax
mov esi, eax
mov dword [ebp - 0x1c], edx
cmp dword [ebx + 0x404], edx
jbe 0x10154c3
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
push 0x14
push dword [ebp - 0x18]
push dword [eax + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.01015a5d
mov edi, eax
test edi, edi
jne 0x10154d5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test esi, esi
jne 0x101544b
push 0x57
pop edi
jmp 0x1015482
lea edi, [esi - 1]
mov edx, edi
and edx, eax
xor ebx, ebx
jmp 0x101546f
test ebx, ebx
jne 0x101546b
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
imul ebx, ebx, 0x9e3779b1
test bl, 1
jne 0x101546b
inc ebx
add edx, ebx
and edx, edi
mov ecx, dword [ebp - 8]
mov eax, edx
shl eax, cl
add eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1015456
mov ebx, eax
xor edi, edi
test edi, edi
jne 0x10154d5
cmp dword [ebx], edi
jne 0x10154aa
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
xor eax, eax
inc eax
shl eax, cl
push eax
push edi
push ebx
call fcn.01010f7a
add esp, 0xc
push 5
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
inc dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x18], 0x14
cmp ecx, dword [eax + 0x404]
jb 0x101541f
push dword [ebp - 4]
push dword [ebp - 0xc]
push 3
push dword [ebp + 8]
call fcn.01015e12
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x10154f2
push dword [ebp - 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x101595e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and dword [esi], 0
lea eax, [ebp + 8]
push eax
call fcn.01015663
test eax, eax
jne 0x1015974
push dword [ebp + 8]
call fcn.01015079
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x1015c18
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
jae 0x1015c15
push 9
pop eax
jmp 0x1015c53
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x4b45
cmp cx, word [esi]
jne 0x1015c32
mov cx, word [esi + 2]
cmp cx, word [ebp + 0xc]
jne 0x1015c32
cmp eax, dword [esi + 4]
je 0x1015c37
push 9
pop eax
jmp 0x1015c52
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.01015b97
test eax, eax
jne 0x1015c52
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 9
pop esi
pop ebp
ret 0xc
Function at 0x4663700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0466378f
jae 0x466370e
xor ecx, ecx
call fcn.0466378f
jae 0x466373d
xor eax, eax
call fcn.0466378f
jae 0x466374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0466378f
adc al, al
jae 0x466372f
jne 0x4663779
stosb byte es:[edi], al
jmp 0x4663711
call fcn.0466379b
sub ecx, ebx
jne 0x4663756
call fcn.04663799
jmp 0x4663775
lodsb al, byte [esi]
shr eax, 1
je 0x4663783
adc ecx, ecx
jmp 0x4663772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.04663799
cmp eax, 0x7d00
jae 0x4663772
cmp ah, 5
jae 0x4663773
cmp eax, 0x7f
ja 0x4663774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4663711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x80b4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x80b4c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x80b4c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x80b4b8
mov eax, 1
add ebx, ebx
jne 0x80b4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x80b4d0
jne 0x80b4ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b4d0
xor ecx, ecx
sub eax, 3
jb 0x80b500
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80b572
mov ebp, eax
add ebx, ebx
jne 0x80b50b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x80b518
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x80b53c
inc ecx
add ebx, ebx
jne 0x80b528
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x80b51d
jne 0x80b539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x80b51d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x80b55c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x80b54d
jmp 0x80b4be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x80b55c
add edi, ecx
jmp 0x80b4be
pop esi
mov edi, esi
mov ecx, 0x147
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x80b57a
cmp byte [edi], 1
jne 0x80b57a
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 0x80b57f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x80b5f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb514]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb58c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x80b5ac
mov ecx, edi
jns 0x80b5db
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 + 0xb590]
or eax, eax
je 0x80b5f1
mov dword [ebx], eax
add ebx, 4
jmp 0x80b5c9
call dword [esi + 0xb594]
popal
jmp 0x802d68
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
push edi
push str.error:
call esi
mov edi, dword [sym.imp.MSVCR100.dll_fprintf]
add eax, 0x40
push eax
call edi
mov ecx, dword [ebp + 8]
add esp, 8
lea eax, [ebp + 0xc]
push eax
push ecx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_vfprintf]
add esp, 0xc
push 0x46d570
call esi
add eax, 0x40
push eax
call edi
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x401060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_strerror]
mov esi, dword [sym.imp.MSVCR100.dll___iob_func]
add esp, 4
push eax
push str.error:__s:
call esi
mov edi, dword [sym.imp.MSVCR100.dll_fprintf]
add eax, 0x40
push eax
call edi
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp + 0xc]
push ecx
push edx
call esi
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_vfprintf]
add esp, 0xc
push 0x46d570
call esi
add eax, 0x40
push eax
call edi
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x4010d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push str.ADB_TRACE
call dword [sym.imp.MSVCR100.dll_getenv]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4011f6
cmp byte [ebx], 0
je 0x4011f6
push esi
push edi
lea ebx, [ebx]
push 0x46d600
push ebx
call dword [sym.imp.MSVCR100.dll_strpbrk]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x40112e
mov eax, ebx
lea edx, [eax + 1]
jmp 0x401120
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401120
sub eax, edx
add eax, ebx
mov dword [ebp - 4], eax
mov esi, dword [0x46d590]
mov edi, eax
sub edi, ebx
mov dword [ebp - 8], 0
test esi, esi
je 0x4011d0
mov ecx, esi
lea eax, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401150
sub ecx, eax
cmp edi, ecx
jne 0x40119e
mov ecx, edi
mov edx, ebx
cmp edi, 4
jb 0x40117a
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x40119e
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x401166
test ecx, ecx
je 0x4011b2
mov al, byte [edx]
cmp al, byte [esi]
jne 0x40119e
cmp ecx, 1
jbe 0x4011b2
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40119e
cmp ecx, 2
jbe 0x4011b2
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x4011b2
mov eax, dword [ebp - 8]
mov esi, dword [eax*8 + 0x46d598]
inc eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x401147
jmp 0x4011cd
mov edx, dword [ebp - 8]
mov ecx, dword [edx*8 + 0x46d594]
test ecx, ecx
je 0x4011ea
mov eax, 1
shl eax, cl
or dword [0x4805a8], eax
mov eax, dword [ebp - 4]
cmp byte [eax], 0
mov ebx, eax
je 0x4011da
lea ebx, [eax + 1]
cmp byte [ebx], 0
jne 0x401100
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [0x4805a8], 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402820
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x47f160]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0xfc
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402850
mov ecx, dword [str.adb.log]
mov edx, dword [0x46d9f4]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fopen]
push esi
push edi
push 0x46d9f8
mov dword [eax], ecx
push 0x46d9fc
mov dword [eax + 4], edx
call ebx
add esp, 8
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x4028af
mov esi, eax
mov ecx, 8
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll___iob_func]
mov ecx, 8
lea esi, [ebp - 0x12c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x108]
push 0x46da00
push eax
call ebx
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4028cc
mov ebx, dword [ebp - 0x10c]
push 0
push 4
push 0
push ebx
call dword [sym.imp.MSVCR100.dll_setvbuf]
mov ecx, 8
mov esi, ebx
lea edi, [ebp - 0x12c]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll___iob_func]
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
mov ebx, dword [sym.imp.MSVCR100.dll___iob_func]
mov ecx, 8
lea edi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
call ebx
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [ebp - 0x12c]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll__getpid]
push eax
push str.____adb_starting__pid__d______n
call ebx
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459991
mov esp, ebp
pop ebp
ret