joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453628
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
cmp dword [esi + 0x18], 0
je 0x45363c
mov eax, esi
call fcn.004536d8
mov eax, dword [esi + 4]
mov dword [esi + 0x18], eax
test bl, bl
je 0x45365e
mov eax, dword [esi + 4]
cmp word [eax], 0x25ff
jne 0x45365e
add dword [esi + 0x18], 2
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0x18]
sub eax, 5
mov byte [esi + 0xc], 0xe9
mov edx, eax
and dl, 0xff
mov byte [esi + 0xd], dl
mov edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + 0xe], dl
mov edx, eax
shr edx, 0x10
and dl, 0xff
mov byte [esi + 0xf], dl
shr eax, 0x18
and al, 0xff
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x18]
mov al, byte [eax]
mov byte [esi + 0x11], al
mov eax, dword [esi + 0x18]
mov al, byte [eax + 1]
mov byte [esi + 0x12], al
mov eax, dword [esi + 0x18]
mov al, byte [eax + 2]
mov byte [esi + 0x13], al
mov eax, dword [esi + 0x18]
mov al, byte [eax + 3]
mov byte [esi + 0x14], al
mov eax, dword [esi + 0x18]
mov al, byte [eax + 4]
mov byte [esi + 0x15], al
push esp
push 0x40
push 5
mov eax, dword [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4536d4
call fcn.0040d0f4
pop edx
pop esi
pop ebx
ret
Function at 0x4031a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4031b4
pop dword [ebp - 0x50]
mov eax, 0x76ea6a7a
sub eax, 0x76aa38c6
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x36889
push 0
mov eax, 0x924f715b
sub eax, 0x920eb07b
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xc4cb4301
sub ecx, 0xc4cafff4
xor edi, edi
add edi, eax
mov ebx, 0x416800
add ebx, dword [ebp - 0x50]
mov edx, 0x6f645de1
add edx, 0x62fe8afe
add dword [ebp - 0x2c], 0x1924e12e
mov esi, dword [ebx]
sub dword [ebp - 4], ecx
xor esi, edx
mov dword [ebp - 0x24], 0x6d020487
mov dword [edi], esi
mov dword [ebp - 0x30], 0xb049a40c
add edi, 0x92129efa
add edi, 0x6ded610a
add ebx, 0xdf71fbb
add ebx, 0xf208e049
loop 0x40320f
add eax, 0xff07
xor ebx, ebx
add ebx, eax
add eax, 0x52df2a67
add eax, 0xad20d59e
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x404040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x23c
mov eax, 0x40b352
call fcn.0040a8e9
movzx eax, word [ebp + 8]
mov esi, dword [0x41225c]
push pe_nt_image_headers32
push eax
push esi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 1
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4041c3
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4041c3
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4041c3
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4041c3
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 0x224], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x404137
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x220]
and dword [ebp - 4], 0
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x404112
and dword [ebp - 0x21c], 0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x4041b0
push dword [ebp - 0x114]
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
jmp 0x4041b0
mov ecx, 0x1234
cmp cx, ax
jne 0x4041b0
or dword [ebp - 0x244], 0xffffffff
push 3
lea eax, [ebp - 0x214]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x240], eax
cmp eax, ecx
je 0x40418a
push eax
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x220]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x4041b0
and dword [ebp - 0x21c], 0
add esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jne 0x4040a5
mov eax, dword [ebp - 0x21c]
call fcn.0040a933
ret 4
Function at 0x6d5189ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d51e944]
jne 0x6d5189f4
repz ret
jmp fcn.6d519069

Function at 0x6d518cc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x6d518cd5
pop dword [ebp - 0x44]
mov eax, 0xfb72b3e3
sub eax, 0x8e21270e
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x6b9fdf5a
add dword [ebp - 0x54], 0xe2b265f1
mov dword [ebp - 0x50], 0x6aabdf34
sub dword [ebp - 0x50], 0x387892ef
mov dword [ebp - 0x4c], 0x2bd908ea
sub dword [ebp - 0x4c], 0xdf8cc4bc
mov dword [ebp - 0x48], 0x92b64221
add dword [ebp - 0x48], 0x6d49bddf
lea eax, [ebp - 0x54]
push eax
mov eax, 0xf15d90af
sub eax, 0x840bf08b
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x4ee7f399
add dword [ebp - 0x54], 0x258a75bd
mov dword [ebp - 0x50], 0xda91ad4d
sub dword [ebp - 0x50], 0x99254bd8
mov dword [ebp - 0x4c], 0x224953ad
sub dword [ebp - 0x4c], 0xbed9e741
mov dword [ebp - 0x48], 0xa329560a
add dword [ebp - 0x48], 0x5cd6a9f6
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x38b3f
push 0
call eax
mov ecx, 0x4f32
mov edx, eax
mov ebx, 0x2e5108bf
sub ebx, 0xc0fef4bf
add ebx, dword [ebp - 0x44]
mov edi, 0xde009d96
xor dword [ebp - 0x30], 0xd77f763d
mov esi, dword [ebx]
mov dword [ebp - 0x10], 0x76119686
add esi, edi
add dword [ebp - 0x24], 0x34a31663
mov dword [edx], esi
xor dword [ebp - 0xc], edi
add edx, 0xf5ce159c
sub edx, 0xf5ce1598
add ebx, 0xca88adc3
add ebx, 0x35775241
loop 0x6d518de6
add eax, 0x49d7166
sub eax, 0x49c41cb
mov ebx, eax
add eax, 0x38c0fab
sub eax, 0x38c0fa6
mov ecx, 0xa00cb4c3
sub ecx, 0x32bbb4c3
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40dd00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40dd22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40dd29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40dd18
mov eax, 1
add ebx, ebx
jne 0x40dd3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40dd30
jne 0x40dd4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40dd30
xor ecx, ecx
sub eax, 3
jb 0x40dd60
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40ddd2
mov ebp, eax
add ebx, ebx
jne 0x40dd6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40dd78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40dd9c
inc ecx
add ebx, ebx
jne 0x40dd88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40dd7d
jne 0x40dd99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40dd7d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40ddbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40ddad
jmp 0x40dd1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40ddbc
add edi, ecx
jmp 0x40dd1e
pop esi
mov edi, esi
mov ecx, 0x59
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40ddda
cmp byte [edi], 4
jne 0x40ddda
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 0x40dddf
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40de57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd748]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd784]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40de0c
mov ecx, edi
jns 0x40de3b
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 + 0xd788]
or eax, eax
je 0x40de51
mov dword [ebx], eax
add ebx, 4
jmp 0x40de29
call dword [esi + 0xd798]
mov ebp, dword [esi + 0xd78c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x40de8b
sub esp, 0xffffff80
jmp 0x401548
Function at 0x4363c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x421015
lea edi, [esi - 0x20015]
push edi
or ebp, 0xffffffff
jmp 0x4363e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4363e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4363d8
mov eax, 1
add ebx, ebx
jne 0x4363fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4363f0
jne 0x43640c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4363f0
xor ecx, ecx
sub eax, 3
jb 0x436420
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x436492
mov ebp, eax
add ebx, ebx
jne 0x43642b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x436438
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43645c
inc ecx
add ebx, ebx
jne 0x436448
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43643d
jne 0x436459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43643d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43647c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43646d
jmp 0x4363de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43647c
add edi, ecx
jmp 0x4363de
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43649a
cmp byte [edi], 7
jne 0x43649a
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 0x43649f
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x436517
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x37d24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x37dc4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4364cc
mov ecx, edi
jns 0x4364fb
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 + 0x37dc8]
or eax, eax
je 0x436511
mov dword [ebx], eax
add ebx, 4
jmp 0x4364e9
call dword [esi + 0x37dd8]
mov ebp, dword [esi + 0x37dcc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x43654b
sub esp, 0xffffff80
jmp 0x412a92
Function at 0xacb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00acb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xacb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xacb06a
add dl, dl
jne 0xacb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xacb0dc
xor eax, eax
add dl, dl
jne 0xacb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xacb17d
add dl, dl
jne 0xacb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xacb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xacb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xacb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xacb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xacb075
mov eax, 1
add dl, dl
jne 0xacb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xacb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xacb0e1
sub eax, ebx
mov ebx, 1
jne 0xacb128
mov ecx, 1
add dl, dl
jne 0xacb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xacb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xacb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xacb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xacb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xacb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xacb136
cmp eax, 0x7d00
jae 0xacb16d
cmp eax, 0x500
jb 0xacb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xacb075
cmp eax, 0x7f
ja 0xacb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xacb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xacb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xacb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40661b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x7bdfa4], 0
jne 0x406659
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 0x40662f
mov dword [ecx*4 + 0x7bdfa0], eax
inc ecx
cmp ecx, 0x100
jl 0x40662a
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406686
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 + 0x7bdfa0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406667
not eax
pop ebp
ret 0xc

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x18c1440
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
mov dword [ebp + eax*4 - 0x400], eax
inc eax
cmp eax, 0x100
jb 0x18c1450
mov ebx, 2
lea ecx, [ebp - 0x3fc]
lea ebx, [ebx]
xor edx, edx
lea eax, [ebx - 2]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, 0x10
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0x14]
mov al, byte [ecx - 0x14]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0x14], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx - 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx edi, byte [edx + eax]
add edi, dword [ecx - 0x10]
mov al, byte [ecx - 0x10]
add edi, esi
movzx eax, al
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 0x10], edx
mov dword [ebp + edi*4 - 0x400], eax
xor edx, edx
mov eax, ebx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0xc]
mov al, byte [ecx - 0xc]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0xc], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx + 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ebx, 4
movzx edi, byte [edx + eax]
add edi, dword [ecx - 8]
mov al, byte [ecx - 8]
add edi, esi
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 8], edx
movzx eax, al
lea edx, [ebx - 2]
mov dword [ebp + edi*4 - 0x400], eax
cmp edx, 0x100
jb 0x18c1470
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0x10], ecx
jbe 0x18c15b7
jmp 0x18c1560
inc edx
and edx, 0xff
mov edi, dword [ebp + edx*4 - 0x400]
mov bl, byte [ebp + edx*4 - 0x400]
add edi, esi
and edi, 0xff
mov esi, edi
mov edi, dword [ebp + esi*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], edi
movzx edi, bl
mov dword [ebp + esi*4 - 0x400], edi
mov ebx, dword [ebp + edx*4 - 0x400]
add ebx, edi
and ebx, 0xff
movzx ebx, byte [ebp + ebx*4 - 0x400]
xor byte [ecx + eax], bl
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x18c1560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x18c1c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x18d70d8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x18c1c7e
push 0x18d1410
push 0x18d13f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.018c3750
cmp eax, ebx
je 0x18c1cd0
mov cl, byte [ebp + 0x14]
xor edx, edx
test cl, cl
setne dl
push ebx
movzx ecx, cl
push 0x80
add edx, 2
push edx
mov edx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
push 0
and ecx, 0xc0000004
push 2
add ecx, 0x40000000
push ecx
push edx
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x18c1cdf
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, al
jmp 0x18c1cd3
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
je 0x18c1cdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x18c1cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x18c1e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x18c1e91
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + section..data]
inc ecx
cmp ecx, edx
jb 0x18c1e74
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x18c2220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a8
push esi
xor esi, esi
push 0x3ff
lea eax, [ebp - 0x417]
push esi
push eax
mov dword [ebp - 4], esi
mov byte [ebp - 0x418], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x5a8]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x18c2391
push str.i.root_servers.org
call fcn.018c9300
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x18c2391
push edi
mov edx, 2
push 0x50
mov word [ebp - 0x14], dx
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x18c2398
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x18c2398
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push eax
call main
add esp, 4
mov edi, edi
call fcn.018c3870
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
cmp esi, 0x400
mov byte [ebp + esi - 0x419], dl
jl 0x18c22d0
mov byte [ebp - 0x18], 0
call ebx
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov esi, edx
shr esi, 6
add esi, 0xa
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jae 0x18c2362
lea esp, [esp]
mov eax, dword [0x190a3dc]
push 0
push 0x400
test eax, eax
je 0x18c233c
lea edx, [ebp - 0x418]
push edx
push edi
call eax
jmp 0x18c2349
lea eax, [ebp - 0x418]
push eax
push edi
call sub.WS2_32.dll_send
test eax, eax
jle 0x18c2350
add dword [ebp - 4], eax
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jb 0x18c2320
push edi
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 2
pop ebx
mov eax, edx
shr eax, 0x1f
pop edi
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x18c2810
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x18e]
push ecx
mov word [ebp - 0x190], ax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x18c286b
cmp byte [ebp - 0x190], 2
jne 0x18c286b
mov eax, dword [ebp - 0x190]
shr eax, 8
cmp al, 2
jne 0x18c286b
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x18c2880
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push 8
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.018c2460
mov esi, eax
add esp, 4
cmp esi, edi
je 0x18c29cf
push 4
call fcn.018c2460
add esp, 4
mov dword [esi + 4], eax
cmp eax, edi
je 0x18c29cf
mov edi, dword [ebp + 8]
push edi
call sub.WS2_32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
je 0x18c2914
test ebx, ebx
je 0x18c2914
push 4
call fcn.018c2460
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x18c29cf
push 4
call fcn.018c2460
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add esp, 4
cmp dword [eax], 0
je 0x18c29cf
mov edx, dword [eax]
mov dword [edx], ebx
mov eax, dword [esi + 4]
mov dword [eax], 1
mov dword [ebp - 4], 1
jmp 0x18c29cf
mov eax, dword [0x18d70e4]
push 0
test eax, eax
je 0x18c292e
lea ecx, [ebp - 8]
push ecx
push 0
push 8
push 1
push edi
call eax
jmp 0x18c293e
lea edx, [ebp - 8]
push edx
push 0
push 8
push 1
push edi
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x18c29cf
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push edi
push ecx
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
jne 0x18c29cf
mov edi, dword [ebp - 8]
test edi, edi
je 0x18c29e6
mov ebx, 1
cmp word [edi + 8], bx
jne 0x18c29c0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov edx, dword [esi]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.018c2490
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x18c29c8
push 4
call fcn.018c2460
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [esi]
lea eax, [ecx + eax*4]
add esp, 4
cmp dword [eax], 0
je 0x18c29c8
mov edx, dword [eax]
mov eax, dword [edi + 0x18]
mov dword [edx], eax
mov eax, dword [esi + 4]
add dword [eax], ebx
mov dword [ebp - 4], ebx
mov edi, dword [edi]
test edi, edi
jne 0x18c2965
jmp 0x18c29cf
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x18c29de
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x18c2a24
test esi, esi
je 0x18c2a1a
mov ecx, dword [esi + 4]
xor edi, edi
cmp dword [ecx], edi
jbe 0x18c2a09
mov edx, dword [esi]
mov eax, dword [edx + edi*4]
push eax
call fcn.018c24a0
mov ecx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [ecx]
jb 0x18c29f3
mov edx, dword [esi]
push edx
call fcn.018c24a0
push esi
call fcn.018c24a0
add esp, 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret