joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100578d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, edi
mov ebx, edi
mov dword [ebp - 4], ecx
mov dword [esi + 0x6af80], 2
jmp 0x10057ad2
cmp dword [esi + 0x6af90], 3
jb 0x10057951
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1005798e
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x1005798e
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x10057978
mov dword [esi + 0x6afa0], eax
mov edx, ecx
mov ecx, esi
call fcn.100575eb
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, esi
cmp ebx, 3
jb 0x10057a60
mov edx, dword [esi + 0x6af84]
lea eax, [ebx - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.10056f1c
sub dword [esi + 0x6af90], ebx
pop ecx
mov dword [ebp - 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x10057a27
cmp dword [esi + 0x6af90], 3
jb 0x10057a27
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec ebx
jne 0x100579ca
mov eax, dword [ebp - 8]
jmp 0x10057a7d
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 8]
jmp 0x10057a83
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.10056f1c
dec dword [esi + 0x6af90]
pop ecx
inc dword [esi + 0x6af84]
test eax, eax
je 0x10057abc
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x10057a9b
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x10057a9d
mov edx, edi
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.10056d24
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x10057acf
mov ecx, esi
call fcn.10057791
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x100578f6
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x10057af0
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
mov edx, edi
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.10056d24
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005870c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x10058717
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x100587cf
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
dec edi
jne 0x10058732
pop edi
test esi, esi
je 0x100587e8
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x100c8220]
inc edx
dec esi
jne 0x100587d3
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x100587f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x100c8220]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x100c8220]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x100589b2
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x4c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x38]
push eax
push ebx
mov dword [ebp - 0x54], edx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100589f2
mov eax, 0x200
jmp 0x10058b6a
mov eax, dword [ebp - 0x38]
xor ecx, ecx
inc ecx
mov edx, eax
and edx, ecx
push 0
pop esi
cmovne esi, ecx
test al, 2
je 0x10058a09
or esi, 2
test al, 4
je 0x10058a10
or esi, 4
mov ecx, eax
and ecx, 0x10
je 0x10058a1a
or esi, 0x10
test al, 0x20
je 0x10058a21
or esi, 0x20
test ecx, ecx
je 0x10058a2d
or esi, 0x40000000
jmp 0x10058a33
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x10058a43
or esi, 0x800000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x3c], eax
cmp eax, 0x28
jbe 0x10058af4
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x10058af1
mov ecx, dword [ebp - 0x58]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0x3c], eax
jbe 0x10058af1
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x48]
cmp eax, 0x5a4d
je 0x10058aeb
cmp eax, 0x454e
je 0x10058aeb
cmp eax, 0x454c
je 0x10058aeb
cmp eax, 0x4550
jne 0x10058af1
or esi, 0x400000
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10058afd
mov dword [ecx], esi
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x10058b06
mov dword [ecx], eax
test edi, edi
je 0x10058b3f
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.1005891d
push dword [ebp - 0x20]
mov dword [edi], eax
push dword [ebp - 0x24]
mov dword [edi + 4], edx
call fcn.1005891d
push dword [ebp - 0x30]
mov dword [edi + 8], eax
push dword [ebp - 0x34]
mov dword [edi + 0xc], edx
call fcn.1005891d
add esp, 0x18
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x10058b68
push dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push dword [ebp - 0x24]
lea ecx, [ebp - 0x40]
call fcn.10058941
movzx eax, word [ebp - 0x3c]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x40]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret
Function at 0x10058ba2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x10058c16
cmp dword [esi + 0x3c], 0
je 0x10058bd4
cmp dword [esi + 0x40], edi
jae 0x10058bce
push dword [esi + 0x3c]
call fcn.1008a91f
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x10058be4
lea eax, [edi + edi]
push eax
call fcn.10075c0e
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.1008fd00
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x10058c13
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
mov dl, byte [ebx + eax]
call fcn.1005883a
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x10058bfa
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10058c45
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x10058c31
mov dword [esi + 0x14], 0x30000
jmp 0x10058c67
push edi
add ecx, edx
push ebx
push ecx
call fcn.1008fd00
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x10058c69
mov eax, dword [esi + 4]
test eax, eax
je 0x10058c60
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x10058c69
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10058ed4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x10058f2a
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x10058f65
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.1008fd00
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.1005870c
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x10058f67
cmp dword [edi + 0x7c], 0
je 0x10058f5e
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10058f65
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.1005870c
pop ecx
jmp 0x10058f23
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1005a360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x1005a383
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.1005b84a
xor al, al
jmp 0x1005a432
call fcn.10059d6c
or dword [esi + 8], 0xffffffff
xor ebx, ebx
or dword [esi + 4], 0xffffffff
push 2
push ebx
push edi
call fcn.1008d3d9
push edi
call fcn.1008d7ec
push ebx
push ebx
push edi
mov dword [ebp - 4], eax
call fcn.1008d3d9
mov eax, dword [ebp - 4]
add esp, 0x1c
test eax, eax
jg 0x1005a3bf
push ebx
push ebx
push ebx
push 0xc
mov ecx, esi
jmp 0x1005a377
inc eax
push eax
call fcn.10075c0e
push dword [ebp + 8]
mov edi, eax
push 1
push dword [ebp - 4]
push edi
mov byte [edi], bl
call fcn.1008b0e9
add esp, 0x14
cmp eax, 1
je 0x1005a3ee
push edi
call fcn.1008a91f
pop ecx
push ebx
push ebx
push ebx
push 2
jmp 0x1005a3bb
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, edi
mov byte [edi + edx], bl
cmp byte [edi], bl
je 0x1005a417
mov dl, byte [eax]
cmp dl, 0xd
jne 0x1005a40f
mov byte [ecx], 0xa
inc ecx
inc eax
cmp byte [eax], 0xa
jne 0x1005a413
jmp 0x1005a412
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], bl
jne 0x1005a3fc
mov byte [ecx], bl
mov ecx, esi
mov eax, dword [esi]
push ebx
push ebx
push edi
call dword [eax + 8]
push edi
call fcn.1008a91f
xor eax, eax
cmp byte [esi + 0x40], al
pop ecx
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005d6fa
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
mov edi, ecx
push eax
call fcn.1005d2f8
lea esi, [edi + 0x104]
push eax
mov ecx, esi
call fcn.10003002
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
push 1
call fcn.100072c0
cmp dword [edi + 0x114], ebx
jne 0x1005d73f
xor eax, eax
jmp 0x1005d7ac
cmp dword [esi + 0x14], 0x10
jb 0x1005d747
mov esi, dword [esi]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005d790
call fcn.10045657
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xea
push 0x100ccb18
push 0x100cca38
push esi
call fcn.100448e6
add esp, 0x14
mov ecx, edi
call fcn.1005d048
jmp 0x1005d73b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x11c], eax
test esi, esi
je 0x1005d7a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret

Function at 0x1005d7bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x107]
xor ebx, ebx
push 0x103
push ebx
push eax
mov dword [ebp - 0x10c], ebx
mov byte [ebp - 0x108], bl
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x100ccb38
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.10006fbe
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret 4
Function at 0x1005d840
Capabilities:
Delete file

Disassembly:
push 0x1ec
mov eax, 0x100af930
call fcn.10091010
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x9c], ebx
jne 0x1005d862
xor eax, eax
jmp 0x1005da7f
call fcn.1005d6fa
test eax, eax
je 0x1005d873
xor eax, eax
inc eax
jmp 0x1005da7f
lea eax, [ebp - 0x134]
push eax
call fcn.1005d7bd
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x124], 0
je 0x1005da6d
cmp dword [ebp - 0x120], 0x10
lea edx, [ebp - 0x134]
lea ecx, [edi + 0x8c]
cmovae edx, dword [ebp - 0x134]
cmp dword [ecx + 0x14], 0x10
jb 0x1005d8b1
mov ecx, dword [ecx]
call fcn.10043b9f
test eax, eax
je 0x1005da4e
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 0x1ec], 0x100cbea0
call fcn.1004cf31
push 0x103
lea eax, [ebp - 0x11b]
mov byte [ebp - 4], 1
push ebx
push eax
mov byte [ebp - 0x11c], bl
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x134]
cmp dword [ebp - 0x120], 0x10
lea ecx, [ebp - 0x1ec]
cmovae eax, dword [ebp - 0x134]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.1004cf6a
lea eax, [ebp - 0x11c]
push eax
lea ebx, [edi + 0xec]
call fcn.10006fa1
pop ecx
push eax
lea eax, [ebp - 0x11c]
mov ecx, ebx
push eax
call fcn.10006f28
lea esi, [edi + 0x104]
lea eax, [ebp - 0x134]
cmp esi, eax
je 0x1005d957
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.1000721f
cmp dword [edi + 0x4c], 0
je 0x1005da06
lea eax, [ebp - 0x14c]
push eax
call fcn.1005d7bd
xor eax, eax
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f0], eax
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1f8]
call fcn.1004984a
lea edx, [ebp - 0x14c]
lea ecx, [ebp - 0x1f8]
call fcn.10052169
lea ecx, [ebp - 0x1f8]
test al, al
je 0x1005d9ee
mov byte [ebp - 4], 2
call fcn.10006bf5
cmp dword [ebp - 0x138], 0x10
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x14c]
cmp esi, eax
je 0x1005d9f3
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.1000721f
jmp 0x1005d9f3
call fcn.10006bf5
push 0
push 1
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 1
call fcn.100072c0
lea eax, [edi + 0xa4]
mov ecx, edi
push eax
push ebx
push esi
call fcn.1005cd99
cmp dword [ebx + 0x14], 0x10
jb 0x1005da1e
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x1005da26
mov esi, dword [esi]
push ebx
push esi
push 0x13f
push 0x100ccb3c
push 0x100ccb5c
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
xor esi, esi
add esp, 0x18
inc esi
xor ebx, ebx
jmp 0x1005da6f
push 0x144
push 0x100ccb3c
push 0x100ccb8c
push ecx
call fcn.10045657
pop ecx
push eax
call fcn.100448e6
add esp, 0x10
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x134]
call fcn.100072c0
mov eax, esi
call fcn.10090fbf
ret
Function at 0x1005f970
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x2c
call fcn.1008a235
mov esi, eax
add esp, 4
test esi, esi
je 0x1005f9d4
push 0x2c
push 0
push esi
call fcn.10090560
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
add esp, 0xc
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov dword [esi], 0x100ccf7c
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
jmp 0x1005f9d6
xor esi, esi
push 0
push 4
mov dword [edi + 4], esi
lea esi, [edi + 0x18]
push esi
push 0x10061580
push 0
push 0
call fcn.1008dfc3
add esp, 0x18
mov dword [esi + 4], eax
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi + 0x1c]
push 0x4e20
push dword [edi + 0x10]
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
ret 4
Function at 0x1006a640
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ecx + 4]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x134], eax
cmp dword [ebx - 0xc], 0
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], 0
jne 0x1006a694
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
jmp 0x1006a6ef
push 0x12b
lea eax, [ebp - 0x12f]
mov byte [ebp - 0x130], 0
push 0
push eax
call fcn.10090560
add esp, 0xc
lea eax, [ebp - 0x130]
push ebx
push 0x12c
push eax
push edi
push dword [ebp - 0x138]
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, esi
test eax, eax
jne 0x1006a6e3
test edi, edi
mov eax, 0x100bc7cc
cmovne eax, edi
jmp 0x1006a6e9
lea eax, [ebp - 0x130]
push eax
call fcn.10006fbe
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008a221
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1006ba80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1006ba95
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1006bad4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1006bad0
lea ebx, [ebx]
cmp esi, edx
jae 0x1006bad4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x1006bac0
cmp esi, edx
jb 0x1006bad9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1006dd00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x1006ddfe
push 0x7ff
lea eax, [ebp - 0x803]
mov byte [ebp - 0x804], 0
push 0
push eax
call fcn.10090560
push esi
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.1008ee83
push 0x44
lea eax, [ebp - 0x858]
push 0
push eax
call fcn.10090560
add esp, 0x24
mov dword [ebp - 0x858], 0x44
xor eax, eax
mov dword [ebp - 0x82c], 1
mov word [ebp - 0x828], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x858]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x804]
push eax
push 0
movdqu xmmword [ebp - 0x814], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1006ddfe
push dword [ebp + 0x10]
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x814]
call esi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008a221
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1008a221
mov esp, ebp
pop ebp
ret

Function at 0x1006eeb0
Capabilities:
Check if file exists

Disassembly:
add ecx, 0xc0
cmp dword [ecx + 0x14], 8
jb 0x1006eebe
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
ret
Function at 0x1006fc40
Capabilities:
Download url
Print debug messages
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1add
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x100da4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
test edi, edi
je 0x1006fe93
test esi, esi
je 0x1006fe93
mov dword [ebp - 0xdc], 0x100bc728
mov dword [ebp - 0xcc], 0x100bc720
push 0
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0x100b46c4
mov dword [ebp - 0x78], 0x50
movlpd qword [ebp - 0xd4], xmm0
call fcn.10005f6c
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xcc], 0x100b470c
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xd0], eax
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], 0x100b477c
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xe0], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 4], 5
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], 0x100b4784
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe0], eax
lea ecx, [ebp - 0xc4]
call fcn.100043ae
mov dword [ebp - 0xc4], 0x100b4734
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push esi
push edi
push 0x100cb184
lea eax, [ebx + 0x48]
mov dword [ebp - 4], 7
push eax
lea eax, [ebx + 0x18]
push eax
push 0x100b4ba4
lea eax, [ebp - 0xcc]
push str.http:__g.haluoha.com_g.real_aidtext_ad_2689text
push eax
call fcn.10004db9
add esp, 8
push eax
call fcn.10004db9
add esp, 8
push eax
call fcn.1005acfb
add esp, 8
push eax
call fcn.1005acfb
add esp, 8
push eax
call fcn.10004db9
add esp, 8
push eax
call fcn.10004db9
add esp, 8
push eax
call fcn.10004db9
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xdc]
push eax
call fcn.100032f9
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0
call sub.urlmon.dll_URLOpenStreamA
test eax, eax
jns 0x1006fe4e
lea eax, [ebp - 0xcc]
push str.Retry:1
push eax
call fcn.10004db9
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0
call sub.urlmon.dll_URLOpenStreamA
cmp dword [ebp - 0x14], 0x10
jb 0x1006fe5f
push dword [ebp - 0x28]
call fcn.1008a230
add esp, 4
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
call fcn.100032ca
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0x100b46b4
push eax
call fcn.10073845
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008a221
mov esp, ebp
pop ebp
ret 8