joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447b9a
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push esi
call dword [0x4815b8]
mov bx, ax
and bl, 1
cmp byte [esp + 0x14], bl
je 0x447c01
push ebp
push edi
mov edi, dword [0x48164c]
push 0
push esi
call edi
mov ebp, dword [0x4815bc]
push 0
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x20]
push 0
push eax
push esi
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043aab9
push 0
push esi
call edi
push 0
mov byte [esp + 0x20], al
mov edx, dword [esp + 0x20]
push 2
push edx
push esi
call ebp
mov eax, dword [esp + 0x14]
push eax
call fcn.0043aad0
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
ret 0xc

Function at 0x447c26
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
lea ecx, [eax + 4]
push edi
mov edi, dword [eax + edx]
mov dword [esi], ecx
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412dbe
mov ebx, eax
mov eax, dword [esi]
add eax, dword [esp + 0x18]
lea ebp, [edi + edi]
push ebp
push eax
push ebx
call fcn.004135d0
add dword [esi], ebp
xor ecx, ecx
add esp, 0x10
xor eax, eax
mov word [ebx + ebp], cx
test edi, edi
jle 0x447c82
xor word [ebx + eax*2], di
inc eax
cmp eax, edi
jl 0x447c79
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 8

Function at 0x448549
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
call dword [0x481610]
test eax, eax
jne 0x448565
mov eax, dword [esp + 0x10]
cmp byte [eax + 5], 1
jne 0x4485bd
push 0
push 0
push 0xe
push ebx
call dword [0x481648]
mov edi, eax
test edi, edi
jne 0x44857d
mov edi, 0x7fff
push ebp
xor ecx, ecx
lea ebp, [edi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412dbe
add esp, 4
mov esi, eax
push esi
push ebp
push 0xd
push ebx
call dword [0x481648]
xor ecx, ecx
mov word [esi + edi*2], cx
pop ebp
test eax, eax
jg 0x4485c8
push esi
call fcn.00412f61
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
mov edi, dword [esp + 0x10]
cmp byte [edi + 0xc], 0
jne 0x4485e3
push esi
call fcn.0041503a
add esp, 4
push eax
push esi
call dword [0x481600]
mov eax, dword [edi + 0x24]
push eax
push esi
call fcn.0041554c
add esp, 8
push esi
test eax, eax
je 0x4485b5
mov byte [edi + 0xb8], 1
call fcn.00412f61
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x44b9a2
Capabilities:
Hide graphical window

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
push 0x4a35d0
call fcn.00444cfe
test al, al
je case.0x44ba29.8
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4a3630]
mov edx, dword [ecx + eax*4]
mov ebp, dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4a3644]
mov edx, dword [ecx + eax*4]
mov esi, dword [edx]
mov bl, byte [esi + 0x88]
mov edi, dword [esi]
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x24], bl
call fcn.00438817
mov eax, dword [esi + 0x44]
add esp, 4
test eax, eax
jl 0x44ba12
push eax
call fcn.004445b6
movzx eax, bl
cmp eax, 0x1b
ja case.0x44ba29.8
movzx ecx, byte [eax + 0x44bba6]
mov ebx, dword [esp + 0x24]
jmp dword [ecx*4 + 0x44bb82]
mov ebp, dword [esp + 0x24]
cmp ebp, 0xfffffffe
je case.0x44ba29.8
cmp ebp, 0xfe000000
jne 0x44ba4d
mov dword [esi + 0x44], ebp
jmp 0x44bb49
mov ebx, dword [0x481648]
push ebp
push 0
push 0x1001
push edi
call ebx
push ebp
push 0
push 0x1026
push edi
call ebx
mov edx, dword [esp + 0x18]
push 1
push esi
push edx
call fcn.004369e1
jmp 0x44bb49
mov eax, dword [esp + 0x24]
test eax, eax
jl case.0x44ba29.8
mov dword [esi + 0x44], eax
jmp 0x44bb49
mov eax, dword [esp + 0x24]
test eax, eax
jl case.0x44ba29.8
push eax
push 0
push 0x2001
push edi
call dword [0x481648]
jmp 0x44bb49
mov eax, dword [esp + 0x24]
test eax, eax
jl case.0x44ba29.8
push eax
push 0
push 0x111d
push edi
call dword [0x481648]
jmp 0x44bb49
mov eax, dword [esp + 0x24]
test eax, eax
jl case.0x44ba29.8
push 1
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x30]
push 0
push eax
call dword [0x481618]
jmp 0x44bb49
test ebx, ebx
jl case.0x44ba29.8
push 0xfffffffffffffff0
push edi
call dword [0x48161c]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push edi
call dword [0x4814c4]
push 1
push esi
push ebp
mov dword [esi + 0x44], ebx
call fcn.004369e1
jmp 0x44bb49
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jl case.0x44ba29.8
test byte [esi + 0x8a], 0x20
mov dword [esi + 0x44], eax
jne 0x44bb49
mov ecx, dword [esi]
mov edi, dword [0x4816d4]
push 0
push ecx
call edi
mov edx, dword [esi]
push 5
push edx
call edi
mov eax, dword [esi]
push eax
call dword [0x4816bc]
cmp dword [0x492bcc], 0
je 0x44bb66
cmp byte [esp + 0x20], 8
jne 0x44bb66
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8

Function at 0x44d766
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xdc
push ebx
mov ebx, dword [esp + 0xe4]
push esi
push edi
mov edi, dword [esp + 0xf0]
lea eax, [esp + 0x10]
push eax
call fcn.004459c6
mov ecx, dword [esp + 0xf4]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00445920
xor esi, esi
test edi, edi
jbe 0x44d7b8
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
call fcn.00445998
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x44d7a6
pop edi
pop esi
pop ebx
add esp, 0xdc
ret 0xc
Function at 0x44da73
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
sub dword [0x49121c], 1
jne 0x44da82
call fcn.00445b76
mov ecx, dword [0x4a2bec]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4a2bec], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
test edx, edx
jge 0x44dacb
fadd qword [0x48b510]
fmul qword [0x48b518]
pop ecx
ret
Function at 0x44fe21
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push ebp
push esi
push edi
push 0
push 0
push 0xe
push eax
call dword [0x481648]
mov edi, eax
test edi, edi
jne 0x44fe43
mov edi, 0x7fff
xor ecx, ecx
lea ebp, [edi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412dbe
add esp, 4
mov esi, eax
mov eax, dword [ebx]
push esi
push ebp
push 0xd
push eax
call dword [0x481648]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x18]
mov word [esi + edi*2], cx
jne 0x44fe9a
push 0x4838c0
call fcn.00406410
push esi
call fcn.00412f61
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push esi
call fcn.00406410
push esi
call fcn.00412f61
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x4508ba
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
mov ebx, dword [0x481648]
push ebp
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0xb0
push edx
call ebx
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x10]
jne 0x4508ee
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
mov ecx, dword [ebp]
push esi
push 0
push 0
push 0xe
push ecx
call ebx
mov esi, eax
test esi, esi
jne 0x45090a
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
xor ecx, ecx
lea eax, [esi + 0x101]
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00412dbe
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
push edi
lea eax, [esi + 1]
push eax
push 0xd
push ecx
call ebx
test eax, eax
je 0x45096f
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x45094b
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [esp + 0x10]
lea ecx, [edi + eax*2]
mov eax, dword [esp + 0x1c]
push ecx
call fcn.00406410
push edi
call fcn.00412f61
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
push edi
call fcn.00412f61
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
Function at 0x453127
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
sub esp, 0x264
push ebp
mov ebp, dword [esp + 0x278]
push esi
mov esi, dword [esp + 0x274]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
call fcn.004061f0
lea ecx, [esp + 0x18]
call fcn.004061f0
lea ecx, [esp + 0x38]
call fcn.004061f0
push str.SOFTWAREClasses_
lea eax, [esp + 0x2c]
call fcn.00406410
mov edi, dword [esp + 0x274]
lea eax, [esp + 0x28]
call fcn.0040dec0
mov edi, str.CLSID
lea eax, [esp + 0x28]
call fcn.0040dec0
push 0x4838c0
lea eax, [esp + 0x1c]
call fcn.00406410
test esi, esi
je 0x4531cd
cmp word [esi], 0x5c
je 0x4531cd
cmp word [esi + 2], 0x5c
je 0x4531cd
push 0x489794
lea eax, [esp + 0x1c]
call fcn.00406410
mov edi, esi
lea eax, [esp + 0x18]
call fcn.0040dec0
test ebp, ebp
je 0x45322b
push 0x20
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00414fc0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x3c]
mov dword [esp + 0x50], 0
call fcn.0040f2c0
mov edi, str.IPC_
mov eax, esi
call fcn.0040dec0
mov eax, dword [esp + 0x284]
mov edx, dword [esp + 0x38]
push 0
push ebp
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x6c], edx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
test esi, esi
jne 0x4532de
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push reloc.WSOCK32.dll_bind
push eax
call dword [0x481018]
mov esi, eax
test esi, esi
jne 0x4532de
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [0x481040]
mov ebp, dword [0x481038]
mov esi, eax
test esi, esi
jne 0x4532d7
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x6c]
push edx
push 0
push 0
push 0
push eax
mov dword [esp + 0x28], 0x1fe
call dword [0x48103c]
mov esi, eax
test esi, esi
jne 0x4532d0
mov eax, dword [esp + 0x10]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x68]
mov dword [esp + 0x10], eax
mov word [esp + eax*2 + 0x68], cx
call fcn.00411c60
mov edx, dword [esp + 0x27c]
mov edi, eax
push edx
push edi
call dword [0x481804]
push edi
mov esi, eax
call fcn.00412f61
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebp
lea ecx, [esp + 0x38]
call fcn.004066f0
lea ecx, [esp + 0x18]
call fcn.004066f0
lea ecx, [esp + 0x28]
call fcn.004066f0
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x264
ret
Function at 0x453305
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.004061f0
fld1
lea eax, [esp + 0x24]
fstp qword [esp + 0x28]
push eax
push ebp
call dword [0x481800]
mov esi, eax
test esi, esi
jl 0x453506
mov edi, dword [esp + 0x24]
call fcn.00411c60
mov esi, eax
push str.interface_
lea eax, [esp + 0x34]
call fcn.00406410
mov edi, esi
lea eax, [esp + 0x30]
call fcn.0040dec0
mov edi, str.TypeLib
lea eax, [esp + 0x30]
call fcn.0040dec0
push esi
call fcn.00412f61
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [0x4817f8]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push accept
call dword [0x481040]
mov esi, eax
test esi, esi
jne 0x453506
mov ebx, dword [0x48103c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], 0x1fe
call ebx
mov esi, eax
test esi, esi
jne 0x4534fb
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x50], cx
call fcn.00411c60
lea edx, [esp + 0x40]
mov edi, eax
push edx
push edi
call dword [0x481804]
push edi
mov esi, eax
call fcn.00412f61
add esp, 4
test esi, esi
jl 0x4534fb
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push str.Version
push edx
mov dword [esp + 0x2c], 0x1fe
call ebx
test eax, eax
jne 0x453456
mov eax, dword [esp + 0x14]
shr eax, 1
lea edx, [esp + 0x50]
xor ecx, ecx
push edx
mov dword [esp + 0x18], eax
mov word [esp + eax*2 + 0x54], cx
call fcn.00415d67
fstp qword [esp + 0x2c]
add esp, 4
fld1
lea eax, [esp + 0x20]
push eax
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.004181a0
fnstcw word [esp + 0x2a]
add esp, 0x10
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov cx, word [esp + 0x20]
movzx edx, cx
push edx
fldcw word [esp + 0x1e]
lea edx, [esp + 0x4c]
fld qword [esp + 0x34]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov ax, word [esp + 0x24]
movzx ecx, ax
push ecx
fldcw word [esp + 0x22]
push edx
call dword [0x481430]
mov esi, eax
test esi, esi
jl 0x4534fb
mov edx, dword [esp + 0x264]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [0x481038]
lea ecx, [esp + 0x30]
call fcn.004066f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x45351c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x284
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
mov esi, 0x80004002
xor ebx, ebx
mov dword [esp + 0x14], 0x28
call fcn.004061f0
mov ebp, dword [0x481040]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.interface
push accept
call ebp
test eax, eax
jne 0x453661
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x4c]
push eax
push ebx
push ecx
call dword [0x48101c]
test eax, eax
jne 0x453656
mov eax, dword [esp + 0x14]
xor edx, edx
mov word [esp + eax*2 + 0x38], dx
push str.interface_
lea eax, [esp + 0x24]
mov dword [esp + 0x18], 0x1fe
call fcn.00406410
lea edi, [esp + 0x38]
lea eax, [esp + 0x20]
call fcn.0040dec0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push accept
call ebp
test eax, eax
jne 0x453644
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push edx
call dword [0x48103c]
test eax, eax
jne 0x453639
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x29c]
shr eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x88], cx
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00413104
add esp, 8
test eax, eax
jne 0x453639
mov ecx, dword [esp + 0x298]
push ecx
push edi
call dword [0x4817fc]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [0x481038]
test esi, esi
je 0x453656
inc ebx
mov dword [esp + 0x14], 0x28
jmp 0x453563
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x481038]
lea ecx, [esp + 0x20]
call fcn.004066f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x284
ret
Function at 0x4579b1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
call dword [0x4816a4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x160], edx
call dword [0x481630]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, dword [esi + 0x164]
jne 0x457a05
cmp ecx, dword [esi + 0x168]
je 0x457a23
cmp dword [esp + 0x24], 1
mov dword [esi + 0x164], eax
mov dword [esi + 0x168], ecx
jl 0x457a23
push ecx
push eax
push esi
push 0xfffffffffffffff5
push ebx
call fcn.004522b0
mov ecx, dword [ebx + 0x18]
mov ebp, dword [0x4815ac]
push ecx
call ebp
mov edx, dword [ebx + 0x1c]
movzx edi, ax
push edx
shr edi, 0xf
call ebp
movzx ebp, ax
shr ebp, 0xf
cmp edi, dword [esi + 0x16c]
je 0x457ac3
cmp dword [esp + 0x24], 1
jl 0x457ac3
cmp byte [esi + 0x198], 0
je 0x457ac3
test edi, edi
je 0x457a6c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff9
jmp 0x457ab6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff8
push ebx
call fcn.004522b0
cmp byte [esi + 0x174], 0
je 0x457abc
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [0x48161c]
test eax, 0x1000000
je 0x457aa9
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffffa
jmp 0x457ab6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push esi
push 0xfffffffffffffff4
push ebx
call fcn.004522b0
mov byte [esi + 0x174], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x457ad1
mov dword [esi + 0x16c], edi
cmp ebp, dword [esi + 0x170]
je 0x457b04
cmp eax, 1
jl 0x457b04
test ebp, ebp
je 0x457af1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
push 0xfffffffffffffff7
jmp 0x457afe
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push esi
push 0xfffffffffffffff6
push ebx
call fcn.004522b0
cmp dword [esp + 0x24], 0
je 0x457b11
mov dword [esi + 0x170], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x4796a6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x48]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ebx
mov edi, ecx
cmp byte [0x4a35c5], bl
je 0x47983e
mov eax, dword [0x4a35c8]
cmp eax, ebx
je 0x47983e
mov edx, 3
mov word [eax + 0x38], dx
mov dword [eax + 0x40], ecx
mov word [eax + 0x98], dx
call dword [0x4812f0]
mov edx, dword [0x4a35c8]
mov dword [edx + 0xa0], eax
mov eax, 3
mov word [edx + 0xa8], ax
mov ecx, dword [ebp + 0xec]
push ecx
call fcn.0043ab94
mov dword [edx + 0xb0], eax
cmp esi, ebx
je 0x4797be
mov ecx, dword [esi + 4]
mov ebx, dword [reloc.WSOCK32.dll_inet_addr]
mov eax, 8
mov word [esp + 0x20], ax
lea eax, [esp + 0x20]
push eax
add edx, 0x68
push edx
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a35c8]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
add eax, 0x58
push eax
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a35c8]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x20]
push edx
add eax, 0x78
push eax
mov dword [esp + 0x30], ecx
call ebx
mov eax, dword [0x4a35c8]
mov ecx, 3
mov word [eax + 0x88], cx
mov edx, dword [esi + 0x10]
mov dword [eax + 0x90], edx
mov word [eax + 0xb8], cx
movzx ecx, word [esi]
test cx, cx
je 0x4797af
movzx esi, cx
jmp 0x4797b2
mov esi, dword [esi + 0x1c]
mov dword [eax + 0xc0], esi
test esi, esi
je 0x4797be
mov edi, esi
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4797d3
mov edi, eax
lea ebx, [esp + 0x10]
call fcn.0040fc70
jmp 0x4797f2
push edi
lea edx, [esp + 0x34]
push edx
call fcn.0044d6b8
mov edi, eax
lea esi, [esp + 0x10]
call fcn.0040fce0
lea ecx, [esp + 0x30]
call fcn.004066f0
mov eax, dword [0x4a35c8]
add eax, 0x48
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004755ea
mov ecx, dword [0x4a35c8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
add esp, 8
call eax
mov edx, dword [ebp]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx + 4]
push 0
push ecx
add eax, ebp
call fcn.00402050
lea esi, [esp + 0x10]
call fcn.00401f90
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x14
mov eax, dword [ebp]
mov eax, dword [eax + 4]
push ebx
push ecx
add eax, ebp
call fcn.00402050
cmp byte [esp + 0x54], bl
je 0x479829
lea esi, [esp + 0x10]
call fcn.00401f90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 0x14
Function at 0x40d960
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ee2b
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.00463670
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d9e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046141d
mov eax, dword [eax]
push 0x4861d0
push eax
call fcn.004538a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004638fb
test bl, bl
je 0x40d9e2
push 0x4861d0
lea ecx, [esp + 0xc]
call fcn.00463c8b
push 0x489d44
lea ecx, [esp + 0xc]
call fcn.00463c8b
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 0x40da1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004638fb
jmp 0x40dae9
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 0x40daa2
lea edx, [esp + 0x7c]
push 0x489d40
push edx
call fcn.004538a4
add esp, 8
test eax, eax
je 0x40daa2
lea eax, [esp + 0x7c]
push 0x489d3c
push eax
call fcn.004538a4
add esp, 8
test eax, eax
je 0x40daa2
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 0x40da32
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.004638fb
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 0x40e2e0
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 0x40e342
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