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

Disassembly:
push 0x14
mov eax, 0x10ba61c
call fcn.010aac2c
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push 0x1022204
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], edi
call fcn.010ab83f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x108ecf0
mov eax, 0x80004003
mov dword [ebp - 0x10], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 8
mov dword [eax], edi
cmp dword [esi + 4], edi
jbe 0x108ee10
push 0x14
call fcn.010a8e6d
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x108ed19
mov ecx, eax
call fcn.0108e1d3
mov ebx, eax
jmp 0x108ed1b
xor ebx, ebx
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x108edee
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push dword [esi + 4]
mov ecx, ebx
call fcn.0108debb
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x108ede6
mov ecx, esi
call fcn.0108e97f
cmp eax, edi
mov dword [ebp - 0x10], eax
jl 0x108ede6
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
cmp dword [esi + 8], edi
jbe 0x108edd1
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 4]
jae 0x108edd1
mov edi, dword [ebp - 0x18]
mov eax, dword [esi + 0xc]
shl edi, 2
push dword [edi + eax]
call dword [fcn.01001278]
test eax, eax
je 0x108edc4
mov eax, dword [esi + 0xc]
push dword [edi + eax]
call fcn.01076868
cmp eax, 1
jne 0x108ed9d
mov eax, dword [esi + 0xc]
push dword [edi + eax]
call dword [fcn.01001bf8]
test eax, eax
je 0x108edc4
test byte [ebp + 0xc], 1
mov eax, dword [esi + 0xc]
push dword [edi + eax]
mov ecx, ebx
je 0x108edb2
call fcn.0108e061
jmp 0x108edba
push dword [ebp - 0x14]
call fcn.0108df67
mov dword [ebp - 0x10], eax
test eax, eax
jl 0x108edc4
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
xor edi, edi
cmp eax, dword [esi + 8]
jb 0x108ed5f
cmp dword [ebp - 0x10], edi
jl 0x108ede6
push dword [ebp + 8]
mov eax, dword [ebx]
push 0x1002c00
push ebx
call dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
jmp 0x108ee3b
mov dword [ebp - 0x10], 0x8007000e
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ee3b
test byte [eax + 0x1c], 4
je 0x108ee3b
push 0x10220e8
push 0xe
jmp 0x108ee30
mov dword [ebp - 0x10], 0x8000ffff
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ee3b
test byte [eax + 0x1c], 4
je 0x108ee3b
push 0x10220e8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
mov esi, dword [ebp - 0x10]
jmp 0x108ecda
Function at 0x108f093
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x10bbc3a
call fcn.010aac2c
mov esi, ecx
xor edi, edi
push edi
push 0x1022338
lea ecx, [ebp - 0x14]
mov dword [esi], 0x102230c
call fcn.010ab83f
mov eax, dword [esi + 8]
mov dword [ebp - 4], edi
cmp eax, edi
je 0x108f0e3
push eax
call dword [fcn.01001bf8]
cmp eax, 1
jne 0x108f0e3
push dword [esi + 8]
call dword [fcn.010012b0]
or eax, 2
push eax
push dword [esi + 8]
call dword [0x1001184]
mov ecx, dword [esi + 0x218]
cmp ecx, edi
je 0x108f109
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x218]
cmp ecx, edi
je 0x108f103
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x218], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x108f11a
push eax
call fcn.010a8eab
pop ecx
mov dword [esi + 4], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x108f12b
push eax
call fcn.010a8eab
pop ecx
mov dword [esi + 8], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010ab886
call fcn.010aad18
ret
Function at 0x108f2c0
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x10b99ca
call fcn.010aac2c
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x10223a0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call fcn.010ab83f
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
jne 0x108f30a
mov esi, 0x80070057
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 4
lea eax, [esi + 0xc]
push eax
call dword [fcn.01001278]
test eax, eax
je 0x108f2ec
cmp dword [ebp - 0x10], ebx
jl 0x108f39a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x108f32e
push eax
call fcn.010a8eab
pop ecx
mov dword [esi + 8], ebx
xor ecx, ecx
push 2
pop edx
mov eax, 0x104
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a8e9b
pop ecx
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x108f381
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f378
test byte [eax + 0x1c], 4
je 0x108f378
push 0x104
push 0x1022238
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov dword [ebp - 0x10], 0x8007000e
jmp 0x108f39a
push dword [ebp + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
call dword [fcn.01001c04]
test eax, eax
jne 0x108f39a
mov dword [ebp - 0x10], 0x80010135
push dword [esi + 8]
call dword [fcn.01001278]
test eax, eax
je 0x108f47d
push dword [esi + 8]
call dword [fcn.01001bf8]
test eax, eax
jne 0x108f47d
push ebx
push 2
push 2
push ebx
push ebx
push 0x40000000
push dword [esi + 8]
call dword [0x1001174]
mov esi, eax
cmp esi, 0xffffffff
je 0x108f43f
push ebx
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x14], 0xfeff
mov dword [ebp + 8], ebx
call dword [0x1001178]
test eax, eax
jne 0x108f436
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f436
test byte [eax + 0x1c], 4
je 0x108f436
call dword [fcn.0100128c]
cmp eax, ebx
jle 0x108f41e
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x1022238
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
push ebx
push esi
call fcn.010acbfe
jmp 0x108f47d
mov eax, dword [section..data]
cmp eax, section..data
je 0x108f47d
test byte [eax + 0x1c], 4
je 0x108f47d
call dword [fcn.0100128c]
cmp eax, ebx
jle 0x108f465
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x1022238
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov esi, dword [ebp - 0x10]
jmp 0x108f2f4
Function at 0x108fdb6
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x10b5c7d
call fcn.010aac9f
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
xor edi, edi
push 0x10225d4
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.010ab83f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.010aad66
add esp, 0xc
cmp esi, edi
jne 0x108fe35
mov eax, 0x80004003
mov dword [ebp - 0x21c], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 4
push 0x208
push edi
push esi
call fcn.010aad66
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x218]
push eax
push edi
call dword [fcn.01001bb8]
cmp eax, edi
jne 0x108fe9e
call dword [fcn.0100128c]
cmp eax, edi
jle 0x108fe6e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108fe9e
test byte [eax + 0x1c], 4
je 0x108fe9e
push dword [ebp - 0x21c]
push 0x1022238
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
cmp dword [ebp - 0x21c], edi
jl 0x108ffa2
mov esi, dword [fcn.01001278]
push 0x100224c
call esi
mov edi, 0x1002238
push edi
mov ebx, eax
call esi
add ebx, eax
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [eax + ebx + 3]
mov eax, 0x104
cmp ecx, eax
jle 0x108ff11
mov dword [ebp - 0x21c], 0x80010135
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ffa2
test byte [eax + 0x1c], 4
je 0x108ffa2
push 0x1022238
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
jmp 0x108ff32
push 0x100224c
push edi
lea ecx, [ebp - 0x218]
push ecx
push 0x10225c0
push eax
push dword [ebp - 0x220]
call fcn.0103d988
add esp, 0x18
cmp dword [ebp - 0x21c], 0
jl 0x108ffa2
push dword [ebp - 0x220]
call dword [fcn.010012b0]
cmp eax, 0xffffffff
jne 0x108ffa2
push 0
push dword [ebp - 0x220]
call dword [fcn.0100117c]
test eax, eax
jne 0x108ffa2
call dword [fcn.0100128c]
test eax, eax
jle 0x108ff72
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ffa2
test byte [eax + 0x1c], 4
je 0x108ffa2
push dword [ebp - 0x21c]
push 0x1022238
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov esi, dword [ebp - 0x21c]
jmp 0x108fe1c
Function at 0x109c7f1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xc
mov eax, 0x10b974a
call fcn.010aac2c
mov edi, ecx
xor esi, esi
push esi
push 0x10265ec
lea ecx, [ebp - 0x18]
call fcn.010ab83f
mov dword [ebp - 4], esi
cmp dword [edi + 0xfc], esi
je 0x109c892
call fcn.010a910a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
push dword [eax + 0x20]
call dword [fcn.01001d64]
test eax, eax
je 0x109c892
call dword [fcn.01001d38]
push dword [edi + 0xfc]
call dword [fcn.01001278]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 2
call dword [fcn.0100122c]
mov ebx, eax
test ebx, ebx
je 0x109c88c
push ebx
call dword [fcn.010012a0]
push esi
push dword [edi + 0xfc]
mov dword [ebp - 0x10], eax
push eax
call fcn.010aad7e
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor eax, eax
push ebx
mov word [esi + ecx], ax
call dword [fcn.010012a4]
push ebx
push 0xd
call dword [fcn.01001d3c]
call dword [fcn.01001d40]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab886
call fcn.010aad18
ret
Function at 0x109ccf4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x38
mov eax, 0x10bb674
call fcn.010aac2c
mov dword [ebp - 0x14], ecx
xor esi, esi
push esi
push 0x10266fc
lea ecx, [ebp - 0x30]
call fcn.010ab83f
mov ecx, dword [ebp - 0x14]
push 0x465
mov dword [ebp - 4], esi
call fcn.010a96aa
cmp eax, esi
je 0x109cecd
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x10], edi
cmp edi, esi
je 0x109cecd
lea eax, [ebp - 0x20]
push eax
push esi
mov esi, dword [fcn.01001c80]
push 0x434
push edi
call esi
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
je 0x109cecd
push 0
lea eax, [ebp - 0x28]
push eax
xor ebx, ebx
push 0x45f
inc ebx
push edi
mov dword [ebp - 0x24], 0x4b0
mov dword [ebp - 0x28], ebx
call esi
mov edi, eax
cmp edi, 0x80070057
je 0x109cecd
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a8e9b
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x109cecd
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
push eax
lea eax, [ebp - 0x44]
push eax
push 0x45e
push dword [ebp - 0x10]
lea ecx, [edi + edi + 2]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], 0x4b0
mov dword [ebp - 0x40], ebx
call esi
mov ebx, dword [ebp - 0x18]
xor ecx, ecx
xor esi, esi
xor edx, edx
cmp eax, ecx
mov word [ebx + eax*2], cx
mov dword [ebp - 0x10], ecx
jl 0x109ce09
cmp word [ebx + ecx*2], 0xd
je 0x109cde8
inc edx
cmp edx, dword [ebp - 0x20]
jg 0x109cdf0
inc dword [ebp - 0x10]
cmp edx, dword [ebp - 0x1c]
jg 0x109cdfb
inc esi
cmp edx, dword [ebp - 0x1c]
je 0x109ce00
inc ecx
cmp ecx, eax
jle 0x109cde0
cmp esi, dword [ebp - 0x10]
jge 0x109ce09
xor esi, esi
jmp 0x109ce0c
sub esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x20]
call dword [fcn.01001d64]
test eax, eax
je 0x109cec6
call dword [fcn.01001d38]
add esi, esi
lea eax, [esi + 2]
push eax
push 2
call dword [fcn.0100122c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x109cec0
push eax
call dword [fcn.010012a0]
mov edi, eax
test edi, edi
je 0x109ce7c
lea eax, [esi + 2]
push eax
mov eax, dword [ebp - 0x10]
lea eax, [ebx + eax*2]
push eax
push edi
call fcn.010aad7e
add esp, 0xc
push dword [ebp - 0x14]
xor eax, eax
mov word [esi + edi], ax
call dword [fcn.010012a4]
push dword [ebp - 0x14]
push 0xd
call dword [fcn.01001d3c]
jmp 0x109cec0
call dword [fcn.0100128c]
test eax, eax
jle 0x109ce90
and eax, 0xffff
or eax, 0x80070000
mov ecx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x109ceb7
test byte [eax + 0x1c], 4
je 0x109ceb7
push ecx
push 0x1025328
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
push dword [ebp - 0x14]
call dword [0x10012a8]
call dword [fcn.01001d40]
push ebx
call fcn.010a8eab
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.010ab886
call fcn.010aad18
ret
Function at 0x10a4516
Capabilities:
Log keystrokes via polling

Disassembly:
push 8
mov eax, 0x10bbc3a
call fcn.010aac2c
mov esi, ecx
push 0
push 0x1028744
lea ecx, [ebp - 0x14]
call fcn.010ab83f
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
sub eax, 9
je 0x10a4569
sub eax, 0x1d
mov ecx, esi
je 0x10a4565
dec eax
dec eax
je 0x10a455c
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x100
call fcn.0107bba0
jmp 0x10a459f
push 6
call fcn.010a4321
jmp 0x10a459f
push 7
jmp 0x10a455e
cmp dword [esi + 0xc8], 2
jne 0x10a459f
push 0x10
call dword [0x1001e80]
mov ecx, 0xffffff00
and ax, cx
movzx eax, ax
xor ecx, ecx
test ax, ax
setne cl
add ecx, 0x9cc4
push ecx
mov ecx, dword [esi + 0xd0]
call fcn.0106d411
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010ab886
call fcn.010aad18
ret 8

Function at 0x10a74ad
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0x419
push dword [ecx + 0x20]
call dword [fcn.01001c80]
pop ebp
ret 4

Function at 0x10ac2eb
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x102b6c8
lea ecx, [ebp - 0xc]
call fcn.010ab83f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [fcn.01001d78]
mov esi, eax
test esi, esi
jne 0x10ac359
call dword [fcn.0100128c]
test eax, eax
jle 0x10ac32f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10ac359
test byte [eax + 0x1c], 4
je 0x10ac359
push dword [ebp - 4]
push 0x102b52c
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10ac365
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.010ab886
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x40d800
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x40d860
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x492058]
test esi, esi
jle 0x40d94d
mov edi, dword [0x49205c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40d894
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40d946
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40d880
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40d98a
lea ebx, [esi + esi*2]
mov esi, dword [0x49205c]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x49205c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d96a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40d93f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40d93f
mov eax, dword [esp + 0x20]
add ebx, dword [0x49205c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40d954
add dword [0x492058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40d89e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x49205c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x40de50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x492408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x492400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40dea5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40de9e
test esi, esi
je 0x40de9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40de80
mov dword [esp], 0x492408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e0c0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40e0f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40e0ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40e0fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40e0e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40f530
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0040e3d0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x40f61f
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x40f6c3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x40f65a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x40f652
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x40f6c0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x40f6da
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x40f694
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40f694
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x40f694
Function at 0x41a7e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
push ebx
mov esi, eax
sub esp, 0x2e4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
cmp eax, 0xffffffff
jne 0x41a810
add esp, 0x2e4
mov eax, 0xffffffff
pop ebx
pop esi
ret
lea eax, [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x14], 0x10003
mov ebx, 0xffffffff
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
sub esp, 8
test eax, eax
cmovne ebx, dword [esp + 0xcc]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
add esp, 0x2e4
mov eax, ebx
pop ebx
pop esi
ret
Function at 0x41b830
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x492e60]
test ebx, ebx
je 0x41b860
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x492e60]
test eax, eax
je 0x41b885
cmp dword [eax], 0xffffffff
je 0x41b8a8
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov ebx, eax
mov dword [0x492e60], eax
jmp 0x41b83e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x492e60], eax
jmp 0x41b84f
call sym._abort
lea esi, [esi]