joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ab30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0
mov al, byte [0x4781a4]
mov byte [ebp - 0x110], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push 0x4781a8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ac8d
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0x104
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push str.Folder_P2_
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40abe1
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 0x6ac
call fcn.00407520
mov dword [ebp - 0x114], 0x104
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push str.Server
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ac31
mov byte [ebp - 0xd], 0
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x6b0
call fcn.00407520
mov dword [ebp - 0x114], 0x104
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0
push str.PatchServer
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ac81
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x11c]
add ecx, 0x6b4
call fcn.00407520
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40acae
push 0
push 0
push 5
call fcn.0040c280
add esp, 4
mov ecx, eax
call fcn.00413160
push eax
mov ecx, dword [ebp - 0x11c]
call fcn.004626e6
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40bb30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push edi
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + 0x92a]
test ecx, ecx
je 0x40bb52
lea ecx, [ebp + 8]
call fcn.004069e0
jmp 0x40bbb4
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00413160
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jne 0x40bbac
cmp dword [ebp + 0xc], 1
jne 0x40bbac
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 8]
call fcn.004069e0
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x40be20
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4741dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push edi
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SoftwareGamaSoftMP_Client_MY_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40bea3
push 0
push 0
push 5
call fcn.0040c280
add esp, 4
mov ecx, eax
call fcn.00413160
push eax
mov ecx, dword [ebp - 0xc4]
call fcn.004626e6
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
mov ecx, dword [ebp - 0xc4]
call fcn.00460eaf
jmp 0x40bf15
lea ecx, [ebp - 0xbc]
call fcn.00408450
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.004086d0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xbc]
call fcn.004085e0
movzx edx, al
test edx, edx
jne 0x40bee3
mov eax, dword [ebp - 0xc4]
mov byte [eax + 0x927], 1
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408860
add esp, 4
movzx edx, al
test edx, edx
jne 0x40bf03
mov eax, dword [ebp - 0xc4]
mov byte [eax + 0x927], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.004084e0
mov ecx, dword [ebp - 0xc4]
movzx edx, byte [ecx + 0x927]
test edx, edx
je 0x40bf31
mov ecx, dword [ebp - 0xc4]
call fcn.0040ba80
mov eax, dword [ebp - 0xc4]
movzx ecx, byte [eax + 0x929]
cmp ecx, 1
jne 0x40bf7e
mov edx, dword [ebp - 0xc4]
cmp dword [edx + 0x72c], 0
je 0x40bf7e
mov eax, dword [ebp - 0xc4]
mov byte [eax + 0x929], 0
push 1
mov ecx, dword [ebp - 0xc4]
mov edx, dword [ecx + 0x72c]
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 0x72c]
mov edx, dword [edx]
call dword [edx + 0x10]
lea ecx, [ebp - 0x14]
call fcn.00407420
mov dword [ebp - 4], 1
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x70], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
call fcn.0040ca10
mov eax, dword [eax + 0x44]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
mov edx, dword [ebp - 0xc4]
movsx eax, byte [edx + ecx + 0x73e]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
mov edx, dword [ebp - 0xc4]
mov eax, dword [edx + ecx + 0x756]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str._s__d__s
lea ecx, [ebp - 0x14]
push ecx
call fcn.00408370
add esp, 0x14
push str.Client.exe
mov edx, dword [ebp - 0xc4]
add edx, 0x6ac
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.0040d640
add esp, 0xc
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.00407610
push eax
mov ecx, dword [ebp - 0xcc]
call fcn.00413160
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.004069e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004069e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x41b3a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x48
cmp eax, 1
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 0
jne 0x41b4f5
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x41b3da
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x41b3ef
push eax
call fcn.00460d85
add esp, 4
mov dword [ebx], 0
push 0x10000
push 0
push edi
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x41b4b5
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.WAVE
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x41b430
push 0x47a40c
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x41b50e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41b50e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x41b50e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41b50e
push ebp
call fcn.00460d5a
mov edx, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add esp, 4
xor eax, eax
mov ecx, 0x12
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x10000
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.0041ada0
mov esi, eax
test esi, esi
jge 0x41b4da
mov edx, dword [ebx + 4]
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.0041af30
test eax, eax
jl 0x41b54e
mov ecx, dword [ebx + 0xc]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x30], ecx
pop ebx
add esp, 0x48
ret 0xc
mov edx, dword [esp + 0x5c]
push 0x11002
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x41b51d
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebx
call fcn.0041b240
mov esi, eax
test esi, esi
jge 0x41b547
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.0041af30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
Function at 0x41bc00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xfc]
test byte [eax + 0xc], 1
je 0x41bc5d
mov eax, dword [ebx + 0x6c]
push ebp
xor ebp, ebp
test eax, eax
jbe 0x41bc5c
push esi
push edi
jmp 0x41bc20
mov esi, dword [ebx + 0x7c]
mov edi, dword [ebx + 0x1a0]
xor ecx, ecx
mov cl, byte [esi + ebp]
add esi, ebp
and edi, 0xfffd
or edi, 2
push ecx
mov ecx, ebx
call fcn.0041bb80
mov al, byte [esi]
mov edx, edi
xor edx, 1
imul edx, edi
sar edx, 8
xor al, dl
mov byte [esi], al
mov eax, dword [ebx + 0x6c]
inc ebp
cmp ebp, eax
jb 0x41bc20
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41bc60
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0xfc]
test byte [eax + 0xc], 1
je 0x41bcb8
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
test ebp, ebp
jbe 0x41bcb6
jmp 0x41bc80
mov ecx, dword [edi + 0x1a0]
mov eax, dword [edi + 0x7c]
and ecx, 0xfffd
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
mov cl, byte [eax + esi]
add eax, esi
sar edx, 8
xor cl, dl
mov byte [eax], cl
movsx eax, cl
push eax
mov ecx, edi
call fcn.0041bb80
inc esi
cmp esi, ebp
jb 0x41bc80
pop esi
pop ebp
pop edi
ret 4

Function at 0x41bfc0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x474d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push esi
mov edi, ecx
push 0xc
lea ecx, [esp + 0x18]
call fcn.0041f870
mov eax, dword [esp + 0x14]
push esi
push 0xc
push eax
lea ecx, [edi + 0x84]
mov dword [esp + 0x30], esi
call fcn.00422e20
mov eax, dword [edi + 0x1a0]
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx + esi]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, dl
mov byte [esp + 0xc], bl
mov edx, dword [esp + 0xc]
push edx
mov ecx, edi
call fcn.0041bb80
inc esi
cmp esi, 0xc
jl 0x41c002
mov edi, dword [edi + 0xfc]
mov al, byte [edi + 0xc]
shr al, 3
test al, 1
je 0x41c04f
mov al, byte [edi + 0x11]
jmp 0x41c052
mov al, byte [edi + 0x17]
cmp al, bl
lea ecx, [esp + 0x10]
sete bl
mov dword [esp + 0x24], 0xffffffff
call fcn.0041f8a0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x41e320
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4750f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0041f870
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00422e20
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esi + 0x20], dx
mov word [esp + 0x30], cx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.0041f6b0
mov edx, dword [esi + 4]
mov ecx, 0x4978f8
cmp edx, dword [ecx]
je 0x41e41c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0041f8a0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov eax, dword [edi + 0x50]
movzx ebx, bx
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.0041f6e0
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.00422e20
test bp, bp
je 0x41e460
movzx ebx, bp
push 0
push ebx
lea ecx, [esi + 0x2c]
call fcn.0041f6e0
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.00422e20
mov eax, dword [esp + 0x30]
test ax, ax
je 0x41e485
movzx ebx, ax
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.0041f6e0
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.00422e20
mov ecx, dword [esp + 0x10]
cmp dword [edi + 0x50], ecx
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.0041f8a0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x41f980
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x41f9aa
push str.ZipArchive_Mapping_File
push 0
push 0
push 4
push 0
call fcn.0041f4d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi], eax
jne 0x41f9b0
xor al, al
pop esi
ret 4
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
mov dword [esi + 4], eax
setne cl
mov al, cl
pop esi
ret 4

Function at 0x4208b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x475238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x10]
push edi
lea ebp, [eax + 0x16]
push 0
push ebp
lea ecx, [esp + 0x18]
call fcn.0041f870
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
mov edx, dword [0x49792c]
mov dword [ecx], edx
mov cx, word [ebx + 0x6c]
mov edx, dword [esp + 0x14]
mov word [edx + 4], cx
mov cx, word [ebx + 0x6e]
mov edx, dword [esp + 0x14]
mov word [edx + 6], cx
mov cx, word [ebx + 0x70]
mov edx, dword [esp + 0x14]
mov word [edx + 8], cx
mov cx, word [ebx + 0x72]
mov edx, dword [esp + 0x14]
mov word [edx + 0xa], cx
mov ecx, dword [ebx + 0x74]
mov edx, dword [esp + 0x14]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x14]
mov dword [edx + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov word [ecx + 0x14], ax
mov edi, dword [esp + 0x14]
mov esi, dword [ebx + 0xc]
movzx ecx, ax
mov edx, ecx
shr ecx, 2
add edi, 0x16
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x24]
push ebp
push eax
mov dword [esp + 0x30], 0
call fcn.004226a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041f8a0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x422ef0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x423030
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x423054
mov al, byte [esp + 0xc]
test al, al
je 0x423050
push esi
push 0x71
call fcn.0041ba90
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x4230c0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x475608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push eax
lea ecx, [esp + 0xc]
call fcn.0041c1a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.00423090
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
mov eax, dword [esp + 4]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42312a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004233b0
mov ecx, dword [esp + 0x20]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x423150
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x475630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x40]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x28]
call fcn.0041c1a0
lea ecx, [esp + 0xc]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], ebx
call fcn.00423090
mov edi, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push edi
mov byte [esp + 0x58], 1
call esi
test eax, eax
jne 0x423232
push 0x47a554
lea ecx, [esp + 0x10]
call fcn.0041cea0
push 0x5c
lea ecx, [esp + 0x10]
call fcn.0041c830
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push edi
call esi
test eax, eax
jne 0x423232
lea eax, [edi - 0x10]
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42320d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.004233b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov esi, dword [esp + 0x14]
imul esi, dword [esp + 0x18]
imul esi, dword [esp + 0x1c]
lea eax, [edi - 0x10]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423262
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.004233b0
mov ecx, dword [esp + 0x3c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x423290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push eax
lea ecx, [esp + 0x10]
call fcn.0041c1a0
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00423090
push 0x47a554
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.0041cea0
push 0x5c
lea ecx, [esp + 0xc]
call fcn.0041c830
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
lea eax, [esi - 0x10]
setne bl
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004233b0
mov ecx, dword [esp + 0x24]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x423350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x423369
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.00460d8a
add esp, 4
mov edi, eax
push edi
push esi
mov bl, 1
call ebp
test eax, eax
jne 0x423392
push edi
xor bl, bl
call fcn.00460d85
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00407460
push edi
call fcn.00460d85
add esp, 4
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret
Function at 0x429422
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x47579a
call fcn.0043ca14
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi], 0x47e568
lea eax, [ebp - 0x10]
lea ebx, [esi + 0x3c]
push eax
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.00429868
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0042987f
jmp 0x429478
lea ecx, [ebp - 0x10]
call fcn.00429892
push dword [eax + 4]
mov ecx, esi
call fcn.00428cbe
lea ecx, [ebp - 0x10]
call fcn.00429897
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.004297c5
test al, al
jne 0x42945e
push edi
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.00429199
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, dword [ebp - 0x14]
cmp eax, 0x1388
jae 0x4294bc
mov ecx, ebx
call fcn.004297ba
test al, al
je 0x429494
mov ecx, esi
call fcn.00428db6
push 0x7d0
push esi
call fcn.0042ca8b
pop ecx
pop ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00429868
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0042987f
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004297c5
pop edi
jmp 0x42952a
lea ecx, [ebp - 0x10]
call fcn.00429892
mov eax, dword [eax + 4]
test eax, eax
je 0x429516
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
lea ecx, [ebp - 0x10]
call fcn.00429897
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004297c5
test al, al
jne 0x4294ff
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 3
call fcn.0042b8f0
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0042a2ff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0042ad77
lea ecx, [esi + 8]
mov byte [ebp - 4], 0
call fcn.0042ad7c
mov ecx, esi
call fcn.00428b38
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret