joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40196f
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push edi
push str.ACTIVESTATE_HOME
call esi
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4019f7
call fcn.00401b49
mov ebx, eax
test ebx, ebx
jne 0x4019f7
push str.HOME
call esi
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4019f7
push str.USERPROFILE
call esi
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4019f7
push str.HOMEDRIVE
call esi
mov ebx, eax
mov dword [esp], str.HOMEPATH
call esi
test ebx, ebx
pop ecx
mov dword [ebp - 4], eax
jne 0x4019f1
push str.windir
call esi
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4019f1
push str.Couldnt_find_HOME___USERPROFILE___HOMEDRIVEHOMEPATH___windir
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x401b2b
cmp dword [ebp - 4], 0
jne 0x401a17
push ebx
call sub.MSVCRT.dll_strlen
cmp eax, 2
pop ecx
jne 0x401a10
cmp byte [ebx + 1], 0x3a
mov dword [ebp - 4], 0x40b51c
je 0x401a17
mov dword [ebp - 4], 0x40d4ac
push dword [ebp - 4]
call sub.MSVCRT.dll_strlen
push ebx
mov esi, eax
call sub.MSVCRT.dll_strlen
mov edi, dword [ebp + 0xc]
add eax, esi
mov dword [edi], eax
add eax, 0x14
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, dword [ebp + 8]
add esp, 0xc
push dword [ebp - 4]
mov dword [esi], eax
push ebx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [esi]
pop ecx
pop ecx
mov cl, byte [eax]
test cl, cl
je 0x401a67
cmp cl, 0x2f
jne 0x401a64
mov byte [eax], 0x5c
inc eax
jmp 0x401a56
mov eax, dword [edi]
cmp eax, 3
jle 0x401a80
mov ecx, dword [esi]
cmp byte [ecx + eax - 1], 0x5c
jne 0x401a80
dec eax
mov dword [edi], eax
mov ecx, dword [esi]
and byte [ecx + eax], 0
mov ebx, dword [ebp + 0x10]
push ebx
push esi
call fcn.00401ba7
pop ecx
test eax, eax
pop ecx
je 0x401b2b
mov eax, dword [esi]
mov ecx, dword [edi]
add eax, ecx
cmp byte [eax - 1], 0x5c
je 0x401aad
mov byte [eax], 0x5c
inc dword [edi]
mov eax, dword [edi]
mov ecx, dword [esi]
and byte [ecx + eax], 0
push str.ActiveState
push dword [esi]
call sub.MSVCRT.dll_strcat
add dword [edi], 0xb
lea eax, [ebp - 0x28]
push eax
push dword [esi]
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 0x10
test eax, eax
jne 0x401ad5
test byte [ebp - 0x21], 0x40
jne 0x401b1e
cmp dword [ebp + 0x14], 0
jne 0x401afb
push 0x800
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebx], eax
push dword [esi]
push str.Directory__s_does_not_exist.
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x401b2b
push dword [esi]
call dword [sym.imp.MSVCRT.dll__mkdir]
test eax, eax
pop ecx
je 0x401b1e
push 0x800
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebx], eax
push dword [esi]
push str.Could_not_create_directory__s.
jmp 0x401aef
push ebx
push esi
call fcn.00401ba7
pop ecx
test eax, eax
pop ecx
jne 0x401b2f
xor eax, eax
jmp 0x401b44
mov eax, dword [esi]
mov ecx, dword [edi]
push 1
mov byte [eax + ecx], 0x5c
inc dword [edi]
mov edi, dword [edi]
mov eax, dword [esi]
and byte [eax + edi], 0
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401db6
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40280d
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x402826
lea ecx, [eax + 1]
mov eax, dword [esp + 4]
xor byte [eax], 0xa5
inc eax
dec ecx
jne 0x40281f
ret

Function at 0x402eaf
Capabilities:
Create directory
Get common file path

Disassembly:
mov ecx, dword [0x40d4a4]
push ebx
push ebp
xor ebx, ebx
cmp dword [esp + 0xc], 2
push esi
push edi
jne 0x402eca
cmp ecx, ebx
je 0x40306c
mov esi, dword [0x40d4a0]
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
cmp esi, ebx
mov edi, 0x40d38c
jne 0x402f79
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x402f08
push esi
call sub.MSVCRT.dll_strlen
cmp eax, 0x104
pop ecx
jg 0x40306c
inc eax
push eax
push esi
push edi
call ebp
add esp, 0xc
jmp 0x402f1d
mov esi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jg 0x40306c
push edi
call sub.MSVCRT.dll_strlen
mov esi, eax
pop ecx
cmp esi, ebx
je 0x402f3d
cmp byte [esi + 0x40d38b], 0x5c
lea eax, [esi + 0x40d38c]
je 0x402f3d
mov byte [eax], 0x5c
inc esi
cmp esi, 0xfe
jg 0x40306c
push 3
lea eax, [esi + 0x40d38c]
push 0x40b6ac
push eax
call ebp
mov ecx, dword [0x40d4a4]
add esi, 3
add esp, 0xc
mov byte [esi + 0x40d38c], 0x5c
inc esi
mov dword [0x40d4a0], esi
mov byte [esi + 0x40d38c], bl
cmp dword [esp + 0x14], ebx
jne 0x402fec
cmp dword [0x40d4a8], ebx
lea eax, [esi + 0x40d38c]
mov byte [eax - 1], 0x5c
mov byte [eax], bl
jne 0x40308f
push edi
call dword [sym.imp.MSVCRT.dll__mkdir]
test eax, eax
pop ecx
je 0x402fbb
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
cmp dword [eax], 0x11
je 0x40308f
call esi
jmp 0x403052
push 0x1ff
push edi
call dword [sym.imp.MSVCRT.dll__chmod]
pop ecx
test eax, eax
pop ecx
je 0x402fdd
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
push edi
push str.chmod___s___0777__failed__errno_d_n
jmp 0x40305a
mov dword [0x40d4a8], 1
jmp 0x40308f
cmp ecx, ebx
jne 0x403078
push 0x5c
call dword [sym.imp.MSVCRT.dll__getpid]
push eax
mov ebx, 0x40d494
push str._d_c
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, eax
mov eax, dword [0x40d4a0]
mov ecx, 0x104
add esp, 0x10
sub ecx, eax
cmp esi, ecx
jg 0x40306c
lea ecx, [esi + 1]
lea eax, [eax + 0x40d38c]
push ecx
push ebx
push eax
mov byte [eax - 1], 0x2d
call ebp
push edi
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 0x10
test eax, eax
je 0x403070
mov ebx, dword [sym.imp.MSVCRT.dll__errno]
call ebx
cmp dword [eax], 0x11
je 0x403070
call ebx
push dword [eax]
push edi
push str.mkdir___s___failed__errno_d_n
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
xor eax, eax
jmp 0x403091
mov dword [0x40d4a4], esi
jmp 0x40308f
inc ecx
lea eax, [esi + 0x40d38c]
push ecx
push 0x40d494
push eax
mov byte [eax - 1], 0x2d
call ebp
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4039e7
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.004015f2
mov edi, eax
pop ecx
test edi, edi
je 0x403aaa
push esi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x400]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [ebp + esi - 0x401]
add esp, 0x10
cmp al, 0x2f
je 0x403a39
cmp al, 0x5c
je 0x403a39
mov byte [ebp + esi - 0x400], 0x2f
inc esi
push edi
call fcn.004016e8
test eax, eax
pop ecx
je 0x403aa2
cmp byte [eax + 0x10], 0x2e
lea ecx, [eax + 0x10]
jne 0x403a5f
mov dl, byte [eax + 0x11]
test dl, dl
je 0x403a39
cmp dl, 0x2e
jne 0x403a5f
cmp byte [eax + 0x12], 0
je 0x403a39
lea eax, [ebp + esi - 0x400]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x400]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__chmod]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 0x14
test eax, eax
je 0x403a39
lea eax, [ebp - 0x400]
push eax
call fcn.004039e7
pop ecx
jmp 0x403a39
push edi
call fcn.004017a7
pop ecx
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll__rmdir]
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x404948
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a190
push 0x404a92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40d650], 0xffffffff
or dword [0x40d654], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40d5c0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40d5bc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40d658], eax
call fcn.00404a91
cmp dword [0x40bcf0], 0
jne 0x4049cb
push 0x404a8e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00404a7c
push 0x40b00c
push 0x40b008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40d5b8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d5b4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40b004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401000
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401df0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401fa0
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401eee
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401e91
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401ed4
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401ea8
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401ec3
test al, 0x40
je 0x401eba
mov ecx, dword [edi + 0x20]
jmp 0x401ec1
test al, 0x80
je 0x401ed4
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401ed4
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401e60
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40d690
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48079b
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.00474a6b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d712
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004722ed
mov eax, dword [eax]
push 0x4c11f0
push eax
call fcn.004645a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474cf6
test bl, bl
je 0x40d712
push 0x4c11f0
lea ecx, [esp + 0xc]
call fcn.00475086
push 0x4c4d6c
lea ecx, [esp + 0xc]
call fcn.00475086
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 0x40d74e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474cf6
jmp 0x40d819
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 0x40d7d2
lea edx, [esp + 0x7c]
push 0x4c4d68
push edx
call fcn.004645a4
add esp, 8
test eax, eax
je 0x40d7d2
lea eax, [esp + 0x7c]
push 0x4c4d64
push eax
call fcn.004645a4
add esp, 8
test eax, eax
je 0x40d7d2
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 0x40d762
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.00474cf6
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 0x40e010
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 0x40e072
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 0x40e080
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48081b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d1158]
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 0x40e1b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e0e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474cf6
xor eax, eax
jmp 0x40e22f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00474e33
push esi
lea ecx, [esp + 0xc]
call fcn.004750c2
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40e20d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.0040e010
test eax, eax
jne 0x40e20d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push bind
mov ecx, edi
call fcn.0040e010
test eax, eax
jne 0x40e20d
lea eax, [esp + 0x14]
push 0x4c4d80
push eax
call fcn.00465740
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e1ec
lea ecx, [esp + 0x14]
push 0x4c4d7c
push ecx
call fcn.004656c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e1ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40e1ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00474de3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40e0fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474cf6
xor eax, eax
jmp 0x40e22f
mov byte [esi], 0
push 0x4c4d78
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.00474cf6
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 0x41f720
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 0x41f78e
cmp si, 0x69
ja 0x41f78e
add esi, 0xffd0
cmp si, 0x11
je 0x41f75e
push 0x11
call edi
test ax, ax
jge 0x41f75e
or esi, 0x2000
cmp si, 0x10
je 0x41f773
push 0x10
call edi
test ax, ax
jge 0x41f773
or esi, 0x4000
cmp si, 0x12
je 0x41f788
push 0x12
call edi
test ax, ax
jge 0x41f788
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f79b
mov esi, 0xbd
jmp 0x41f74f
cmp si, 0x6e
jne 0x41f7a8
mov esi, 0xbe
jmp 0x41f74f
cmp si, 0x6f
jne 0x41f749
mov esi, 0xbf
jmp 0x41f74f

Function at 0x420e40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e1950]
xor edx, edx
cmp eax, edx
jne 0x420e66
xor eax, eax
mov byte [eax + 0x4e1850], al
inc eax
cmp eax, 0x100
jl 0x420e4e
mov dword [0x4e1950], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e1850
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420ef7
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 0x420eca
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 0x420e98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420f70
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 0x420fc3
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 0x420faa
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 0x427a00
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 0x427b98
cmp ebp, ebx
jle 0x427b98
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 0x427a5e
dec eax
or eax, 0xfffffff8
inc eax
je 0x427a65
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x427a74
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x427a7b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00474a37
add esp, 4
cmp eax, ebx
je 0x427a9c
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.00474a37
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 0x427b8e
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 0x427b75
mov al, byte [edx]
cmp al, 0xc0
jbe 0x427b61
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x427b56
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 0x427b64
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x427b64
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x427b00
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 0x427af1
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 0x429d20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
call fcn.004762a5
lea eax, [esp + 4]
mov dword [esi], method.CWnd.virtual_0
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
mov dword [esi + 0x44], 0x4d12
inc eax
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], eax
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x42b220
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x481de8
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 0x42b259
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.0047c3ea
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.0047c436
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.0042b2e0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0047c473
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24