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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x41e260]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x21c], eax
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
mov dword [esp + 0x14], esi
jb 0x401cdf
mov eax, dword [esi]
jmp 0x401ce1
mov eax, esi
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401d2e
cmp dword [edi + 0x18], 0x10
jb 0x401d06
mov eax, dword [esi]
jmp 0x401d08
mov eax, esi
lea edx, [esp + 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401d2e
xor al, al
mov ecx, dword [esp + 0x21c]
call fcn.0040bdf8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x401e2d
cmp dword [edi + 0x18], 0x10
mov dword [esp + 0x10], 0
jb 0x401d57
mov esi, dword [esi]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 2
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e2d
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
mov edx, dword [ebx + 0x14]
jb 0x401d87
mov esi, dword [ecx + 4]
jmp 0x401d8a
lea esi, [ecx + 4]
mov ecx, eax
mov ebx, ecx
shr ecx, 2
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x118], bl
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x401db8
mov esi, dword [eax + 4]
jmp 0x401dbb
lea esi, [eax + 4]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x18]
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
mov byte [esp + edx + 0x18], bl
jne 0x401df2
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x128]
push edx
push eax
jmp 0x401e1c
cmp eax, 4
jne 0x401e22
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x10
jb 0x401e08
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x401e0c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov al, 1
call fcn.0040bdf8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405b70
Capabilities:
Access peb ldr_data
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x416e8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [0x41e260]
push ebx
push esi
mov dword [esp + 0x228], eax
push 0x200
lea eax, [esp + 0x2c]
push eax
xor ebx, ebx
push str._USERPROFILE_
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xc], bl
lea edx, [eax + 1]
jmp 0x405bd0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405bd0
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403110
mov esi, dword [esp + 0x23c]
push str.ZDSGGame_
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x240], ebx
call fcn.00405360
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 0x10
jb 0x405c1f
mov eax, dword [esp + 0xc]
push eax
call fcn.0040bd2d
add esp, 4
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x224]
pop ebx
call fcn.0040bdf8
add esp, 0x230
ret
Function at 0x405c50
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x416eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x41e260]
mov dword [esp + 0x38], eax
push ebx
mov eax, dword [esp + 0x64]
xor ebx, ebx
cmp eax, 3
mov dword [esp + 0x48], ebx
ja 0x405c9c
cmp dword [esp + 0x68], 0x10
jb 0x405c95
mov eax, dword [esp + 0x54]
push eax
call fcn.0040bd2d
add esp, 4
xor eax, eax
jmp 0x405de1
push esi
push 2
push ebx
push 0x41841c
lea ecx, [esp + 0x60]
call fcn.00401880
mov esi, eax
cmp esi, 0xffffffff
jne 0x405cd3
cmp dword [esp + 0x6c], 0x10
jb 0x405cc9
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0040bd2d
add esp, 4
mov eax, 1
jmp 0x405de0
push ebp
add esi, 2
cmp esi, 0xffffffff
push edi
mov ebp, 0x10
je 0x405dc9
mov edi, 0xf
jmp 0x405cf0
push 1
push esi
push 0x418314
lea ecx, [esp + 0x68]
call fcn.00401880
mov esi, eax
cmp esi, 0xffffffff
je 0x405dc9
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
push esi
push ebx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 1
call fcn.00403c10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
call fcn.00402e00
cmp dword [esp + 0x28], ebp
mov byte [esp + 0x54], 1
jb 0x405d57
mov eax, dword [esp + 0x14]
push eax
call fcn.0040bd2d
add esp, 4
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jae 0x405d71
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.0040c966
add esp, 8
cmp eax, 0xffffffff
jne 0x405d9a
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x405d8e
lea eax, [esp + 0x30]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405dfa
mov eax, dword [esp + 0x44]
inc esi
cmp eax, ebp
mov byte [esp + 0x54], bl
jb 0x405db4
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0040bd2d
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jne 0x405cf0
cmp dword [esp + 0x74], ebp
jb 0x405ddc
mov edx, dword [esp + 0x60]
push edx
call fcn.0040bd2d
add esp, 4
xor eax, eax
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
pop ebx
call fcn.0040bdf8
add esp, 0x48
ret
lea ecx, [esp + 0x2c]
call fcn.00401e70
lea ecx, [esp + 0x5c]
call fcn.00401e70
mov eax, 1
jmp 0x405dde
Function at 0x407600
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40760b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x407703
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x419860]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x419860]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x419860]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x419860]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x419860]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x419860]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x419860]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x419860]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x407626
test edi, edi
je 0x407722
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x419860]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x407707
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x407b60
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x407ba1
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407b96
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x407bb4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
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 + 0x18]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x18], ecx
pop ebx
ret
Function at 0x408b00
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41e260]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
mov dword [esp + 0x20c], eax
je 0x408bca
mov al, byte [edi]
test al, al
je 0x408bca
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x408b39
cmp al, 0x5c
jne 0x408b3b
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x408b31
cmp esi, edi
push ebx
mov ebx, dword [esp + 0x21c]
je 0x408b70
sub esi, edi
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.0040c9aa
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + esi + 0x20], 0
call fcn.00408b00
add esp, 0x14
lea edx, [esp + 0x110]
mov eax, ebx
sub edx, ebx
pop ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408b80
mov eax, edi
mov edx, edi
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b90
lea edi, [esp + 0x10c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408ba1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x110]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov ecx, dword [esp + 0x20c]
pop edi
call fcn.0040bdf8
add esp, 0x20c
ret

Function at 0x40a800
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40a89e
cmp dword [ebx + 4], 0xffffffff
jne 0x40a89e
push edi
lea edi, [ebx + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a830
mov ax, word [0x418314]
push esi
mov esi, dword [esp + 0x18]
cmp esi, 1
mov word [edi], ax
mov edi, dword [esp + 0x10]
jne 0x40a866
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x40a866
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push edi
call fcn.004079f0
add esp, 0x10
test eax, eax
jne 0x40a888
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.0040a2c0
add esp, 4
pop esi
mov dword [ebx], eax
mov eax, dword [0x41efc4]
pop edi
pop ebx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x40c966
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c986
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411652
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40c9a7
test byte [esp + 8], 2
je 0x40c9a7
mov dword [0x41f0d8], 0xd
mov dword [0x41f0dc], 5
jmp 0x40c982
xor eax, eax
ret

Function at 0x40ce42
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x41a0d0
call fcn.004104f4
mov edi, 0x94
mov eax, edi
call fcn.0040cde0
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 [0x41f0e4], ecx
mov eax, dword [esi + 4]
mov dword [0x41f0f0], eax
mov edx, dword [esi + 8]
mov dword [0x41f0f4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41f0e8], esi
cmp ecx, 2
je 0x40cea2
or esi, 0x8000
mov dword [0x41f0e8], esi
shl eax, 8
add eax, edx
mov dword [0x41f0ec], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40cedb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cedb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40cef3
cmp eax, 0x20b
je 0x40cee0
mov dword [ebp - 0x1c], edi
jmp 0x40cf07
cmp dword [ecx + 0x84], 0xe
jbe 0x40cedb
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40cf01
cmp dword [ecx + 0x74], 0xe
jbe 0x40cedb
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.0040ee31
pop ecx
test eax, eax
jne 0x40cf33
cmp dword [0x41f0d0], 2
je 0x40cf20
call fcn.00411d07
push 0x1c
call fcn.00411b90
push 0xff
call fcn.0040d97d
pop ecx
pop ecx
call fcn.00412453
mov dword [ebp - 4], edi
call fcn.004122a8
test eax, eax
jge 0x40cf4c
push 0x1b
call fcn.0040ce1d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42081c], eax
call fcn.00412186
mov dword [0x41f0c8], eax
call fcn.004120e4
test eax, eax
jge 0x40cf72
push 8
call fcn.0040ce1d
pop ecx
call fcn.00411eb1
test eax, eax
jge 0x40cf83
push 9
call fcn.0040ce1d
pop ecx
push 1
call fcn.0040d9ad
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40cf99
push eax
call fcn.0040ce1d
pop ecx
mov eax, dword [0x41f104]
mov dword [0x41f108], eax
push eax
push dword [0x41f0fc]
push dword [0x41f0f8]
call fcn.00406270
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40cfc8
push esi
call fcn.0040dad8
call fcn.0040dafa
jmp 0x40cffa
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0041052f
ret
Function at 0x40da17
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41f124], esi
push edi
jne 0x40da37
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 [0x41f120], esi
mov byte [0x41f11c], al
jne 0x40da9d
mov ecx, dword [0x420810]
test ecx, ecx
je 0x40da7e
mov eax, dword [0x42080c]
sub eax, 4
cmp eax, ecx
jmp 0x40da77
mov eax, dword [eax]
test eax, eax
je 0x40da69
call eax
mov eax, dword [0x42080c]
sub eax, 4
cmp eax, dword [0x420810]
mov dword [0x42080c], eax
jae 0x40da61
mov eax, 0x41e030
mov esi, 0x41e038
cmp eax, esi
mov edi, eax
jae 0x40da9d
mov eax, dword [edi]
test eax, eax
je 0x40da96
call eax
add edi, 4
cmp edi, esi
jb 0x40da8e
mov eax, 0x41e03c
mov esi, 0x41e044
cmp eax, esi
mov edi, eax
jae 0x40dabc
mov eax, dword [edi]
test eax, eax
je 0x40dab5
call eax
add edi, 4
cmp edi, esi
jb 0x40daad
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40dad6
push dword [ebp + 8]
mov dword [0x41f124], 1
call fcn.0040d97d
pop ebp
ret
Function at 0x4109db
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x41f470]
mov eax, dword [0x41e260]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x410ba1
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x41f480]
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 0x410ba1
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x410a45
xor eax, eax
jmp 0x410bb5
test al, 0x20
je 0x410a56
push 2
push edi
push edi
push ecx
call fcn.004147af
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x410b2b
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x410b72
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x410ab8
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410aa9
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 0x410a8b
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410af8
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x410b04
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x410a7f
jmp 0x410b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x410b9c
cmp dword [ebp + 0x3a4], edi
je 0x410b72
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x410b64
mov dword [0x41f0dc], eax
jmp 0x410ba8
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410b56
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x410b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x410b06
push dword [ebp + 0x3a4]
call fcn.00411652
pop ecx
jmp 0x410bb2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x410b8a
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x410a3e
mov dword [0x41f0d8], 0x1c
mov dword [0x41f0dc], edi
jmp 0x410bb2
sub eax, dword [ebp - 0x7c]
jmp 0x410bb5
and dword [0x41f0dc], 0
mov dword [0x41f0d8], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040bdf8
add ebp, 0x39c
leave
ret
Function at 0x411b90
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41e260]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41ea08]
je 0x411bc5
inc eax
cmp eax, 0x13
jb 0x411bb6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41ea08]
jne 0x411ceb
mov eax, dword [0x41f0d0]
cmp eax, 1
je 0x411cc3
cmp eax, edx
jne 0x411bf5
cmp dword [0x41e2e4], 1
je 0x411cc3
cmp ecx, 0xfc
je 0x411ceb
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411c2b
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00410700
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040dbe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411c5f
mov eax, edi
push eax
call fcn.0040dbe0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a8fc
push edi
call fcn.0040ccb0
add esp, 0x10
push edi
call fcn.0040dbe0
push dword [esi + 0x41ea0c]
mov ebx, eax
call fcn.0040dbe0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040cde0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00410700
push edi
push ebx
call fcn.00410710
push 0x41a8f8
push ebx
call fcn.00410710
push dword [esi + 0x41ea0c]
push ebx
call fcn.00410710
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414435
add esp, 0x2c
jmp 0x411ceb
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41ea0c]
push dword [esi]
call fcn.0040dbe0
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]
mov ecx, dword [ebp + 0x88]
call fcn.0040bdf8
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4126e7
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.0040cde0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412782
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 [0x41f0e4]
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 0x412782
cmp eax, 1
je 0x4127a3
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 0x412782
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41274f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41277e
xor eax, eax
inc eax
jmp 0x4127c2
cmp edi, eax
jae 0x412786
xor eax, eax
jmp 0x4127c2
cmp eax, esi
jae 0x41278d
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 [0x41f0e4]
jmp 0x4127a6
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 0x414435
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41f314], ebx
push esi
push edi
jne 0x4144b5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4144f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41bda0
push edi
call esi
test eax, eax
mov dword [0x41f314], eax
je 0x4144f0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41f318], eax
call esi
cmp dword [0x41f0e4], 2
mov dword [0x41f31c], eax
jne 0x4144b5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41f324], eax
je 0x4144b5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41f320], eax
mov eax, dword [0x41f320]
test eax, eax
je 0x4144fa
call eax
test eax, eax
je 0x4144e1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41f324]
test eax, eax
je 0x4144e1
test byte [ebp - 8], 1
jne 0x4144fa
cmp dword [0x41f0f0], 4
jb 0x4144f4
or byte [ebp + 0x12], 0x20
jmp 0x414519
xor eax, eax
jmp 0x414529
or byte [ebp + 0x12], 4
jmp 0x414519
mov eax, dword [0x41f318]
test eax, eax
je 0x414519
call eax
mov ebx, eax
test ebx, ebx
je 0x414519
mov eax, dword [0x41f31c]
test eax, eax
je 0x414519
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41f314]
pop edi
pop esi
pop ebx
leave
ret