joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b7
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 1], 0x3a
jne 0x4013f1
cmp byte [eax + 2], 0x5c
jne 0x4013f1
push esi
push 3
push eax
mov esi, 0x4329cc
push esi
call fcn.00415100
and byte [0x4329cf], 0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
pop esi
jne 0x4013f1
xor eax, eax
inc eax
ret
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401460
test al, 0x10
je 0x401460
xor eax, eax
inc eax
jmp 0x401525
push ebx
push esi
push 0x8000
push edi
call fcn.00415825
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, eax
cmp esi, 0xffffffff
pop ecx
pop ecx
je 0x4014c5
push 2
push 0
push esi
call fcn.00415493
push esi
mov dword [0x429840], eax
call fcn.00415384
add esp, 0x10
cmp dword [0x429840], 0x7fff8000
jbe 0x4014c1
movsx eax, byte [0x429bb1]
push eax
push eax
push eax
push edi
lea eax, [ebp - 0x168]
push str.Size_of_file___s__exceeds_2_c147_c450_c880_bytes_CAB_limit
push eax
call fcn.004152a9
add esp, 0x18
jmp 0x4014ff
xor eax, eax
jmp 0x401523
push edi
lea eax, [ebp - 0x168]
push str.Cant_open__s_n
push eax
call fcn.004152a9
add esp, 0xc
call fcn.00415224
mov eax, dword [eax]
dec eax
dec eax
je 0x4014f1
sub eax, 0xb
jne 0x4014c1
push str.Permission_denied
jmp 0x4014f6
push str.File_not_exist
lea eax, [ebp - 0x168]
push eax
call ebx
push str.._nSkip_this_file_
lea eax, [ebp - 0x168]
push eax
call ebx
push 0x24
pop edx
lea ecx, [ebp - 0x168]
call fcn.004011a2
sub eax, 6
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x405006
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00404734
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004046e9
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
Function at 0x40792c
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
push esi
mov byte [0x4297e8], 1
call fcn.00416045
test eax, eax
pop ecx
pop ecx
push esi
jne 0x40794f
call fcn.0040550d
jmp 0x407954
call fcn.0040724a
mov esi, eax
test esi, esi
pop ecx
jne 0x407a4a
cmp dword [0x432888], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
push edi
mov ebp, 0x80
jle 0x407999
mov eax, dword [0x432884]
mov ecx, dword [0x432880]
add eax, esi
mov edi, dword [ecx + eax*4]
push ebp
push edi
call ebx
push edi
call fcn.0041730b
inc esi
cmp esi, dword [0x432888]
pop ecx
jl 0x407975
xor esi, esi
cmp dword [0x432748], esi
jle 0x4079c7
mov eax, dword [0x432744]
mov ecx, dword [0x432740]
add eax, esi
mov edi, dword [ecx + eax*4]
push ebp
push edi
call ebx
push edi
call fcn.0041730b
inc esi
cmp esi, dword [0x432748]
pop ecx
jl 0x4079a3
and dword [esp + 0x10], 0
cmp dword [0x429548], 0
jle 0x407a43
mov esi, 0x429ce0
mov eax, dword [0x429544]
mov ecx, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [0x429540]
mov edi, dword [ecx + eax*4]
add edi, dword [0x429558]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 7]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
push esi
mov dword [0x42983c], eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x407a33
push dword [0x42983c]
push esi
call ebx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [0x429548]
jl 0x4079da
pop edi
pop ebp
xor eax, eax
pop ebx
jmp 0x407a4c
mov eax, esi
pop esi
pop ecx
ret
Function at 0x407dc6
Capabilities:
Get common file path

Disassembly:
sub esp, 0x118
cmp byte [0x429409], 1
push esi
mov esi, 0x429560
jg 0x407df1
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x407df1
inc eax
jmp 0x407ec6
cmp byte [0x429409], 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x407e19
push dword [esp + 0x124]
push esi
call ebx
push 0x5c
push esi
call fcn.00415070
and byte [eax + 1], 0
pop ecx
pop ecx
cmp byte [0x429409], 0
jne 0x407e85
push ebp
push esi
call fcn.0040130f
mov ebp, edx
test ebp, ebp
pop ecx
mov dword [esp + 0xc], eax
ja 0x407e84
jb 0x407e3d
cmp eax, 0x7ffb0000
jae 0x407e84
push edi
push dword [esp + 0x12c]
call fcn.0040130f
pop ecx
push 0
push 2
push ebp
push dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov edi, edx
call fcn.00414f00
cmp edx, edi
pop edi
ja 0x407e84
jb 0x407e6c
cmp eax, dword [esp + 0x14]
jae 0x407e84
push dword [esp + 0x128]
push esi
call ebx
push 0x5c
push esi
call fcn.00415070
and byte [eax + 1], 0
pop ecx
pop ecx
pop ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x407ea2
inc eax
jmp 0x407ec5
lea ecx, [esp + 0x1c]
call fcn.00402b30
push 0x42322c
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
xor eax, eax
pop ebx
pop esi
add esp, 0x118
ret
Function at 0x40c150
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x40c18b
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x40c168
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40c1a7
dec esi
je 0x40c1a0
dec esi
jne 0x40c1ac
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x40d540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], al
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
jne 0x40d588
mov ecx, 0x2000
lea edi, [esi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], eax
call fcn.0040cfbe
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], 0
mov ecx, 0x8000
push 2
mov word [ebx + 0x3c], cx
mov dword [ebx + 0x34], ecx
add eax, ecx
pop edx
movzx edi, byte [eax]
mov esi, dword [ebx + 0x20]
shl esi, 5
xor esi, edi
and esi, 0x7fff
inc eax
dec edx
mov dword [ebx + 0x20], esi
jne 0x40d5ac
cmp byte [ebp + 0x24], 0
je 0x40d5d3
mov edi, ebx
call fcn.0040ce20
jmp 0x40d5e2
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x40d5d5
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.0040c2a4
push 0x4b
pop edx
call fcn.0040c2a4
call fcn.0040d2e3
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x40d61c
mov edi, dword [ebx + 0x14]
mov ecx, 0x2000
lea esi, [edi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x415dcd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x415f93
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4350a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x415f93
test cl, 0x48
je 0x415e33
mov al, byte [eax + 5]
cmp al, 0xa
je 0x415e33
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415e85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x415e6d
call fcn.00415224
mov dword [eax], 9
call fcn.0041522d
mov dword [eax], esi
jmp 0x415e7d
cmp eax, 0x6d
je 0x415f93
push eax
call fcn.00415236
pop ecx
or eax, 0xffffffff
jmp 0x415f95
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x415f8e
test edx, edx
je 0x415ea8
cmp byte [ebx], 0xa
jne 0x415ea8
or al, 4
jmp 0x415eaa
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x415f88
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x415f78
cmp al, 0xd
je 0x415ede
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x415f6a
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x415ef8
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x415ef3
add dword [ebp + 0x10], 2
jmp 0x415f4c
mov dword [ebp + 0x10], eax
jmp 0x415f66
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x415f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x415f66
cmp dword [ebp - 0xc], 0
je 0x415f66
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x415f41
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x415f4c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x415f69
cmp ebx, dword [ebp + 0xc]
jne 0x415f51
cmp byte [ebp - 1], 0xa
jne 0x415f51
mov byte [ebx], 0xa
jmp 0x415f69
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041541f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x415f6a
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x415ec2
jmp 0x415f88
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x415f88
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x415f95
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416045
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x416065
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00415236
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x416088
test byte [esp + 8], 2
je 0x416088
call fcn.00415224
mov dword [eax], 0xd
call fcn.0041522d
mov dword [eax], 5
jmp 0x416061
xor eax, eax
ret
Function at 0x416144
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4279e4]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x41616d
xor eax, eax
jmp 0x4162db
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4350a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4161a0
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041a82d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x416272
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4162ad
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4161fb
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4161ec
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4161cf
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41623b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x416244
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4161c0
jmp 0x416246
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4162d6
cmp dword [ebp - 8], edi
je 0x4162ad
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x41629f
call fcn.00415224
mov dword [eax], 9
call fcn.0041522d
mov dword [eax], esi
jmp 0x4162a8
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416294
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x416246
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x416246
push dword [ebp - 8]
call fcn.00415236
pop ecx
or eax, 0xffffffff
jmp 0x4162d9
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4162c2
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4162c2
xor eax, eax
jmp 0x4162d9
call fcn.00415224
mov dword [eax], 0x1c
call fcn.0041522d
mov dword [eax], edi
jmp 0x4162a8
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0041a8e1
leave
ret
Function at 0x4191cc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00415d90
mov eax, dword [0x4279e4]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0041541f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4192f6
push 2
push esi
push dword [ebp + 8]
call fcn.0041541f
add esp, 0xc
cmp eax, ebx
je 0x4192f6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x419299
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004150a0
push 0x8000
push dword [ebp + 8]
call fcn.0041c3f8
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x419252
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00416144
add esp, 0xc
cmp eax, 0xffffffff
je 0x419272
sub edi, eax
test edi, edi
jg 0x41924a
jmp 0x41928a
call fcn.0041522d
cmp dword [eax], 5
jne 0x419287
call fcn.00415224
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0041c3f8
pop ecx
pop ecx
jmp 0x4192e1
jge 0x4192e1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041541f
push dword [ebp + 8]
call fcn.00418f5a
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4192e1
call fcn.00415224
mov dword [eax], 0xd
call fcn.0041522d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0041541f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4192f8
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0041a8e1
leave
ret

Function at 0x4193ae
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00419c53
xor esi, esi
inc esi
cmp dword [0x42901c], esi
pop ecx
jne 0x4193d6
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 [0x429018], esi
mov byte [0x429014], al
jne 0x41943c
mov ecx, dword [0x43508c]
test ecx, ecx
je 0x41941d
mov eax, dword [0x435088]
sub eax, 4
cmp eax, ecx
jmp 0x419416
mov eax, dword [eax]
test eax, eax
je 0x419408
call eax
mov eax, dword [0x435088]
sub eax, 4
cmp eax, dword [0x43508c]
mov dword [0x435088], eax
jae 0x419400
mov eax, 0x427020
mov esi, 0x427028
cmp eax, esi
mov edi, eax
jae 0x41943c
mov eax, dword [edi]
test eax, eax
je 0x419435
call eax
add edi, 4
cmp edi, esi
jb 0x41942d
mov eax, 0x42702c
mov esi, 0x427030
cmp eax, esi
mov edi, eax
jae 0x41945b
mov eax, dword [edi]
test eax, eax
je 0x419454
call eax
add edi, 4
cmp edi, esi
jb 0x41944c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x41946c
push 8
call fcn.00419bbf
jmp 0x41947e
push dword [ebp + 8]
mov dword [0x42901c], 1
call fcn.00419307
pop ecx
pop ebp
ret
Function at 0x41abc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4279e4]
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 + 0x427a70]
je 0x41abed
inc eax
cmp eax, 0x12
jb 0x41abde
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x427a70]
jne 0x41ad21
mov eax, dword [0x428fc4]
cmp eax, 1
je 0x41acfc
cmp eax, edx
jne 0x41ac1d
cmp dword [0x427474], 1
je 0x41acfc
cmp ecx, 0xfc
je 0x41ad21
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 0x41ac56
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0041b960
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0041bb20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ac98
lea eax, [ebp - 0x10c]
push eax
call fcn.0041bb20
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x424c94
push edi
call fcn.00415100
add esp, 0x10
push edi
call fcn.0041bb20
push dword [esi + 0x427a74]
mov ebx, eax
call fcn.0041bb20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00415d90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041b960
push edi
push ebx
call fcn.0041b970
push 0x4239a4
push ebx
call fcn.0041b970
push dword [esi + 0x427a74]
push ebx
call fcn.0041b970
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041c843
add esp, 0x2c
jmp 0x41ad21
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x427a74]
push dword [esi]
call fcn.0041bb20
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.0041a8e1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b407
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.00415d90
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b49c
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 [0x428fdc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x41b49c
cmp eax, 1
je 0x41b4b4
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 0x41b49c
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x41b471
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x41b498
xor eax, eax
inc eax
jmp 0x41b4d0
cmp esi, ebx
jae 0x41b4a0
xor eax, eax
jmp 0x41b4d0
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x428fdc]
jmp 0x41b4b6
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 0x41c843
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x429324], ebx
push esi
push edi
jne 0x41c8c3
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41c8fe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4254b4
push edi
call esi
test eax, eax
mov dword [0x429324], eax
je 0x41c8fe
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x429328], eax
call esi
cmp dword [0x428fdc], 2
mov dword [0x42932c], eax
jne 0x41c8c3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x429334], eax
je 0x41c8c3
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x429330], eax
mov eax, dword [0x429330]
test eax, eax
je 0x41c908
call eax
test eax, eax
je 0x41c8ef
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x429334]
test eax, eax
je 0x41c8ef
test byte [ebp - 8], 1
jne 0x41c908
cmp dword [0x428fe8], 4
jb 0x41c902
or byte [ebp + 0x12], 0x20
jmp 0x41c927
xor eax, eax
jmp 0x41c937
or byte [ebp + 0x12], 4
jmp 0x41c927
mov eax, dword [0x429328]
test eax, eax
je 0x41c927
call eax
mov ebx, eax
test ebx, ebx
je 0x41c927
mov eax, dword [0x42932c]
test eax, eax
je 0x41c927
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x429324]
pop edi
pop esi
pop ebx
leave
ret