joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c0679
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4c06b6
cmp dword [ebp + 0x14], edi
je 0x4c06b6
cmp ecx, edi
jne 0x4c06bd
call fcn.004c578b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004c6858
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4c06d1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4c06f2
cmp ebx, 0xffffffff
je 0x4c06e1
push ebx
push edi
push ecx
call fcn.004c05d0
add esp, 0xc
cmp esi, edi
je 0x4c069e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4c069e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4c070e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4c0715
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4c0806
test word [esi + 0xc], 0x10c
je 0x4c0769
mov eax, dword [esi + 4]
test eax, eax
je 0x4c0769
jl 0x4c0867
cmp ebx, eax
mov edi, ebx
jb 0x4c073a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4c080e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004c9bc2
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4c07fe
cmp ebx, dword [ebp - 0xc]
jb 0x4c07d6
cmp dword [ebp - 0xc], 0
je 0x4c0793
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x4c0788
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4c078f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4c079e
mov eax, closesocket
cmp ebx, eax
ja 0x4c079e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4c083a
push eax
push dword [ebp - 8]
push esi
call fcn.004c70da
pop ecx
push eax
call fcn.004c9ac5
add esp, 0xc
test eax, eax
je 0x4c0879
cmp eax, 0xffffffff
je 0x4c0867
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4c07fe
push esi
call fcn.004c758a
cmp eax, 0xffffffff
pop ecx
je 0x4c086b
cmp dword [ebp - 4], 0
je 0x4c083a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4c071d
mov eax, dword [ebp + 0x14]
jmp 0x4c06b8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4c0825
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004c05d0
add esp, 0xc
call fcn.004c578b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4c06ae
cmp dword [ebp + 0xc], 0xffffffff
je 0x4c0850
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004c05d0
add esp, 0xc
call fcn.004c578b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4c06ae
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4c06b8
or dword [esi + 0xc], 0x10
jmp 0x4c086b
Function at 0x4c9d02
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x51fd00]
je 0x4c9d1d
inc edi
cmp edi, 0x17
jb 0x4c9d0e
cmp edi, 0x17
jae 0x4c9e9d
push ebp
push 3
call fcn.004d16ed
cmp eax, 1
pop ecx
je 0x4c9e69
push 3
call fcn.004d16ed
test eax, eax
pop ecx
jne 0x4c9d51
cmp dword [0x51f2f0], 1
je 0x4c9e69
cmp ebx, 0xfc
je 0x4c9e9c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x521a60
push ebp
call fcn.004d12f9
add esp, 0xc
test eax, eax
je 0x4c9d87
push esi
push esi
push esi
push esi
push esi
call fcn.004c675c
add esp, 0x14
push 0x104
mov esi, 0x521a79
push esi
push 0
mov byte [0x521b7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c9dcb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004d12f9
add esp, 0xc
test eax, eax
je 0x4c9dcb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004c675c
add esp, 0x14
push esi
call fcn.004bf880
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c9e10
push esi
call fcn.004bf880
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x521d74
push 0x4f72fc
sub ecx, eax
push ecx
push eax
call fcn.004d1246
add esp, 0x14
test eax, eax
je 0x4c9e10
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004c675c
add esp, 0x14
jmp 0x4c9e12
xor esi, esi
push 0x4e813c
push ebx
push ebp
call fcn.004d1189
add esp, 0xc
test eax, eax
je 0x4c9e32
push esi
push esi
push esi
push esi
push esi
call fcn.004c675c
add esp, 0x14
push dword [edi*8 + 0x51fd04]
push ebx
push ebp
call fcn.004d1189
add esp, 0xc
test eax, eax
je 0x4c9e54
push esi
push esi
push esi
push esi
push esi
call fcn.004c675c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004d1530
add esp, 0xc
jmp 0x4c9e9c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4c9e9c
cmp ebp, 0xffffffff
je 0x4c9e9c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x51fd04]
push dword [esi]
call fcn.004bf880
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 0x4caec9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4caef6
call fcn.004c579e
mov dword [eax], esi
call fcn.004c578b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004c6858
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4caed2
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4caf25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c57b1
pop ecx
call fcn.004c578b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4caf4c
test al, 1
je 0x4caf4c
test byte [esp + 0xc], 2
je 0x4caf4c
call fcn.004c579e
mov dword [eax], 5
call fcn.004c578b
mov dword [eax], 0xd
jmp 0x4caf1c
xor eax, eax
pop esi
ret
Function at 0x4d1530
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004c83c9
xor ebx, ebx
cmp dword [0x521ecc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4d1606
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4d16e6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4de0a4
push edi
call esi
cmp eax, ebx
je 0x4d16e6
push eax
call fcn.004c835b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x521ecc], eax
call esi
push eax
call fcn.004c835b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x521ed0], eax
call esi
push eax
call fcn.004c835b
mov dword [0x521ed4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004c2c70
test eax, eax
pop ecx
pop ecx
je 0x4d15d4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004c675c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4d1606
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004c835b
cmp eax, ebx
pop ecx
mov dword [0x521edc], eax
je 0x4d1606
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c835b
pop ecx
mov dword [0x521ed8], eax
mov eax, dword [0x521ed8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4d168b
cmp dword [0x521edc], ecx
je 0x4d168b
push eax
call fcn.004c83d2
push dword [0x521edc]
mov esi, eax
call fcn.004c83d2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4d168b
cmp edi, ebx
je 0x4d168b
call esi
cmp eax, ebx
je 0x4d1658
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d1658
test byte [ebp - 0x18], 1
jne 0x4d168b
lea eax, [ebp - 0x10]
push eax
call fcn.004c2ce3
test eax, eax
pop ecx
je 0x4d1673
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004c675c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4d1682
or dword [ebp + 0x10], 0x200000
jmp 0x4d16c6
or dword [ebp + 0x10], 0x40000
jmp 0x4d16c6
mov eax, dword [0x521ed0]
cmp eax, dword [ebp - 8]
je 0x4d16c6
push eax
call fcn.004c83d2
cmp eax, ebx
pop ecx
je 0x4d16c6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4d16c6
mov eax, dword [0x521ed4]
cmp eax, dword [ebp - 8]
je 0x4d16c6
push eax
call fcn.004c83d2
cmp eax, ebx
pop ecx
je 0x4d16c6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x521ecc]
call fcn.004c83d2
cmp eax, ebx
pop ecx
je 0x4d16e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d16e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002010
Capabilities:
Decode data using base64 via winapi

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x10002020
xor al, al
pop esi
ret
cmp dword [esi + 0x18], 0x10
push ebx
lea ebx, [esi + 4]
jb 0x1000202e
mov eax, dword [ebx]
jmp 0x10002030
mov eax, ebx
push ebp
mov ebp, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 1
push ecx
push eax
call ebp
test eax, eax
jne 0x10002052
pop ebp
pop ebx
xor al, al
pop esi
ret
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
inc eax
push eax
mov ecx, edi
call fcn.10001f70
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
jne 0x10002073
call fcn.100059ba
cmp dword [esi + 0x18], 0x10
mov edi, dword [edi + 0xc]
mov ecx, dword [esi + 0x14]
jb 0x10002083
mov eax, dword [ebx]
jmp 0x10002085
mov eax, ebx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push 1
push ecx
push eax
call ebp
pop edi
pop ebp
test eax, eax
pop ebx
setne al
pop esi
ret
Function at 0x10002a40
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002a8a
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push eax
push str.ConsentPromptBehaviorAdmin
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret

Function at 0x10002c50
Capabilities:
Accept command line arguments
Create thread

Disassembly:
cmp dword [esp + 8], 1
push ebx
push ebp
push esi
push edi
jne 0x10002d16
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, dword [eax]
cmp word [edi], 0x22
jne 0x10002ca6
add edi, 2
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002c90
sub eax, edx
sar eax, 1
xor edx, edx
mov word [edi + eax*2 - 2], dx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 0
push 0
push 0
push edi
call ebx
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100059e5
mov esi, eax
add esp, 4
test esi, esi
jne 0x10002ce0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push 0
push esi
push ebp
push edi
call ebx
xor eax, eax
push eax
push eax
push esi
push 0x10002be0
push eax
push eax
mov word [esi + ebp*2], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10002d08
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10003330
add esp, 4
call fcn.10002650
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
Function at 0x10003230
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [edx]
cmp eax, 5
ja 0x1000323e
xor eax, eax
ret
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ecx, dword [eax + edi - 5]
mov bl, byte [eax + edi - 1]
cmp ecx, eax
jb 0x10003255
pop edi
xor eax, eax
pop ebx
ret
sub eax, ecx
push esi
lea esi, [ecx + edi]
lea ecx, [eax - 5]
xor eax, eax
mov dword [edx], ecx
test ecx, ecx
jbe 0x10003270
xor byte [eax + esi], bl
inc eax
inc bl
cmp eax, dword [edx]
jb 0x10003266
lea edx, [edi + 0x180]
mov eax, edx
lea ebx, [eax + 1]
jmp 0x10003280
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003280
sub eax, ebx
je 0x1000329d
inc eax
push eax
push edx
lea eax, [esi + 0x4dd48]
push eax
call fcn.10006410
add esp, 0xc
movzx eax, word [edi + 0x190]
test ax, ax
je 0x100032b0
mov word [esi + 0x4ddac], ax
lea edx, [edi + 0x1a0]
mov eax, edx
lea ebx, [eax + 1]
jmp 0x100032c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100032c0
sub eax, ebx
je 0x100032dd
inc eax
push eax
push edx
lea ecx, [esi + 0x4e1a4]
push ecx
call fcn.10006410
add esp, 0xc
movzx eax, word [edi + 0x1b0]
test ax, ax
je 0x100032f0
mov word [esi + 0x81c3], ax
lea edx, [edi + 0x1c0]
mov eax, edx
lea edi, [eax + 1]
jmp 0x10003300
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003300
sub eax, edi
je 0x1000331d
inc eax
push eax
push edx
lea edx, [esi + 0x4e119]
push edx
call fcn.10006410
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x10003330
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, ebx
lea edx, [eax + 2]
jmp 0x10003340
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003340
sub eax, edx
sar eax, 1
lea eax, [ebx + eax*2]
mov ecx, eax
cmp eax, ebx
jbe 0x10003499
lea esp, [esp]
cmp word [ecx], 0x5c
je 0x1000336f
sub ecx, 2
cmp ecx, ebx
ja 0x10003360
jmp 0x10003372
lea eax, [ecx + 2]
cmp eax, ebx
jbe 0x10003499
push esi
sub eax, ebx
push edi
sar eax, 1
mov edi, eax
lea eax, [edi + edi + 0x14]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10003497
add edi, edi
push edi
push ebx
push esi
call fcn.10006410
mov ecx, dword [str.inin.ini]
mov dword [edi + esi], ecx
mov edx, dword [0x1000eba0]
mov dword [edi + esi + 4], edx
mov ecx, dword [0x1000eba4]
mov dword [edi + esi + 8], ecx
mov edx, dword [0x1000eba8]
mov dword [edi + esi + 0xc], edx
mov cx, word [0x1000ebac]
add esp, 0xc
mov word [edi + esi + 0x10], cx
cmp word [esi], 0x22
mov eax, esi
jne 0x100033e4
lea eax, [esi + 2]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10003497
push ebp
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10003442
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0
je 0x10003488
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], ebp
call fcn.10003230
add esp, 8
test eax, eax
je 0x10003488
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.100053d0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100035d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x100035e6
mov eax, dword [eax + 4]
jmp 0x100035e9
add eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000369c
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], edi
jb 0x1000361d
mov eax, dword [eax + 4]
jmp 0x10003620
add eax, 4
push ebx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000369b
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
mov edi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
call fcn.1000583b
mov byte [edi + esi - 1], al
call fcn.1000583b
push 0
lea edx, [esp + 0x18]
push edx
push esi
push edi
push ebx
mov byte [edi + esi - 2], al
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10004920
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
push ebx
push ebp
mov ebp, dword [edi + 4]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0xc], 0
cmp dx, word [eax + 6]
jae 0x100049ed
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x1000498e
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x100049d3
mov ecx, dword [edi + 0x34]
mov edx, dword [esi - 4]
mov eax, dword [edi + 0x1c]
push ecx
push 4
push 0x1000
add edx, ebp
push ebx
push edx
call eax
add esp, 0x14
test eax, eax
je 0x100049ff
mov eax, dword [esi - 4]
push ebx
add eax, ebp
push 0
push eax
mov dword [esi - 8], eax
call fcn.100055e0
jmp 0x100049d0
mov ecx, dword [esi + 4]
add ecx, eax
cmp dword [esp + 0x18], ecx
jb 0x100049f7
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x1c]
push edx
push 4
push 0x1000
push eax
mov eax, dword [esi - 4]
add eax, ebp
push eax
call ecx
add esp, 0x14
test eax, eax
je 0x100049ff
mov eax, dword [esi + 4]
mov edx, dword [esi]
add eax, dword [esp + 0x14]
mov ebx, dword [esi - 4]
push edx
add ebx, ebp
push eax
push ebx
call fcn.10006410
mov dword [esi - 8], ebx
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [esp + 0xc]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0xc], eax
jl 0x10004948
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10004ac0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x3c]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [esp + 0x14], esi
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x18], edx
test esi, esi
jne 0x10004b04
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x10004afd
mov esi, dword [eax + 0x20]
jmp 0x10004b04
test bl, bl
jns 0x10004b04
mov esi, dword [eax + 0x24]
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x20], esi
mov esi, 1
add ecx, 0x28
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 1
cmp si, word [eax + 6]
jae 0x10004be4
lea ebx, [ecx + 0x24]
mov esi, dword [edi + 0x3c]
mov ebp, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ebp
test edi, edi
jne 0x10004b59
mov ecx, dword [ebx]
test cl, 0x40
je 0x10004b52
mov edi, dword [eax + 0x20]
jmp 0x10004b59
test cl, cl
jns 0x10004b59
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x10004b92
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, ecx
cmp eax, esi
ja 0x10004b92
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.10004a10
test eax, eax
je 0x10004c05
mov eax, dword [ebx]
mov edx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jmp 0x10004bbe
mov eax, dword [ebx]
test eax, 0x2000000
je 0x10004bab
test dword [esp + 0x20], 0x2000000
je 0x10004bab
or dword [esp + 0x20], eax
jmp 0x10004bb8
or eax, dword [esp + 0x20]
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
sub edi, dword [esp + 0x14]
add edi, ebp
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
cmp ecx, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
jl 0x10004b34
lea ecx, [esp + 0x14]
mov eax, edi
mov dword [esp + 0x24], 1
call fcn.10004a10
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x10005e7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10012324]
jne 0x10005e86
repz ret
jmp fcn.100090ec

Function at 0x1000d64c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10007d7a
and dword [ebp - 4], 0
cmp dword [0x100139a0], 0
mov ebx, eax
jne 0x1000d6fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000d7ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000d7ae
push eax
call fcn.10007d08
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100139a0], eax
call esi
push eax
call fcn.10007d08
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100139a4], eax
call esi
push eax
call fcn.10007d08
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100139a8], eax
call esi
push eax
call fcn.10007d08
pop ecx
mov dword [0x100139b0], eax
test eax, eax
je 0x1000d6fd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10007d08
pop ecx
mov dword [0x100139ac], eax
mov eax, dword [0x100139ac]
cmp eax, ebx
je 0x1000d755
cmp dword [0x100139b0], ebx
je 0x1000d755
push eax
call fcn.10007d83
push dword [0x100139b0]
mov esi, eax
call fcn.10007d83
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000d755
test edi, edi
je 0x1000d755
call esi
test eax, eax
je 0x1000d74c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000d74c
test byte [ebp - 0xc], 1
jne 0x1000d755
or dword [ebp + 0x10], 0x200000
jmp 0x1000d78e
mov eax, dword [0x100139a4]
cmp eax, ebx
je 0x1000d78e
push eax
call fcn.10007d83
pop ecx
test eax, eax
je 0x1000d78e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000d78e
mov eax, dword [0x100139a8]
cmp eax, ebx
je 0x1000d78e
push eax
call fcn.10007d83
pop ecx
test eax, eax
je 0x1000d78e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100139a0]
call fcn.10007d83
pop ecx
test eax, eax
je 0x1000d7ae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000d7b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret