joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100884f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1009700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
call fcn.10088630
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1008861c
mov eax, 1
shl eax, 3
mov byte [ebp + eax - 0x14], 0x53
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x14], 0x43
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x14], 0x6f
mov edx, 1
imul eax, edx, 0xb
mov byte [ebp + eax - 0x14], 0x72
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x14], 0x74
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x14], 0x65
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x14], 0x4f
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x14], 0x72
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x14], 0x65
mov eax, 1
imul ecx, eax, 0xd
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0xe
jae 0x100885a0
jmp 0x100885a5
call fcn.1000814a
mov edx, dword [ebp - 0x1c]
mov byte [ebp + edx - 0x14], 0
mov eax, 1
imul ecx, eax, 5
mov byte [ebp + ecx - 0x14], 0x70
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x14], 0x74
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0x14], 0x6e
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x14], 0x65
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10088612
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007e30
mov esp, ebp
pop ebp
ret
Function at 0x40344c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40345b
pop dword [ebp - 0x34]
mov eax, 0xc863558f
add eax, 0x37dcdecc
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xae08adcd
add dword [ebp - 0x44], 0xa049977e
mov dword [ebp - 0x40], 0xb8b6bc5e
add dword [ebp - 0x40], 0x797c8fe7
mov dword [ebp - 0x3c], 0x2379e7fe
add dword [ebp - 0x3c], 0x28d25c30
mov dword [ebp - 0x38], 0xe2d0d594
sub dword [ebp - 0x38], 0xe2d0d594
lea eax, [ebp - 0x44]
push eax
mov eax, 0xad04cb32
sub eax, 0xacc48ade
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x78e4a18e
add dword [ebp - 0x44], 0xfb8dc7c8
mov dword [ebp - 0x40], 0x98601fe8
sub dword [ebp - 0x40], 0x56f3be73
mov dword [ebp - 0x3c], 0x8d34432a
add dword [ebp - 0x3c], 0xd63b2942
mov dword [ebp - 0x38], 0xdbebe9f7
add dword [ebp - 0x38], 0x24141609
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x38f47
push 0
call eax
mov ecx, 0xdb1a14e7
add ecx, 0x24e63b75
xor esi, esi
add esi, eax
mov edx, 0xf3d4449b
add edx, 0xc6c3f65
add edx, dword [ebp - 0x34]
mov ebx, 0x502b6dc1
sub ebx, 0xf9bbb5eb
add dword [ebp - 0x14], edi
mov edi, dword [edx]
xor edi, ebx
sub dword [ebp - 0x20], 0x62bfa309
mov dword [esi], edi
sub dword [ebp - 0x30], ecx
add esi, 0x775d884f
sub esi, 0x775d884b
add edx, 4
loop 0x40357a
add eax, 0x9f176923
sub eax, 0x9f1634e0
xor ebx, ebx
add ebx, eax
add eax, 0x70ce5f90
sub eax, 0x70ce5f8b
mov ecx, 0x167711b7
add ecx, 0xe9c8ee49
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x41befc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x41bf0b
pop dword [ebp - 0x14]
mov eax, 0x8c41768c
sub eax, 0x8bffb781
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x585e29c3
add dword [ebp - 0x24], 0xf5f41b88
mov dword [ebp - 0x20], 0xaa5a173d
add dword [ebp - 0x20], 0x87d93508
mov dword [ebp - 0x1c], 0x6fc14270
add dword [ebp - 0x1c], 0xdc8b01be
mov dword [ebp - 0x18], 0xeabf69d1
sub dword [ebp - 0x18], 0xeabf69d1
lea eax, [ebp - 0x24]
push eax
mov eax, 0xc23f70ec
add eax, 0x3e063f78
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x2e180fd7
add dword [ebp - 0x24], 0x465a597f
mov dword [ebp - 0x20], 0xd592f87e
add dword [ebp - 0x20], 0x6bd968f7
mov dword [ebp - 0x1c], 0xe717304
sub dword [ebp - 0x1c], 0xab020698
mov dword [ebp - 0x18], 0x93524a92
add dword [ebp - 0x18], 0x6cadb56e
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x7b2c2098
add eax, 0x85198fe8
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x4c434
push 0
call eax
mov ecx, 0x43bc
mov esi, eax
mov edi, 0x1cef13c8
add edi, 0xe3584c38
add edi, dword [ebp - 0x14]
mov ebx, 0xb10ad780
add ebx, 0x7d9d31c
sub dword [ebp - 0xc], 0xef67dcee
mov edx, dword [edi]
add dword [ebp - 4], 0x2840be37
add edx, ebx
xor dword [ebp - 8], esi
mov dword [esi], edx
xor dword [ebp - 0xc], 0x9c46a7d0
add esi, 0xc4f481dc
add esi, 0x3b0b7e28
add edi, 4
loop 0x41c027
add eax, 0x877c5928
add eax, 0x7884a89b
mov ebx, eax
add eax, 0x69c0887
sub eax, 0x69c0882
mov ecx, 0xa969122c
sub ecx, 0xa929122c
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0xd3e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd3e1a8
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 0xd3e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd3e06a
add dl, dl
jne 0xd3e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd3e0dc
xor eax, eax
add dl, dl
jne 0xd3e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd3e17d
add dl, dl
jne 0xd3e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd3e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd3e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd3e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd3e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd3e075
mov eax, 1
add dl, dl
jne 0xd3e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd3e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd3e0e1
sub eax, ebx
mov ebx, 1
jne 0xd3e128
mov ecx, 1
add dl, dl
jne 0xd3e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd3e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd3e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd3e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd3e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd3e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd3e136
cmp eax, 0x7d00
jae 0xd3e16d
cmp eax, 0x500
jb 0xd3e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd3e075
cmp eax, 0x7f
ja 0xd3e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd3e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd3e19e
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 0xd3e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x401936
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405028]
jne 0x401940
repz ret
jmp fcn.00401e5e
Function at 0x1000f713
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000f752
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f752
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f752
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000f752
cmp dword [ecx + 0x74], 0xe
jbe 0x1000f752
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100123cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001246c
push ebx
push esi
call fcn.10012398
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001232c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012419
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001246b
push edi
push eax
call fcn.1001338a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012439
call fcn.10010e74
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001246a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001232c
add esp, 0x20
test eax, eax
jne 0x10012458
push edi
call fcn.10010e74
jmp 0x10012460
push ebx
call fcn.10010e74
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100126d9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a888
push 0x1001a880
push str.FlsAlloc
push 0x1f
call fcn.100125f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001270d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
jmp 0x10012713
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10012757
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a898
push 0x1001a890
push str.FlsGetValue
push 0x21
call fcn.100125f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001278e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012796
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001a8a0
push 0x1001a898
push str.FlsSetValue
push 0x22
call fcn.100125f5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100127d0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10019150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10017e7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10017e7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x9c46081
Capabilities:
Check for trap flag exception

Disassembly:
push esp
cld
push dword [esp + 4]
mov byte [esp], 0xf5
push esp
rep movsb byte es:[edi], byte [esi]
bts edi, 8
mov edi, dword [esp + 0x1c]
sal si, cl
mov esi, dword [esp + 0x20]
cld
std
mov byte [esp], dl
push dword [esp + 0x24]
popfd
mov byte [esp], 0x8a
pushfd
mov word [esp + 8], cx
pushfd
lea esp, [esp + 0x30]
jmp 0x9c46102

Function at 0x4162b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4162ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4162d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4162c0
mov eax, 1
add ebx, ebx
jne 0x4162e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4162d8
jne 0x4162f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4162d8
xor ecx, ecx
sub eax, 3
jb 0x416308
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41637a
mov ebp, eax
add ebx, ebx
jne 0x416313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416344
inc ecx
add ebx, ebx
jne 0x416330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416325
jne 0x416341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416325
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416355
jmp 0x4162c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416364
add edi, ecx
jmp 0x4162c6
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x4163c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1606c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416381
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16074]
or eax, eax
je 0x4163bd
mov dword [ebx], eax
add ebx, 4
jmp 0x41639e
call dword [esi + 0x16070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4163f4
cmp al, 0xef
ja 0x4163e7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4163c9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4163d6
mov ebp, dword [esi + 0x16078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x416428
sub esp, 0xffffff80
jmp 0x405dd2
Function at 0x931440
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 0x931450
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 0x931470
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0x10], ecx
jbe 0x9315b7
jmp 0x931560
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 0x931560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x931c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x9470d8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x931c7e
push 0x941410
push 0x9413f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00933750
cmp eax, ebx
je 0x931cd0
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 0x931cdf
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 0x931cd3
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
je 0x931cdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x931cf0
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 0x931e60
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 0x931e91
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 0x931e74
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x932220
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 0x932391
push str.i.root_servers.org
call fcn.00939300
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x932391
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 0x932398
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x932398
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push eax
call main
add esp, 4
mov edi, edi
call fcn.00933870
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
cmp esi, 0x400
mov byte [ebp + esi - 0x419], dl
jl 0x9322d0
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 0x932362
lea esp, [esp]
mov eax, dword [0x97a3dc]
push 0
push 0x400
test eax, eax
je 0x93233c
lea edx, [ebp - 0x418]
push edx
push edi
call eax
jmp 0x932349
lea eax, [ebp - 0x418]
push eax
push edi
call sub.WS2_32.dll_send
test eax, eax
jle 0x932350
add dword [ebp - 4], eax
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jb 0x932320
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 0x932810
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 0x93286b
cmp byte [ebp - 0x190], 2
jne 0x93286b
mov eax, dword [ebp - 0x190]
shr eax, 8
cmp al, 2
jne 0x93286b
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x932880
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.00932460
mov esi, eax
add esp, 4
cmp esi, edi
je 0x9329cf
push 4
call fcn.00932460
add esp, 4
mov dword [esi + 4], eax
cmp eax, edi
je 0x9329cf
mov edi, dword [ebp + 8]
push edi
call sub.WS2_32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
je 0x932914
test ebx, ebx
je 0x932914
push 4
call fcn.00932460
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x9329cf
push 4
call fcn.00932460
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add esp, 4
cmp dword [eax], 0
je 0x9329cf
mov edx, dword [eax]
mov dword [edx], ebx
mov eax, dword [esi + 4]
mov dword [eax], 1
mov dword [ebp - 4], 1
jmp 0x9329cf
mov eax, dword [0x9470e4]
push 0
test eax, eax
je 0x93292e
lea ecx, [ebp - 8]
push ecx
push 0
push 8
push 1
push edi
call eax
jmp 0x93293e
lea edx, [ebp - 8]
push edx
push 0
push 8
push 1
push edi
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x9329cf
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 0x9329cf
mov edi, dword [ebp - 8]
test edi, edi
je 0x9329e6
mov ebx, 1
cmp word [edi + 8], bx
jne 0x9329c0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov edx, dword [esi]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.00932490
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x9329c8
push 4
call fcn.00932460
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 0x9329c8
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 0x932965
jmp 0x9329cf
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x9329de
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x932a24
test esi, esi
je 0x932a1a
mov ecx, dword [esi + 4]
xor edi, edi
cmp dword [ecx], edi
jbe 0x932a09
mov edx, dword [esi]
mov eax, dword [edx + edi*4]
push eax
call fcn.009324a0
mov ecx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [ecx]
jb 0x9329f3
mov edx, dword [esi]
push edx
call fcn.009324a0
push esi
call fcn.009324a0
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