joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59c240
Capabilities:
Encrypt data using rc4 prga
Read file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x2c], eax
fldz
push ebx
push ebp
fst qword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
fstp qword [esp + 0x20]
push esi
push edi
mov edi, dword [ebp]
cmp dword [edi + 0x14], 0
mov dword [esp + 0x1c], ebp
mov esi, 2
je 0x59c285
lea eax, [esi + 2]
lea ebx, [esp + 0x34]
call fcn.00410220
mov eax, 0xfffe
jmp 0x59c2ad
mov edi, dword [edi + 4]
test edi, edi
je 0x59c29e
push edi
push 2
lea eax, [esp + 0x3c]
push 2
push eax
call fcn.0060860a
add esp, 0x10
mov eax, 0xfffe
jmp 0x59c2ad
mov ebp, dword [esp + 0x1c]
fstp st(0)
fstp st(0)
mov edi, dword [ebp]
sub eax, 1
cmp dword [edi + 0x14], 0
mov dword [esp + 0x18], eax
lea ebx, [esp + esi*2 + 0x34]
je 0x59c2f9
test ebx, ebx
mov ebp, 2
je 0x59c30e
mov eax, dword [edi + 0x1c]
cmp eax, ebp
jb 0x59c2db
mov ecx, dword [edi + 0x18]
lea edx, [ecx + 2]
cmp edx, eax
jbe 0x59c2e4
mov ecx, dword [edi + 0x18]
sub eax, ecx
mov ebp, eax
je 0x59c30e
mov eax, dword [edi + 0x14]
push ebp
add ecx, eax
push ecx
push ebx
call fcn.0060d1b0
add esp, 0xc
add dword [edi + 0x18], ebp
jmp 0x59c30e
mov edi, dword [edi + 4]
test edi, edi
je 0x59c30e
push edi
push 1
push 2
push ebx
call fcn.0060860a
add esp, 0x10
movzx ecx, byte [ebx]
movzx edx, byte [esp + esi*2 + 0x35]
mov eax, esi
xor eax, 2
add eax, eax
movzx edi, byte [esp + eax + 0x34]
mov ebx, ecx
shl ebx, 8
or edx, ebx
movzx ebx, byte [esp + eax + 0x35]
mov ebp, edi
shl ebp, 8
or ebx, ebp
sub ebx, edx
xor edx, edx
mov dh, byte [esp + esi*2 + 0x35]
mov dword [esp + 0x14], ebx
add esi, 1
and esi, 3
fild dword [esp + 0x14]
fmul st(0), st(0)
or edx, ecx
fadd qword [esp + 0x20]
xor ecx, ecx
mov ch, byte [esp + eax + 0x35]
mov eax, dword [esp + 0x18]
fst qword [esp + 0x20]
or ecx, edi
sub ecx, edx
test eax, eax
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul st(0), st(0)
fadd qword [esp + 0x28]
fst qword [esp + 0x28]
jne 0x59c2a5
fcompp
fnstsw ax
test ah, 0x41
mov eax, 0x4d4d
je 0x59c392
mov eax, 0x4949
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00607d6d
add esp, 0x30
ret 4
Function at 0x5a2bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x574
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x570], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x358], 0xc
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
jb 0x5a2d44
mov edi, dword [eax]
cmp dword [edi + 0x14], 0
je 0x5a2c3c
mov eax, 0xc
lea ebx, [esp + 0x570]
call fcn.00410220
jmp 0x5a2c58
mov edi, dword [edi + 4]
test edi, edi
je 0x5a2c58
push edi
push 0xc
lea eax, [esp + 0x578]
push 1
push eax
call fcn.0060860a
add esp, 0x10
xor edx, edx
mov edi, str.Exif
lea esi, [esp + 0x576]
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 0x768e8]
mov eax, edx
setne al
push edx
mov edi, eax
neg eax
sbb eax, eax
and eax, 0x56c
add eax, dword [esi + 0x358]
call fcn.00487200
test eax, eax
jne 0x5a2d44
mov ecx, dword [esi + 0x768e8]
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x5a2d86
mov byte [ebx], 0xff
add ebx, 1
mov byte [ebx], 0xd8
add ebx, 1
test edi, edi
je 0x5a2d0a
mov edx, dword [0x6b9770]
mov dword [ebx], edx
mov eax, dword [0x6b9774]
mov dword [ebx + 4], eax
mov cx, word [0x6b9778]
push 0x568
mov word [ebx + 8], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
push esi
lea eax, [esp + 0x14]
add ebx, 0xa
call fcn.005a2310
mov edi, ebx
mov ecx, 0x158
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xc]
add ebx, 0x560
mov edx, dword [esp + 0x572]
mov dword [ebx], edx
mov eax, dword [esp + 0x576]
mov dword [ebx + 4], eax
mov cx, word [esp + 0x57a]
mov word [ebx + 8], cx
mov eax, dword [esi + 0x358]
mov esi, dword [esi]
add ebx, 0xa
sub eax, 0xc
cmp dword [esi + 0x14], 0
je 0x5a2d5b
mov edi, esi
call fcn.00410220
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x570]
xor ecx, esp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esi + 4]
test esi, esi
je 0x5a2d44
push esi
push eax
push 1
push ebx
call fcn.0060860a
mov ecx, dword [esp + 0x58c]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00607d6d
mov esp, ebp
pop ebp
ret 4
push 1
add esi, 0x968ec
push esi
call fcn.0061b7d8
int3
Function at 0x5a9d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x66e9f8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x6d7160]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0xf
push eax
mov byte [esi + 4], al
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.005a9260
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], 0xffffffff
cmp dword [esp + 0x2c], 0x10
mov dword [esi + 0x1c], ecx
jb 0x5a9d75
mov edx, dword [esp + 0x18]
push edx
call fcn.00607c35
add esp, 4
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20
Function at 0x5b3ca0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6712b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d7160]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, edx
push 0xffffffffffffffff
mov esi, ecx
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.005a8f40
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
push 0x67b348
push 0x6ab854
lea eax, [esp + 0x20]
push eax
push esi
mov eax, edi
mov dword [esp + 0x50], ebx
call fcn.005b3a30
mov eax, 0x6ab854
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5b3d18
sub eax, edx
mov ebp, eax
cmp ebp, 0x80
jbe 0x5b3d3b
push 0x20
mov eax, 0x80
call fcn.005acc30
jmp 0x5b3d9d
mov esi, 0x80
sub esi, ebp
lea ebx, [ebp + 0x64]
cmp esi, ebx
jb 0x5b3d89
lea esp, [esp]
push 0x20
mov eax, 0x64
call fcn.005acc30
mov eax, 0x6ab854
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5b3d64
sub eax, edx
push eax
push 0x6ab854
mov eax, edi
call fcn.005ac6a0
mov ecx, 0xffffff9c
sub ecx, ebp
add esi, ecx
cmp esi, ebx
jae 0x5b3d50
push 0x20
mov eax, esi
call fcn.005acc30
push edi
mov edx, 0x6ab854
call fcn.005ac680
push 0
lea edx, [esp + 0x1c]
push edx
or eax, 0xffffffff
mov esi, edi
call fcn.005acb40
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 0x10
jb 0x5b3dca
mov eax, dword [esp + 0x1c]
push eax
call fcn.00607c35
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00607d6d
add esp, 0x30
ret
Function at 0x5bad20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x66f10c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d7160]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov al, byte [esp + 0x34]
mov byte [esi + 4], al
mov dword [esi], vtable.XML_Node.0
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov byte [esi + 0xc], bl
lea edi, [esi + 0x24]
mov dword [esp + 0x20], ebx
mov dword [edi + 0x18], eax
mov eax, ebp
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x5bad80
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.005a9680
mov dword [esi + 0x58], 0xf
mov dword [esi + 0x54], ebx
mov byte [esi + 0x44], bl
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x5c1f10
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x5c1f34
jmp 0x5c1f20
imul eax, eax, 0xf4243
movzx ecx, cl
add edx, 1
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x5c1f20
ret
Function at 0x5efaa0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x5efaf1
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x188], eax
mov dword [eax], 0x5f5380
mov dword [eax + 4], 0x5f54e0
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.005f51c0
cmp byte [esi + 0x48], 0
je 0x5efaea
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5efb6f
mov edx, dword [esi + 0x198]
cmp byte [edx + 0x10], 0
je 0x5efb5c
mov eax, dword [esi + 8]
test eax, eax
je 0x5efb16
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x198]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x5efb58
cmp eax, 2
je 0x5efb5c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5efb07
cmp eax, 3
je 0x5efb3e
cmp eax, 1
jne 0x5efb07
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x5efb07
mov edx, dword [esi + 0x124]
add dword [eax + 8], edx
jmp 0x5efb07
xor al, al
pop esi
ret
mov eax, dword [esi + 0x84]
mov dword [esi + 0x8c], eax
call fcn.005efba0
pop esi
ret
cmp eax, 0xcc
je 0x5efb91
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x16
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.005efba0
pop esi
ret
Function at 0x5f6c80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x54], 1
mov esi, dword [edi + 0x1b0]
mov dword [esp + 0x18], esi
jne 0x5f6ca7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x5f6cb3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x6c]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x6c], ecx
mov dword [esp + 0x14], ecx
jle 0x5f6ddc
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x5f6cf8
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x5f6d19
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x5f6d71
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x5f6d50
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
add ebx, 1
mov edx, eax
cmp esi, edx
jg 0x5f6d50
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
add esi, 1
cmp esi, 0xff
jle 0x5f6d36
cmp dword [esp + 0x10], 0
je 0x5f6dc1
mov eax, 1
lea edx, [ebp - 1]
jmp 0x5f6da0
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
add eax, 1
sub edx, 1
cmp eax, 0xff
jle 0x5f6da0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
add ecx, 1
cmp ecx, dword [eax + 0x6c]
mov dword [esp + 0x1c], ecx
jl 0x5f6cf0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x607d6d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d7160]
jne 0x607d77
repz ret
jmp fcn.0060a728
Function at 0x60836e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x6083ab
cmp dword [ebp + 0x14], edi
je 0x6083ab
cmp ecx, edi
jne 0x6083b2
call fcn.0060b000
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0060b30d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x6083c6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x6083e7
cmp ebx, 0xffffffff
je 0x6083d6
push ebx
push edi
push ecx
call fcn.0060c930
add esp, 0xc
cmp esi, edi
je 0x608393
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x608393
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x608403
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x60840a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x6084fb
test word [esi + 0xc], 0x10c
je 0x60845e
mov eax, dword [esi + 4]
test eax, eax
je 0x60845e
jl 0x60855c
cmp ebx, eax
mov edi, ebx
jb 0x60842f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x608503
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0060c8a6
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x6084f3
cmp ebx, dword [ebp - 0xc]
jb 0x6084cb
cmp dword [ebp - 0xc], 0
je 0x608488
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x60847d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x608484
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x608493
mov eax, SysReAllocString
cmp ebx, eax
ja 0x608493
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x60852f
push eax
push dword [ebp - 8]
push esi
call fcn.0060adbe
pop ecx
push eax
call fcn.0060c7a9
add esp, 0xc
test eax, eax
je 0x60856e
cmp eax, 0xffffffff
je 0x60855c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x6084f3
push esi
call fcn.0060c0c8
cmp eax, 0xffffffff
pop ecx
je 0x608560
cmp dword [ebp - 4], 0
je 0x60852f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x608412
mov eax, dword [ebp + 0x14]
jmp 0x6083ad
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x60851a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0060c930
add esp, 0xc
call fcn.0060b000
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x6083a3
cmp dword [ebp + 0xc], 0xffffffff
je 0x608545
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0060c930
add esp, 0xc
call fcn.0060b000
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x6083a3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x6083ad
or dword [esi + 0xc], 0x10
jmp 0x608560
Function at 0x609ded
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x6d7098]
je 0x609e08
inc edi
cmp edi, 0x17
jb 0x609df9
cmp edi, 0x17
jae 0x609f88
push ebp
push 3
call fcn.0061164a
cmp eax, 1
pop ecx
je 0x609f54
push 3
call fcn.0061164a
test eax, eax
pop ecx
jne 0x609e3c
cmp dword [0x6d7090], 1
je 0x609f54
cmp ebx, 0xfc
je 0x609f87
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6eb648
push ebp
call fcn.006115e5
add esp, 0xc
test eax, eax
je 0x609e72
push esi
push esi
push esi
push esi
push esi
call fcn.0060b1ef
add esp, 0x14
push 0x104
mov esi, 0x6eb661
push esi
push 0
mov byte [0x6eb765], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x609eb6
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.006115e5
add esp, 0xc
test eax, eax
je 0x609eb6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0060b1ef
add esp, 0x14
push esi
call fcn.0060e550
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x609efb
push esi
call fcn.0060e550
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6eb95c
push 0x6a6d90
sub ecx, eax
push ecx
push eax
call fcn.00611532
add esp, 0x14
test eax, eax
je 0x609efb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0060b1ef
add esp, 0x14
jmp 0x609efd
xor esi, esi
push 0x6b09e0
push ebx
push ebp
call fcn.006114c1
add esp, 0xc
test eax, eax
je 0x609f1d
push esi
push esi
push esi
push esi
push esi
call fcn.0060b1ef
add esp, 0x14
push dword [edi*8 + 0x6d709c]
push ebx
push ebp
call fcn.006114c1
add esp, 0xc
test eax, eax
je 0x609f3f
push esi
push esi
push esi
push esi
push esi
call fcn.0060b1ef
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00611304
add esp, 0xc
jmp 0x609f87
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x609f87
cmp ebp, 0xffffffff
je 0x609f87
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x6d709c]
push dword [esi]
call fcn.0060e550
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x611304
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0060a0a0
xor ebx, ebx
cmp dword [0x6ebf8c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x6113da
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x6114ba
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x675358
push edi
call esi
cmp eax, ebx
je 0x6114ba
push eax
call fcn.0060a032
mov dword [esp], 0x675348
push edi
mov dword [0x6ebf8c], eax
call esi
push eax
call fcn.0060a032
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6ebf90], eax
call esi
push eax
call fcn.0060a032
mov dword [0x6ebf94], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00608e06
test eax, eax
pop ecx
pop ecx
je 0x6113a8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0060b1ef
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x6113da
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0060a032
cmp eax, ebx
pop ecx
mov dword [0x6ebf9c], eax
je 0x6113da
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0060a032
pop ecx
mov dword [0x6ebf98], eax
mov eax, dword [0x6ebf98]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x61145f
cmp dword [0x6ebf9c], ecx
je 0x61145f
push eax
call fcn.0060a0a9
push dword [0x6ebf9c]
mov esi, eax
call fcn.0060a0a9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x61145f
cmp edi, ebx
je 0x61145f
call esi
cmp eax, ebx
je 0x61142c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x61142c
test byte [ebp - 0x18], 1
jne 0x61145f
lea eax, [ebp - 0x10]
push eax
call fcn.00608e3d
test eax, eax
pop ecx
je 0x611447
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0060b1ef
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x611456
or dword [ebp + 0x10], 0x200000
jmp 0x61149a
or dword [ebp + 0x10], 0x40000
jmp 0x61149a
mov eax, dword [0x6ebf90]
cmp eax, dword [ebp - 8]
je 0x61149a
push eax
call fcn.0060a0a9
cmp eax, ebx
pop ecx
je 0x61149a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x61149a
mov eax, dword [0x6ebf94]
cmp eax, dword [ebp - 8]
je 0x61149a
push eax
call fcn.0060a0a9
cmp eax, ebx
pop ecx
je 0x61149a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6ebf8c]
call fcn.0060a0a9
cmp eax, ebx
pop ecx
je 0x6114ba
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6114bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, ebx
mov eax, ebx
inc eax
cmp eax, 0xffffffc6
cmp eax, 0xffffffd7
mov eax, ebx
mov eax, ecx
mov eax, ecx
cmp eax, 0x2980e78c
mov eax, ebx
cmp eax, 0xffffff85
mov eax, ecx
inc eax
cmp eax, 0x24
cmp eax, 0x9e75c724
nop
mov eax, ecx
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
mov eax, 0xe5655684
cmp eax, 0x9b2e326d
inc eax
mov eax, ecx
mov eax, ebx
mov eax, ecx
cmp eax, 0xda0bd9f8
mov eax, ebx
mov eax, ebx
mov eax, ebx
mov eax, ebx
mov eax, 0x7aa95f80
nop
mov eax, ecx
nop
mov eax, ecx
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, ecx
inc eax
mov eax, ebx
mov eax, 0x9e6b4452
mov eax, ecx
cmp eax, 0x6d
mov eax, 0x383eb287
mov eax, ebx
mov eax, 0xc3ddf913
mov eax, ebx
nop
mov eax, ebx
mov eax, 0xd4406ec5
mov eax, 0xb0670b08
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, ecx
cmp eax, 0x9a1c5ff5
mov eax, 0xce0e8d84
mov eax, ecx
cmp eax, 0xffffff85
mov eax, ecx
nop
inc eax
mov eax, ebx
cmp eax, 0xfffffff9
mov eax, 0x78e83a2
mov eax, ecx
nop
nop
mov eax, 0xbfbd46c7
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
nop
inc eax
cmp eax, 0xb7dd6d55
cmp eax, 0x17
cmp eax, 0x49
mov eax, ecx
mov eax, ecx
cmp eax, 0x15d5d689
inc eax
inc eax
cmp eax, 2
cmp eax, 0x561265e3
cmp eax, 0x66
cmp eax, 0x19
cmp eax, 0xffffffbd
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
nop
nop
mov eax, ebx
cmp eax, 0x63
mov eax, ebx
cmp eax, 0xcf0b1119
mov eax, 0x3b7f7957
mov eax, ecx
nop
cmp eax, 0xffffffd4
mov eax, ebx
cmp eax, 0xce166f07
inc eax
nop
cmp eax, 0xbe1a02df
nop
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret