joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406698
Capabilities:
Delete directory
Set current directory

Disassembly:
sub esp, 0x104
push str.C:Program_Files3d_analyzer
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp]
push 0x411120
push 0x415370
push eax
call fcn.0040677c
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp]
push 0x410f20
push 0x415370
push eax
call fcn.0040677c
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x104
ret

Function at 0x4066f0
Capabilities:
Inspect load icon resource

Disassembly:
push edi
push esi
xor eax, eax
mov edi, dword [esp + 0xc]
mov dword [0x412d8c], edi
push eax
push 0x40255c
push eax
push 0x67
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
mov dword [0x412d90], esi
push 0x96
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 0
push 0x80
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x96
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 1
push 0x80
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x40676a
push dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop edi
ret
xor eax, eax
pop esi
pop edi
ret

Function at 0x409761
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e358
cmp edx, dword [eax]
je 0x409783
add eax, 8
inc ecx
cmp eax, 0x40e3e8
jl 0x409774
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e358]
jne 0x4098b1
mov eax, dword [0x412bf4]
cmp eax, 1
je 0x40988b
test eax, eax
jne 0x4097b4
cmp dword [0x40e084], 1
je 0x40988b
cmp edx, 0xfc
je 0x4098b1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4097eb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040be80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408900
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40982e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408900
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d584
push edi
call fcn.0040c3b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040be80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040be90
lea eax, [ebp - 0xa0]
push 0x40d564
push eax
call fcn.0040be90
push dword [esi + 0x40e35c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040be90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c318
add esp, 0x2c
pop edi
jmp 0x4098b1
lea eax, [ebp + 8]
lea esi, [esi + 0x40e35c]
push 0
push eax
push dword [esi]
call fcn.00408900
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6623f2
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg word [esp], ax
mov al, ah
jmp 0x6623fe
bt eax, edi
jbe 0x66241b
mov byte [esp + 6], dh
xchg ah, al
neg eax
mov al, byte [esp + 3]
pushal
jmp 0x662449

Function at 0x66247b
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, 0xbf29
xchg dword [esp + 4], edi
jmp 0x66251a
bts eax, ebx
call fcn.006624f0

Function at 0x6627df
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, 0xbded
xchg dx, ax
btr edx, ebx
jmp 0x662846
add esp, 1
lea edx, [esi + 0x45]
xchg word [esp], ax
xchg byte [esp], dh
xchg edx, eax
jmp 0x662811
xchg word [esp], ax
xchg byte [esp], dh
xchg edx, eax
jmp 0x662811
jae 0x6627ef
add esp, 1
lea edx, [esi + 0x45]
jmp 0x66282e

Function at 0x6628bd
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [ebx + edi]
jmp 0x662914
inc eax
je 0x6628a6
lea edx, [ebx + edi]
xchg word [esp], dx
mov ax, cx
mov dx, cx
push esp
jmp 0x6628fc
push esp
mov ax, word [esp + 6]
xor edx, ebp
jge 0x6628e5
jl 0x6628e5
sub al, 0xaf
aas
pop edx
test eax, 0x56c04a55
xor eax, eax
inc edi
std
xchg word [esp], dx
mov ax, cx
mov dx, cx
jmp 0x6628fb
Function at 0x680eb2
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 1]
lea esp, [esp + 1]
mov dword [esp + 2], ecx
lea ecx, [ecx - 0xeb]
mov al, ah
jmp 0x680e99
push edx
push edx
lea esp, [esp + 1]
xchg edx, eax
mov byte [esp + 9], dh
not ax
jmp 0x680e57
rdtsc
lea edx, [ecx - 0x83]
mov eax, 0xd5c6342
jmp 0x680ef8
lea ecx, [esi + 0xa5]
mov cx, 0x2ce3
mov eax, edi
mov ax, bx
mov dl, 0xf4
not edx
jmp 0x680e83
lea eax, [eax + edi]
mov dword [esp], ecx
mov dword [esp], esi
rdtsc
jmp 0x680e72
mov ax, word [esp]
xchg dh, al
rdtsc
mov dh, byte [esp]
lea eax, [ebp + 0x67]
lea eax, [ebx*4]
jmp 0x680f14
lea edx, [ecx*4]
bswap eax
mov dh, bh
bswap edx
setae dh
not dh
jmp 0x680ebf
mov dx, 0x3b5f
mov dx, bp
mov ax, word [esp]
lea edx, [esi - 0x9d]
mov ecx, dword [esp + 2]
mov edx, 0xf1170d70
jmp 0x680eda
mov eax, dword [esp + 8]
mov dh, byte [esp]
mov dh, byte [esp]
push edx
not edx
mov edx, 0xbcdb4fea
jmp 0x680fb3
lea edx, [esi*4]
call fcn.00680f91
Function at 0x401422
Capabilities:
Create directory
Get common file path
Get disk size
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0
mov ebx, str.c:_temp
je 0x4014a1
push 0x4060a4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40146f
push eax
push str.Info
push str.Setup_Factory_32_Bit_Setup_Module_5.00
push dword [0x406f64]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
jmp 0x401470
push esi
mov esi, str.C:_temp_
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4014bb
lea eax, [ebp - 0xac]
push 0x96
push eax
push 6
push dword [0x406fd8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 1
jmp 0x4014fa
mov esi, str.C:_temp_
push esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4014d3
push ebx
push esi
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401522
lea eax, [ebp - 0xac]
push 0x96
push eax
push 7
push dword [0x406fd8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 3
pop edi
lea eax, [ebp - 0xac]
push 0x10
push esi
push eax
push dword [0x406f64]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x406e60], 1
mov eax, edi
jmp 0x4015d6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + 0x406fdb], 0x5c
je 0x40153e
push 0x406070
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [str.C:_temp_]
and byte [ebp + 0xb], 0
mov byte [ebp + 8], al
mov al, byte [0x406fdd]
mov byte [ebp + 9], al
mov al, byte [0x406fde]
mov byte [ebp + 0xa], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x401592
mov eax, dword [ebp - 0x10]
xor ecx, ecx
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
test ecx, ecx
jg 0x4015d3
jl 0x401592
cmp eax, 0x1e8480
jae 0x4015d3
lea eax, [ebp - 0xac]
push 0x96
push eax
push 8
push dword [0x406fd8]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0xac]
push esi
push eax
push dword [0x406f64]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x406e60], 1
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x40193a
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x406178]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x401918
pop esi
ret
Function at 0x4639b4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0046393c
mov eax, esi
call fcn.00408d44
test al, al
je 0x463acf
mov dl, 1
mov eax, dword [0x413948]
call fcn.00403634
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x463ac8
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004187e0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x463488]
call fcn.00463db8
mov esi, eax
mov dword [ebx + 8], esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x3c]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4634ec]
call fcn.00463e38
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00417ec4
mov edi, eax
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x18]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x463a96
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4635b8]
call fcn.00463f04
mov esi, eax
mov eax, dword [ebx + 0x10]
mov edx, esi
call fcn.00415844
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x14]
cmp eax, dword [ebp - 8]
jae 0x463a8e
mov dword [ebp - 8], eax
add edi, 0x28
dec dword [ebp - 0xc]
jne 0x463a61
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 8]
sub eax, edi
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x463550]
call fcn.00463ea4
mov dword [ebx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463acf
mov eax, dword [ebp - 4]
call fcn.00403664
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x467274
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov ebp, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.0040442c
mov eax, dword [esi]
call fcn.00404698
mov edi, eax
test edi, edi
jle 0x4672b0
mov ebx, 1
mov eax, esi
call fcn.004048f0
mov edx, ebp
mov ecx, dword [esi]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
inc ebx
dec edi
jne 0x467299
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408936
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop eax
inc edi
mov edi, 0xede8e711
call fcn.0040895f
xor dword [ebx], eax
inc ebx
cmp ebx, esi
jne fcn.00408936
sub edi, 1
sub edi, 0xc19dc593
ret
Function at 0x10007b40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006929b
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.1005e108
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10007bc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1005c057
mov eax, dword [eax]
push 0x100a31e0
push eax
call fcn.1004e744
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1005e393
test bl, bl
je 0x10007bc2
push 0x100a31e0
lea ecx, [esp + 0xc]
call fcn.1005e723
push 0x100a6d28
lea ecx, [esp + 0xc]
call fcn.1005e723
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 0x10007bfe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1005e393
jmp 0x10007cc9
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 0x10007c82
lea edx, [esp + 0x7c]
push 0x100a6d24
push edx
call fcn.1004e744
add esp, 8
test eax, eax
je 0x10007c82
lea eax, [esp + 0x7c]
push 0x100a6d20
push eax
call fcn.1004e744
add esp, 8
test eax, eax
je 0x10007c82
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 0x10007c12
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.1005e393
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 0x100084c0
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 0x10008522
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 0x10008530
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006931b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100b1508]
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 0x10008668
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10008596
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005e393
xor eax, eax
jmp 0x100086df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1005e4d0
push esi
lea ecx, [esp + 0xc]
call fcn.1005e75f
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 0x100086bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.100084c0
test eax, eax
jne 0x100086bd
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 accept
mov ecx, edi
call fcn.100084c0
test eax, eax
jne 0x100086bd
lea eax, [esp + 0x14]
push 0x100a6d3c
push eax
call fcn.1004f780
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000869c
lea ecx, [esp + 0x14]
push 0x100a6d38
push ecx
call fcn.1004f700
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000869c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1000869f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1005e480
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100085ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005e393
xor eax, eax
jmp 0x100086df
mov byte [esi], 0
push 0x100a6d34
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.1005e393
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 0x100190a0
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 0x1001910e
cmp si, 0x69
ja 0x1001910e
add esi, 0xffd0
cmp si, 0x11
je 0x100190de
push 0x11
call edi
test ax, ax
jge 0x100190de
or esi, 0x2000
cmp si, 0x10
je 0x100190f3
push 0x10
call edi
test ax, ax
jge 0x100190f3
or esi, 0x4000
cmp si, 0x12
je 0x10019108
push 0x12
call edi
test ax, ax
jge 0x10019108
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1001911b
mov esi, 0xbd
jmp 0x100190cf
cmp si, 0x6e
jne 0x10019128
mov esi, 0xbe
jmp 0x100190cf
cmp si, 0x6f
jne 0x100190c9
mov esi, 0xbf
jmp 0x100190cf

Function at 0x1001a7c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100c1b68]
xor edx, edx
cmp eax, edx
jne 0x1001a7e6
xor eax, eax
mov byte [eax + 0x100c1a68], al
inc eax
cmp eax, 0x100
jl 0x1001a7ce
mov dword [0x100c1b68], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100c1a68
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1001a877
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 0x1001a84a
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 0x1001a818
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1001a8f0
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 0x1001a943
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 0x1001a92a
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 0x10021380
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 0x10021518
cmp ebp, ebx
jle 0x10021518
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 0x100213de
dec eax
or eax, 0xfffffff8
inc eax
je 0x100213e5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x100213f4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x100213fb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.1005e0d4
add esp, 4
cmp eax, ebx
je 0x1002141c
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.1005e0d4
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 0x1002150e
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 0x100214f5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x100214e1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x100214d6
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 0x100214e4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x100214e4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x10021480
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 0x10021471
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 0x10024730
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006a828
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 0x10024769
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.10065a9b
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.10065ae7
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.100247f0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.10065b24
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24