joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422fe0
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1404
call fcn.00422270
cmp dword [0x7ef160], 0x37
jne 0x42309f
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x4044a8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x408]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4044c8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x404500
push 0
lea ecx, [esp + 0xc0c]
push ecx
push 0x404518
push 0x404540
push 0x404578
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ecx, dword [0x7ef164]
mov eax, dword [0x7eb5d0]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1404
ret
Function at 0x402110
Capabilities:
Get common file path
Terminate process

Disassembly:
push edi
push 0x441460
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x441460
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402127
mov eax, dword [str.config.ini]
mov ecx, dword [0x436844]
mov edx, dword [0x436848]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
call fcn.004010d0
push 0x441460
call fcn.00421a30
add esp, 4
test eax, eax
pop edi
jne 0x402169
call fcn.004019b0
call fcn.004010d0
push str._setup
call fcn.004021e0
add esp, 4
test eax, eax
je 0x402186
call fcn.00402100
push 0
call fcn.0042b1b4
mov eax, dword [0x4418dc]
test eax, eax
je 0x402199
call fcn.004020e0
jmp fcn.004019b0
ret

Function at 0x4021a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4021d7
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
push ebx
push edi
movzx edi, byte [ecx]
movzx edx, ax
xor ebx, ebx
mov bh, al
shr edx, 8
xor edx, edi
xor eax, eax
mov ax, word [edx*2 + 0x43f080]
xor ax, bx
inc ecx
dec esi
jne 0x4021b3
pop edi
pop ebx
pop esi
ret
mov ax, word [esp + 0x10]
pop esi
ret

Function at 0x402270
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x20844ac]
push 0
push 0x436851
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x4022a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x408
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareCLASSESCLSID72C33BB5_7A28_4E74_B083_AF9FE31F58B7ProgID
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40232c
mov ecx, dword [esp + 0x40c]
mov edx, 0xe10
sub edx, ecx
push edx
lea eax, [esp + 0xc]
push 0x43681c
push eax
call fcn.0042b005
lea eax, [esp + 0x14]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402300
sub eax, edx
mov edx, dword [esp]
inc eax
push eax
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x408
ret

Function at 0x4025f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x400
call fcn.0040a8b0
call fcn.00402380
mov ecx, dword [esp + 0x404]
lea eax, [esp + 0x408]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.0042b1f4
add esp, 0xc
push 0x10
push 0x4368b0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.0042b1b4
int3

Function at 0x402640
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
test edi, edi
jle 0x402679
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x1c]
lea ebx, [ebx]
lea eax, [ecx + ebx]
cdq
idiv dword [esp + 0x20]
mov al, byte [edx + ebp]
mov dl, byte [esi]
xor dl, al
inc ecx
mov byte [esi], dl
inc esi
cmp ecx, edi
jl 0x402660
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x4027b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6a8
push ebx
push ebp
push esi
push edi
push str._n_____Initializing_file_system______n_n
mov dword [0x4419e8], 0
call fcn.0040ea90
add esp, 4
lea eax, [esp + 0x20]
push eax
push str.data.apk
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402803
push str.F_Init:_No_data_files_were_found._n_n
call fcn.0040ea90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea esp, [esp]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x164]
push str.data_s
push edx
call fcn.0042b005
lea eax, [esp + 0x58]
push eax
push str.___s
call fcn.0040ea90
lea ecx, [esp + 0x174]
push ecx
call fcn.00402680
add esp, 0x18
test eax, eax
je 0x40285a
push eax
push str.____i_files_n
call fcn.0040ea90
add esp, 8
jmp 0x402867
push str.___corrupted_n
call fcn.0040ea90
add esp, 4
lea edx, [esp + 0x20]
push edx
push esi
call edi
test eax, eax
jne 0x402810
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x4419e8]
push eax
push str.F_Init:__n_i_data_files_found._n_n
call fcn.0040ea90
mov eax, dword [0x4419e8]
add esp, 8
dec eax
test eax, eax
jle 0x402941
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
test ecx, ecx
jle 0x40292d
mov ebp, 0x441e3c
mov dword [esp + 0x18], ecx
lea edx, [ebp - 0x44c]
mov esi, ebp
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x4028e4
test cl, cl
je 0x4028e0
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x4028e4
add eax, 2
add esi, 2
test cl, cl
jne 0x4028c0
xor eax, eax
jmp 0x4028e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jge 0x402918
mov ecx, 0x113
mov esi, edx
lea edi, [esp + 0x268]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x113
mov esi, ebp
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x113
lea esi, [esp + 0x268]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
add ebp, 0x44c
dec eax
mov dword [esp + 0x18], eax
jne 0x4028b6
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
dec ecx
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
jne 0x4028a5
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4031d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
xor ecx, ecx
test edi, edi
push esi
mov esi, eax
jle 0x4031f4
mov edi, edi
mov eax, ecx
cdq
idiv ebx
mov al, byte [edx + ebp]
mov dl, byte [esi]
xor dl, al
inc ecx
mov byte [esi], dl
inc esi
cmp ecx, edi
jl 0x4031e0
pop esi
pop ebp
ret
Function at 0x4087d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov al, byte [ebx + 0x1e4]
mov byte [0x4e53bc], al
mov byte [0x4e53b4], 0
call fcn.00405750
call fcn.00428b50
push 0x3d4ccccd
call fcn.00405b30
call fcn.00405890
call fcn.004038d0
push 0x3d4ccccd
call fcn.00405b30
call fcn.00407f30
push ebx
call fcn.0040af00
mov al, byte [ebx + 0x1c9]
add esp, 0xc
test al, al
je 0x408846
mov ecx, dword [ebx + 0x1e0]
mov edx, dword [ebx + 0x1dc]
push ecx
push edx
lea eax, [ebx + 0x1cc]
push eax
call fcn.004114b0
add esp, 0xc
jmp 0x40884b
call fcn.00411560
mov eax, dword [0x5653f0]
push ebp
xor ebp, ebp
test eax, eax
jle 0x408904
push esi
push edi
mov edi, 0x4e53f0
mov ecx, dword [edi + 0x10]
push ecx
call fcn.004083f0
movzx esi, word [edi]
imul esi, esi, 0x3604
add esi, 0x565400
mov edx, dword [esi + 0x3600]
push edx
call fcn.00420d20
mov cl, byte [esi + 0x44]
lea eax, [esi + 0x44]
add esp, 8
test cl, cl
je 0x40889f
push eax
call fcn.004167c0
add esp, 4
mov dword [edi + 0x14], eax
mov cl, byte [esi + 0x84]
test cl, cl
lea eax, [esi + 0x84]
je 0x4088bb
push eax
call fcn.0041c380
add esp, 4
mov dword [edi + 0x18], eax
movzx eax, byte [edi + 6]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push eax
mov eax, dword [esi + 0x110]
push ecx
push edx
push eax
call fcn.00419680
add esp, 0xc
fild dword [0x5653f0]
mov dword [edi + 0x1c], eax
fdivr qword [0x437040]
fstp dword [esp]
call fcn.00405b30
mov eax, dword [0x5653f0]
add esp, 4
inc ebp
add edi, 0x20
cmp ebp, eax
jl 0x408862
pop edi
pop esi
call fcn.00417ef0
push 0x3cf5c28f
call fcn.00405b30
call fcn.00405b90
call fcn.0040dce0
push 0x3cf5c28f
call fcn.00405b30
add esp, 8
call fcn.0040e6a0
call fcn.004213f0
mov al, byte [0x4e53bc]
test al, al
pop ebp
jne 0x408962
mov al, byte [0x4e53ea]
test al, al
push 0
je 0x40895a
call fcn.0040d580
push 1
call fcn.0040d580
add esp, 8
jmp 0x408962
call fcn.0040d580
add esp, 4
mov dword [0x4e1284], 0
mov dword [0x4e5288], 0x4e53f0
mov dl, byte [ebx + 0x1c8]
xor ecx, ecx
test dl, dl
setne cl
xor edx, edx
push 0x3cf5c28f
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fstp dword [0x4e1280]
mov cl, byte [ebx + 0x140]
test cl, cl
setne dl
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fstp dword [0x4e528c]
mov eax, dword [ebx + 0x1c0]
mov dword [0x4e5294], eax
mov dword [0x4418f0], 0
call fcn.00405b30
call fcn.00408090
call fcn.00407370
push 0x2081820
call fcn.004120f0
mov ecx, dword [0x4e5298]
add ecx, 0x90
push 0
push ecx
call fcn.00421530
mov al, byte [0x4e53bc]
add esp, 0x10
test al, al
pop ebx
jne 0x408a11
mov edx, dword [0x4e529c]
push 0
push edx
call fcn.00421ef0
add esp, 8
ret
Function at 0x410310
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
mov eax, dword [0x2084c30]
mov ecx, dword [eax + 0x404]
push ecx
push eax
push 0x438650
call fcn.0042be0b
add esp, 0x10
push 0xffffffffffffffff
call fcn.0042b1b4
int3
Function at 0x42b0f2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x21b06c0], esi
push edi
jne 0x42b112
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x21b06bc], esi
mov byte [0x21b06b8], al
jne 0x42b178
mov ecx, dword [0x21b1c5c]
test ecx, ecx
je 0x42b159
mov eax, dword [0x21b1c58]
sub eax, 4
cmp eax, ecx
jmp 0x42b152
mov eax, dword [eax]
test eax, eax
je 0x42b144
call eax
mov eax, dword [0x21b1c58]
sub eax, 4
cmp eax, dword [0x21b1c5c]
mov dword [0x21b1c58], eax
jae 0x42b13c
mov eax, 0x43f028
mov esi, 0x43f030
cmp eax, esi
mov edi, eax
jae 0x42b178
mov eax, dword [edi]
test eax, eax
je 0x42b171
call eax
add edi, 4
cmp edi, esi
jb 0x42b169
mov eax, 0x43f034
mov esi, 0x43f038
cmp eax, esi
mov edi, eax
jae 0x42b197
mov eax, dword [edi]
test eax, eax
je 0x42b190
call eax
add edi, 4
cmp edi, esi
jb 0x42b188
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x42b1b2
push dword [ebp + 8]
mov dword [0x21b06c0], 1
call fcn.0042b05d
pop ecx
pop ebp
ret
Function at 0x42c27a
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x43c238
call fcn.00431158
mov edi, 0x94
mov eax, edi
call fcn.0042bcd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x21b0680], ecx
mov eax, dword [esi + 4]
mov dword [0x21b068c], eax
mov edx, dword [esi + 8]
mov dword [0x21b0690], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x21b0684], esi
cmp ecx, 2
je 0x42c2da
or esi, 0x8000
mov dword [0x21b0684], esi
shl eax, 8
add eax, edx
mov dword [0x21b0688], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42c315
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c315
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42c32d
cmp eax, 0x20b
je 0x42c31a
mov dword [ebp - 0x1c], esi
jmp 0x42c341
cmp dword [ecx + 0x84], 0xe
jbe 0x42c315
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42c33b
cmp dword [ecx + 0x74], 0xe
jbe 0x42c315
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0042e343
pop ecx
test eax, eax
jne 0x42c36d
cmp dword [0x21b06cc], 1
jne 0x42c35a
call fcn.00430b4c
push 0x1c
call fcn.004309d5
push 0xff
call fcn.0042b05d
pop ecx
pop ecx
call fcn.0042e107
mov dword [ebp - 4], esi
call fcn.004306fa
test eax, eax
jge 0x42c386
push 0x1b
call fcn.0042c255
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x21b1c50], eax
call fcn.00431034
mov dword [0x21b06c4], eax
call fcn.00430f92
test eax, eax
jge 0x42c3ac
push 8
call fcn.0042c255
pop ecx
call fcn.00430d5f
test eax, eax
jge 0x42c3bd
push 9
call fcn.0042c255
pop ecx
call fcn.0042b08d
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x42c3d0
push eax
call fcn.0042c255
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00430cf6
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x42c3f1
movzx eax, word [ebp - 0x34]
jmp 0x42c3f4
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00402450
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42c412
push edi
call fcn.0042b1b4
call 0x907b1d6
push dword [ecx + 2]
pop edi
add edi, ebx
add edx, edx
mov esi, dword [ecx + 0xa]
add edx, ebx
push cs
test ecx, ecx
je 0x42c42b
call ecx
add esi, 4
cmp esi, dword [ebp + 0xc]
jb 0x42c41f
pop esi
call dword [esp + 0x5c]
dec edx
invalid
Function at 0x42efb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x21b0ae0]
push edi
jae 0x42f177
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x21b0b00]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x42f177
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x42f056
test dl, 2
jne 0x42f056
test dl, 0x48
je 0x42f020
mov al, byte [eax + 5]
cmp al, 0xa
je 0x42f020
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42f069
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x42f051
mov dword [0x21b0678], ecx
jmp 0x42f17e
cmp eax, 0x6d
jne 0x42f05d
xor eax, eax
jmp 0x42f18b
push eax
call fcn.00430976
pop ecx
jmp 0x42f188
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42f172
test edx, edx
je 0x42f08c
cmp byte [edi], 0xa
jne 0x42f08c
or al, 4
jmp 0x42f08e
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x42f16c
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x42f15c
cmp al, 0xd
je 0x42f0c2
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x42f14e
dec ecx
cmp dword [ebp - 8], ecx
jae 0x42f0dc
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x42f0d7
add dword [ebp - 8], 2
jmp 0x42f130
mov dword [ebp - 8], eax
jmp 0x42f14a
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42f104
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42f14a
cmp dword [ebp - 0x10], 0
je 0x42f14a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x42f125
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42f130
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x42f14d
cmp edi, dword [ebp + 0xc]
jne 0x42f135
cmp byte [ebp - 1], 0xa
jne 0x42f135
mov byte [edi], 0xa
jmp 0x42f14d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042e18f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42f14e
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x42f0a6
jmp 0x42f16c
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x42f16c
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x42f18b
and dword [0x21b0678], 0
mov dword [0x21b0674], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42f85e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x440f30]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x21b0ae0]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x42f9ee
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x21b0b00]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x42f9ee
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x42f8bd
xor eax, eax
jmp 0x42fa02
test al, 0x20
je 0x42f8ce
push 2
push edi
push edi
push ecx
call fcn.00432e80
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42f98a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x42f9c2
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x42f924
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42f915
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x42f8fa
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42f964
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x42f96d
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x42f8ee
jmp 0x42f96f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x42f9e9
cmp dword [ebp + 8], edi
je 0x42f9c2
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x42f9b7
mov dword [0x21b0678], eax
jmp 0x42f9f5
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42f9ac
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x42f96f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x42f96f
push dword [ebp + 8]
call fcn.00430976
pop ecx
jmp 0x42f9ff
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42f9d7
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x42f8b6
mov dword [0x21b0674], 0x1c
mov dword [0x21b0678], edi
jmp 0x42f9ff
sub eax, dword [ebp - 0x14]
jmp 0x42fa02
and dword [0x21b0678], 0
mov dword [0x21b0674], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00431472
leave
ret
Function at 0x4309d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x440f30]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x440e18]
je 0x430a02
inc eax
cmp eax, 0x12
jb 0x4309f3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x440e18]
jne 0x430b36
mov eax, dword [0x21b06cc]
cmp eax, 1
je 0x430b11
cmp eax, edx
jne 0x430a32
cmp dword [0x440984], 1
je 0x430b11
cmp ecx, 0xfc
je 0x430b36
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x430a6b
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00432270
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0042d040
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x430aad
lea eax, [ebp - 0x10c]
push eax
call fcn.0042d040
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x43cbc0
push edi
call fcn.00433cc0
add esp, 0x10
push edi
call fcn.0042d040
push dword [esi + 0x440e1c]
mov ebx, eax
call fcn.0042d040
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042bcd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00432270
push edi
push ebx
call fcn.00432280
push 0x43cba0
push ebx
call fcn.00432280
push dword [esi + 0x440e1c]
push ebx
call fcn.00432280
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00433bbf
add esp, 0x2c
jmp 0x430b36
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x440e1c]
push dword [esi]
call fcn.0042d040
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00431472
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431370
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042bcd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x431405
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x21b0680]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x431405
cmp eax, 1
je 0x43141d
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x431405
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4313da
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x431401
xor eax, eax
inc eax
jmp 0x431439
cmp esi, ebx
jae 0x431409
xor eax, eax
jmp 0x431439
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x21b0680]
jmp 0x43141f
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433bbf
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x21b087c], ebx
push esi
push edi
jne 0x433c3f
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x433c7a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43ccec
push edi
call esi
test eax, eax
mov dword [0x21b087c], eax
je 0x433c7a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x21b0880], eax
call esi
cmp dword [0x21b0680], 2
mov dword [0x21b0884], eax
jne 0x433c3f
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x21b088c], eax
je 0x433c3f
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x21b0888], eax
mov eax, dword [0x21b0888]
test eax, eax
je 0x433c84
call eax
test eax, eax
je 0x433c6b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x21b088c]
test eax, eax
je 0x433c6b
test byte [ebp - 8], 1
jne 0x433c84
cmp dword [0x21b068c], 4
jb 0x433c7e
or byte [ebp + 0x12], 0x20
jmp 0x433ca3
xor eax, eax
jmp 0x433cb3
or byte [ebp + 0x12], 4
jmp 0x433ca3
mov eax, dword [0x21b0880]
test eax, eax
je 0x433ca3
call eax
mov ebx, eax
test ebx, ebx
je 0x433ca3
mov eax, dword [0x21b0884]
test eax, eax
je 0x433ca3
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x21b087c]
pop edi
pop esi
pop ebx
leave
ret