joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4103e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x88
mov eax, dword [0x431468]
push esi
push edi
mov dword [esp + 0x8c], eax
call fcn.00410080
test eax, eax
jne 0x410441
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
call dword [fcn.00430090]
mov edi, dword [esp + 0x94]
push eax
push edi
lea ecx, [esp + 0x10]
call fcn.00401350
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, eax
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
cmp eax, edx
je 0x410451
push eax
call fcn.004132e2
add esp, 4
jmp 0x410451
mov edi, dword [esp + 0x94]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
jne 0x410474
push 0x17
push str.ProjectMui_svnCommonLibStdHelp.cpp
push str._n__s:__d_
call fcn.0040fe40
push edi
push str.Cant_find_the_FilePath:_s_n
call fcn.004100a0
add esp, 0x14
mov ecx, dword [esp + 0x8c]
pop edi
mov eax, esi
pop esi
call fcn.00412e0b
add esp, 0x88
ret

Function at 0x4107b0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x88
mov eax, dword [0x431468]
mov dword [esp + 0x84], eax
call fcn.00410080
test eax, eax
jne 0x41082e
lea eax, [esp + 4]
push esi
mov dword [esp + 4], eax
call dword [fcn.00430090]
mov ecx, dword [esp + 0x90]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00401350
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
cmp eax, ecx
je 0x410816
push eax
call fcn.004132e2
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x84]
call fcn.00412e0b
add esp, 0x88
ret 8
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x84]
call fcn.00412e0b
add esp, 0x88
ret 8

Function at 0x410860
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4267cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x431468]
mov dword [esp + 0x108], eax
call fcn.00410080
test eax, eax
jne 0x41093b
lea eax, [esp + 0x88]
push esi
mov dword [esp + 0x88], eax
call dword [fcn.00430090]
mov ecx, dword [esp + 0x120]
push eax
push ecx
lea ecx, [esp + 0x90]
call fcn.00401350
lea edx, [esp + 8]
mov dword [esp + 0x118], 0
mov dword [esp + 4], edx
call dword [fcn.00430090]
push eax
mov eax, dword [esp + 0x128]
push eax
lea ecx, [esp + 0xc]
call fcn.00401350
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x88]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
cmp eax, ecx
je 0x41091b
push eax
call fcn.004132e2
add esp, 4
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x8c]
cmp eax, edx
je 0x410936
push eax
call fcn.004132e2
add esp, 4
mov eax, esi
pop esi
jmp 0x410959
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x108]
call fcn.00412e0b
add esp, 0x118
ret 0xc
Function at 0x410980
Capabilities:
Delete file

Disassembly:
sub esp, 0x88
mov eax, dword [0x431468]
mov dword [esp + 0x84], eax
call fcn.00410080
test eax, eax
jne 0x4109f6
lea eax, [esp + 4]
push esi
mov dword [esp + 4], eax
call dword [fcn.00430090]
mov ecx, dword [esp + 0x90]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00401350
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
cmp eax, ecx
je 0x4109de
push eax
call fcn.004132e2
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x84]
call fcn.00412e0b
add esp, 0x88
ret 4
mov edx, dword [esp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x84]
call fcn.00412e0b
add esp, 0x88
ret 4

Function at 0x410bd0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x88
mov eax, dword [0x431468]
mov dword [esp + 0x84], eax
call fcn.00410080
test eax, eax
jne 0x410c46
lea eax, [esp + 4]
push esi
mov dword [esp + 4], eax
call dword [fcn.00430090]
mov ecx, dword [esp + 0x90]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00401350
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
cmp eax, ecx
je 0x410c2e
push eax
call fcn.004132e2
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x84]
call fcn.00412e0b
add esp, 0x88
ret 4
mov edx, dword [esp + 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x84]
call fcn.00412e0b
add esp, 0x88
ret 4

Function at 0x410c70
Capabilities:
Create directory

Disassembly:
sub esp, 0x88
mov eax, dword [0x431468]
mov dword [esp + 0x84], eax
call fcn.00410080
test eax, eax
jne 0x410cf4
lea eax, [esp + 4]
push esi
mov dword [esp + 4], eax
call dword [fcn.00430090]
mov ecx, dword [esp + 0x94]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.00401350
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x90]
push edx
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov esi, eax
mov eax, dword [esp + 4]
lea edx, [esp + 8]
cmp eax, edx
je 0x410cde
push eax
call fcn.004132e2
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x84]
call fcn.00412e0b
add esp, 0x88
ret
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push eax
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [esp + 0x84]
call fcn.00412e0b
add esp, 0x88
ret
Function at 0x413e93
Capabilities:
Terminate process

Disassembly:
push 8
push 0x429ff0
call fcn.00414c9c
push 8
call fcn.004166aa
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x434eb0], esi
jne 0x413ec7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x434eac], esi
mov al, byte [ebp + 0x10]
mov byte [0x434ea8], al
cmp dword [ebp + 0xc], edi
jne 0x413f11
cmp dword [0x436854], edi
je 0x413f01
mov eax, dword [0x436850]
sub eax, 4
mov dword [0x436850], eax
cmp eax, dword [0x436854]
jb 0x413f01
mov eax, dword [eax]
cmp eax, edi
je 0x413ee2
call eax
jmp 0x413ee2
push 0x43007c
mov eax, 0x430074
call fcn.00413e11
pop ecx
push 0x430088
mov eax, 0x430080
call fcn.00413e11
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00413f42
cmp dword [ebp + 0x10], edi
jne 0x413f50
mov dword [0x434eb0], esi
push dword [ebp + 8]
call fcn.00413dcf
xor edi, edi
xor esi, esi
inc esi
call fcn.00414cd7
ret
Function at 0x4144c0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a028
call fcn.00414c9c
mov edi, 0x94
mov eax, edi
call fcn.00413770
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 [0x434e70], ecx
mov eax, dword [esi + 4]
mov dword [0x434e7c], eax
mov edx, dword [esi + 8]
mov dword [0x434e80], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x434e74], esi
cmp ecx, 2
je 0x414520
or esi, 0x8000
mov dword [0x434e74], esi
shl eax, 8
add eax, edx
mov dword [0x434e78], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41455b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41455b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414573
cmp eax, 0x20b
je 0x414560
mov dword [ebp - 0x1c], esi
jmp 0x414587
cmp dword [ecx + 0x84], 0xe
jbe 0x41455b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x414581
cmp dword [ecx + 0x74], 0xe
jbe 0x41455b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00416506
pop ecx
test eax, eax
jne 0x41459b
push 0x1c
call fcn.0041449c
pop ecx
call fcn.0041634f
test eax, eax
jne 0x4145ac
push 0x10
call fcn.0041449c
pop ecx
call fcn.00419da5
mov dword [ebp - 4], esi
call fcn.0041b0e1
test eax, eax
jge 0x4145c5
push 0x1b
call fcn.00414477
pop ecx
call fcn.0041b042
mov dword [0x436848], eax
call fcn.0041aed8
mov dword [0x434eb8], eax
call fcn.0041ae42
test eax, eax
jge 0x4145ea
push 8
call fcn.00414477
pop ecx
call fcn.0041ac0f
test eax, eax
jge 0x4145fb
push 9
call fcn.00414477
pop ecx
push 1
call fcn.00413e29
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x414611
push eax
call fcn.00414477
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0041abc9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x414632
movzx eax, word [ebp - 0x40]
jmp 0x414635
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040afd0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x414653
push edi
call fcn.00413f56
call fcn.00413f78
jmp 0x414685
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00414cd7
ret
Function at 0x414df1
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.00413770
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414e8c
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 [0x434e70]
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 0x414e8c
cmp eax, 1
je 0x414ead
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 0x414e8c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x414e59
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x414e88
xor eax, eax
inc eax
jmp 0x414ecc
cmp edi, eax
jae 0x414e90
xor eax, eax
jmp 0x414ecc
cmp eax, esi
jae 0x414e97
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 [0x434e70]
jmp 0x414eb0
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 0x41a8b5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x431468]
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 + 0x431d50]
je 0x41a8ea
inc eax
cmp eax, 0x13
jb 0x41a8db
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x431d50]
jne 0x41aa10
mov eax, dword [0x434ebc]
cmp eax, 1
je 0x41a9e8
cmp eax, edx
jne 0x41a91a
cmp dword [0x4314a0], 1
je 0x41a9e8
cmp ecx, 0xfc
je 0x41aa10
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 0x41a950
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00418920
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00414c10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41a984
mov eax, edi
push eax
call fcn.00414c10
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a0e8
push edi
call fcn.0041bf90
add esp, 0x10
push edi
call fcn.00414c10
push dword [esi + 0x431d54]
mov ebx, eax
call fcn.00414c10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413770
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00418920
push edi
push ebx
call fcn.00418930
push 0x42a0e4
push ebx
call fcn.00418930
push dword [esi + 0x431d54]
push ebx
call fcn.00418930
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041be91
add esp, 0x2c
jmp 0x41aa10
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x431d54]
push dword [esi]
call fcn.00414c10
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.00412e0b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41aed8
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x435264]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x41af21
call ebp
mov esi, eax
cmp esi, ebx
je 0x41af07
mov dword [0x435264], 1
jmp 0x41af26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41af1c
push 2
pop eax
mov dword [0x435264], eax
jmp 0x41af21
mov eax, dword [0x435264]
cmp eax, 1
jne 0x41af7e
cmp esi, ebx
jne 0x41af39
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41af39
xor eax, eax
jmp 0x41b025
cmp word [esi], bx
mov eax, esi
je 0x41af4e
inc eax
inc eax
cmp word [eax], bx
jne 0x41af40
inc eax
inc eax
cmp word [eax], bx
jne 0x41af40
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00413410
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x41af71
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41b025
push ebp
push esi
push edi
call fcn.004146a0
add esp, 0xc
jmp 0x41af63
cmp eax, 2
je 0x41af87
cmp eax, ebx
jne 0x41af32
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x41af32
cmp byte [ebp], bl
mov esi, ebp
je 0x41afbd
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41af32
push esi
add edi, eax
call fcn.00414c10
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41af9a
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00413410
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41b036
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41b017
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41b02c
push edi
call fcn.00414c10
push esi
lea edi, [edi + eax + 1]
call fcn.00413353
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x41afdd
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004132e2
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41af32
Function at 0x41b042
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x435268]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x41b082
call esi
test eax, eax
je 0x41b067
mov dword [0x435268], 1
jmp 0x41b087
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41b07e
mov dword [0x435268], 2
jmp 0x41b090
xor eax, eax
jmp 0x41b0de
cmp eax, 1
jne 0x41b08b
call esi
jmp 0x41b0de
cmp eax, 2
jne 0x41b07e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x41b0d6
lea eax, [esi + esi]
push eax
call fcn.00413410
mov ebp, eax
test ebp, ebp
pop ecx
je 0x41b0d6
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x41b0da
push ebp
call fcn.004132e2
pop ecx
xor eax, eax
jmp 0x41b0dc
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41b2df
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41b30d
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41b314
cmp ebx, dword [eax + 4]
jae 0x41b314
xor eax, eax
jmp 0x41b504
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41b325
xor eax, eax
inc eax
jmp 0x41b503
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41b33b
cmp ecx, edx
jae 0x41b480
cmp dword [eax + 4], 0
je 0x41b344
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41b32c
cmp dword [ebp + 8], 0
je 0x41b366
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41b480
cmp eax, esi
jae 0x41b480
mov eax, dword [0x435270]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41b38b
cmp dword [esi*4 + 0x435278], edi
je 0x41b484
inc esi
cmp esi, eax
jl 0x41b379
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b500
cmp dword [ebp - 8], 0x1000000
jne 0x41b500
test byte [ebp - 0xc], 0xcc
je 0x41b409
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41b500
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41b500
cmp word [eax + 0x18], 0x10b
jne 0x41b500
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41b500
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41b409
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41b409
test byte [ecx + 0x27], 0x80
jne 0x41b480
push 1
push 0x4352b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41b31d
mov ecx, dword [0x435270]
test ecx, ecx
mov edx, ecx
jle 0x41b43d
lea eax, [ecx*4 + 0x435274]
cmp dword [eax], edi
je 0x41b43d
dec edx
sub eax, 4
test edx, edx
jg 0x41b431
test edx, edx
jne 0x41b46e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41b44a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41b462
lea eax, [edx*4 + 0x435278]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41b450
cmp ecx, 0x10
jge 0x41b46e
inc ecx
mov dword [0x435270], ecx
push 0
push 0x4352b8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41b31d
xor eax, eax
jmp 0x41b503
test esi, esi
jle 0x41b31d
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4352b8
call ebx
test eax, eax
jne 0x41b31d
cmp dword [esi*4 + 0x435278], edi
je 0x41b4da
mov eax, dword [0x435270]
lea esi, [eax - 1]
test esi, esi
jl 0x41b4c8
cmp dword [esi*4 + 0x435278], edi
je 0x41b4c4
dec esi
jns 0x41b4b8
test esi, esi
jge 0x41b4d8
cmp eax, 0x10
jge 0x41b4d3
inc eax
mov dword [0x435270], eax
lea esi, [eax - 1]
jmp 0x41b4da
je 0x41b4f2
xor ecx, ecx
test esi, esi
jl 0x41b4f2
lea eax, [ecx*4 + 0x435278]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41b4e0
push 0
push 0x4352b8
call ebx
jmp 0x41b31d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41be91
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x435398], ebx
push esi
push edi
jne 0x41bf11
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41bf4c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x435398], eax
je 0x41bf4c
push str.GetActiveWindow
push edi
call esi
push 0x42ada0
push edi
mov dword [0x43539c], eax
call esi
cmp dword [0x434e70], 2
mov dword [0x4353a0], eax
jne 0x41bf11
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4353a8], eax
je 0x41bf11
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4353a4], eax
mov eax, dword [0x4353a4]
test eax, eax
je 0x41bf56
call eax
test eax, eax
je 0x41bf3d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4353a8]
test eax, eax
je 0x41bf3d
test byte [ebp - 8], 1
jne 0x41bf56
cmp dword [0x434e7c], 4
jb 0x41bf50
or byte [ebp + 0x12], 0x20
jmp 0x41bf75
xor eax, eax
jmp 0x41bf85
or byte [ebp + 0x12], 4
jmp 0x41bf75
mov eax, dword [0x43539c]
test eax, eax
je 0x41bf75
call eax
mov ebx, eax
test ebx, ebx
je 0x41bf75
mov eax, dword [0x4353a0]
test eax, eax
je 0x41bf75
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x435398]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c2d6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x431468]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41c307
xor eax, eax
jmp 0x41c490
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4354c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41c343
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041e7f8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c41e
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41c45c
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41c3a7
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c398
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41c378
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c3e7
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41c3f0
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41c369
jmp 0x41c3f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41c48b
cmp dword [ebp - 0x6c], edi
je 0x41c45c
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41c451
call fcn.0041521a
mov dword [eax], 9
call fcn.00415223
mov dword [eax], esi
jmp 0x41c486
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c446
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41c3f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41c3f2
push dword [ebp - 0x6c]
call fcn.0041522c
pop ecx
jmp 0x41c486
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41c474
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41c474
xor eax, eax
jmp 0x41c48e
call fcn.0041521a
mov dword [eax], 0x1c
call fcn.00415223
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41c48e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00412e0b
add ebp, 0x3a0
leave
ret