joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2d000]
lea eax, [edi + 0x3ff28]
push dword [eax]
mov dword [eax], 0x67809d85
push eax
push edi
or ebp, 0xffffffff
jmp 0x449692
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x449699
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x449688
mov eax, 1
add ebx, ebx
jne 0x4496ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4496bc
jne 0x4496db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4496db
dec eax
add ebx, ebx
jne 0x4496c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4496a0
add ebx, ebx
jne 0x4496d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x44972d
xor ecx, ecx
sub eax, 3
jb 0x4496f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x449762
sar eax, 1
mov ebp, eax
jmp 0x4496fe
add ebx, ebx
jne 0x4496fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4496cc
inc ecx
add ebx, ebx
jne 0x44970c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4496cc
add ebx, ebx
jne 0x449719
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x44970e
jne 0x44972a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x44970e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44974c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x44973e
jmp 0x44968e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44974c
add edi, ecx
jmp 0x44968e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x13c2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44976e
cmp byte [edi], 0x11
jne 0x44976e
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 0x449773
lea edi, [esi + 0x46000]
mov eax, dword [edi]
or eax, eax
je 0x4497e2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x49508]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x495b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4497a0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x495b8]
or eax, eax
je 0x4497dc
mov dword [ebx], eax
add ebx, 4
jmp 0x4497bd
call dword [esi + 0x495b4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x449813
cmp al, 0xef
ja 0x449806
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4497e8
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4497f5
mov ebp, dword [esi + 0x495bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x449847
sub esp, 0xffffff80
jmp 0x414b6f
Function at 0x48fcc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5c000]
lea eax, [edi + 0x7f850]
push dword [eax]
mov dword [eax], 0x898e1a2b
push eax
push edi
jmp 0x48fcea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fcf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fce0
mov eax, 1
add ebx, ebx
jne 0x48fd03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fd14
jne 0x48fd33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fd33
dec eax
add ebx, ebx
jne 0x48fd20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fcf8
add ebx, ebx
jne 0x48fd2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fd85
xor ecx, ecx
sub eax, 3
jb 0x48fd4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48fdba
sar eax, 1
mov ebp, eax
jmp 0x48fd56
add ebx, ebx
jne 0x48fd56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fd24
inc ecx
add ebx, ebx
jne 0x48fd64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fd24
add ebx, ebx
jne 0x48fd71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fd66
jne 0x48fd82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fd66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fda4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48fd96
jmp 0x48fce6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fda4
add edi, ecx
jmp 0x48fce6
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x2d3f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fdc6
cmp byte [edi], 0x11
jne 0x48fdc6
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 0x48fdcb
lea edi, [esi + 0x8a000]
mov eax, dword [edi]
or eax, eax
je 0x48fe43
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f558]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f650]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fdf8
mov ecx, edi
jns 0x48fe27
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8f658]
or eax, eax
je 0x48fe3d
mov dword [ebx], eax
add ebx, 4
jmp 0x48fe15
call dword [esi + 0x8f654]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x48fe74
cmp al, 0xef
ja 0x48fe67
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x48fe49
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x48fe56
mov ebp, dword [esi + 0x8f65c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x48fea8
sub esp, 0xffffff80
jmp 0x43ba3e
Function at 0x417da7
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.004126b6
and dword [ebp - 4], 0
cmp dword [0x44dbf4], 0
mov ebx, eax
jne 0x417e58
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417f09
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417f09
push eax
call fcn.00412644
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44dbf4], eax
call esi
push eax
call fcn.00412644
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44dbf8], eax
call esi
push eax
call fcn.00412644
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dbfc], eax
call esi
push eax
call fcn.00412644
pop ecx
mov dword [0x44dc04], eax
test eax, eax
je 0x417e58
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412644
pop ecx
mov dword [0x44dc00], eax
mov eax, dword [0x44dc00]
cmp eax, ebx
je 0x417eb0
cmp dword [0x44dc04], ebx
je 0x417eb0
push eax
call fcn.004126bf
push dword [0x44dc04]
mov esi, eax
call fcn.004126bf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417eb0
test edi, edi
je 0x417eb0
call esi
test eax, eax
je 0x417ea7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417ea7
test byte [ebp - 0xc], 1
jne 0x417eb0
or dword [ebp + 0x10], 0x200000
jmp 0x417ee9
mov eax, dword [0x44dbf8]
cmp eax, ebx
je 0x417ee9
push eax
call fcn.004126bf
pop ecx
test eax, eax
je 0x417ee9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417ee9
mov eax, dword [0x44dbfc]
cmp eax, ebx
je 0x417ee9
push eax
call fcn.004126bf
pop ecx
test eax, eax
je 0x417ee9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dbf4]
call fcn.004126bf
pop ecx
test eax, eax
je 0x417f09
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417f0b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x9907a5c
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x65cd2d2f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x43f8a1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43f8cf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43f8ed
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043f80b
jmp 0x43f8ed
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43f8ed
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043f80b
test edi, edi
mov eax, edi
jne 0x43f8d7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56a314]
test ecx, ecx
je 0x43f9a0
jmp 0x43f8a0
ret 8

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
mov ebx, 0x408ecc
nop
mov ecx, 0x4a6e2dee
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
mov ecx, 0x78a60dc5
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4016e2
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 0x4017b7
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4017b7
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x4017b7
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 0x40173d
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 0x4017b7
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401782
test dl, dl
je 0x40177e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401782
add ecx, 2
add eax, 2
test dl, dl
jne 0x401762
xor eax, eax
jmp 0x401787
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401799
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x4017a4
inc esi
cmp esi, ebp
jae 0x4017b7
mov edx, dword [esp + 0x10]
jmp 0x401758
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 0x401a1b
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x401a26
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x401a3a
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x401a3e
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x401a77
cmp dword [edi + ecx], 0x4550
jne 0x401a77
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x401a77
test byte [edi + ecx + 0x16], 2
je 0x401a77
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x401a7c
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 0x401ab8
xor eax, eax
jmp 0x401a9b
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x401ac1
inc edx
movzx eax, dx
cmp eax, edi
jl 0x401a9b
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x401ac7
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 0x401aff
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x401b0d
add edx, 0x20
cmp eax, edx
jne 0x401b1e
test bx, bx
je 0x401b53
add esi, 2
add edi, 2
jmp 0x401aef
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x401b2c
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x401b3a
add edx, 0x20
sub ecx, edx
je 0x401b53
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x401ae8
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 0x4025cc
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 0x40268d
test ecx, ecx
je 0x40268d
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x40268d
test ebx, ebx
je 0x40268d
mov ebx, eax
add ebx, edx
je 0x40268d
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x40268d
cmp dword [edx + eax + 0x14], 0
je 0x40268d
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 0x40268d
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 0x40267d
test dl, dl
je 0x402679
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x40267d
add edi, 2
add esi, 2
test dl, dl
jne 0x40265d
xor eax, eax
jmp 0x402682
sbb eax, eax
or eax, 1
test eax, eax
je 0x402699
inc ebp
cmp ebp, dword [esp + 4]
jb 0x40264a
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 0x405537
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 0x40560c
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x40560c
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x40560c
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 0x405592
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 0x40560c
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4055d7
test dl, dl
je 0x4055d3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4055d7
add ecx, 2
add eax, 2
test dl, dl
jne 0x4055b7
xor eax, eax
jmp 0x4055dc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4055ee
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x4055f9
inc esi
cmp esi, ebp
jae 0x40560c
mov edx, dword [esp + 0x10]
jmp 0x4055ad
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 0x405870
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40587b
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x40588f
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x405893
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x4058cc
cmp dword [edi + ecx], 0x4550
jne 0x4058cc
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x4058cc
test byte [edi + ecx + 0x16], 2
je 0x4058cc
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x4058d1
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 0x40590d
xor eax, eax
jmp 0x4058f0
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x405916
inc edx
movzx eax, dx
cmp eax, edi
jl 0x4058f0
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x40591c
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 0x405954
add eax, 0x20
movzx edx, word [edi]
lea ecx, [edx - 0x41]
cmp ecx, 0x19
ja 0x405962
add edx, 0x20
cmp eax, edx
jne 0x405973
test bx, bx
je 0x4059a8
add esi, 2
add edi, 2
jmp 0x405944
movzx ecx, word [esi]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x405981
add ecx, 0x20
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp eax, 0x19
ja 0x40598f
add edx, 0x20
sub ecx, edx
je 0x4059a8
mov ebp, dword [ebp]
mov dword [esp + 0x10], ebp
cmp dword [ebp + 0x18], 0
jne 0x40593d
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 0x4059c1
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 0x405a82
test ecx, ecx
je 0x405a82
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x405a82
test ebx, ebx
je 0x405a82
mov ebx, eax
add ebx, edx
je 0x405a82
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x405a82
cmp dword [edx + eax + 0x14], 0
je 0x405a82
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 0x405a82
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 0x405a72
test dl, dl
je 0x405a6e
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x405a72
add edi, 2
add esi, 2
test dl, dl
jne 0x405a52
xor eax, eax
jmp 0x405a77
sbb eax, eax
or eax, 1
test eax, eax
je 0x405a8e
inc ebp
cmp ebp, dword [esp + 4]
jb 0x405a3f
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 0x4a9e40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x54b92b
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.0054064e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a9ec2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0053e535
mov eax, dword [eax]
push 0x128ad08
push eax
call fcn.0051e254
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005408d9
test bl, bl
je 0x4a9ec2
push 0x128ad08
lea ecx, [esp + 0xc]
call fcn.00540c69
push 0x128ad14
lea ecx, [esp + 0xc]
call fcn.00540c69
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 0x4a9efe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005408d9
jmp 0x4a9fc9
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 0x4a9f82
lea edx, [esp + 0x7c]
push 0x128ad10
push edx
call fcn.0051e254
add esp, 8
test eax, eax
je 0x4a9f82
lea eax, [esp + 0x7c]
push 0x128ad0c
push eax
call fcn.0051e254
add esp, 8
test eax, eax
je 0x4a9f82
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 0x4a9f12
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.005408d9
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 0x4aa7d0
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 0x4aa832
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