joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017770
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push str.NameServer
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esi], 0
call ebp
test eax, eax
je 0x100177b1
cmp eax, 0xea
jne 0x10017810
mov eax, dword [esp + 4]
test eax, eax
je 0x10017810
add eax, 1
push eax
call dword [0x10138fd4]
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x10017810
lea edx, [esp + 4]
push edx
push eax
lea eax, [esp + 0x10]
push eax
push 0
push str.NameServer
push edi
call ebp
test eax, eax
jne 0x100177fe
mov eax, dword [esp + 4]
cmp eax, 1
je 0x100177fe
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, 1
pop ebp
add esp, 8
ret
mov edx, dword [esi]
push edx
call dword [0x10138fdc]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop ebp
add esp, 8
ret

Function at 0x10017820
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov edi, ecx
lea ecx, [esp + 0x2c]
push ecx
push 0
mov esi, edx
push ebp
mov dword [esi], 0
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100178df
push ebx
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100178ab
mov ebx, dword [esp + 0x14]
call fcn.100176e0
mov ecx, dword [esp + 0x14]
push ecx
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x100178de
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
mov eax, ecx
push 0
add ecx, 1
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x30]
push ecx
push eax
push ebp
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10017878
pop ebx
mov ecx, dword [esp + 0x118]
xor eax, eax
cmp dword [esi], eax
pop edi
pop esi
setne al
pop ebp
xor ecx, esp
call fcn.1001d3e9
add esp, 0x110
ret
Function at 0x10017ad0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x2c
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x28], eax
cmp dword [0x1013c134], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp], 0x248
mov dword [eax], 0
jne 0x10017b0d
xor eax, eax
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x2c
ret
push edi
push 0x248
call dword [0x10138fd4]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10017b32
pop edi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x2c
ret
lea eax, [esp + 4]
push eax
push edi
call dword [0x1013c134]
cmp eax, 0x6f
je 0x10017b4b
test eax, eax
jne 0x10017ce3
mov ecx, dword [esp + 4]
push esi
push ecx
push edi
call dword [0x10138fd8]
mov esi, eax
add esp, 8
test esi, esi
je 0x10017ce2
push ebx
push ebp
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x1c], esi
call dword [0x1013c134]
test eax, eax
jne 0x10017cdc
lea ebp, [esi + 0x10c]
test ebp, ebp
je 0x10017cdc
lea ecx, [ecx]
lea eax, [esp + 0x20]
push 4
lea edi, [ebp + 4]
push eax
mov eax, edi
call fcn.100195d0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x10017bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10017be1
xor eax, eax
cmp esi, 0xffffffff
setg al
lea eax, [eax + eax - 1]
cmp eax, 1
jne 0x10017be1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10017cd1
cmp eax, 0xffffffff
jne 0x10017cab
jmp 0x10017cd1
push 0x10
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.10019aa0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10017c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10017cd1
xor eax, eax
cmp esi, 0xffffffff
setg al
lea eax, [eax + eax - 1]
cmp eax, 1
jne 0x10017cd1
mov eax, 0x10
mov ecx, 0x10127ef0
lea edx, [esp + 0x20]
lea ebx, [ebx]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x10017c48
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x10017c30
test eax, eax
je 0x10017ca5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10017c97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10017ca5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10017c97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10017ca5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x10017c97
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x10017ca5
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x10017ca5
test esi, esi
mov eax, 1
jg 0x10017ca7
or eax, 0xffffffff
jmp 0x10017ca7
xor eax, eax
test eax, eax
je 0x10017cd1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10017cb0
mov esi, dword [esp + 0x18]
sub eax, edx
mov ebx, eax
push edi
mov eax, esi
call fcn.10017a50
add esp, 4
cmp dword [esi], 0
je 0x10017cdc
mov ebp, dword [ebp]
test ebp, ebp
jne 0x10017b90
mov edi, dword [esp + 0x14]
pop ebp
pop ebx
pop esi
test edi, edi
je 0x10017cf1
push edi
call dword [0x10138fdc]
add esp, 4
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp dword [ecx], eax
mov ecx, dword [esp + 0x2c]
setne al
pop edi
xor ecx, esp
call fcn.1001d3e9
add esp, 0x2c
ret
Function at 0x10017d10
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.10027680
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10017d6f
cmp dword [esp + 4], 6
jb 0x10017d6f
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.1001d3e9
add esp, 0x98
ret
Function at 0x10018ab0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x24
mov eax, dword [0x1012f5f0]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, ecx
test esi, esi
push edi
mov dword [esp + 0x10], eax
je 0x10018aff
mov al, byte [esi]
test al, al
je 0x10018aff
lea ebx, [ebx]
movzx ecx, al
push ecx
call fcn.1001fed5
add esp, 4
test eax, eax
jne 0x10018af5
cmp byte [esi], 0x2c
jne 0x10018b14
mov al, byte [esi + 1]
add esi, 1
test al, al
jne 0x10018ae0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x24
ret
cmp byte [esi], 0
je 0x10018aff
mov ebx, esi
jmp 0x10018b20
movzx edx, byte [esi]
push edx
call fcn.1001fed5
add esp, 4
test eax, eax
jne 0x10018b3c
cmp byte [esi], 0x2c
je 0x10018b3c
add esi, 1
cmp byte [esi], al
jne 0x10018b20
cmp byte [esi], 0
je 0x10018b49
mov byte [esi], 0
add esi, 1
jmp 0x10018b4b
xor esi, esi
lea eax, [esp + 0x18]
push 4
push eax
mov eax, ebx
call fcn.100195d0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x10018b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10018b89
xor eax, eax
cmp edi, 0xffffffff
setg al
lea eax, [eax + eax - 1]
cmp eax, 1
jne 0x10018b89
mov dword [esp + 0x14], 2
jmp 0x10018bdd
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.10019aa0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x10018baf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10018c56
xor eax, eax
cmp edi, 0xffffffff
setg al
lea eax, [eax + eax - 1]
cmp eax, 1
jne 0x10018c56
lea ebx, [esp + 0x18]
call fcn.10018a00
test eax, eax
jne 0x10018c56
mov dword [esp + 0x14], 0x17
mov edx, dword [ebp]
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
add edx, 1
imul edx, edx, 0x58
push edx
push eax
call dword [0x10138fd8]
xor ecx, ecx
add esp, 8
cmp eax, ecx
je 0x10018c73
mov edx, dword [ebp]
mov ebx, dword [esp + 0x14]
imul edx, edx, 0x58
mov dword [edx + eax], ebx
mov edx, dword [ebp]
imul edx, edx, 0x58
mov dword [edx + eax + 0x14], ecx
mov edx, dword [ebp]
imul edx, edx, 0x58
mov dword [edx + eax + 0x18], ecx
mov ecx, dword [ebp]
mov edx, dword [esp + 0x18]
imul ecx, ecx, 0x58
cmp dword [esp + 0x14], 2
jne 0x10018c35
mov dword [ecx + eax + 4], edx
jmp 0x10018c50
lea ecx, [ecx + eax + 4]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 0xc], edx
mov dword [edi], eax
add dword [ebp], 1
test esi, esi
jne 0x10018ad4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1001d3e9
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0xf
call fcn.1001d3e9
add esp, 0x24
ret
Function at 0x10018e80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
push ebp
push 0x1f
call dword [0x10138fd4]
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x10018ea1
pop ebp
lea eax, [ebx + 0xf]
pop ebx
add esp, 8
ret
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], eax
mov word [ebp + 0x1c], ax
mov byte [ebp + 0x1e], al
mov ecx, esi
mov byte [ecx], al
add eax, 1
add ecx, 1
cmp ax, 0x100
jl 0x10018ec1
mov eax, dword [0x1013c138]
push edi
xor edi, edi
cmp eax, ebx
je 0x10018ee4
push 0x1f
push esi
call eax
test al, al
jne 0x10018f02
call fcn.100224de
and eax, 0x800000ff
jns 0x10018ef7
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + esi], al
add edi, 1
cmp edi, 0x1f
jl 0x10018ee4
xor dl, dl
mov byte [esi + 0x100], bl
mov byte [esi + 0x101], bl
xor ecx, ecx
mov edi, esi
mov dword [esp + 0xc], 0x100
lea esp, [esp]
mov bl, byte [edi]
movzx eax, dl
mov dword [esp + 0x10], eax
movzx eax, byte [eax + ebp]
movzx edx, bl
add eax, ecx
add eax, edx
and eax, 0x800000ff
jns 0x10018f42
dec eax
or eax, 0xffffff00
inc eax
movzx ecx, al
mov al, byte [ecx + esi]
mov byte [edi], al
mov eax, dword [esp + 0x10]
add eax, 1
mov byte [ecx + esi], bl
cdq
mov ebx, 0x1f
idiv ebx
add edi, 1
sub dword [esp + 0xc], 1
jne 0x10018f20
push ebp
call dword [0x10138fdc]
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10018fe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [edi + 8], 0
je 0x10018feb
xor eax, eax
ret 4
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, edi
call fcn.10019430
test eax, eax
jne 0x10019001
pop esi
ret 4
push ebp
mov eax, edi
call fcn.100194c0
mov ebp, eax
test ebp, ebp
jne 0x10019014
pop ebp
pop esi
ret 4
push ebx
push 0x40
push 0x3000
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x100190c2
mov eax, dword [esp + 0x10]
push eax
push ebx
mov esi, edi
call fcn.10019540
mov eax, dword [edi + 0x10]
cmp dword [eax + 0xa0], 0
jbe 0x10019058
cmp dword [eax + 0xa4], 0
jbe 0x10019058
mov eax, edi
call fcn.100191f0
push edi
mov ecx, ebx
call fcn.10019260
test eax, eax
jne 0x10019079
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop ebp
xor eax, eax
pop esi
ret 4
lea ecx, [esp + 0x10]
push ecx
push 0x40
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [edi + 0x10]
mov dword [edx + 0x34], ebx
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x28]
push 0
push 1
lea eax, [ecx + ebx]
push ebx
mov dword [edi + 4], eax
call eax
test eax, eax
jne 0x100190ca
mov edx, dword [edi + 4]
push eax
push eax
push ebx
call edx
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [edi + 4], 0
pop ebx
pop ebp
xor eax, eax
pop esi
ret 4
mov dword [edi + 8], ebx
pop ebx
pop ebp
mov dword [edi], 1
mov eax, 1
pop esi
ret 4
Function at 0x10019430
Capabilities:
Parse pe header

Disassembly:
cmp esi, 0x40
jae 0x10019438
xor eax, eax
ret
mov dword [ecx + 0xc], eax
cmp word [eax], 0x5a4d
jne 0x10019435
mov edx, dword [eax + 0x3c]
push edi
lea edi, [edx + 0xf8]
cmp esi, edi
jb 0x100194b1
add eax, edx
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x100194b1
movzx edx, word [eax + 0x16]
test edx, 0x2000
je 0x100194b1
test dl, 2
je 0x100194b1
cmp word [eax + 0x14], 0xe0
jne 0x100194b1
mov edi, dword [ecx + 0x10]
lea edx, [eax + 0xf8]
xor eax, eax
mov dword [ecx + 0x14], edx
cmp word [edi + 6], ax
jbe 0x100194aa
add edx, 0x10
lea ecx, [ecx]
mov edi, dword [edx + 4]
add edi, dword [edx]
cmp edi, esi
ja 0x100194b1
mov edi, dword [ecx + 0x10]
movzx edi, word [edi + 6]
add eax, 1
add edx, 0x28
cmp eax, edi
jl 0x10019490
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x10019540
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
mov edx, dword [eax + 0x54]
push ebx
lea ecx, [ecx + ecx*4]
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call fcn.10024b20
mov edx, dword [esi + 0x10]
xor ebx, ebx
add esp, 0xc
cmp word [edx + 6], bx
jbe 0x100195ad
push edi
xor edi, edi
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edi + 0xc]
add eax, edi
test ecx, ecx
je 0x1001959b
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1001959b
push edx
mov edx, dword [eax + 0x14]
add edx, dword [esp + 0x18]
add ecx, ebp
push edx
push ecx
call fcn.10022ac0
add esp, 0xc
mov eax, dword [esi + 0x10]
movzx ecx, word [eax + 6]
add ebx, 1
add edi, 0x28
cmp ebx, ecx
jl 0x10019573
pop edi
mov dword [esi + 0xc], ebp
mov edx, dword [ebp + 0x3c]
lea eax, [edx + ebp]
mov dword [esi + 0x10], eax
add eax, 0xf8
pop ebp
mov dword [esi + 0x14], eax
pop ebx
ret 8
Function at 0x1001a720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
cdq
push ebp
mov ebp, dword [esp + 0x10]
and edx, 7
push esi
mov esi, dword [esp + 0x10]
add eax, edx
push edi
mov edi, eax
sar edi, 3
cmp edi, 4
mov ecx, edi
mov edx, ebp
jb 0x1001a758
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x1001a75c
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x1001a744
test ecx, ecx
je 0x1001a7b9
movzx ebx, byte [esi]
movzx eax, byte [edx]
sub ebx, eax
jne 0x1001a7ab
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x1001a7b9
movzx ebx, byte [esi]
movzx eax, byte [edx]
sub ebx, eax
jne 0x1001a7ab
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x1001a7b9
movzx ebx, byte [esi]
movzx eax, byte [edx]
sub ebx, eax
jne 0x1001a7ab
sub ecx, 1
add edx, 1
add esi, 1
test ecx, ecx
je 0x1001a7b9
movzx ebx, byte [esi]
movzx ecx, byte [edx]
sub ebx, ecx
je 0x1001a7b9
test ebx, ebx
mov eax, 1
jg 0x1001a7bb
or eax, 0xffffffff
jmp 0x1001a7bb
xor eax, eax
test eax, eax
jne 0x1001a7f7
mov ecx, dword [esp + 0x1c]
and ecx, 0x80000007
jns 0x1001a7d0
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x1001a7f7
test ecx, ecx
mov edx, dword [esp + 0x14]
movzx eax, byte [edi + edx]
movzx esi, byte [edi + ebp]
jle 0x1001a7f5
mov edx, esi
xor edx, eax
test dl, dl
js 0x1001a7fc
sub ecx, 1
add eax, eax
add esi, esi
test ecx, ecx
jg 0x1001a7e2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
and al, 0x80
neg al
pop edi
pop esi
pop ebp
pop ebx
sbb eax, eax
and eax, 2
add eax, 0xffffffff
ret
Function at 0x1001b6b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
movzx ecx, cl
movzx esi, dl
nop
lea edx, [ecx + 1]
and edx, 0x800000ff
jns 0x1001b6e3
dec edx
or edx, 0xffffff00
inc edx
movzx ecx, dl
mov bl, byte [ecx + eax]
mov byte [esp + 0x12], bl
movzx ebx, bl
add ebx, esi
and ebx, 0x800000ff
jns 0x1001b702
dec ebx
or ebx, 0xffffff00
inc ebx
movzx esi, bl
mov byte [esp + 0x13], bl
movzx ebx, byte [esi + eax]
mov byte [ecx + eax], bl
mov bl, byte [esp + 0x12]
mov byte [esi + eax], bl
movzx ebp, byte [ecx + eax]
movzx ebx, bl
add ebx, ebp
and ebx, 0x800000ff
jns 0x1001b730
dec ebx
or ebx, 0xffffff00
inc ebx
mov ebp, dword [esp + 0x1c]
movzx ebx, bl
movzx ebx, byte [ebx + eax]
xor byte [edi + ebp], bl
mov edi, dword [esp + 0x14]
add edi, 1
mov dword [esp + 0x14], edi
movsx edi, di
cmp edi, 2
jl 0x1001b6d0
mov cl, byte [esp + 0x13]
pop edi
pop esi
pop ebp
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop ebx
add esp, 8
ret

Function at 0x1001b9d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
test ebp, ebp
jg 0x1001b9ed
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
or eax, 0xffffffff
pop ebx
ret
push esi
xor ecx, ecx
test ebp, ebp
push edi
jle 0x1001ba1d
mov esi, dword [esp + 0x18]
add esi, 4
mov edx, esi
mov edi, edi
mov eax, dword [edx]
mov edi, bind
sub edi, ebx
cmp eax, edi
ja 0x1001ba24
add ecx, 1
add ebx, eax
add edx, 8
cmp ecx, ebp
jl 0x1001ba00
test ebx, ebx
jne 0x1001ba37
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
push ebx
call dword [0x10138fd4]
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x1001ba59
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov edi, eax
jmp 0x1001ba60
mov eax, dword [esi]
mov ecx, dword [esi - 4]
push eax
push ecx
push edi
call fcn.10024b20
add edi, dword [esi]
add esp, 0xc
add esi, 8
sub ebp, 1
jne 0x1001ba60
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ebp
push ebx
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
push edi
mov esi, eax
call dword [0x10138fdc]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x1001d3e9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1012f5f0]
jne 0x1001d3f3
repz ret
jmp fcn.10025295
Function at 0x100259be
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 + 0x1012f608]
je 0x100259d9
inc edi
cmp edi, 0x17
jb 0x100259ca
cmp edi, 0x17
jae 0x10025b59
push ebp
push 3
call fcn.1002d975
cmp eax, 1
pop ecx
je 0x10025b25
push 3
call fcn.1002d975
test eax, eax
pop ecx
jne 0x10025a0d
cmp dword [0x10139860], 1
je 0x10025b25
cmp ebx, 0xfc
je 0x10025b58
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10139bb8
push ebp
call fcn.1001dc3d
add esp, 0xc
test eax, eax
je 0x10025a43
push esi
push esi
push esi
push esi
push esi
call fcn.100200be
add esp, 0x14
push 0x104
mov esi, 0x10139bd1
push esi
push 0
mov byte [0x10139cd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10025a87
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1001dc3d
add esp, 0xc
test eax, eax
je 0x10025a87
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100200be
add esp, 0x14
push esi
call fcn.10023df0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10025acc
push esi
call fcn.10023df0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10139ecc
push 0x100e885c
sub ecx, eax
push ecx
push eax
call fcn.1001db07
add esp, 0x14
test eax, eax
je 0x10025acc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100200be
add esp, 0x14
jmp 0x10025ace
xor esi, esi
push 0x100e96a8
push ebx
push ebp
call fcn.1001da96
add esp, 0xc
test eax, eax
je 0x10025aee
push esi
push esi
push esi
push esi
push esi
call fcn.100200be
add esp, 0x14
push dword [edi*8 + 0x1012f60c]
push ebx
push ebp
call fcn.1001da96
add esp, 0xc
test eax, eax
je 0x10025b10
push esi
push esi
push esi
push esi
push esi
call fcn.100200be
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.100318f5
add esp, 0xc
jmp 0x10025b58
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10025b58
cmp ebp, 0xffffffff
je 0x10025b58
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1012f60c]
push dword [esi]
call fcn.10023df0
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 0x1002d3f9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10025473
xor ebx, ebx
cmp dword [0x1013a1b4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1002d4cf
push 0x100ea118
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x1002d5af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x1002d5af
push eax
call fcn.10025405
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1013a1b4], eax
call esi
push eax
call fcn.10025405
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1013a1b8], eax
call esi
push eax
call fcn.10025405
mov dword [0x1013a1bc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001d4a1
test eax, eax
pop ecx
pop ecx
je 0x1002d49d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100200be
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1002d4cf
push 0x100ea0cc
push edi
call esi
push eax
call fcn.10025405
cmp eax, ebx
pop ecx
mov dword [0x1013a1c4], eax
je 0x1002d4cf
push 0x100ea0b4
push edi
call esi
push eax
call fcn.10025405
pop ecx
mov dword [0x1013a1c0], eax
mov eax, dword [0x1013a1c0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1002d554
cmp dword [0x1013a1c4], ecx
je 0x1002d554
push eax
call fcn.1002547c
push dword [0x1013a1c4]
mov esi, eax
call fcn.1002547c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1002d554
cmp edi, ebx
je 0x1002d554
call esi
cmp eax, ebx
je 0x1002d521
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002d521
test byte [ebp - 0x18], 1
jne 0x1002d554
lea eax, [ebp - 0x10]
push eax
call fcn.1001d4d8
test eax, eax
pop ecx
je 0x1002d53c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100200be
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1002d54b
or dword [ebp + 0x10], 0x200000
jmp 0x1002d58f
or dword [ebp + 0x10], 0x40000
jmp 0x1002d58f
mov eax, dword [0x1013a1b8]
cmp eax, dword [ebp - 8]
je 0x1002d58f
push eax
call fcn.1002547c
cmp eax, ebx
pop ecx
je 0x1002d58f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002d58f
mov eax, dword [0x1013a1bc]
cmp eax, dword [ebp - 8]
je 0x1002d58f
push eax
call fcn.1002547c
cmp eax, ebx
pop ecx
je 0x1002d58f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1013a1b4]
call fcn.1002547c
cmp eax, ebx
pop ecx
je 0x1002d5af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002d5b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret