joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009b550
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x1009b599
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x1009ba10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100e13b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.1009b5c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.1009b640
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.1009b640
lea ecx, [esi + 0xc]
call fcn.100d1e5f
lea ecx, [esi + 0x10]
call fcn.100d1e5f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.1009cbd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.1009cbd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.1009cbd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.100d1ed4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.100d1ed4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1009cdc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x1009ce26
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x1009ce26
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x1009ce07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x1009fef0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10252410]
xor edx, edx
cmp eax, edx
jne 0x1009ff16
xor eax, eax
mov byte [eax + 0x10252310], al
inc eax
cmp eax, 0x100
jl 0x1009fefe
mov dword [0x10252410], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10252310
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1009ffa7
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 0x1009ff7a
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 0x1009ff48
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100a0020
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 0x100a0073
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 0x100a005a
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 0x100a6a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100e17ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.100a7340
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1011f40c
call fcn.100d1c15
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x100a6ab3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100d1c15
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x100a6aac
push 0
mov ecx, eax
call fcn.1009db20
mov dword [esi + 0xc], eax
jmp 0x100a6ab5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x100a6ab5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x100d42a2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100d42da
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100d232f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100d2307
jmp 0x100d42e6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100d5997
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100d59d9
call fcn.100db6ac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100d59d9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100d59d0
xor eax, eax
jmp 0x100d59e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100d59e7
pop edi
pop esi
pop ebx
ret 4
Function at 0x476089
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x478f10
call fcn.004767c8
push 1
call fcn.0047632c
pop ecx
test al, al
jne 0x475f32
push 7
call fcn.00476593
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004762f7
mov byte [ebp - 0x24], al
mov eax, dword [0x49dd84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x475f2b
test eax, eax
jne 0x475f9c
mov dword [0x49dd84], ecx
push 0x4783d8
push 0x4783c8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x475f7f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x476083
push 0x4783c4
push 0x4783bc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x49dd84], 2
jmp 0x475fa1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00476489
pop ecx
call fcn.00476587
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x475fd1
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fd1
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004767c2
call esi
call fcn.0047658d
mov esi, eax
cmp dword [esi], edi
je 0x475fef
push esi
call fcn.004763fc
pop ecx
test al, al
je 0x475fef
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.004766a8
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.004766db
test al, al
jne 0x476028
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x476031
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004764a6
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x476083
call fcn.0047680e
ret
call fcn.00475da3
jmp 0x475f13

Function at 0x2b93700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02b9378f
jae 0x2b9370e
xor ecx, ecx
call fcn.02b9378f
jae 0x2b9373d
xor eax, eax
call fcn.02b9378f
jae 0x2b9374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02b9378f
adc al, al
jae 0x2b9372f
jne 0x2b93779
stosb byte es:[edi], al
jmp 0x2b93711
call fcn.02b9379b
sub ecx, ebx
jne 0x2b93756
call fcn.02b93799
jmp 0x2b93775
lodsb al, byte [esi]
shr eax, 1
je 0x2b93783
adc ecx, ecx
jmp 0x2b93772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02b93799
cmp eax, 0x7d00
jae 0x2b93772
cmp ah, 5
jae 0x2b93773
cmp eax, 0x7f
ja 0x2b93774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2b93711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x424e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
jmp 0x424e6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x424e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x424e60
mov eax, 1
add ebx, ebx
jne 0x424e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x424e78
jne 0x424e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424e78
xor ecx, ecx
sub eax, 3
jb 0x424ea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x424f1a
mov ebp, eax
add ebx, ebx
jne 0x424eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x424ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x424ee4
inc ecx
add ebx, ebx
jne 0x424ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x424ec5
jne 0x424ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x424ec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x424f04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x424ef5
jmp 0x424e66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x424f04
add edi, ecx
jmp 0x424e66
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x424f22
cmp byte [edi], 9
jne 0x424f22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x424f27
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x424f9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2ad74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ae54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x424f54
mov ecx, edi
jns 0x424f83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2ae5c]
or eax, eax
je 0x424f99
mov dword [ebx], eax
add ebx, 4
jmp 0x424f71
call dword [esi + 0x2ae58]
mov ebp, dword [esi + 0x2ae60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x424fd3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x406cfc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4378ac], 0
jne 0x406d3a
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d10
mov dword [ecx*4 + 0x4378a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406d0b
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d67
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4378a8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d48
not eax
pop ebp
ret 0xc

Function at 0x406da5
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, dword [esp + 4]
shr eax, 0xf
xor eax, dword [esp + 4]
imul eax, eax, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x86ee40
Capabilities:
Packed with generic packer

Disassembly:
mov dword [ecx + 0x128], 0x10086
pushal
mov ebp, ecx
mov ebx, ebp
mov eax, dword [0x6a72f0]
lea esi, [ecx - 0x14]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0xd8]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call edx
push 0x7f
push 0
push 0
push 0x3c
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
push dword [ebp + 0x1c]
push dword [ebp + 4]
call fcn.0041d8a0
mov eax, ebp
mov esi, dword [ebp]
mov esi, dword [esi + 0x820]
mov esi, dword [esi]
push 0x30
push 0x61a80
sub esp, 8
fild dword [ebp + 0xc]
fadd qword [0x679338]
fstp dword [esp + 4]
fild dword [ebp + 8]
fadd qword [0x679338]
fadd qword [0x679338]
fstp dword [esp]
call fcn.00518a70
popal
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001456
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
push ebx
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [esi + 1]
movzx edx, byte [eax]
movzx ebx, byte [eax + 4]
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
or ecx, edx
movzx edx, byte [eax + 3]
mov dword [ebp - 0x28], eax
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
movzx ebx, byte [eax + 5]
movzx eax, byte [eax + 6]
and dword [ebp - 0x18], 0
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xb], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 9], cl
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
je 0x100015c3
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 0x10], eax
dec dword [ebp - 0x14]
test edi, edi
jne 0x1000156f
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
call fcn.100010e1
pop ecx
mov ecx, dword [ebp - 0x20]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, dword [ebp - 0x1c]
mov edx, eax
shr edx, 0x18
mov byte [ebp - 8], dl
mov edx, eax
shr edx, 0x10
mov byte [ebp - 7], dl
mov edx, eax
shr edx, 8
inc dword [ebp - 0x18]
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x10]
mov byte [ebp - 9], cl
mov byte [ebp - 6], dl
mov dl, byte [ebp + edi - 0xc]
xor dl, byte [ebx]
mov byte [eax + ebx], dl
inc ebx
inc edi
and edi, 7
cmp dword [ebp - 0x14], 0
jne 0x10001519
cmp dword [ebp - 0x18], 0
je 0x100015c3
mov eax, ecx
shr eax, 0x18
mov byte [esi], al
mov eax, dword [ebp - 0x28]
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov byte [eax + 2], cl
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
shr edx, 0x18
mov byte [eax + 3], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 4], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 5], dl
mov byte [eax + 6], cl
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret
Function at 0x100015d6
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x1048
push 0x10021c58
push esi
mov edi, eax
call fcn.10010a50
add esp, 0xc
and dword [ebp - 4], 0
mov eax, edi
lea edx, [edi + 8]
push ebx
movzx ecx, byte [eax]
inc eax
cmp eax, edx
jb 0x10001605
mov eax, edi
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, edx
jb 0x10001614
mov eax, edi
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, edx
jb 0x10001623
mov eax, edi
movzx ebx, byte [eax]
shl ecx, 8
or ecx, ebx
inc eax
cmp eax, edx
jb 0x10001632
mov eax, edi
mov ebx, dword [ebp - 4]
lea ebx, [esi + ebx*4]
xor dword [ebx], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x12
jl 0x100015fb
and dword [ebp - 8], 0
and dword [ebp - 4], 0
xor edi, edi
pop ebx
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.100010e1
mov eax, dword [ebp - 8]
mov dword [esi + edi*4], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 4], eax
add edi, 2
pop ecx
cmp edi, 0x12
jl 0x1000164e
xor edi, edi
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.100010e1
mov eax, dword [ebp - 8]
mov dword [esi + edi*4 + 0x48], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 0x4c], eax
add edi, 2
pop ecx
cmp edi, 0x400
jl 0x10001671
pop edi
leave
ret

Function at 0x100033e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000343f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10003431
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x1000342d
cmp edi, eax
jae 0x10003431
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x1000341f
cmp edi, eax
jb 0x10003435
xor eax, eax
jmp 0x1000343e
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10003f79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003fdd
cmp dword [ebp + 0xc], 1
je 0x10003fb5
cmp dword [ebp + 0xc], 2
je 0x10003fb5
push 0xd
pop eax
jmp 0x10003fdd
mov eax, dword [ebp - 4]
test edi, edi
je 0x10003fd7
test eax, eax
je 0x10003fd2
test al, 1
jne 0x10003fb0
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10003fd7
jmp 0x10003fb0
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x100040ae
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.1000fb40
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x10004ab4
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10027080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, ecx
push dword [edi]
mov dword [ebp - 0x1c], eax
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 0x18], 0
mov edi, eax
mov eax, dword [ebp - 0x18]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x18], 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x10004ae6
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x10004b0a
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp - 0x1c]
push edi
mov dword [ebx], eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx + 4], eax
xor ecx, ebp
pop ebx
call fcn.1000e2d0
leave
ret