joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404160
Capabilities:
Get common file path
Get hostname

Disassembly:
mov eax, 0x42f364
call fcn.0042f268
mov eax, 0x1c30
call fcn.00410300
push ebx
push esi
xor esi, esi
cmp dword [0x4e2900], 0x5b1
push edi
jne 0x4041e3
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x3c]
call fcn.00404489
push esi
mov dword [ebp - 4], esi
call fcn.00405b5a
pop ecx
call fcn.00404fc3
push 0x403864
lea ecx, [ebp - 0x20]
call fcn.00403c70
lea ecx, [ebp - 0x20]
call fcn.00403c8c
push esi
push esi
call fcn.004056d0
push esi
call fcn.004056a1
add esp, 0xc
call fcn.00404fc8
push esi
call fcn.00405bd6
mov dword [esp], esi
call fcn.00403dbf
fstp st(0)
push esi
call fcn.00405e86
add dword [0x4e2900], 0x1134b
push dword [0x4e2900]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4e1850], eax
call fcn.004040ab
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x40422c
inc edi
cmp edi, 0x4f6a4
jl 0x40420c
xor edi, edi
cmp dword [0x4e2900], esi
jbe 0x404267
cmp dword [0x4e2900], 0xa8
mov eax, dword [0x4e2904]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x4e1850]
mov byte [ecx + edi], al
jne 0x40425e
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
inc edi
cmp edi, dword [0x4e2900]
jb 0x404236
xor edi, edi
mov eax, dword [0x4e2900]
add eax, edi
cmp eax, 0xe
jne 0x4042ad
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push esi
lea eax, [ebp - 0x103c]
push eax
push esi
push 0x403874
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push esi
push esi
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
inc edi
cmp edi, 0x39621
jl 0x404269
call fcn.00403fa4
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x4042c9
call fcn.00404091
inc edi
cmp edi, 0x6753f
jl 0x4042bd
push 0x7b
pop edi
cmp dword [0x4e2900], 0x86
jne 0x404316
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x143c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1c3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x4e2900], 0xf
jne 0x404327
push esi
push esi
push esi
call sub.KERNEL32.dll_SetConsoleDisplayMode
dec edi
jne 0x4042d5
push 0x403894
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404344
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push ebx
push esi
push edi
mov edi, 0x5d744c
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_CharToOemBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
lea eax, [esp + 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsFloatW]
dec edi
jne 0x40435a
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
cmp ebx, edi
jle 0x4043aa
cmp dword [esp + 0x10], 0x785074d5
jne 0x4043b3
inc ebx
cmp ebx, 0x1c1b
jl 0x40438b
cmp dword [0x4e2900], 0x400
jne 0x404401
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push esi
push esi
call fcn.00405647
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403d79
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00403d9c
fstp st(0)
push esi
call fcn.00405ad3
pop ecx
push esi
call fcn.00405923
pop ecx
push esi
push esi
call fcn.0040553b
pop ecx
pop ecx
mov eax, dword [0x4327fc]
mov dword [0x4e2900], eax
mov eax, dword [0x4327d0]
mov dword [0x4e2904], eax
call fcn.00404160
xor ebx, ebx
push 0x4038b4
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x404435
cmp dword [esp + 0x10], 0x785074d5
jne 0x40443e
inc ebx
cmp ebx, 0x11915
jl 0x40441c
mov edi, 0x3078f
cmp dword [0x4e2900], 0x51f
jne 0x40446f
push 0x4038c0
push esi
lea eax, [esp + 0x20]
push eax
push 0x403900
push 0x403918
push 0x403938
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec edi
jne 0x404443
mov eax, dword [0x4e1850]
mov dword [0x4e1e94], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40661b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431178]
jne 0x406625
repz ret
jmp fcn.0040bb4c
Function at 0x40be4d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a2b7
and dword [ebp - 4], 0
cmp dword [0x4333f0], 0
mov ebx, eax
jne 0x40befe
push 0x4024f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bfaf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024e4
push edi
call esi
test eax, eax
je 0x40bfaf
push eax
call fcn.0040a245
mov dword [esp], 0x4024d4
push edi
mov dword [0x4333f0], eax
call esi
push eax
call fcn.0040a245
mov dword [esp], 0x4024c0
push edi
mov dword [0x4333f4], eax
call esi
push eax
call fcn.0040a245
mov dword [esp], 0x4024a4
push edi
mov dword [0x4333f8], eax
call esi
push eax
call fcn.0040a245
pop ecx
mov dword [0x433400], eax
test eax, eax
je 0x40befe
push 0x40248c
push edi
call esi
push eax
call fcn.0040a245
pop ecx
mov dword [0x4333fc], eax
mov eax, dword [0x4333fc]
cmp eax, ebx
je 0x40bf56
cmp dword [0x433400], ebx
je 0x40bf56
push eax
call fcn.0040a2c0
push dword [0x433400]
mov esi, eax
call fcn.0040a2c0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bf56
test edi, edi
je 0x40bf56
call esi
test eax, eax
je 0x40bf4d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf4d
test byte [ebp - 0xc], 1
jne 0x40bf56
or dword [ebp + 0x10], 0x200000
jmp 0x40bf8f
mov eax, dword [0x4333f4]
cmp eax, ebx
je 0x40bf8f
push eax
call fcn.0040a2c0
pop ecx
test eax, eax
je 0x40bf8f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bf8f
mov eax, dword [0x4333f8]
cmp eax, ebx
je 0x40bf8f
push eax
call fcn.0040a2c0
pop ecx
test eax, eax
je 0x40bf8f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4333f0]
call fcn.0040a2c0
pop ecx
test eax, eax
je 0x40bfaf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bfb1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x402b04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404234
test esi, esi
jne 0x402b3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404324
jmp 0x402b58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a18
mov edi, eax
test esi, esi
je 0x402b58
cmp dword [ebx], 0
je 0x402b58
dec esi
jmp 0x402b41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402e48
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49f008], 0x8088405
inc edx
mov dword [ebx + 0x49f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4032d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49f024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403368
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403348
xor eax, eax
push ebp
push 0x403341
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403384
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403348
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49f024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49f024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404034
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a504c], 0
je 0x404095
cmp word [0x4a5220], 0xd7b2
jne 0x40405d
cmp dword [0x4a5228], 0
jbe 0x40405d
mov eax, 0x4a521c
call dword [0x4a5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49f070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4040bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49f034], 0
jne 0x4040b1
push 0
push 0x49f068
push 0x49f070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4041b0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4063f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406456
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004044a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e64
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406440
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40645d
lea eax, [ebp - 0x10]
call fcn.00404234
ret

Function at 0x409208
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046f4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409221
test al, 0x10
jne 0x409225
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40be48
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40be81
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404324
jmp 0x40be8a
mov eax, ebx
mov edx, esi
call fcn.00404288
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40be94
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40beb5
mov al, byte [esp]
jmp 0x40beb7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c53c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c3b4
mov eax, dword [0x4a4338]
cmp byte [eax], 0
je 0x40c5b8
mov eax, dword [0x4a3f94]
call fcn.00402c84
call fcn.00402944
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409428
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c600
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c5ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a3f04]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a5668]
call fcn.004058c0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cea8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cf7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042cc
lea eax, [ebp - 8]
call fcn.00404744
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf68
mov eax, ebx
call fcn.004027dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf4b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf4b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf68
mov eax, dword [ebp - 0x10]
call fcn.004027fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf85
lea eax, [ebp - 8]
call fcn.00404234
ret

Function at 0x40d4fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d560
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e68
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d567
lea eax, [ebp - 0xc]
call fcn.00404234
ret

Function at 0x4210e8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00420f40
dec esi
jne 0x42110a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42224c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a588c
cmp dword [edi], 0
jne 0x4222c8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a5888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49f5a4
mov ecx, 2
call fcn.004029d8
mov edx, 0x422224
lea eax, [esi + 5]
call fcn.00422244
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422244
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42229d
mov dword [0x4a5888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42381c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x423822
ret

Function at 0x425c70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x425cc1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x425ca8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x425c98
jmp 0x425cc1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x425ca9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430f68
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4310d1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004042cc
mov eax, dword [ebp - 0x10]
call fcn.00430bf4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x430fba
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404794
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00431340
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x43108f
xor eax, eax
push ebp
push 0x431088
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00430d64
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004310e0
test al, al
je 0x431066
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404324
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x431066
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004046f4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x431060
mov eax, dword [ebp - 0x14]
call fcn.004046f4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040442c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00430f68
dec ebx
cmp ebx, 0xffffffff
jne 0x431019
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43108f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00430d64
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004046f4
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00430d50
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4310d8
lea eax, [ebp - 0x3c]
call fcn.00404234
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404258
ret
Function at 0x43108f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4310d1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004042cc
mov eax, dword [ebp - 0x10]
call fcn.00430bf4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x430fba
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404794
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00431340
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x43108f
xor eax, eax
push ebp
push 0x431088
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00430d64
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004310e0
test al, al
je 0x431066
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404324
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x431066
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004046f4
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x431060
mov eax, dword [ebp - 0x14]
call fcn.004046f4
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040442c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00430f68
dec ebx
cmp ebx, 0xffffffff
jne 0x431019
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43108f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00430d64
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.004046f4
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00430d50
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4310d8
lea eax, [ebp - 0x3c]
call fcn.00404234
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404258
ret

Function at 0x4310e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402e28
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4a4508]
cmp byte [edx + 0xc], 0
je 0x431144
mov edx, dword [0x4a44f8]
cmp dword [edx], 2
jne 0x431144
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret