joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8ad057
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f8ad0a1
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f8ad048
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f8ad057
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x4fcb2cfa
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f8ad0a8
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.4f893f1e
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f8ad147
add edi, 4
add eax, 2
dec ecx
jne 0x4f8ad08d
call 0x4f8ad0f4
loope 0x4f8ad0ea
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f8ad144
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f8ad155
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f8ad108
cmp eax, ecx
ja 0x4f8ad108
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f8ad192
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f8ad188
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.4f8943fd
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4092be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x448490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040925c
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x4092e5
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 1
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00404a05
xor ecx, ecx
mov eax, esi
shr eax, 4
cmp esi, 0xffffffff
setne cl
not eax
pop esi
and eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
and eax, 1
call fcn.0041efce
leave
ret 4
Function at 0x40f359
Capabilities:
Check if file exists

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
test al, 1
je 0x40f37c
mov dword [esp + 0xc], 0x80
test al, 3
je 0x40f388
or dword [esp + 0xc], 0x120089
test al, 4
je 0x40f394
or dword [esp + 0xc], 0x100
and eax, 0xc
je 0x40f3a1
or dword [esp + 0xc], 0x120116
mov ecx, dword [esp + 0x24]
cmp ecx, 0xffffffff
jne 0x40f3b8
cmp eax, edi
jne 0x40f3d9
mov dword [esp + 0x10], 1
jmp 0x40f3d9
test cl, 2
je 0x40f3c5
mov dword [esp + 0x10], 1
test cl, 4
je 0x40f3cf
or dword [esp + 0x10], 2
test cl, 8
je 0x40f3d9
or dword [esp + 0x10], 4
mov eax, dword [esp + 0x20]
sub eax, edi
je 0x40f3f7
dec eax
je 0x40f3f3
dec eax
je 0x40f3ee
dec eax
jne 0x40f3fa
push 2
jmp 0x40f3f9
xor ebx, ebx
inc ebx
jmp 0x40f3fa
push 4
jmp 0x40f3f9
push 3
pop ebx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40f408
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [esp + 0x1c]
cmp dword [ebp + 0x14], 8
jb 0x40f418
mov eax, dword [ebp]
jmp 0x40f41a
mov eax, ebp
mov ecx, dword [esp + 0x14]
push edi
push edi
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
and ecx, 7
push ecx
push dword [esp + 0x24]
push eax
call edi
cmp dword [esp + 0x14], 0xffffffff
mov dword [esi], eax
jne 0x40f494
cmp eax, 0xffffffff
jne 0x40f46a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40f46a
cmp dword [ebp + 0x14], 8
jb 0x40f457
mov eax, dword [ebp]
jmp 0x40f459
mov eax, ebp
xor ecx, ecx
push ecx
push ecx
push ebx
push ecx
push 3
push dword [esp + 0x24]
push eax
call edi
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x40f497
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40f494
cmp dword [ebp + 0x14], 8
jb 0x40f483
mov ebp, dword [ebp]
xor eax, eax
push eax
push eax
push ebx
push eax
push 1
push dword [esp + 0x24]
push ebp
call edi
mov dword [esi], eax
cmp dword [esi], 0xffffffff
pop ebp
je 0x40f4bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
cmp ebx, 4
sete cl
cmp ebx, 2
sete dl
or cl, dl
and al, cl
mov byte [esi + 4], al
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 0x10

Function at 0x410b38
Capabilities:
Create directory

Disassembly:
push 0x48
mov eax, 0x433b4a
call fcn.0041f046
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x410bc7
lea ecx, [ebp - 0x54]
call fcn.004040e4
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.0040f4e8
mov eax, dword [ebp - 0x34]
shr eax, 4
pop ecx
pop ecx
test al, 1
jne 0x410bc7
mov edi, dword [ebp + 0xc]
cmp edi, 0x800
jae 0x410bc7
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00410aba
and dword [ebp - 4], 0
inc edi
push edi
push eax
call fcn.00410b38
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
mov bl, al
call fcn.00404a05
test bl, bl
je 0x410bc7
cmp dword [esi + 0x14], 8
jb 0x410ba9
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410bc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410bc7
xor al, al
jmp 0x410bc9
mov al, 1
call fcn.0041f0c9
ret
Function at 0x412837
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x40]
push edi
mov edi, 0xffff
xor al, al
mov bl, 1
cmp ecx, edi
je 0x4129d3
push ebp
mov ebp, 0x10000000
cmp ecx, 0x7c
je 0x4129d2
cmp ecx, 0x29
jne 0x412880
cmp dword [esi + 0x10], 0
jne 0x4129d2
test dword [esi + 0x44], ebp
jne 0x412880
push 5
call fcn.0041d6b7
pop ecx
jmp 0x4129bc
cmp ecx, 0x2e
jne 0x41289b
push 5
lea ecx, [esi + 0x18]
call fcn.0040e951
mov ecx, esi
call fcn.0040f7d3
jmp 0x4129bc
cmp ecx, 0x5c
jne 0x4128fa
mov ecx, esi
call fcn.0040f7d3
mov eax, dword [esi + 0x44]
and eax, 0x80
je 0x4128ce
cmp word [esi + 0x3e], 0x62
jne 0x4128ce
push 4
lea ecx, [esi + 0x18]
call fcn.0040e951
mov ecx, esi
call fcn.0040f7d3
jmp 0x4129c3
test eax, eax
je 0x4128ee
cmp word [esi + 0x3e], 0x42
jne 0x4128ee
push 4
lea ecx, [esi + 0x18]
call fcn.0040e951
mov eax, dword [esi + 0x1c]
add eax, 8
xor dword [eax], 1
jmp 0x4128c2
mov ecx, esi
call fcn.00411978
jmp 0x4129bc
cmp ecx, 0x5b
jne 0x412924
mov ecx, esi
call fcn.0040f7d3
mov ecx, esi
call fcn.00412703
cmp dword [esi + 0x40], 0x5d
je 0x41288f
push 4
call fcn.0041d6b7
pop ecx
jmp 0x41288f
cmp ecx, 0x28
jne 0x412950
mov ecx, esi
call fcn.0040f7d3
mov ecx, esi
call fcn.0040f7fe
cmp dword [esi + 0x40], 0x29
mov bl, al
je 0x412947
push 5
call fcn.0041d6b7
pop ecx
mov ecx, esi
call fcn.0040f7d3
jmp 0x4129b8
cmp ecx, 0x5e
jne 0x41295c
push 2
jmp 0x4128ba
cmp ecx, 0x24
jne 0x412968
push 3
jmp 0x4128ba
cmp ecx, 0x2a
je 0x4129b0
cmp ecx, 0x2b
je 0x4129b0
cmp ecx, 0x3f
je 0x4129b0
cmp ecx, 0x7b
je 0x4129b0
cmp ecx, 0x7d
jne 0x41298d
test dword [esi + 0x44], ebp
jne 0x41298d
push 6
jmp 0x412875
cmp ecx, 0x5d
jne 0x41299e
test dword [esi + 0x44], ebp
jne 0x41299e
push 4
jmp 0x412875
movzx eax, word [esi + 0x3e]
push eax
lea ecx, [esi + 0x18]
call fcn.004115e4
jmp 0x41288f
push 0xa
call fcn.0041d6b7
pop ecx
test bl, bl
je 0x4129c3
mov ecx, esi
call fcn.00411a0e
mov ecx, dword [esi + 0x40]
mov al, 1
mov bl, al
cmp ecx, edi
jne 0x412856
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x412c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x448490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
sub eax, edi
mov dword [ebp - 0x214], edi
mov ecx, 0x8000
je 0x412c84
dec eax
jne 0x412c89
add ecx, 0x25
jmp 0x412c89
mov ecx, 0x801c
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x412cae
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00408cca
jmp 0x412cbd
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041efce
leave
ret
Function at 0x4132f6
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
push edi
xor edx, edx
push 0xa
mov eax, ecx
pop ebx
div ebx
xor edi, edi
mov dword [ebp - 4], 0x811c9dc5
inc eax
test ecx, ecx
je 0x41333e
cmp dword [esi + 0x14], 0x10
jb 0x413324
mov edx, dword [esi]
jmp 0x413326
mov edx, esi
mov ebx, dword [ebp - 4]
movsx edx, byte [edx + edi]
imul ebx, ebx, 0x1000193
xor edx, ebx
add edi, eax
mov dword [ebp - 4], edx
cmp edi, ecx
jb 0x41331a
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41402b
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x448490]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
push esi
push edi
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ebp - 0x14], ax
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x12]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
push edx
or eax, 0x40000000
push eax
push dword [ecx]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x414096
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x4140a0
and dword [esi], 0
mov dword [esi + 4], 0x80000000
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041efce
leave
ret

Function at 0x414623
Capabilities:
Read http header

Disassembly:
push ebp
lea ebp, [esp - 0x1020]
mov eax, 0x1020
call fcn.004212e0
push 0xffffffffffffffff
push 0x4340f0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x448490]
xor eax, ebp
mov dword [ebp + 0x101c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x1034]
mov eax, dword [ebp + 0x102c]
mov esi, dword [ebp + 0x1028]
xor ebx, ebx
push ebx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp + 0x1c]
push edx
push ecx
push dword [ebp + 0x1030]
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
push eax
mov dword [ebp - 0x10], 0x800
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0xf
pop edi
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], ebx
mov byte [ebp], bl
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4146bb
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
call fcn.00416275
add esp, 0xc
lea eax, [ebp]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00401970
push ebx
push 1
lea ecx, [ebp]
call fcn.004011d6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x101c]
xor ecx, ebp
call fcn.0041efce
add ebp, 0x1020
leave
ret
Function at 0x41481e
Capabilities:
Prepare http request

Disassembly:
push 4
mov eax, 0x43418a
call fcn.0041efdd
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi], vtable.snow::win32::WinHttpRequest.0
mov dword [esi + 4], ebx
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi + 8], ebx
call fcn.00408dd1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.00408dd1
mov dl, byte [ebp + 0x14]
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], dl
mov dword [esi + 0x4c], ebx
mov byte [ebp - 4], 3
cmp dword [esi + 0x38], ebx
jne 0x414878
mov dword [ebp + 0x14], 0x436cdc
jmp 0x414886
lea eax, [esi + 0x28]
cmp dword [eax + 0x14], 8
jb 0x414883
mov eax, dword [eax]
mov dword [ebp + 0x14], eax
cmp dword [esi + 0x20], 8
jb 0x414891
mov ecx, dword [esi + 0xc]
jmp 0x414894
lea ecx, [esi + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x800000
push edx
push ebx
push ebx
push ebx
push dword [ebp + 0x14]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [esi + 4]
call fcn.00413f47
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x4148e1
push 4
lea eax, [ebp + 0x14]
push eax
push 0x2d
push edi
mov dword [ebp + 0x14], esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4148ec
push str.snow::win32::WinHttpRequest::WinHttpRequest
call fcn.0041477d
pop ecx
mov eax, esi
call fcn.0041f0b5
ret 0x10

Function at 0x414b3a
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x414b8b
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
jb 0x414b66
lea eax, [ebp + 0xc]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push dword [eax]
push dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x414b8b
mov eax, dword [ebp + 0xc]
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
jmp 0x414b98
push str.snow::win32::WinHttpResponseStream::read
call fcn.0041477d
pop ecx
xor eax, eax
pop esi
leave
ret 8
Function at 0x414c56
Capabilities:
Set http header

Disassembly:
push 0x44
mov eax, 0x4341bd
call fcn.0041f046
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x50], ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], ebx
call fcn.0040925c
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00406bd2
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00404a05
mov esi, 0x436e10
push esi
call fcn.0041f2da
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406c65
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0040925c
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406bd2
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00404a05
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x414cf6
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 4]
push 0xa0000000
push dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x414d2a
mov byte [ebp - 0x49], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404a05
mov al, byte [ebp - 0x49]
call fcn.0041f0c9
ret 8
push str.snow::win32::WinHttpRequest::setHeader
call fcn.0041477d
pop ecx
mov byte [ebp - 0x49], bl
jmp 0x414d14
Function at 0x4174ca
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x448490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x1c]
sub edx, 6
push esi
push edi
je 0x4174f1
mov esi, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
cmp edx, eax
jbe 0x41753e
push 8
pop ecx
cmp esi, dword [ebx + 0x1c]
ja 0x417679
jmp 0x417523
cmp dword [ebp - 0x28], 4
jge 0x41752b
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp + eax*4 - 0x24]
add esi, ecx
inc eax
inc dword [ebp - 0x28]
mov dword [ebx + esi*4], edi
cmp eax, edx
jb 0x41750d
cmp dword [ebp - 0x28], 4
jne 0x417537
inc dword [ebp - 0x2c]
add ecx, 4
and dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x2c]
cmp eax, edx
jb 0x417502
cmp esi, dword [ebx + 0x1c]
ja 0x417679
mov eax, edx
lea ecx, [ebp + eax*4 - 0x27]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp + eax*4 - 0x26]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp + eax*4 - 0x25]
lea eax, [ebp + eax*4 - 0x28]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0x448150
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax]
mov al, byte [ebp - 0x24]
xor al, byte [ecx + str.cw]
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x24], al
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x23], cl
mov ecx, dword [ebp - 0x3c]
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x22], cl
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [ecx]
mov cl, byte [ecx + str.cw]
xor byte [ebp - 0x21], cl
mov ecx, dword [ebp - 0x30]
xor al, byte [ecx]
add dword [ebp - 0x30], 4
xor ecx, ecx
inc ecx
mov byte [ebp - 0x24], al
cmp edx, 8
je 0x4175d4
cmp edx, ecx
jbe 0x41762b
mov edi, dword [ebp + ecx*4 - 0x28]
lea eax, [ebp + ecx*4 - 0x24]
xor dword [eax], edi
inc ecx
cmp ecx, edx
jb 0x4175c3
jmp 0x41762b
mov edi, dword [ebp + ecx*4 - 0x28]
lea eax, [ebp + ecx*4 - 0x24]
xor dword [eax], edi
inc ecx
cmp ecx, 4
jb 0x4175d4
movzx eax, byte [ebp - 0x18]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x16]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x15]
mov al, byte [eax + str.cw]
xor byte [ebp - 0x11], al
push 5
pop ecx
mov edi, dword [ebp + ecx*4 - 0x28]
lea eax, [ebp + ecx*4 - 0x24]
xor dword [eax], edi
inc ecx
cmp ecx, 8
jb 0x41761b
xor eax, eax
test edx, edx
je 0x417670
lea ecx, [esi*4 + 8]
cmp esi, dword [ebx + 0x1c]
ja 0x417679
jmp 0x417655
cmp dword [ebp - 0x28], 4
jge 0x41765d
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp + eax*4 - 0x24]
add esi, ecx
inc eax
inc dword [ebp - 0x28]
mov dword [ebx + esi*4], edi
cmp eax, edx
jb 0x41763f
cmp dword [ebp - 0x28], 4
jne 0x417669
inc dword [ebp - 0x2c]
add ecx, 4
and dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x2c]
cmp eax, edx
jb 0x417638
cmp esi, dword [ebx + 0x1c]
jbe 0x41756c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041efce
leave
ret 4
Function at 0x41768a
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
inc edx
cmp dword [ecx + 0x1c], edx
jbe 0x417765
push esi
lea eax, [ecx + 0x32]
push edi
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x447d50]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x447550]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x447950]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x447150]
add eax, 0x10
mov dword [eax - 0x12], esi
movzx esi, byte [eax - 0xb]
mov esi, dword [esi*4 + 0x447d50]
movzx edi, byte [eax - 0xc]
xor esi, dword [edi*4 + 0x447950]
movzx edi, byte [eax - 0xd]
xor esi, dword [edi*4 + 0x447550]
movzx edi, byte [eax - 0xe]
xor esi, dword [edi*4 + 0x447150]
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x447d50]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x447950]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x447550]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x447150]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x447d50]
xor esi, dword [edi*4 + 0x447950]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x447550]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x447150]
inc edx
mov dword [eax - 6], esi
cmp edx, dword [ecx + 0x1c]
jb 0x41769b
pop edi
pop esi
ret
Function at 0x418616
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
push str.kernel32.dll
mov dword [esi + 0x18], ebx
call ebp
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
je 0x418666
push str.IsWow64Process
push eax
call ebx
push str.WTSGetActiveConsoleSessionId
push dword [esi]
mov dword [esi + 4], eax
call ebx
push str.QueryFullProcessImageNameW
push dword [esi]
mov dword [esi + 8], eax
call ebx
mov dword [esi + 0xc], eax
push str.wtsapi32.dll
call ebp
mov dword [esi + 0x10], eax
test eax, eax
je 0x41867f
push str.WTSQueryUserToken
push eax
call ebx
mov dword [esi + 0x14], eax
push str.psapi.dll
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x18]
call fcn.004185f4
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4186ab
push str.GetProcessImageFileNameW
push edi
call ebx
mov dword [esi + 0x1c], eax
jmp 0x4186af
and dword [esi + 0x1c], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4189da
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x418a69
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0041dba0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x418a27
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
sub eax, 2
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x418a4a
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x418b24
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x418a91
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x418a9c
xor eax, eax
jmp 0x418ae8
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x418ab9
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0041a780
jmp 0x418ac9
cmp ecx, 2
jne 0x418ad2
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0041c0a1
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0041dba0
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x418b10
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x418b24
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4189e5
pop edi
pop ebx
leave
ret