joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415c10
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov esi, dword [esp + 0x120]
push edi
lea eax, [esp + 0x10]
mov ebx, ecx
mov ecx, dword [esi + 8]
push eax
push ecx
call ebp
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esp + 0x128]
jl 0x415c9d
mov ecx, dword [ebx + 0x130]
push eax
call fcn.004169e0
mov ecx, dword [esp + 0x12c]
dec ecx
je 0x415c6f
dec ecx
je 0x415c65
movsx ecx, word [esi + 0x14]
movsx edx, word [esi + 0x16]
jmp 0x415c77
movsx ecx, word [esi + 0x18]
movsx edx, word [esi + 0x1a]
jmp 0x415c77
movsx ecx, word [esi + 0x1c]
movsx edx, word [esi + 0x1e]
push 0xcc0020
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test byte [esi + 3], 2
je 0x415cc9
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x20]
push edx
push 0xff
push 0xd
push eax
call ebx
mov ecx, dword [esi + 8]
push 0
push 0
push 0x31
push ecx
call ebx
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 1
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc

Function at 0x418e70
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
mov edi, ecx
call fcn.00416930
mov eax, dword [edi + 0x320]
mov ecx, dword [eax + ebx*4]
xor ebp, ebp
test ecx, ecx
je 0x418ec1
mov ecx, eax
mov esi, dword [ecx + ebx*4]
test esi, esi
mov ebp, dword [esi + 0x34]
je 0x418eab
mov ecx, esi
call fcn.00418a50
push esi
call fcn.004208cd
add esp, 4
mov edx, dword [edi + 0x320]
push 0
push ebp
mov dword [edx + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x158
call fcn.004208d2
add esp, 4
test eax, eax
je 0x418edc
mov dword [eax], 0
mov esi, eax
jmp 0x418ede
xor esi, esi
mov eax, dword [edi + 0x320]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
and ecx, 1
push ecx
mov dword [eax + ebx*4], esi
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x130], edi
mov dword [esi + 0x44], 1
mov ecx, dword [edi + 0x31c]
push ebp
push ecx
mov ecx, esi
call fcn.00418c90
xor eax, eax
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x41aef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [ebx + 8]
push ebp
push esi
mov esi, eax
and esi, 7
je 0x41af1a
cmp eax, esi
jge 0x41af08
mov eax, ebx
call fcn.0041a740
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, esi
shr edx, cl
sub eax, esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
jle 0x41af4f
mov esi, 0xfffffff8
mov edx, ecx
lea ebx, [ebx]
mov cl, byte [ebx + 0xc]
mov ebp, dword [ebx + 0xc]
mov byte [esp + eax + 8], cl
shr ebp, 8
add edx, esi
inc eax
test edx, edx
mov dword [ebx + 0xc], ebp
jg 0x41af30
cmp eax, 4
mov dword [ebx + 8], edx
jge 0x41af6e
mov edx, dword [ebx + 4]
mov esi, dword [ebx]
cmp esi, edx
jb 0x41af5c
xor ecx, ecx
jmp 0x41af64
mov cl, byte [esi]
inc esi
mov dword [ebx], esi
movzx ecx, cl
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x41af52
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xa]
movzx ebp, ah
movzx edx, al
movzx eax, byte [esp + 0xb]
shl ebp, 8
add ebp, edx
shl eax, 8
mov edx, ebp
add eax, ecx
xor edx, 0xffff
cmp eax, edx
je 0x41afa8
pop esi
mov dword [0x435c88], 0x42d8d0
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add eax, ebp
cmp eax, ecx
jbe 0x41afc3
pop esi
mov dword [0x435c88], 0x42d8bc
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x18]
add ecx, ebp
cmp ecx, eax
push edi
jbe 0x41afe2
mov ecx, ebp
mov edi, ebx
call fcn.0041a780
test eax, eax
jne 0x41afe2
pop edi
pop esi
pop ebp
pop ecx
ret
mov esi, dword [ebx]
mov edi, dword [ebx + 0x10]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add ecx, ebp
add eax, ebp
pop edi
pop esi
mov dword [ebx + 0x10], eax
mov dword [ebx], ecx
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x41fbd0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x422061
push 0x128
push 0x42dc90
call fcn.00428c90
mov eax, dword [0x43455c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x422171
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x422122
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00421eb0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x42210f
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x422171
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x422171
mov al, byte [edi]
cmp al, 0x5c
je 0x422130
cmp al, 0x2f
jne 0x422135
cmp al, byte [edi + 1]
je 0x42216b
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00428b32
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x422171
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00428ad3
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x42218d
push edi
call fcn.004205dd
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00428649
call fcn.00428ccb
ret

Function at 0x41fbf0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
xor edi, edi
test bl, 1
je 0x41fc0c
mov edi, 0x10
test bl, 2
je 0x41fc14
or edi, 6
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41fc3e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
mov esi, dword [esp + 0x15c]
and ebx, 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, edi
cmp eax, edx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x41fc6b
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x41fca9
mov al, byte [esp + 0x40]
test al, al
je 0x41fca9
cmp al, 0x2e
jne 0x41fc8f
mov al, byte [esp + 0x41]
test al, al
je 0x41fca9
cmp al, 0x2e
jne 0x41fc8f
mov al, byte [esp + 0x42]
test al, al
je 0x41fca9
lea edx, [esp + 0x40]
push edx
push esi
inc ebp
call fcn.0040a060
push 0x42d488
push esi
call fcn.0040a060
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41fc50
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x421d57
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x421d85
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x421d8a
cmp eax, 1
je 0x421d8a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x421d8e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43455c]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x421e1e
push ebx
call fcn.00421d57
test eax, eax
pop ecx
jne 0x421df3
mov dword [0x435e1c], 0xf
mov dword [0x435e18], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00428649
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x421e2d
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x421dda
inc eax
cmp eax, 0x104
ja 0x421dda
test edi, edi
mov ecx, edi
jne 0x421e69
cmp eax, dword [ebp + 0xa0]
jg 0x421e4d
mov eax, dword [ebp + 0xa0]
push eax
call fcn.004205cb
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x421e80
mov dword [0x435e18], 0xc
jmp 0x421dda
cmp eax, dword [ebp + 0xa0]
jle 0x421e80
mov dword [0x435e18], 0x22
jmp 0x421dda
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00428520
pop ecx
pop ecx
jmp 0x421ddc
Function at 0x4221ce
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42dca0
call fcn.00428c90
mov edi, 0x94
mov eax, edi
call fcn.00421eb0
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 [0x435e24], ecx
mov eax, dword [esi + 4]
mov dword [0x435e30], eax
mov edx, dword [esi + 8]
mov dword [0x435e34], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x435e28], esi
cmp ecx, 2
je 0x42222e
or esi, 0x8000
mov dword [0x435e28], esi
shl eax, 8
add eax, edx
mov dword [0x435e2c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x422269
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422269
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x422281
cmp eax, 0x20b
je 0x42226e
mov dword [ebp - 0x1c], esi
jmp 0x422295
cmp dword [ecx + 0x84], 0xe
jbe 0x422269
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42228f
cmp dword [ecx + 0x74], 0xe
jbe 0x422269
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00423417
pop ecx
test eax, eax
jne 0x4222c1
cmp dword [0x435e14], 1
jne 0x4222ae
call fcn.00428f5d
push 0x1c
call fcn.00428de5
push 0xff
call fcn.004223aa
pop ecx
pop ecx
call fcn.0042955b
mov dword [ebp - 4], esi
call fcn.00424906
test eax, eax
jge 0x4222da
push 0x1b
call fcn.004221a9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x437454], eax
call fcn.00429439
mov dword [0x435e0c], eax
call fcn.00429397
test eax, eax
jge 0x422300
push 8
call fcn.004221a9
pop ecx
call fcn.00429164
test eax, eax
jge 0x422311
push 9
call fcn.004221a9
pop ecx
push 1
call fcn.004223da
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x422327
push eax
call fcn.004221a9
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00429107
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x422348
movzx eax, word [ebp - 0x40]
jmp 0x42234b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00419650
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x422369
push edi
call fcn.00422505
call fcn.00422527
jmp 0x42239b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00428ccb
ret
Function at 0x422444
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x435e64], esi
push edi
jne 0x422464
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 [0x435e60], esi
mov byte [0x435e5c], al
jne 0x4224ca
mov ecx, dword [0x43744c]
test ecx, ecx
je 0x4224ab
mov eax, dword [0x437448]
sub eax, 4
cmp eax, ecx
jmp 0x4224a4
mov eax, dword [eax]
test eax, eax
je 0x422496
call eax
mov eax, dword [0x437448]
sub eax, 4
cmp eax, dword [0x43744c]
mov dword [0x437448], eax
jae 0x42248e
mov eax, 0x43402c
mov esi, 0x434034
cmp eax, esi
mov edi, eax
jae 0x4224ca
mov eax, dword [edi]
test eax, eax
je 0x4224c3
call eax
add edi, 4
cmp edi, esi
jb 0x4224bb
mov eax, 0x434038
mov esi, 0x434040
cmp eax, esi
mov edi, eax
jae 0x4224e9
mov eax, dword [edi]
test eax, eax
je 0x4224e2
call eax
add edi, 4
cmp edi, esi
jb 0x4224da
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x422503
push dword [ebp + 8]
mov dword [0x435e64], 1
call fcn.004223aa
pop ebp
ret
Function at 0x422ec9
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 [0x437308]
push edi
jae 0x4230a0
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x437320]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4230a0
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x422f74
test dl, 2
jne 0x422f74
test dl, 0x48
je 0x422f3e
cmp byte [eax + 5], 0xa
je 0x422f3e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 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 [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422f87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x422f6f
mov dword [0x435e1c], ecx
jmp 0x4230a7
cmp eax, 0x6d
jne 0x422f7b
xor eax, eax
jmp 0x4230b4
push eax
call fcn.00428ad3
pop ecx
jmp 0x4230b1
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x42309b
test eax, eax
je 0x422fae
cmp byte [ebx], 0xa
jne 0x422fae
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x422fb7
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x423095
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x423085
cmp al, 0xd
je 0x422fe9
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x423077
dec ecx
cmp dword [ebp - 8], ecx
jae 0x423003
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x422ffe
add dword [ebp - 8], 2
jmp 0x423057
mov dword [ebp - 8], eax
jmp 0x423073
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42302b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x423073
cmp dword [ebp - 0x10], 0
je 0x423073
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42304c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x423057
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x423076
cmp ebx, dword [ebp + 0xc]
jne 0x42305c
cmp byte [ebp - 1], 0xa
jne 0x42305c
mov byte [ebx], 0xa
jmp 0x423076
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00429fad
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x423077
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x422fcd
jmp 0x423095
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x423095
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4230b4
and dword [0x435e1c], 0
mov dword [0x435e18], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424ab1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43455c]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x437308]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x424c53
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x437320]
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 - 0x80], ebx
je 0x424c53
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x424b27
xor eax, eax
jmp 0x424c67
test al, 0x20
je 0x424b3a
push 2
push 0
push 0
push ecx
call fcn.00429fad
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x424bcf
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x424c30
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x424b94
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x424b85
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x424b67
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424bf4
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x424bfd
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x424b5c
jmp 0x424bfd
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424bf4
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x424bfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x424c4e
cmp dword [ebp - 0x68], eax
je 0x424c2d
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x424c22
mov dword [0x435e18], 9
mov dword [0x435e1c], eax
jmp 0x424c64
push dword [ebp - 0x68]
call fcn.00428ad3
pop ecx
jmp 0x424c64
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x424c42
cmp byte [edi], 0x1a
je 0x424b20
mov dword [0x435e18], 0x1c
jmp 0x424c5d
sub eax, dword [ebp - 0x7c]
jmp 0x424c67
mov dword [0x435e18], 9
and dword [0x435e1c], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428649
add ebp, 0x3a4
leave
ret
Function at 0x428baa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00421eb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x428c45
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x435e24]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x428c45
cmp eax, 1
je 0x428c66
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x428c45
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x428c12
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x428c41
xor eax, eax
inc eax
jmp 0x428c85
cmp edi, eax
jae 0x428c49
xor eax, eax
jmp 0x428c85
cmp eax, esi
jae 0x428c50
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x435e24]
jmp 0x428c69
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428de5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43455c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4349f0]
je 0x428e1c
inc eax
cmp eax, 0x13
jb 0x428e0d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4349f0]
jne 0x428f3f
mov eax, dword [0x435e14]
cmp eax, 1
je 0x428f1a
cmp eax, edx
jne 0x428e4c
cmp dword [0x434504], 1
je 0x428f1a
cmp ecx, 0xfc
je 0x428f3f
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x428e82
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00428520
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00427360
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x428eb6
mov eax, edi
push eax
call fcn.00427360
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4321a8
push edi
call fcn.00420a20
add esp, 0x10
push edi
call fcn.00427360
push dword [esi + 0x4349f4]
mov ebx, eax
call fcn.00427360
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00421eb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00428520
push edi
push ebx
call fcn.00428530
push 0x432188
push ebx
call fcn.00428530
push dword [esi + 0x4349f4]
push ebx
call fcn.00428530
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042bbc4
add esp, 0x2c
jmp 0x428f3f
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4349f4]
push dword [esi]
call fcn.00427360
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 - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00428649
add ebp, 0x90
leave
ret