joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac17
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, eax
test eax, eax
jle 0x40ac86
mov eax, dword [eax + 4]
test eax, eax
jle 0x40ac86
mov eax, ecx
add eax, 8
mov edi, eax
mov ebx, edi
push edi
xor al, al
pop esi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edi, eax
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40ac6f
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40ac5e
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40ac4f
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x40b18a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40b1ea
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40b25e
mov dword [ebp - 0x10], esp
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40b228
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x40b23c
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40b25e
push 6
call fcn.0047cbda
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x40b266
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41427e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x740615
call fcn.00402588
test eax, eax
je 0x4142c1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x740615]
test eax, eax
jne 0x4142ae
mov eax, 0x4b583b
push eax
push 1
mov ebx, 0x244
call fcn.004823a0
add esp, 0x10
mov ebx, dword [0x740599]
add ebx, 0x10
mov dword [ebp - 4], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00481e00
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.004031d4
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41431d
push ebx
call fcn.0047cbd4
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4143e3
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
mov eax, 0x4b59d6
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040665c
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x414357
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [0x740599]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0040665c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 1
push 0
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x414396
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4143a1
add eax, 8
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4143c3
push 6
call fcn.0047cbda
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4143d3
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4143e3
push ebx
call fcn.0047cbd4
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4192c4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0
mov ebx, 0x210
call fcn.004838a0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ebx, dword [0x740599]
add ebx, 0x24
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x1c]
call fcn.004173a8
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x419339
mov eax, 0x4b583b
push eax
push 1
mov ebx, 0x160
call fcn.00483e30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x419362
push ebx
call fcn.0047cbd4
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x80000301
push 0
push 8
push reloc.WS2_32.dll_closesocket
push dword [ebp - 4]
push dword [ebp - 8]
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 3
mov ebx, 0x1e0
call fcn.004843c0
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
fld qword [ebp - 0x28]
call fcn.00402256
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x14]
push 1
mov ebx, 0x168
call fcn.00481860
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push 0x7381a6
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4193fa
push ebx
call fcn.0047cbd4
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41940e
push ebx
call fcn.0047cbd4
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x740689
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x108]
cmp dword [ebp - 0x14], 0
jge 0x4194a7
push 0x740691
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov ebx, dword [0x74067d]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 0
je 0x419490
mov ebx, dword [0x74067d]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push 0
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x419488
push 6
call fcn.0047cbda
add esp, 4
test eax, eax
je 0x419490
push 0x740689
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x90]
jmp 0x4194dd
mov ebx, dword [0x74067d]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 0
jne 0x4194dd
push 0x740691
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
push 0x740689
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x90]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4194ed
push ebx
call fcn.0047cbd4
add esp, 4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41bb45
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x7406c9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1b8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x41bc2b
push dword [ebp - 4]
call fcn.00407627
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 0x7406c9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xe8]
and eax, 1
xor eax, 1
test eax, eax
je 0x41bbcb
push 1
push 1
push 0x7406c9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xe8]
mov dword [ebp - 0xc], esp
push 0
push 0
push dword [ebp - 8]
push 0x41c2ee
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41bc06
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41bc2b
push 6
call fcn.0047cbda
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x41c15c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x10
call fcn.0047cbce
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x7386ee
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10c
call fcn.0047cbce
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x7386f6
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 5
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 1
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 4]
call fcn.00404e43
push ebx
push 0
mov ebx, dword [ebp - 8]
call fcn.00404e43
push ebx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41c26b
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jg 0x41c282
mov eax, 0
jmp 0x41c2ce
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp - 8]
call fcn.00404e43
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41c2ad
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41c2c4
mov eax, 1
jmp 0x41c2ce
mov eax, 0
jmp 0x41c2ce
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.0047cbd4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x423eb1
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x98]
push esi
xor ecx, ecx
xor esi, esi
xor edx, edx
push edi
mov dword [esp + 0xc], 0x7f7f7f7f
mov dword [esp + 0x10], 0x7f7f7f7f
mov dword [esp + 0x14], 0x7f7f7f7f
mov dword [esp + 0x18], 0x7f7f7f7f
mov dword [esp + 0x1c], 0x7f7f7f7f
mov dword [esp + 0x20], 0x7f7f7f7f
mov dword [esp + 0x24], 0x7f7f7f7f
mov dword [esp + 0x28], 0x7f7f7f7f
mov dword [esp + 0x2c], 0x7f7f7f7f
mov dword [esp + 0x30], 0x7f7f7f7f
mov dword [esp + 0x34], 0x3e7f7f7f
mov dword [esp + 0x38], 0x3f7f7f7f
mov dword [esp + 0x3c], 0x37363534
mov dword [esp + 0x40], 0x3b3a3938
mov dword [esp + 0x44], 0x7f7f3d3c
mov dword [esp + 0x48], 0x7f7f407f
mov dword [esp + 0x4c], 0x201007f
mov dword [esp + 0x50], 0x6050403
mov dword [esp + 0x54], 0xa090807
mov dword [esp + 0x58], 0xe0d0c0b
mov dword [esp + 0x5c], 0x1211100f
mov dword [esp + 0x60], 0x16151413
mov dword [esp + 0x64], 0x7f191817
mov dword [esp + 0x68], 0x7f7f7f7f
mov dword [esp + 0x6c], 0x1c1b1a7f
mov dword [esp + 0x70], 0x201f1e1d
mov dword [esp + 0x74], 0x24232221
mov dword [esp + 0x78], 0x28272625
mov dword [esp + 0x7c], 0x2c2b2a29
mov dword [esp + 0x80], 0x302f2e2d
mov dword [esp + 0x84], 0x7f333231
mov dword [esp + 0x88], 0x7f7f7f7f
test ebx, ebx
je 0x4240fe
mov edi, dword [esp + 0x9c]
mov edi, edi
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x423ffb
cmp byte [edx + edi], 0xd
jne 0x423ffb
cmp byte [edx + edi + 1], 0xa
je 0x424034
mov al, byte [edx + edi]
cmp al, 0xa
je 0x424034
cmp al, 0x3d
jne 0x424010
inc ecx
cmp ecx, 2
ja 0x42410c
cmp al, 0x7f
ja 0x42410c
movzx eax, al
mov al, byte [esp + eax + 0xc]
cmp al, 0x7f
je 0x42410c
cmp al, 0x40
jae 0x424033
test ecx, ecx
jne 0x42410c
inc esi
inc edx
cmp edx, ebx
jb 0x423fe5
test esi, esi
je 0x4240fe
mov ecx, dword [esp + 0x98]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x94]
lea eax, [eax*2 + 7]
shr eax, 3
test esi, esi
je 0x42411d
cmp dword [ecx], eax
jb 0x42411d
xor eax, eax
xor ebx, ebx
push ebp
mov ebp, 3
mov dword [esp + 0x90], eax
test edx, edx
je 0x4240ed
lea esp, [esp]
mov al, byte [edi]
cmp al, 0xd
je 0x4240e9
cmp al, 0xa
je 0x4240e9
movzx eax, al
mov cl, byte [esp + eax + 0x10]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub ebp, eax
movzx eax, cl
mov ecx, dword [esp + 0x90]
and eax, 0x3f
inc ecx
or ebx, eax
mov dword [esp + 0x90], ecx
cmp ecx, 4
jne 0x4240e9
xor eax, eax
mov dword [esp + 0x90], eax
test ebp, ebp
je 0x4240d4
mov eax, ebx
shr eax, 0x10
mov byte [esi], al
inc esi
cmp ebp, 1
jbe 0x4240e1
mov eax, ebx
shr eax, 8
mov byte [esi], al
inc esi
cmp ebp, 2
jbe 0x4240e9
mov byte [esi], bl
inc esi
inc edi
dec edx
jne 0x424085
sub esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
pop ebp
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x84
ret 0x10
pop edi
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret 0x10
Function at 0x427317
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x427351
push 6
call fcn.0047cbda
add esp, 4
jmp 0x427356
mov esp, ebp
pop ebp
ret 4

Function at 0x44464b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x444686
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00481fa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4446e9
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00483f20
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x44470d
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00481fa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x444770
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00483f20
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x444794
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00481fa0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4447f7
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00483f20
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4447ff
mov esp, ebp
pop ebp
ret
Function at 0x448cdd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x448d23
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x4b5ba6]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00402256
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00482450
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x448d76
push ebx
call fcn.0047cbd4
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x448daf
push 6
call fcn.0047cbda
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x448dcb
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0047cbce
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x448dd0
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x448de1
push ebx
call fcn.0047cbd4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x45549a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x200
call fcn.00427317
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x200
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4554e8
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4b587d]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.00402256
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.00482350
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push 0x4b5cc1
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.004279e0
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x455554
push ebx
call fcn.0047cbd4
add esp, 4
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
call fcn.0045558a
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x45557c
push ebx
call fcn.0047cbd4
add esp, 4
mov eax, dword [ebp - 0x28]
jmp 0x455584
mov esp, ebp
pop ebp
ret 4
Function at 0x461ad1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x20], 0
jne 0x461aeb
mov dword [ebp + 0x1c], 1
cmp dword [ebp + 0x18], 0
jne 0x461b13
mov eax, 0x4b59d6
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x461b0d
push ebx
call fcn.0047cbd4
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0x4b583b
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x461b4e
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
mov eax, 0
setg al
jmp 0x461b62
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x481da0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x481dbe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x481db3
pop esi
ret

Function at 0x481f90
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x4823b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x482442
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x482434
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x48242c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4823f5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x482540
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0049fbe5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4825aa
push esi
lea edi, [eax + 0x400]
call fcn.0049fc0e
push edi
call fcn.0049fbe5
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x48257a
push esi
xor edi, edi
call fcn.00488540
add esp, 4
test eax, eax
je 0x4825c5
push eax
push esi
call fcn.00488850
add esp, 8
mov edi, eax
push esi
call fcn.0049fc0e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4825e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x482660
je 0x482651
cmp eax, 0x80000101
ja 0x48264a
je 0x482651
cmp eax, reloc.WS2_32.dll_connect
je 0x48262c
cmp eax, 0x80000005
jne 0x482675
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x4826c2
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x4826c2
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call fcn.00488540
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x4826c2
cmp eax, 0x80000201
jne 0x482675
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x4826c2
cmp eax, 0x80000401
je 0x4826ad
cmp eax, 0x80000501
je 0x482695
cmp eax, 0x80000601
je 0x48267d
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.004937c4
mov dword [esp + 0xc], eax
jmp 0x4826be
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.004937c4
mov dword [esp + 0xc], eax
jmp 0x4826be
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.00489150
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call fcn.00488540
add esp, 8
test esi, esi
je 0x48279a
test eax, eax
je 0x48279a
inc eax
push edi
push eax
call fcn.0049fbe5
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00493ae0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x48273c
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x482790
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x482785
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0049fc0e
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret