joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5238ac50
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x523ac650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
push edi
cmp eax, ebx
je 0x5238ac84
push ebx
push ebx
push 0x64e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x523ac680], ebx
lea eax, [esi + 0x78]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5238ac95
push 1
push eax
call fcn.52386dcc
lea eax, [esi + 0x7c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5238aca6
push 1
push eax
call fcn.52386dcc
mov edi, dword [esi + 0xc90]
cmp edi, ebx
je 0x5238acce
lea ebx, [esi + edi*4 + 0x88c]
sub ebx, 4
mov ecx, dword [ebx]
dec edi
test ecx, ecx
je 0x5238acc8
push 1
call fcn.52388086
test edi, edi
jne 0x5238acb7
xor ebx, ebx
mov edi, dword [esi + 0x70]
jmp 0x5238aceb
mov eax, dword [esi + 0xcac]
dec edi
lea eax, [eax + edi*4]
cmp dword [eax], ebx
je 0x5238aceb
mov ecx, dword [eax]
push 1
push eax
call fcn.52386dcc
cmp edi, ebx
jne 0x5238acd3
lea edi, [esi + 0xcac]
push dword [edi]
call fcn.52394384
lea eax, [esi + 0xca0]
mov ecx, dword [eax]
mov dword [edi], ebx
cmp ecx, ebx
je 0x5238ad12
push 1
push eax
call fcn.52386dcc
lea eax, [esi + 0xca4]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5238ad26
push 1
push eax
call fcn.52386dcc
lea eax, [esi + 0xca8]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5238ad3a
push 1
push eax
call fcn.52386dcc
lea eax, [esi + 0xc9c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5238ad4e
push 1
push eax
call fcn.52386dcc
lea eax, [esi + 0xc98]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5238ad62
push 1
push eax
call fcn.52386dcc
mov eax, 0x100
call fcn.523a8570
lea eax, [ebp - 8]
push eax
push 0x20006
push ebx
mov ebx, 0x52381a78
push ebx
mov edi, 0x80000001
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5238adb3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push 0x52381a5c
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5238ae37
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
pop ebx
push ebx
lea eax, [esi + 0xcb8]
push eax
push ebx
push 0
push 0x52381a50
push dword [ebp - 8]
call edi
push ebx
lea eax, [esi + 0xcbc]
push eax
push ebx
push 0
push 0x52381a44
push dword [ebp - 8]
call edi
push ebx
lea eax, [esi + 0x30]
push eax
push ebx
push 0
push 0x52381a34
push dword [ebp - 8]
call edi
push ebx
lea eax, [esi + 0x58]
push eax
push ebx
push 0
push 0x52381a24
push dword [ebp - 8]
call edi
push ebx
lea eax, [esi + 0x4c]
push eax
push ebx
push 0
push 0x52381a0c
push dword [ebp - 8]
call edi
push ebx
lea eax, [esi + 0x34]
push eax
push ebx
push 0
push 0x523819fc
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xcb0
mov ecx, dword [esi]
test ecx, ecx
je 0x5238ae4a
push 1
call fcn.52389e6e
and dword [esi], 0
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.523a8462
leave
ret
Function at 0x5238ed66
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5238ede7
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x5238ede7
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.5238e708
push 1
push 0x1c
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jl 0x5238ede7
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x5238ede7
push 0x52381e84
push dword [ebp + 0x10]
push edi
call fcn.523895ad
add ebx, esi
push ebx
push dword [ebp + 0x10]
push edi
call fcn.523895ad
xor eax, eax
inc eax
jmp 0x5238ede9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x52391bf9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x52391c0f
call fcn.52391339
cmp dword [ebp + 0x10], 0
jne 0x52391c1c
xor eax, eax
jmp 0x52391da0
mov eax, dword [esi + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
add eax, 0x1fff
shr eax, 0xd
push eax
push dword [esi + 0x14]
push ebx
call fcn.52397f78
mov edi, eax
cmp edi, 0xffffffff
jne 0x52391c44
xor eax, eax
jmp 0x52391d9e
mov ecx, esi
call fcn.52391bd1
sub eax, ebx
cmp eax, dword [ebp + 0x10]
jge 0x52391c55
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0xc], 0
je 0x52391d9b
mov eax, dword [esi + 0x14]
sub ebx, dword [eax + edi*4]
mov ecx, esi
mov dword [ebp - 4], ebx
mov ebx, dword [esi + 0xc]
call fcn.52391bd1
shr ebx, 6
cmp eax, ebx
jbe 0x52391d05
mov esi, dword [esi + 0x18]
shl edi, 0xa
add edi, esi
mov bl, byte [edi]
lea eax, [esi + 1]
mov dword [ebp + 8], eax
inc edi
call fcn.52383507
cmp dword [ebp - 4], 0
je 0x52391cb7
test bl, bl
je 0x52391cac
mov al, bl
dec al
xor al, bl
not al
and bl, al
dec dword [ebp - 4]
jne 0x52391c99
cmp dword [ebp - 4], 0
je 0x52391cb7
mov bl, byte [edi]
inc edi
jmp 0x52391c99
call fcn.52383507
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, edi
sub eax, dword [ebp + 8]
shl eax, 3
test bl, bl
je 0x52391cf3
movzx ecx, bl
movzx esi, byte [ecx + 0x523ac2c0]
mov dl, 1
mov ecx, esi
shl dl, cl
lea ecx, [eax + esi]
not dl
and bl, dl
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
dec dword [ebp - 8]
mov dword [edx], ecx
jne 0x52391cca
cmp dword [ebp - 8], 0
je 0x52391d9b
mov bl, byte [edi]
inc edi
add eax, 8
jmp 0x52391cca
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
call fcn.52383507
mov eax, dword [esi + 0x14]
mov ecx, edi
shl ecx, 2
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [eax + 4]
jne 0x52391d31
mov eax, dword [esi + 0x14]
add eax, ecx
add eax, 4
mov ecx, dword [eax]
inc edi
cmp ecx, dword [eax + 4]
je 0x52391d26
mov ebx, edi
shl ebx, 0xa
add ebx, dword [esi + 0x18]
lea eax, [ebx + 0x400]
mov dword [ebp - 0xc], eax
cmp ebx, eax
je 0x52391d95
call fcn.52383507
mov al, byte [ebx]
mov byte [ebp + 0xb], al
test al, al
je 0x52391d8f
movzx eax, byte [ebp + 0xb]
movzx ecx, byte [eax + 0x523ac2c0]
mov al, 1
shl al, cl
not al
and byte [ebp + 0xb], al
cmp dword [ebp - 4], 0
je 0x52391d73
dec dword [ebp - 4]
jmp 0x52391d89
mov eax, ebx
sub eax, dword [esi + 0x18]
lea eax, [ecx + eax*8]
mov ecx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
dec dword [ebp - 8]
mov dword [ecx], eax
je 0x52391d9b
cmp byte [ebp + 0xb], 0
jne 0x52391d54
inc ebx
cmp ebx, dword [ebp - 0xc]
jne 0x52391d46
inc edi
jmp 0x52391d0b
mov eax, dword [ebp + 0x10]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x52394459
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x523ae040], ebx
jne 0x52394493
call fcn.52383507
push 0x8000000
push 0x40000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0x523ae01c
mov dword [0x523ae040], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.52383507
lea eax, [esi + 4]
cmp esi, 0x7a120
ja 0x523944ba
push eax
push 8
push dword [0x523ae040]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x523944c9
push 4
push 0x3000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
je 0x523944d7
mov dword [ebp - 4], edi
add edi, 4
jmp 0x523944f4
call fcn.52394409
test eax, eax
jne 0x52394499
cmp dword [ebp + 0x10], ebx
je 0x52394506
push ebx
push ebx
push 1
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp edi, ebx
je 0x52394499
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x523944ff

Function at 0x523979f6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x52397a0a
mov ecx, eax
pop ebp
jmp fcn.52391bf9
cmp dword [ecx + 0x1c], 0
je 0x52397a3c
mov eax, dword [ecx]
push esi
call dword [eax + 0x10]
mov esi, eax
xor eax, eax
cmp dword [ebp + 0x10], eax
je 0x52397a39
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, esi
jge 0x52397a39
mov dword [edx], ecx
add edx, 4
inc ecx
dec dword [ebp + 0x10]
inc eax
cmp dword [ebp + 0x10], 0
jne 0x52397a25
pop esi
jmp 0x52397a3e
xor eax, eax
pop ebp
ret 0xc
Function at 0x52397c50
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebx
push esi
push edi
xor ebx, ebx
jmp 0x52397c94
mov edi, dword [esi + 0x18]
lea ecx, [eax + 0x14]
mov eax, dword [ecx]
mov dword [0x523ae068], eax
mov dword [ecx], ebx
mov dword [esi + 0x18], ebx
cmp edi, ebx
je 0x52397c99
lea eax, [edi - 1]
xor eax, edi
push eax
call fcn.523a1006
xor edx, edx
dec eax
inc edx
mov ecx, eax
shl edx, cl
mov ecx, dword [esi + 0x10]
push eax
push esi
not edx
and edi, edx
mov edx, dword [ecx]
call dword [edx + 0x10]
cmp edi, ebx
jne 0x52397c6f
mov eax, dword [0x523ae068]
mov esi, eax
cmp eax, ebx
jne 0x52397c59
jmp 0x52397d0e
mov edi, dword [esi + 0x10]
lea ecx, [eax + 0x14]
mov eax, dword [ecx]
mov dword [0x523ae064], eax
mov dword [ecx], ebx
mov dword [esi + 0x10], ebx
cmp edi, ebx
je 0x52397cdf
lea eax, [edi - 1]
xor eax, edi
push eax
call fcn.523a1006
xor edx, edx
dec eax
inc edx
mov ecx, eax
shl edx, cl
push eax
mov ecx, esi
not edx
and edi, edx
mov edx, dword [esi]
call dword [edx + 0x18]
cmp edi, ebx
jne 0x52397cb7
mov eax, dword [0x523ae064]
mov edi, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
cmp edi, ebx
je 0x52397d13
lea eax, [edi - 1]
xor eax, edi
push eax
call fcn.523a1006
xor edx, edx
dec eax
inc edx
mov ecx, eax
shl edx, cl
mov ecx, dword [esi + 8]
push eax
push esi
not edx
and edi, edx
mov edx, dword [ecx]
call dword [edx + 0xc]
cmp edi, ebx
jne 0x52397ce9
mov eax, dword [0x523ae064]
mov esi, eax
cmp eax, ebx
jne 0x52397ca1
pop edi
pop esi
mov dword [0x523ae060], ebx
pop ebx
ret
Function at 0x523989e0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0xe7c], eax
jne 0x52398a05
push 0x409
push eax
push eax
push eax
push eax
call fcn.523a4c74
mov ecx, esi
pop esi
jmp fcn.52398240
pop esi
ret

Function at 0x5239c3e9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 0xd84]
xor ebx, ebx
push edi
test edx, edx
je 0x5239c46a
mov eax, edx
shl eax, 4
add eax, dword [esi + 0xd88]
sub eax, 0x10
mov ecx, dword [eax]
mov edi, ecx
shr edi, 1
xor edi, ecx
and edi, 5
dec edx
or ebx, edi
test edx, edx
jne 0x5239c407
test ebx, ebx
je 0x5239c46a
test bl, 1
je 0x5239c42c
mov ecx, esi
call fcn.5239c3d5
test bl, 4
jne 0x5239c43a
cmp dword [esi + 0xda0], 0
jne 0x5239c441
mov ecx, esi
call fcn.5239bd56
mov edx, dword [esi + 0xd88]
mov esi, dword [esi + 0xd84]
jmp 0x5239c466
mov eax, dword [edx]
mov ecx, eax
and ecx, 5
and eax, 0xfffffff0
lea edi, [ecx + ecx]
or eax, edi
or eax, ecx
dec esi
mov dword [edx], eax
add edx, 0x10
test esi, esi
jne 0x5239c44f
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x5239e845
Capabilities:
Terminate process

Disassembly:
push 0x34
push 0x523a9830
call fcn.523a8484
mov esi, ecx
mov dword [ebp - 0x30], esi
and dword [ebp - 0x44], 0
mov eax, dword [esi + 0x4c]
xor ebx, ebx
inc ebx
push ebx
mov ecx, eax
imul ecx, ecx, 0xe
inc ecx
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.523a7315
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov eax, dword [esi + 0x4c]
imul eax, eax, 0x1c
lea eax, [eax + edi + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
dec dword [ebp - 0x1c]
test ecx, ecx
je 0x5239e8d1
mov dword [eax + 4], edi
lea ebx, [eax + 0x10]
mov ecx, dword [ebx]
sub ecx, dword [eax]
sar ecx, 1
mov edx, dword [ebp - 0x2c]
sub edx, edi
sar edx, 1
push edx
push edi
push ecx
push dword [eax]
push 0
push dword [ebp + 8]
call fcn.5238e28e
lea edi, [edi + eax*2]
mov dword [ebp - 0x28], edi
mov eax, ebx
jmp 0x5239e898
and dword [ebp - 4], 0
jmp 0x5239e90f
mov dword [eax + 4], edi
sub edi, dword [ebp - 0x24]
sar edi, 1
mov dword [esi + 0x40], edi
lea ebx, [edi + edi]
mov eax, ebx
shr eax, 1
cmp edi, eax
je 0x5239e930
push 0x2eeb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 1
push 0
push ebx
call fcn.52394459
mov dword [esi + 0x3c], eax
push ebx
push dword [ebp - 0x24]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x3c]
sub eax, dword [ebp - 0x24]
sar eax, 1
mov ecx, dword [esi + 0x2c]
inc ecx
mov dword [ebp - 0x1c], ecx
mov esi, dword [esi + 0x50]
mov dword [ebp - 0x20], esi
mov edx, ecx
dec ecx
mov dword [ebp - 0x1c], ecx
test edx, edx
je 0x5239e974
lea edx, [eax + eax]
add dword [esi + 4], edx
add esi, 0x10
jmp 0x5239e95c
mov dword [ebp - 4], 0xfffffffe
call fcn.5239e988
call fcn.523a84c9
ret 4
Function at 0x523a2019
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov esi, ecx
call fcn.523974b5
lea ecx, [esi + 0x164]
mov dword [esi], 0x52382d24
call fcn.523841d4
xor edi, edi
cmp dword [0x523ae070], edi
jne 0x523a206d
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jbe 0x523a205a
or eax, 0xffffffff
push 5
xor edx, edx
mov dword [0x523ae070], eax
pop ecx
div ecx
add eax, eax
mov dword [0x523ae06c], eax
xor eax, eax
or dword [esi + 0x148], 0xffffffff
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0x15c], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x118], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x14c], edi
mov dword [esi + 0xe6c], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x160], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x11c], edi
mov dword [esi + 0xe70], edi
mov dword [esi + 0xe74], edi
mov dword [esi + 0xe78], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x7c], edi
mov word [esi + 0x3c], ax
mov word [esi + 0x3e], ax
pop edi
mov dword [esi + 0x2c], 0xf
mov eax, esi
pop esi
leave
ret
Function at 0x523a539c
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 4], ebx
je 0x523a53ee
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x523a53c9
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0x44]
mov dword [esi + 0x48], ebx
call edi
mov dword [esi + 0x44], ebx
mov ecx, esi
call fcn.523a527f
push dword [esi + 8]
call edi
mov ecx, esi
mov dword [esi + 4], ebx
call fcn.523a52ca
cmp dword [esi + 0xc], ebx
je 0x523a53ee
lea eax, [esi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x523a5405
push eax
call edi
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x523a5412
push eax
call edi
mov dword [esi + 0x40], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x523a56b1
Capabilities:
Get system information on windows

Disassembly:
push 0x38
push 0x523a9c10
call fcn.523a8484
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor ecx, ecx
inc ecx
mov dword [ebp - 0x24], ecx
cmp dword [esi + 4], eax
jne 0x523a56e3
push eax
push eax
push ecx
push 0xe0000006
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
mov esi, eax
imul esi, ecx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x2c]
lea eax, [edi + esi - 1]
xor edx, edx
div edi
mov ecx, eax
imul ecx, edi
mov ebx, dword [ebp - 0x44]
lea eax, [ebx + esi - 1]
xor edx, edx
div ebx
mov edi, eax
imul edi, ebx
push 1
push 0x2000
push ecx
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x523a574d
push 4
push 0x1000
push edi
push eax
call ebx
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x523a575e
push 0
push 0
push 1
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x24], 0
call fcn.523a5781
mov eax, dword [ebp - 0x20]
call fcn.523a84c9
ret 4
Function at 0x523a5825
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x20
push 0x523a9c30
call fcn.523a8484
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
call fcn.523a52f9
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
push eax
push eax
push 0x2c
call fcn.52394459
mov esi, eax
mov dword [ebp - 0x24], esi
xor eax, eax
cmp dword [ebp + 0x20], edi
sete al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edi
cmp eax, edi
je 0x523a587b
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0x20], eax
jmp 0x523a5884
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov dword [esi], ebx
cmp dword [ebp - 0x1c], edi
lea eax, [ebp - 0x28]
jne 0x523a5897
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], ecx
lea eax, [esi + 0x24]
mov edx, dword [ebp + 0x14]
mov dword [eax], edx
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [ebp - 0x20], edi
cmp dword [0x523adfbc], 3
jne 0x523a58ec
push edi
push eax
push ecx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebx + 8]
cmp dword [ebp + 8], edi
je 0x523a58e4
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x523a5911
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x523a5911
push fcn.523a57c6
lea eax, [esi + 0x18]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebx + 8]
cmp dword [ebp + 8], edi
je 0x523a590b
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
jmp 0x523a5911
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov dword [ebp + 0x18], eax
cmp eax, edi
jne 0x523a594d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x523a594d
cmp dword [ebp + 0x1c], edi
je 0x523a5935
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push edi
push edi
push 1
xor eax, eax
cmp dword [ebp + 8], edi
setne al
add eax, 0xe0000004
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x523adfbc], 3
jne 0x523a5972
cmp dword [ebp + 0x18], edi
je 0x523a595f
xor eax, eax
jmp 0x523a5965
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x18]
push ecx
push dword [ebp - 0x20]
push eax
call fcn.523a57c6
mov ecx, ebx
call fcn.523a5346
cmp dword [ebp - 0x1c], edi
je 0x523a599b
push 1
push 0xffffffffffffffff
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, edi
jne 0x523a597e
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x523a599b
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x30], 0
call fcn.523a59be
call fcn.523a84c9
ret 0x1c
Function at 0x523a59f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x18
push 0x523a9c50
call fcn.523a8484
mov edi, ecx
mov dword [ebp - 0x24], edi
call fcn.523a52f9
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
push eax
push eax
push 0x2c
call fcn.52394459
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi], edi
mov eax, dword [edi + 0x50]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], ecx
lea eax, [esi + 0x24]
mov edx, dword [ebp + 0x14]
mov dword [eax], edx
mov dword [ebp - 0x1c], ebx
cmp dword [0x523adfbc], 3
jne 0x523a5a85
push ebx
push eax
push ecx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [edi + 8]
cmp dword [ebp + 8], ebx
je 0x523a5a7d
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x523a5aaa
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x523a5aaa
push fcn.523a57c6
lea eax, [esi + 0x18]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [edi + 8]
cmp dword [ebp + 8], ebx
je 0x523a5aa4
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
jmp 0x523a5aaa
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
mov dword [ebp + 0x18], eax
cmp eax, ebx
jne 0x523a5ad6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x523a5ad6
push ebx
push ebx
push 1
xor eax, eax
cmp dword [ebp + 8], ebx
setne al
add eax, 0xe0000004
push eax
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x523adfbc], 3
jne 0x523a5afb
cmp dword [ebp + 0x18], ebx
je 0x523a5ae8
xor eax, eax
jmp 0x523a5aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x18]
push ecx
push dword [ebp - 0x1c]
push eax
call fcn.523a57c6
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x28], 0
call fcn.523a5b28
add edi, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.523a84c9
ret 0x1c

Function at 0x523a5b6d
Capabilities:
Read file via mapping

Disassembly:
push 0x10
push 0x523a9c70
call fcn.523a8484
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
xor edi, edi
cmp eax, edi
jne 0x523a5bf4
mov dword [ebp - 4], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
push edi
push edi
push edi
push 2
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x44], eax
cmp eax, edi
je 0x523a5bb9
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x48], eax
cmp eax, edi
jne 0x523a5bde
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
push ebx
xor ecx, ecx
cmp eax, 8
setne cl
dec ecx
and ecx, 0xe0000011
add ecx, 0xe0000006
push ecx
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0x20], 0
call fcn.523a5bff
mov eax, dword [esi + 0x48]
call fcn.523a84c9
ret