joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013342
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1001328b
add ebx, 0
push ecx
call 0x100132a0
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x7354a379
sub ebx, dword [0x73569bb8]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x73569ba8
call fcn.1000ed6a
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1000e278
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x100133fe
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x100133fe
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x100133b5
mov eax, 1
lock xchg dword [0x73569bb4], eax
push 0x3dd1fc71
call 0x10013342
push esi
add esp, 8
cmp eax, 0
jne 0x1001332b
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x10013351
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x10013366
cmp ecx, edx
cmp eax, 0
je 0x1001338b
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10013375
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.100133a4
dec eax
loope 0x100133a7
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x73569bb4], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x100133db
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x100133f0
jmp 0x100133fb
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x100132e9
Function at 0x1001a463
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1001a739
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x7355682c
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x7354d7f2
push 0xffffffffffffffff
call fcn.10011663
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1001a4cd
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1001a4e5
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1001a72d
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1001a701
Function at 0x10029f33
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10029f55
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10029f55
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10029f55
ret
cmp word [ebx + 4], 0x14c
jne 0x10029f55
test word [ebx + 0x16], 2
je 0x10029f55
test word [ebx + 0x16], 0x100
je 0x10029f55
cmp word [ebx + 0x18], 0x10b
jne 0x10029f55
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10029f55
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10029fe1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10029f75
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10010ec0
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10029f55
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10029fe1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10029f55
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10029f55
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10029f55
ret
cmp word [ebx + 4], 0x14c
jne 0x10029f55
test word [ebx + 0x16], 2
je 0x10029f55
test word [ebx + 0x16], 0x100
je 0x10029f55
cmp word [ebx + 0x18], 0x10b
jne 0x10029f55
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10029f55
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10029fe1
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10029f75
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10010ec0
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10029f55
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1002a098
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002a0f1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1002a098
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002a0a7
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042fd4a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002a0f8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10010f6e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1002a197
add edi, 4
add eax, 2
dec ecx
jne 0x1002a0dd
call 0x1002a144
loope 0x1002a13a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1002a194
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1002a1a5
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1002a158
cmp eax, ecx
ja 0x1002a158
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1002a1e2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002a1d8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001144d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1002a0a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002a0f1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1002a098
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002a0a7
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042fd4a
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002a0f8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10010f6e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1002a197
add edi, 4
add eax, 2
dec ecx
jne 0x1002a0dd
call 0x1002a144
loope 0x1002a13a
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1002a194
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1002a1a5
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1002a158
cmp eax, ecx
ja 0x1002a158
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1002a1e2
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002a1d8
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1001144d
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4073a0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x522008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004b7720
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4074e2
cmp dword [esi + 4], 6
push edi
ja 0x4073f6
jne 0x40747e
cmp dword [esi + 8], 2
jb 0x40747e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x40747e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40747e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40747e
movups xmm0, xmmword [0x5024e8]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x5024f8]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40747e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40747e
cmp word [edi + 2], ax
jbe 0x40747e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4074c9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004b7720
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x4074c9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004b5964
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004b5964
add esp, 0x140
ret
Function at 0x409630
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dad30
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x522008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00402120
test al, al
je 0x409670
xor al, al
jmp 0x409825
push edi
call fcn.00409050
add esp, 4
test al, al
je 0x409684
mov al, 1
jmp 0x409825
push 0
mov ecx, edi
call fcn.00402130
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4096d3
lea ecx, [ebp - 0x2c]
call fcn.00402230
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.004123e0
test al, al
je 0x4096c4
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402130
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401f40
push edi
call fcn.00409050
add esp, 4
test al, al
jne 0x40967d
mov ecx, edi
call fcn.004023a0
xor esi, esi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4097c8
mov ecx, edi
call fcn.00402330
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40970c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40972f
mov eax, ebx
cmp ecx, 8
jb 0x409725
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4097b8
push esi
push 0
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.00405590
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402120
test al, al
jne 0x4097a9
lea ecx, [ebp - 0x2c]
call fcn.00408e40
test al, al
jne 0x4097a9
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4097a9
lea ecx, [ebp - 0x44]
call fcn.00402230
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004123e0
test al, al
je 0x40979d
push 0
lea ecx, [ebp - 0x44]
call fcn.00402130
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00401f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401f40
inc esi
cmp esi, dword [ebp - 0x48]
jb 0x409700
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.00408e40
test al, al
jne 0x40981c
push 0
mov ecx, edi
call fcn.00402130
push eax
call ebx
test eax, eax
jne 0x40981c
lea ecx, [ebp - 0x44]
call fcn.00402230
mov dword [ebp - 4], 3
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.004123e0
test al, al
je 0x40980d
push 0
lea ecx, [ebp - 0x44]
call fcn.00402130
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401f40
push edi
call fcn.00409050
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b5964
mov esp, ebp
pop ebp
ret
Function at 0x40a900
Capabilities:
Get common file path

Disassembly:
sub esp, 0x41c
mov eax, dword [0x522008]
xor eax, esp
mov dword [esp + 0x418], eax
push esi
mov esi, ecx
call fcn.00402330
mov dword [esp + 4], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x40a933
mov eax, dword [eax]
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00402560
push 0x412
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004b7720
add esp, 0x14
lea eax, [esp + 8]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x40a97e
xor al, al
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.004b5964
add esp, 0x41c
ret
cmp eax, 0x208
jae 0x40a966
xor eax, eax
mov word [esp + 0x418], ax
lea eax, [esp + 8]
push eax
call fcn.004025c0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004023b0
mov ecx, dword [esp + 0x41c]
mov al, 1
pop esi
xor ecx, esp
call fcn.004b5964
add esp, 0x41c
ret

Function at 0x40afd0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x40afe6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [esp + 8]
mov word [esi + 4], 0
call fcn.00402120
test al, al
jne 0x40b004
mov ecx, dword [esp + 8]
call fcn.00402130
jmp 0x40b006
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40b028
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b028
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x40b040
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dafc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x522008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x40b086
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00415410
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40b0af
lea ebx, [esi + 8]
jmp 0x40b0b1
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00402120
test al, al
jne 0x40b0c7
mov ecx, dword [ebp - 0x18]
call fcn.00402130
jmp 0x40b0c9
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x40b0ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b0ea
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40b113
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40b128
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004b5c3f
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5964
mov esp, ebp
pop ebp
ret 4
Function at 0x40b160
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dafc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x522008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x40b1a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004154d0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x40b1d0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x40b1d7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00402120
test al, al
jne 0x40b1eb
mov ecx, ebx
call fcn.00402130
jmp 0x40b1ed
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x40b23e
call ecx
cmp eax, 5
jne 0x40b238
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00402120
test al, al
jne 0x40b228
mov ecx, ebx
call fcn.00402130
jmp 0x40b22a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x40b25c
call ecx
cmp eax, 0xb7
jne 0x40b251
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00413e10
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40b282
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40b297
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004b5c3f
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5964
mov esp, ebp
pop ebp
ret 4
Function at 0x40ef80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x522008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.004b7720
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40f017
cmp dword [esp + 8], 6
jb 0x40f017
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004b5964
add esp, 0x118
ret

Function at 0x40f030
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db630
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x522008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.004021e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0040fa50
mov ecx, eax
call fcn.0040fb10
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401f40
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.004021e0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0040fa50
mov ecx, eax
call fcn.0040fb10
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401f40
test ebx, ebx
je 0x40f145
test esi, esi
je 0x40f145
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret