joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c43e
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x4219f1], 1
cmp dword [0x421a00], ebx
je 0x40c466
push 0x7d
call fcn.0040a245
push eax
push 2
push dword [0x421a00]
call dword [0x4131d8]
mov eax, dword [0x421a00]
mov dword [0x4219f4], ebx
mov byte [0x4219f0], 1
cmp eax, ebx
je 0x40c4c7
push 1
push eax
call dword [0x413264]
cmp dword [0x422b24], ebx
jne 0x40c495
cmp byte [0x422b14], bl
je 0x40c49d
cmp dword [0x4219f8], ebx
jne 0x40c4bf
push ebx
push 1
push 0x111
push dword [0x421a00]
call dword [0x4131d4]
jmp 0x40c4bf
push ebx
call dword [0x4130f0]
call fcn.0040b416
cmp dword [0x421a00], ebx
jne 0x40c4b3
cmp byte [0x421a08], bl
pop ebx
je 0x40c4d5
jmp fcn.0040c2e5
ret

Function at 0x40c511
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x421a10], bl
je 0x40c591
cmp word [str.C:UsersREMAppDataLocalTemp_], bx
je 0x40c591
push esi
push str.C:UsersREMAppDataLocalTemp_
lea esi, [ebp - 0x808]
call fcn.0040c4d6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40c591
push dword [ebp + 8]
call fcn.0040af5b
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40c596
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x421a10], 0
je 0x40c63d
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040c4d6
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40c63d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c634
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c618
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040ea2b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x40c765
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x4131f4]
cmp byte [0x4218e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x4218e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4218ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4218e0], eax
je 0x40c795
xor eax, eax
inc eax
jmp 0x40c7be
cmp byte [0x4218e7], 0
je 0x40c7a3
push 2
pop eax
jmp 0x40c7be
push dword [ebp + 8]
push 0x40b9ef
push dword [0x421a00]
push str.REPLACEFILEDLG
push dword [0x415e74]
call esi
dec eax
je 0x40c810
dec eax
je 0x40c822
dec eax
je 0x40c809
dec eax
jne 0x40c7ed
push dword [ebp + 8]
push 0x40bd3b
push dword [0x421a00]
push str.RENAMEDLG
push dword [0x415e74]
call esi
test eax, eax
je 0x40c76f
mov al, 0x52
jmp 0x40c81d
dec eax
je 0x40c7fe
dec eax
mov al, 0x4e
jne 0x40c81d
mov byte [0x4218e7], 1
jmp 0x40c81d
mov byte [0x4219f2], 1
mov al, 0x43
jmp 0x40c81d
mov byte [0x4218e6], 1
push 0
push dword [ebp + 8]
call dword [0x4130d0]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40c81d
Function at 0x40c9db
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.00401200
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40cc2e
push esi
call fcn.0040af5b
cmp eax, 0x3f6
jae 0x40cc2e
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x48]
push eax
call fcn.0040abda
movzx ecx, word [esi]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40ca32
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x40ca35
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x40ca8b
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40ca5d
jmp 0x40ca4d
cmp word [esi + eax*2], 0x22
je 0x40ca56
inc eax
cmp word [esi + eax*2], bx
jne 0x40ca46
jmp 0x40ca5d
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40ca77
cmp word [esi + eax*2 + 2], 0x2f
je 0x40ca77
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40ca3e
jmp 0x40ca8b
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40ca85
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
jne 0x40caa0
cmp word [0x422212], bx
je 0x40caa0
mov dword [ebp - 0x34], 0x422212
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.00407c9b
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40cacc
push str..inf
push eax
call fcn.0040f3a6
test eax, eax
jne 0x40cacc
mov dword [ebp - 0x3c], 0x413808
push dword [ebp - 0x38]
call fcn.00405dd7
mov bl, al
test bl, bl
je 0x40caf2
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.004077c2
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
cmp byte [ebp + 8], 0
mov edi, str..exe
je 0x40cb31
test bl, bl
jne 0x40cb31
push dword [ebp - 0x38]
lea eax, [ebp - 0x848]
push eax
call fcn.0040af85
push edi
lea eax, [ebp - 0x848]
push eax
call fcn.0040aff7
lea eax, [ebp - 0x848]
push eax
call fcn.00405dd7
test al, al
je 0x40cc2d
lea eax, [ebp - 0x48]
push eax
call dword [0x41319c]
test eax, eax
je 0x40cc2d
cmp byte [0x421a08], 0
mov ebx, dword [0x413264]
mov byte [ebp - 1], 0
mov esi, 0x3e8
jne 0x40cb6a
cmp byte [ebp + 8], 0
jne 0x40cb6a
cmp byte [0x422b29], 0
je 0x40cbce
mov eax, dword [0x421a00]
test eax, eax
je 0x40cb8c
push eax
call dword [0x4131f8]
test eax, eax
je 0x40cb8c
push 0
push dword [0x421a00]
call ebx
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [0x4131fc]
push dword [ebp - 0x10]
call fcn.0040c2a6
cmp byte [0x422b29], 0
je 0x40cbce
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [0x4130f4]
test eax, eax
je 0x40cbce
mov eax, dword [ebp - 0xc]
add eax, esi
cmp eax, dword [0x422b2c]
jbe 0x40cbce
mov dword [0x422b2c], eax
push dword [ebp - 0x10]
call dword [0x41317c]
cmp dword [ebp - 8], 0
je 0x40cbea
push edi
push dword [ebp - 8]
call fcn.0040f3a6
test eax, eax
je 0x40cc17
cmp byte [0x421a08], 0
je 0x40cc00
cmp byte [ebp + 8], 0
jne 0x40cc00
push 0x1b58
jmp 0x40cc11
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, esi
push eax
call dword [0x4130f0]
cmp byte [ebp - 1], 0
je 0x40cc2d
cmp byte [ebp + 8], 0
je 0x40cc2d
push 1
push dword [0x421a00]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e1c3
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040ee3a
xor ebx, ebx
push ebx
call dword [0x4132ac]
mov ecx, 0x42a4c8
call fcn.0040f560
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41c0e0
push edi
call fcn.0040abda
call dword [0x413108]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e271
push eax
call fcn.0040c0ab
cmp byte [0x421a11], bl
je 0x40e263
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [0x413114]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40e258
push esi
push ebx
push ebx
push 4
push eax
call dword [0x413104]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e24f
push esi
push eax
push edi
call fcn.0040ac07
push edi
push str.sfxcmd
call dword [0x413110]
push dword [ebp - 4]
call dword [0x413100]
push dword [ebp - 8]
call dword [0x41317c]
jmp 0x40e271
push dword [ebp - 8]
push str.sfxcmd
call dword [0x413110]
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [0x4130a8]
push esi
push str.sfxname
call dword [0x413110]
push ebx
call dword [0x4130b0]
mov edi, eax
push 0x64
push edi
mov dword [0x415e74], edi
mov dword [0x415e78], edi
call dword [0x413210]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [0x41320c]
lea ecx, [ebp - 0xc]
mov dword [0x41b8d8], eax
call fcn.00412992
push esi
mov ecx, 0x415e88
call fcn.0040a22e
lea ecx, [ebp - 0x5c]
call fcn.00406a41
lea ecx, [ebp - 0x34]
call fcn.00406a41
push 0x64
call fcn.0040b71f
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040b71f
push ebx
push 0x40d9a3
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41b0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41b0d0], eax
call dword [0x4131f4]
lea ecx, [ebp - 0x34]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.00406a63
lea ecx, [ebp - 0x5c]
call fcn.00406a63
lea ecx, [ebp - 0xc]
call fcn.004129ec
cmp byte [0x421a08], bl
je 0x40e350
call fcn.0040c2e5
push 0x100
push ebx
push 0x4218f0
call fcn.0040abda
cmp dword [0x422b24], ebx
jbe 0x40e373
push dword [0x422b18]
call fcn.0040ab56
push dword [0x41b8dc]
mov esi, dword [0x41305c]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e38d
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e3ac
cmp byte [0x4219f2], bl
je 0x40e3ac
push 0xff
mov ecx, 0x415e7c
call fcn.0040341b
mov eax, dword [0x422b30]
mov byte [0x4219f2], 1
cmp eax, ebx
je 0x40e3c2
push eax
call fcn.0040c2a6
call dword [0x4132a8]
mov eax, dword [0x422b2c]
cmp eax, ebx
ja 0x40e3d6
mov eax, dword [0x415e7c]
push eax
call dword [0x4130c8]
int3
Function at 0x40e73b
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x412837
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x413b5c
push 1
xor ebx, ebx
push ebx
push 0x413c0c
call dword [0x4132b0]
test eax, eax
jl 0x412908
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413bfc
push eax
call dword [ecx]
test eax, eax
jl 0x4128ff
cmp byte [ebp + 8], bl
je 0x41288a
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x4128a7
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4128b9
push 0x413704
jmp 0x4128bc
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x4128d1
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4128e2
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4128f6
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x412922
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [0x41315c]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x401057
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.00401000
test eax, eax
je 0x4011b0
lea ecx, [esp + 0x18]
call fcn.00401000
lea ecx, [esp + 0x18]
test eax, eax
je 0x40111f
call fcn.00401000
test eax, eax
je 0x4010e1
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.00401000
lea edi, [eax + edi*2]
dec ebx
jne 0x4010b7
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x4010d8
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x4010db
mov byte [edx], 0
inc edx
jmp 0x4011c2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x401117
test ecx, ecx
je 0x4011ab
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x401109
jmp 0x4011a7
xor ebp, ebp
inc ebp
jmp 0x4011ab
call fcn.00401036
test edi, edi
jne 0x401154
cmp eax, 2
jne 0x40114f
lea ecx, [esp + 0x18]
call fcn.00401036
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x4011ab
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x401144
jmp 0x4011a7
sub eax, 3
jmp 0x401157
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00401036
mov ecx, eax
cmp esi, 0x7d00
jb 0x40117e
inc ecx
cmp esi, 0x500
jb 0x401187
inc ecx
cmp esi, 0x80
jae 0x401192
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x4011ab
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x40119e
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x4011c8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x401087
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40134d
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x40137f
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x401360
jmp 0x401383
mov eax, dword [esp + 0x10]
test edi, edi
je 0x40138d
xor byte [esi], al
inc esi
dec edi
jne 0x401387
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4015ff
Capabilities:
Read file via mapping
Terminate process

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x403010], eax
mov eax, dword [0x40300c]
mov esi, dword [0x403008]
mov ebp, dword [0x403004]
mov dword [esp + 0x18], eax
mov eax, dword [section..data]
push 0x46
mov dword [esp + 0x20], eax
pop eax
mov word [esp + 0x20], ax
push 0x4d
pop eax
mov word [esp + 0x22], ax
xor eax, eax
mov word [esp + 0x34], ax
xor edi, edi
mov ebx, ebp
shr ebx, 0x1c
and bl, 0xf
movzx eax, bl
lea ecx, [eax + 0x30]
add eax, 0x57
movzx edx, ax
movzx eax, cx
cmp bl, 0x39
cmovbe edx, eax
shl ebp, 4
mov word [esp + edi*2 + 0x24], dx
inc edi
cmp edi, 8
jl 0x401648
lea eax, [esp + 0x20]
push eax
push esi
xor ebx, ebx
push ebx
push 2
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x401704
push esi
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4016fd
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi]
add ecx, esi
call fcn.004012a0
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4016f6
cmp dword [esp + 0x14], ebx
je 0x4016f6
push dword [esp + 0x18]
push ebx
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4016ed
push dword [esp + 0x1c]
mov edx, ebp
push esi
push ecx
mov ecx, ebx
call fcn.00401432
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.00401762
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x702027f0
Capabilities:
Get thread local storage value
Read .ini file
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7030f100
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
test byte [0x7036f03c], 1
jne 0x70202848
or dword [0x7036f03c], 1
push 0x703594f8
push ebx
push 0x70325dd0
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x7036f038], eax
cmp dword [0x7036f038], ebx
je 0x70202864
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], ebx
mov byte [esp + 0x38], 1
call fcn.702237c0
mov eax, dword [0x703548b0]
cmp eax, 0xffffffff
je 0x7020289f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x7020289f
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, 0x80004005
jmp 0x70202987
lea eax, [esp + 0xc]
push eax
push 0x7031c85c
push 0x70325bdc
call fcn.70259ad0
mov edi, eax
cmp edi, ebx
mov eax, dword [esp + 0xc]
jl 0x70202987
cmp eax, ebx
je 0x70202987
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x10]
push edx
push 0x7031c86c
mov byte [esp + 0x40], 2
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x70202983
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push eax
call edx
test eax, eax
jne 0x70202983
mov eax, dword [0x703548b0]
cmp eax, 0xffffffff
je 0x70202915
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esp + 0x14]
push eax
push 0x70325bdc
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov eax, dword [esp + 0x10]
mov ecx, 0xd
mov word [esp + 0x1c], cx
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x70202943
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 3
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x88]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x24]
push eax
push esi
call ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0xc]
mov byte [esp + 0x38], bl
cmp eax, ebx
je 0x70202997
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x702029af
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x70206720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x703168f2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
mov eax, dword [0x703580e4]
mov edx, dword [eax + 0xc]
mov ecx, 0x703580e4
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 1
cmp dword [esp + 0x44], esi
je 0x70206797
lea eax, [esp + 0x28]
push eax
mov edi, 0x94
call fcn.702278e0
add esp, 4
mov byte [esp + 0x38], 2
mov dword [esp + 0x14], 1
jmp 0x702067b9
lea ecx, [esp + 0x24]
push ecx
mov edi, 0x87
call fcn.702278e0
add esp, 4
mov dword [esp + 0x38], 3
mov dword [esp + 0x14], 2
mov esi, dword [eax]
lea edx, [esp + 0x20]
push 0x70359f90
push edx
call fcn.70228650
mov ebp, eax
lea eax, [esp + 0x24]
mov ebx, 4
push eax
mov edi, 0x9e
mov dword [esp + 0x44], ebx
call fcn.702278e0
add esp, 0xc
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x38], 5
mov edx, dword [ebp]
mov eax, dword [eax]
push ecx
push edx
push esi
push eax
lea edi, [esp + 0x28]
call fcn.70208e90
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x70206829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7020684e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 2
mov ebx, dword [esp + 0x14]
test bl, 2
je 0x70206886
mov eax, dword [esp + 0x24]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x70206886
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 1
test bl, 1
je 0x702068b3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x702068b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
call fcn.70261ef0
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x702068f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x702068f0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret