joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100043cd
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004c6d1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100611cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
call fcn.1001f486
xor edi, edi
pop ecx
mov ebx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x20]
mov dword [esp + 0x3c], edi
call fcn.1001f5b0
pop ecx
push edi
push ebx
push 1
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.100200fa
mov esi, eax
add esp, 0x14
cmp esi, edi
jne 0x10004466
push 0x66
pop eax
mov dword [esp + 0x14], eax
push 0x10058310
lea eax, [esp + 0x18]
mov ecx, str.Specified_property_does_not_exist
push eax
mov dword [esp + 0x20], ecx
call fcn.1003a718
push dword [ebp + 0x14]
mov eax, ebx
call fcn.10003c31
pop ecx
lea esi, [esp + 0x1c]
call fcn.10002b10
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1000479d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004c668
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100611cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
push dword [ebp + 0xc]
lea edx, [esp + 0x20]
mov dword [esp + 0x3c], esi
call fcn.1001f5b0
pop ecx
lea eax, [esp + 0x14]
push eax
push esi
push esi
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.100200fa
add esp, 0x14
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x10004898
test byte [eax + 4], 0x20
mov ebx, dword [eax + 0x40]
jne 0x1000483d
push dword [esp + 0x18]
lea esi, [ebx + 0x44]
push dword [esp + 0x18]
lea edi, [esp + 0x1c]
call fcn.100054bd
push ebx
call fcn.10020745
pop ecx
jmp 0x1000488e
lea esi, [eax + 8]
push str.xml:lang
call fcn.10005735
test al, al
pop ecx
je 0x10004855
xor dword [ebx + 4], 0x40
jmp 0x1000486b
push str.rdf:type
call fcn.10005735
test al, al
pop ecx
je 0x1000486b
xor dword [ebx + 4], 0x80
push dword [esp + 0x18]
lea esi, [ebx + 0x54]
push dword [esp + 0x18]
lea edi, [esp + 0x1c]
call fcn.100054bd
mov eax, esi
call fcn.1000250f
test eax, eax
jne 0x1000488e
xor dword [ebx + 4], 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 1
call dword [eax]
lea esi, [esp + 0x1c]
call fcn.10002b10
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100131bb
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004c3b5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100611cc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
and dword [esp + 0x18], 0
mov cl, al
and cl, 1
mov byte [esp + 0x13], cl
mov ecx, eax
shr eax, 2
and al, 1
mov byte [esp + 0x20], al
mov eax, dword [ebp + 8]
shr ecx, 1
and cl, 1
add eax, 0x50
mov byte [esp + 0x2c], cl
mov dword [esp + 0x24], eax
call fcn.1000250f
test eax, eax
mov dword [esp + 0x30], eax
je 0x1001335f
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
call fcn.10002522
mov esi, dword [eax]
lea ebx, [esi + 8]
cmp dword [ebx + 0x18], 0x10
jb 0x10013244
mov eax, dword [ebx + 4]
jmp 0x10013247
lea eax, [ebx + 4]
mov edi, dword [ebp + 0xc]
push 0
push 0
push eax
add edi, 0xc
push edi
call fcn.1001fabd
add esp, 0x10
test eax, eax
sete byte [esp + 0x12]
cmp byte [esp + 0x12], 0
mov dword [esp + 0x14], eax
je 0x100132b0
push 0x64
call fcn.1001ea28
pop ecx
mov dword [esp + 0x28], eax
and dword [esp + 0x40], 0
test eax, eax
je 0x10013295
push 0x80000000
lea ecx, [esi + 0x24]
push ecx
push ebx
push edi
push eax
call fcn.1000fbb1
jmp 0x10013297
xor eax, eax
or dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x50
call fcn.100053f3
lea eax, [esi + 0x44]
mov dword [esp + 0x28], eax
call fcn.1000250f
dec eax
mov dword [esp + 0x1c], eax
js 0x10013306
jmp 0x100132c9
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
mov esi, eax
call fcn.10002522
cmp byte [esp + 0x13], 0
mov esi, dword [eax]
jne 0x100132eb
lea edi, [esi + 8]
mov eax, ebx
call fcn.10011732
test al, al
jne 0x10013300
push dword [esp + 0x20]
push dword [esp + 0x30]
push dword [esp + 0x1c]
push esi
call fcn.10011bd4
add esp, 0x10
dec dword [esp + 0x1c]
jns 0x100132c5
mov esi, dword [esp + 0x14]
lea eax, [esi + 0x44]
call fcn.1000250f
test eax, eax
jne 0x1001334d
cmp byte [esp + 0x12], al
je 0x1001333f
test esi, esi
je 0x10013328
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov esi, dword [ebp + 0xc]
add esi, 0x50
mov eax, esi
call fcn.1000250f
test eax, eax
je 0x1001334d
add dword [esi + 8], 0xfffffffc
jmp 0x1001334d
cmp byte [esp + 0x20], 0
je 0x1001334d
push esi
call fcn.10020745
pop ecx
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jne 0x10013227
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013a8c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004c365
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100611cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push edi
add eax, 0xc
push str.http:__ns.adobe.com_xmp_transient_1.0_
push eax
call fcn.1001fabd
add esp, 0x10
cmp eax, edi
jne 0x10013adb
xor al, al
jmp 0x10013ba4
push edi
push edi
push str.xmpx:DifferingProperties
push eax
call fcn.1001fc38
add esp, 0x10
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x10013ad4
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x20]
mov dword [esp + 0x3c], edi
call fcn.1001f5b0
pop ecx
push 1
lea esi, [esp + 0x20]
call fcn.10002583
cmp dword [eax + 0x18], 0x10
jb 0x10013b29
mov ebx, dword [eax + 4]
jmp 0x10013b2c
lea ebx, [eax + 4]
push 1
lea esi, [esp + 0x20]
call fcn.10002583
test byte [eax + 0x1c], 0x10
je 0x10013b82
push 1
call fcn.10002583
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1000702b
mov ebx, dword [esp + 0x14]
cmp ebx, edi
jne 0x10013b5c
call fcn.10036494
mov esi, dword [esp + 0x18]
cmp esi, dword [ebx + 4]
jne 0x10013b6a
call fcn.10036494
push 1
add esi, 0x28
call fcn.10002583
cmp dword [eax + 0x18], 0x10
jb 0x10013b7f
mov ebx, dword [eax + 4]
jmp 0x10013b82
lea ebx, [eax + 4]
mov eax, dword [esp + 0x10]
push ebx
push str.xmpx:DiffPath
call fcn.1001ff70
pop ecx
cmp eax, 0xffffffff
pop ecx
lea esi, [esp + 0x1c]
setne bl
call fcn.10002b10
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10013bb7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004c342
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100611cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
add eax, 0xc
push str.http:__ns.adobe.com_xmp_transient_1.0_
push eax
call fcn.1001fabd
add esp, 0x10
cmp eax, ebx
jne 0x10013c06
xor al, al
jmp 0x10013d7e
push ebx
push ebx
push str.xmpx:DifferingProperties
push eax
call fcn.1001fc38
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x10013bff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x20]
mov dword [esp + 0x3c], ebx
call fcn.1001f5b0
cmp dword [esp + 0x24], ebx
pop ecx
je 0x10013c5f
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sar eax, 5
cmp eax, 2
jbe 0x10013c5f
lea esi, [esp + 0x1c]
call fcn.10002b10
jmp 0x10013bff
push 1
lea esi, [esp + 0x20]
call fcn.10002583
cmp dword [eax + 0x18], 0x10
jb 0x10013c75
mov edi, dword [eax + 4]
jmp 0x10013c78
lea edi, [eax + 4]
push 1
lea esi, [esp + 0x20]
call fcn.10002583
test byte [eax + 0x1c], 0x10
je 0x10013cce
push 1
call fcn.10002583
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1000702b
mov edi, dword [esp + 0x14]
cmp edi, ebx
jne 0x10013ca8
call fcn.10036494
mov esi, dword [esp + 0x18]
cmp esi, dword [edi + 4]
jne 0x10013cb6
call fcn.10036494
push 1
add esi, 0x28
call fcn.10002583
cmp dword [eax + 0x18], 0x10
jb 0x10013ccb
mov edi, dword [eax + 4]
jmp 0x10013cce
lea edi, [eax + 4]
push edi
mov edi, dword [esp + 0x14]
push str.xmpx:DiffPath
mov eax, edi
call fcn.1001ff70
cmp eax, 0xffffffff
pop ecx
pop ecx
je 0x10013c54
add edi, 0x44
mov esi, eax
call fcn.10002522
mov esi, dword [eax]
push ebx
push ebx
push str.xmpx:DiffOldest
push esi
call fcn.1001fc38
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x10013c54
push ebx
push ebx
push str.xmpx:DiffNewest
push esi
call fcn.1001fc38
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x10013d47
mov eax, 0xcb
mov dword [esp + 0x14], eax
push 0x10058310
lea eax, [esp + 0x18]
mov ecx, str.Missing_xmpx:DiffNewest_property
push eax
mov dword [esp + 0x20], ecx
call fcn.1003a718
cmp dword [edi + 0x3c], 0x10
jb 0x10013d52
mov eax, dword [edi + 0x28]
jmp 0x10013d55
lea eax, [edi + 0x28]
mov edi, dword [ebp + 0x14]
call fcn.10015d4e
cmp dword [esi + 0x3c], 0x10
jb 0x10013d68
mov eax, dword [esi + 0x28]
jmp 0x10013d6b
lea eax, [esi + 0x28]
mov edi, dword [ebp + 0x18]
call fcn.10015d4e
lea esi, [esp + 0x1c]
call fcn.10002b10
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10027a3a
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x1003635b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100611cc]
jne 0x10036365
repz ret
jmp fcn.1003b838

Function at 0x10040535
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 + 0x10061b68]
je 0x10040550
inc edi
cmp edi, 0x17
jb 0x10040541
cmp edi, 0x17
jae 0x100406d0
push ebp
push 3
call fcn.10046f56
cmp eax, 1
pop ecx
je 0x1004069c
push 3
call fcn.10046f56
test eax, eax
pop ecx
jne 0x10040584
cmp dword [0x100629bc], 1
je 0x1004069c
cmp ebx, 0xfc
je 0x100406cf
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10062fa0
push ebp
call fcn.1003c063
add esp, 0xc
test eax, eax
je 0x100405ba
push esi
push esi
push esi
push esi
push esi
call fcn.10036374
add esp, 0x14
push 0x104
mov esi, 0x10062fb9
push esi
push 0
mov byte [0x100630bd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100405fe
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1003c063
add esp, 0xc
test eax, eax
je 0x100405fe
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10036374
add esp, 0x14
push esi
call fcn.10036120
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10040643
push esi
call fcn.10036120
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100632b4
push 0x1004fb58
sub ecx, eax
push ecx
push eax
call fcn.1003f9a6
add esp, 0x14
test eax, eax
je 0x10040643
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10036374
add esp, 0x14
jmp 0x10040645
xor esi, esi
push 0x100507d4
push ebx
push ebp
call fcn.1003f8e9
add esp, 0xc
test eax, eax
je 0x10040665
push esi
push esi
push esi
push esi
push esi
call fcn.10036374
add esp, 0x14
push dword [edi*8 + 0x10061b6c]
push ebx
push ebp
call fcn.1003f8e9
add esp, 0xc
test eax, eax
je 0x10040687
push esi
push esi
push esi
push esi
push esi
call fcn.10036374
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10046d99
add esp, 0xc
jmp 0x100406cf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100406cf
cmp ebp, 0xffffffff
je 0x100406cf
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10061b6c]
push dword [esi]
call fcn.10036120
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 0x10046d99
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1003ba1e
xor ebx, ebx
cmp dword [0x10063444], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10046e6f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10046f4f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10046f4f
push eax
call fcn.1003b9b0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10063444], eax
call esi
push eax
call fcn.1003b9b0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10063448], eax
call esi
push eax
call fcn.1003b9b0
mov dword [0x1006344c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1003f372
test eax, eax
pop ecx
pop ecx
je 0x10046e3d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10036374
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10046e6f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1003b9b0
cmp eax, ebx
pop ecx
mov dword [0x10063454], eax
je 0x10046e6f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003b9b0
pop ecx
mov dword [0x10063450], eax
mov eax, dword [0x10063450]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10046ef4
cmp dword [0x10063454], ecx
je 0x10046ef4
push eax
call fcn.1003ba27
push dword [0x10063454]
mov esi, eax
call fcn.1003ba27
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10046ef4
cmp edi, ebx
je 0x10046ef4
call esi
cmp eax, ebx
je 0x10046ec1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10046ec1
test byte [ebp - 0x18], 1
jne 0x10046ef4
lea eax, [ebp - 0x10]
push eax
call fcn.1003f3a9
test eax, eax
pop ecx
je 0x10046edc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10036374
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10046eeb
or dword [ebp + 0x10], 0x200000
jmp 0x10046f2f
or dword [ebp + 0x10], 0x40000
jmp 0x10046f2f
mov eax, dword [0x10063448]
cmp eax, dword [ebp - 8]
je 0x10046f2f
push eax
call fcn.1003ba27
cmp eax, ebx
pop ecx
je 0x10046f2f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10046f2f
mov eax, dword [0x1006344c]
cmp eax, dword [ebp - 8]
je 0x10046f2f
push eax
call fcn.1003ba27
cmp eax, ebx
pop ecx
je 0x10046f2f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10063444]
call fcn.1003ba27
cmp eax, ebx
pop ecx
je 0x10046f4f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10046f51
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x507c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x51dbb8
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 1
call fcn.004dd44d
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 0
call fcn.004dd44d
lea ecx, [esi + 0xc]
mov dword [esp + 0x10], 0xffffffff
call fcn.004d80f4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x507c40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
push str.CUTERG01
lea esi, [edi + 0x30]
mov ecx, esi
call fcn.004dd5d6
mov eax, dword [edi + 0x18]
mov ecx, dword [0x5580c0]
neg eax
sbb eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 8], ecx
test eax, eax
mov byte [esp + 0x1c], 1
je 0x4014af
add edi, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, edi
call fcn.004d8266
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00401da0
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00401da0
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
jne 0x401478
mov edx, dword [esi]
xor ecx, ecx
mov byte [esp + 0x1c], 0
mov eax, dword [edx - 8]
cmp eax, 0x2800
setl cl
mov esi, ecx
lea ecx, [esp + 8]
call fcn.004dd44d
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004dd44d
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x401b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x507cd8
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [0x5523dc]
push 0x20
mov ebx, eax
inc eax
mov dword [esp + 0x18], 0
mov dword [0x5523dc], eax
call fcn.004dda96
add esp, 4
test eax, eax
je 0x401b73
mov ecx, dword [0x5580c0]
mov esi, eax
mov dword [eax + 4], ecx
mov edx, dword [0x5580c0]
mov dword [eax + 0x10], edx
jmp 0x401b75
xor esi, esi
mov eax, dword [esp + 0x1c]
mov dword [esi], ebx
lea edx, [edi + 0x30]
mov ecx, dword [eax + 0x1c]
push edx
mov dword [esi + 8], ecx
lea ecx, [esi + 4]
mov dword [esi + 0xc], 0
call fcn.004dd586
lea eax, [esp + 0x20]
lea ecx, [esi + 0x10]
push eax
call fcn.004dd586
mov ecx, dword [esp + 0x24]
push 0
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 8]
push 0
push 0
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 4]
push 0
push esi
push 0x401500
mov dword [esi + 0x18], eax
call fcn.004ddce6
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.004dd44d
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x403900
Capabilities:
Get session user name

Disassembly:
sub esp, 0x404
push esi
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40396b
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x414]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x410]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x403992
mov ecx, dword [esp + 8]
pop edi
mov dword [eax], ecx
mov eax, 1
pop esi
add esp, 0x404
ret 8
mov edi, str.Unknown_User
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x410]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 1
pop esi
add esp, 0x404
ret 8

Function at 0x4039b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x20019
push 0
push str..DEFAULTSoftwareGlobalSCAPE_Inc.CuteFTP_5.0Gl
push reloc.WSOCK32.dll_closesocket
mov dword [esp + 0x20], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4039e7
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
lea eax, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push 0
push 0x552588
push ecx
call edi
mov esi, eax
test esi, esi
je 0x403a25
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
cmp dword [esp + 0xc], 0x14
jbe 0x403a36
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x403a44
mov dword [eax], 0x12c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x403a63
push eax
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 0
push 0x552550
push ecx
call edi
mov esi, eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0xc
ret 0xc
Function at 0x403b70
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50830c
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x478
mov eax, dword [eax + 8]
push esi
cmp eax, 0x1526
mov esi, ecx
jne 0x403c09
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
mov ecx, esi
call fcn.00402620
test eax, eax
jne 0x403c10
mov eax, dword [esp + 4]
test eax, eax
je 0x403bf9
call fcn.004ddcd1
test eax, eax
je 0x403bd0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x403bd4
xor eax, eax
jmp 0x403bd7
mov eax, dword [eax + 0x1c]
push eax
mov ecx, esi
call fcn.00405200
xor eax, eax
mov ecx, dword [esp + 0x47c]
pop esi
mov dword fs:[0], ecx
add esp, 0x484
ret 4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0x1525
jne 0x403c1e
mov ecx, esi
call fcn.00404f00
mov eax, 1
jmp 0x403be1
cmp eax, 0x1527
jne 0x403bdf
push 0
lea ecx, [esp + 0xc]
call fcn.00408ca0
lea eax, [esp + 0x7c]
push 0
push eax
mov ecx, esi
mov dword [esp + 0x48c], 0
call fcn.00403900
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x70]
call fcn.004dd5d6
lea edx, [esi + 0x30]
lea ecx, [esp + 0x68]
push edx
call fcn.004dd5d6
lea ecx, [esp + 8]
call fcn.00408da0
cmp eax, 1
jne 0x403c82
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [esp + 0x64], 1
jne 0x403ce4
mov ecx, esi
call fcn.00404f00
lea ecx, [esp + 0x70]
mov dword [esp + 0x484], 3
call fcn.004dd44d
lea ecx, [esp + 0x6c]
mov byte [esp + 0x484], 2
call fcn.004dd44d
lea ecx, [esp + 0x68]
mov byte [esp + 0x484], 1
call fcn.004dd44d
lea ecx, [esp + 8]
mov dword [esp + 0x484], 0xffffffff
call fcn.004d9115
mov eax, 1
jmp 0x403be1
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4040e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0xc
call fcn.004dda96
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
push 0
push 0x403d70
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
call fcn.004c2945
add esp, 0x10
pop esi
ret 8