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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x502f5b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x502f4a
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x502f90
cmp dword [esi + 8], 0
jne 0x502f7e
push 0x55a940
push dword [eax + 8]
call fcn.004bde1a
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x502f7e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.004bdff4
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x502fb2
mov eax, dword [esi + 8]
test eax, eax
je 0x502fac
push eax
call fcn.004bd940
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x504fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004bab30
mov eax, dword [0x562850]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x40], ebx
test edi, edi
jne 0x505005
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004ba5ad
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.0050cdd1
add esp, 8
test eax, eax
js 0x504fee
mov eax, 8
call fcn.004bab30
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.0042d2d0
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x504fee
push 0x55a940
push edi
call fcn.004bde1a
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
je 0x5050e1
lea esp, [esp]
mov edi, 0x400
test esi, esi
jle 0x50506e
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.004bdff4
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x5050c2
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.004bab30
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.0042d2d0
add dword [esp + 0x50], ebx
add esp, 0x10
mov eax, dword [esp + 0x44]
test esi, esi
jle 0x505060
sub esi, edi
test esi, esi
jg 0x505060
push dword [esp + 0x44]
call fcn.004bd940
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.00401360
mov ebx, dword [esp + 0x4c]
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ba5ad
mov esp, ebp
pop ebp
ret
Function at 0x50a890
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x563b60]
mov edi, eax
add esp, 4
test edi, edi
jne 0x50a8b7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x50a8ff
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x50a903
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x50a963
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
dec ebx
jne 0x50a924
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x50a997
jmp 0x50a970
mov eax, dword [esi + 4]
push 1
push 0x557210
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x557211
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x50a970
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x50ba30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x50ba3c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0050ba50

Function at 0x741df0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x30f000]
push edi
jmp 0x741e0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x741e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x741e00
mov eax, 1
add ebx, ebx
jne 0x741e23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x741e34
jne 0x741e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x741e53
dec eax
add ebx, ebx
jne 0x741e40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x741e18
add ebx, ebx
jne 0x741e4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x741ea5
xor ecx, ecx
sub eax, 3
jb 0x741e6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x741eda
sar eax, 1
mov ebp, eax
jmp 0x741e76
add ebx, ebx
jne 0x741e76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x741e44
inc ecx
add ebx, ebx
jne 0x741e84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x741e44
add ebx, ebx
jne 0x741e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x741e86
jne 0x741ea2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x741e86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x741ec4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x741eb6
jmp 0x741e06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x741ec4
add edi, ecx
jmp 0x741e06
pop esi
mov edi, esi
mov ecx, 0x33
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x741ee2
cmp byte [edi], 4
jne 0x741ee2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x741ee7
lea edi, [esi + 0x33f000]
mov eax, dword [edi]
or eax, eax
je 0x741f56
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x341efc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x341f68]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x741f14
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x341f70]
or eax, eax
je 0x741f50
mov dword [ebx], eax
add ebx, 4
jmp 0x741f31
call dword [esi + 0x341f6c]
mov ebp, dword [esi + 0x341f74]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x741f8a
sub esp, 0xffffff80
jmp 0x40dbaa
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480030]
jne 0x401073
repz ret
jmp fcn.00401d31

Function at 0x408c35
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.00403555
and dword [ebp - 4], 0
cmp dword [0x48288c], 0
mov ebx, eax
jne 0x408ce6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408d97
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408d97
push eax
call fcn.004034e3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48288c], eax
call esi
push eax
call fcn.004034e3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x482890], eax
call esi
push eax
call fcn.004034e3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x482894], eax
call esi
push eax
call fcn.004034e3
pop ecx
mov dword [0x48289c], eax
test eax, eax
je 0x408ce6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004034e3
pop ecx
mov dword [0x482898], eax
mov eax, dword [0x482898]
cmp eax, ebx
je 0x408d3e
cmp dword [0x48289c], ebx
je 0x408d3e
push eax
call fcn.0040355e
push dword [0x48289c]
mov esi, eax
call fcn.0040355e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408d3e
test edi, edi
je 0x408d3e
call esi
test eax, eax
je 0x408d35
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408d35
test byte [ebp - 0xc], 1
jne 0x408d3e
or dword [ebp + 0x10], 0x200000
jmp 0x408d77
mov eax, dword [0x482890]
cmp eax, ebx
je 0x408d77
push eax
call fcn.0040355e
pop ecx
test eax, eax
je 0x408d77
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408d77
mov eax, dword [0x482894]
cmp eax, ebx
je 0x408d77
push eax
call fcn.0040355e
pop ecx
test eax, eax
je 0x408d77
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48288c]
call fcn.0040355e
pop ecx
test eax, eax
je 0x408d97
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408d99
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1051058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10511a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105106a
add dl, dl
jne 0x1051089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10510dc
xor eax, eax
add dl, dl
jne 0x1051096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105117d
add dl, dl
jne 0x10510a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10510d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1051075
mov eax, 1
add dl, dl
jne 0x10510ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10510f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10510e1
sub eax, ebx
mov ebx, 1
jne 0x1051128
mov ecx, 1
add dl, dl
jne 0x105110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1051119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1051105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1051136
cmp eax, 0x7d00
jae 0x105116d
cmp eax, 0x500
jb 0x1051168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
cmp eax, 0x7f
ja 0x1051170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1051075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1051075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40bf16
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040c0c6
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40c014
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40bfb7
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40bffa
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40bfce
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40bfe9
test al, 0x40
je 0x40bfe0
mov ecx, dword [edi + 0x20]
jmp 0x40bfe7
test al, 0x80
je 0x40bffa
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40bffa
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40bf86
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40f18b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x40f1c3
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40f1b1
mov al, 1
jmp 0x40f222
cmp dword [ebx + 0x54], ecx
jne 0x40f1ba
mov al, 2
jmp 0x40f222
cmp dword [ebx + 0x7c], ecx
jne 0x40f222
mov al, 3
jmp 0x40f222
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x40f1d8
mov al, 4
jmp 0x40f222
cmp ecx, 5
jne 0x40f1f8
cmp ebx, 0
jne 0x40f1e6
mov al, 5
jmp 0x40f222
cmp ebx, 1
jne 0x40f1ef
mov al, 6
jmp 0x40f222
cmp ebx, 2
jne 0x40f1f8
mov al, 7
jmp 0x40f222
cmp ecx, 6
jne 0x40f220
cmp ebx, 0
jne 0x40f206
mov al, 8
jmp 0x40f222
cmp ebx, 1
jne 0x40f20d
mov al, 9
cmp ebx, 2
jne 0x40f214
mov al, 0xa
cmp ebx, 3
jne 0x40f21b
mov al, 0xb
cmp ebx, 4
jne 0x40f222
mov al, 0xc
pop ebx
leave
ret
Function at 0x41d46a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x41d53f
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x41d53f
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x41d53f
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x41d4c5
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x41d53f
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41d50a
test dl, dl
je 0x41d506
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41d50a
add ecx, 2
add eax, 2
test dl, dl
jne 0x41d4ea
xor eax, eax
jmp 0x41d50f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41d521
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x41d52c
inc esi
cmp esi, ebp
jae 0x41d53f
mov edx, dword [esp + 0x10]
jmp 0x41d4e0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x41d7a3
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x41d7ae
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x41d7c2
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41d7c6
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x41d7ff
cmp dword [edi + ecx], 0x4550
jne 0x41d7ff
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x41d7ff
test byte [edi + ecx + 0x16], 2
je 0x41d7ff
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x41d804
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x41d840
xor eax, eax
jmp 0x41d823
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x41d849
inc edx
movzx eax, dx
cmp eax, edi
jl 0x41d823
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x41d84f
Capabilities:
Access peb ldr_data

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
mov edi, dword [ebp + 0x30]
mov esi, dword [esp + 0x18]
movzx ebx, word [esi]
mov eax, ebx
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x41d887
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x41d895
add edx, 0x20
cmp eax, edx
jne 0x41d8a6
test bx, bx
je 0x41d8db
add esi, 2
add edi, 2
jmp 0x41d877
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x41d8b4
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x41d8c2
add edx, 0x20
sub ecx, edx
je 0x41d8db
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x41d870
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x41e3b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x41e479
test ecx, ecx
je 0x41e479
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x41e479
test ebx, ebx
je 0x41e479
mov ebx, eax
add ebx, edx
je 0x41e479
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x41e479
cmp dword [edx + eax + 0x14], 0
je 0x41e479
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x41e479
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x41e469
test dl, dl
je 0x41e465
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x41e469
add edi, 2
add esi, 2
test dl, dl
jne 0x41e449
xor eax, eax
jmp 0x41e46e
sbb eax, eax
or eax, 1
test eax, eax
je 0x41e485
inc ebp
cmp ebp, dword [esp + 4]
jb 0x41e436
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x4c214e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4c2186
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4c2174
mov al, 1
jmp 0x4c21d0
cmp dword [ebx + 0x54], ecx
jne 0x4c217d
mov al, 2
jmp 0x4c21d0
cmp dword [ebx + 0x7c], ecx
jne 0x4c21d0
mov al, 3
jmp 0x4c21d0
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4c219b
mov al, 4
jmp 0x4c21d0
cmp ecx, 5
jne 0x4c21bb
cmp ebx, 0
jne 0x4c21a9
mov al, 5
jmp 0x4c21d0
cmp ebx, 1
jne 0x4c21b2
mov al, 6
jmp 0x4c21d0
cmp ebx, 2
jne 0x4c21bb
mov al, 7
jmp 0x4c21d0
cmp ecx, 6
jne 0x4c21c7
cmp ebx, 0
jne 0x4c21c9
mov al, 8
jmp 0x4c21d0
cmp ebx, 1
jne 0x4c21d0
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ecc90
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5b16bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005a4cfa
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4ecd12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005a1b3b
mov eax, dword [eax]
push 0xb6ad80
push eax
call fcn.00592e94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005a4f85
test bl, bl
je 0x4ecd12
push 0xb6ad80
lea ecx, [esp + 0xc]
call fcn.005a5315
push 0xb6ad8c
lea ecx, [esp + 0xc]
call fcn.005a5315
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4ecd4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005a4f85
jmp 0x4ece19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4ecdd2
lea edx, [esp + 0x7c]
push 0xb6ad88
push edx
call fcn.00592e94
add esp, 8
test eax, eax
je 0x4ecdd2
lea eax, [esp + 0x7c]
push 0xb6ad84
push eax
call fcn.00592e94
add esp, 8
test eax, eax
je 0x4ecdd2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4ecd62
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005a4f85
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4ee0b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4ee112
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc