joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cf58
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040cfdb
jae 0x40cf66
xor ecx, ecx
call fcn.0040cfdb
jae 0x40cf95
xor eax, eax
call fcn.0040cfdb
jae 0x40cfa5
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040cfdb
adc al, al
jae 0x40cf87
jne 0x40cfd1
stosb byte es:[edi], al
jmp 0x40cf69
call fcn.0040cfe7
sub ecx, ebx
jne 0x40cfae
call fcn.0040cfe5
jmp 0x40cfcd
lodsb al, byte [esi]
shr eax, 1
je 0x40cff7
adc ecx, ecx
jmp 0x40cfca
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040cfe5
cmp eax, 0x7d00
jae 0x40cfca
cmp ah, 5
jae 0x40cfcb
cmp eax, 0x7f
ja 0x40cfcc
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40cf69
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40d1bc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, 0x46a794
mov eax, dword [ebp + 8]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebx + 0x12c]
push ecx
call sub.KERNEL32.DLL_lstrcpyA
push 0
lea eax, [ebp - 4]
push 0
push eax
mov edx, dword [0x46a730]
push 0x400
push edx
push 0
push 0x1300
call sub.KERNEL32.DLL_FormatMessageA
push 0x467ca0
push ebx
call sub.KERNEL32.DLL_lstrcatA
mov ecx, dword [ebp - 4]
push ecx
push ebx
call sub.KERNEL32.DLL_lstrcatA
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_LocalFree
push ebx
call fcn.0040d26c
pop ecx
lea edx, [ebp - 8]
push edx
push 0
push ebx
push 0x40d244
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40d26c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
push 0x46a77c
call sub.KERNEL32.DLL_EnterCriticalSection
push 0
push 0
push 4
push 0
push 3
push 0xc0000000
push str.ServerLog.txt
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
mov esi, 0x464455
lea edi, [ebp - 0x144]
mov ecx, 0x4b
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x464582]
mov word [ebp - 2], ax
lea edx, [ebp - 0x18]
push edx
call sub.KERNEL32.DLL_GetLocalTime
mov ecx, dword [ebp + 8]
push ecx
movzx eax, word [ebp - 0xc]
push eax
movzx edx, word [ebp - 0xe]
push edx
movzx ecx, word [ebp - 0x10]
push ecx
movzx eax, word [ebp - 0x12]
push eax
lea eax, [ebp - 0x144]
movzx edx, word [ebp - 0x16]
push edx
movzx ecx, word [ebp - 0x18]
push ecx
push str._d___d___d__d:_d:_d__hs
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0x24
push 2
push 0
push 0
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x144]
push ecx
call sub.KERNEL32.DLL_lstrlenA
inc eax
push eax
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
lea edx, [ebp - 8]
push 0
push edx
lea ecx, [ebp - 2]
push 2
push ecx
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
push 0x46a77c
call sub.KERNEL32.DLL_LeaveCriticalSection
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d794
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
mov eax, dword [0x468420]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0x400
mov dword [ebp - 0x10], eax
mov eax, dword [0x468424]
mov dword [ebp - 0xc], eax
mov ax, word [0x468428]
mov word [ebp - 8], ax
push 4
push 0
push edi
call fcn.00405384
add esp, 0xc
push edi
push esi
mov edx, dword [ebp + 8]
push edx
call fcn.0040ddc4
add esp, 0xc
test eax, eax
jne 0x40d7f0
xor eax, eax
jmp 0x40d9a3
cmp dword [0x46aaa0], 0
je 0x40d915
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x428]
push edx
push 0
push ecx
call fcn.00405384
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
mov ebx, eax
cmp ebx, 4
jl 0x40d99e
add ebx, 0xfffffffc
lea eax, [ebp - 0x428]
add eax, ebx
push eax
lea edx, [ebp - 0x10]
push edx
call sub.KERNEL32.DLL_lstrcpyA
lea ecx, [ebp - 0x10]
push ecx
call sub.KERNEL32.DLL_lstrlenA
mov byte [ebp + eax - 0x11], 0
movsx eax, byte [ebp - 0x10]
cmp eax, 0x61
je 0x40d824
cmp eax, 0x41
je 0x40d824
cmp eax, 0x62
je 0x40d824
cmp eax, 0x42
je 0x40d824
lea edx, [ebp - 0x10]
push edx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 5
je 0x40d824
lea ecx, [ebp - 0x10]
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 4
je 0x40d824
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
test eax, eax
je 0x40d824
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
push ecx
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
mov eax, dword [ebp - 0x24]
push eax
call sub.KERNEL32.DLL_SetErrorMode
cmp dword [ebp - 0x20], 0xf972
jne 0x40d824
cmp dword [ebp - 0x14], 4
jne 0x40d824
lea edx, [ebp - 0x10]
push edx
call fcn.0040dc74
pop ecx
test eax, eax
jne 0x40d907
mov ecx, dword [esi]
cmp ecx, dword [ebp + 8]
jne 0x40d905
push 0x4684aa
push edi
call sub.KERNEL32.DLL_lstrcpyA
lea eax, [ebp - 0x10]
push eax
push edi
call sub.KERNEL32.DLL_lstrcatA
xor eax, eax
jmp 0x40d9a3
inc dword [esi]
cmp ebx, 4
jge 0x40d82d
jmp 0x40d99e
call dword [0x46aaa8]
mov edx, eax
and dl, 0xff
mov byte [ebp - 0x26], dl
cmp byte [ebp - 0x26], 0
je 0x40d938
and ax, 0xffff
movzx ecx, ax
shr ecx, 8
cmp cl, 1
je 0x40d93f
mov eax, 0xfffea06c
jmp 0x40d9a3
mov byte [ebp - 0x25], 0
jmp 0x40d991
xor ebx, ebx
jmp 0x40d986
push ebx
mov al, byte [ebp - 0x25]
push eax
call fcn.0040db5c
add esp, 8
test eax, eax
jne 0x40d985
mov edx, dword [esi]
cmp edx, dword [ebp + 8]
jne 0x40d983
push 0x4684af
push edi
call sub.KERNEL32.DLL_lstrcpyA
mov cl, byte [ebp - 0x25]
add ebx, 0x1e
add cl, 0x1e
xor eax, eax
mov byte [edi + 4], cl
mov byte [edi + 5], 0x3a
mov byte [edi + 6], bl
jmp 0x40d9a3
inc dword [esi]
inc ebx
movsx edx, bl
cmp edx, 8
jl 0x40d949
inc byte [ebp - 0x25]
movsx ecx, byte [ebp - 0x25]
xor eax, eax
mov al, byte [ebp - 0x26]
cmp ecx, eax
jl 0x40d945
mov eax, 0xffffffcb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401aa0
Capabilities:
Parse pe header

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

Function at 0x4073e5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lodsb al, byte [esi]
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.00406826
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004067db
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00406816
inc edi
invalid

Function at 0x40772f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
call fcn.004067f4
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
invalid
invalid
Function at 0x473050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x45000]
push edi
jmp 0x47306a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x473071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x473060
mov eax, 1
add ebx, ebx
jne 0x473083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x473094
jne 0x4730b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730b3
dec eax
add ebx, ebx
jne 0x4730a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x473078
add ebx, ebx
jne 0x4730af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x473105
xor ecx, ecx
sub eax, 3
jb 0x4730cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47313a
sar eax, 1
mov ebp, eax
jmp 0x4730d6
add ebx, ebx
jne 0x4730d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730a4
inc ecx
add ebx, ebx
jne 0x4730e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4730a4
add ebx, ebx
jne 0x4730f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4730e6
jne 0x473102
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4730e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x473124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x473116
jmp 0x473066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x473124
add edi, ecx
jmp 0x473066
pop esi
mov edi, esi
mov ecx, 0x2046
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x473142
cmp byte [edi], 0x12
jne 0x473142
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x473147
lea edi, [esi + 0x6f000]
mov eax, dword [edi]
or eax, eax
je 0x4731b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x79398]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x793c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x473174
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x793c4]
or eax, eax
je 0x4731b0
mov dword [ebx], eax
add ebx, 4
jmp 0x473191
call dword [esi + 0x793d4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4731e7
cmp al, 0xef
ja 0x4731da
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4731bc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4731c9
mov ebp, dword [esi + 0x793c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x47321b
sub esp, 0xffffff80
jmp 0x4320d5
Function at 0x100157aa
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10090efd
call fcn.1004a5bc
push ecx
push esi
mov esi, ecx
and dword [esi + 4], 0
push edi
push 0x10098f28
lea ecx, [esi + 8]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x10098f24
call fcn.10003a7a
mov edi, dword [fcn.10097358]
and dword [ebp - 4], 0
lea eax, [esi + 0xc]
push eax
call edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.100033a8
lea eax, [esi + 0x30]
push eax
call edi
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 3
call fcn.100144ce
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1001cc0b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x1001cc47
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test esi, esi
jbe 0x1001cc3b
mov al, byte [ecx + edx]
xor al, 1
mov byte [ebp + 0xb], al
mov al, byte [ebp + 0xb]
ror al, 3
mov byte [ebp + 0xb], al
mov al, byte [ebp + 0xb]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jb 0x1001cc1f
lea eax, [edx + esi]
mov byte [eax - 1], 0
mov byte [eax - 2], 0
pop esi
pop ebp
ret

Function at 0x1001f17f
Capabilities:
Get geographical location

Disassembly:
push dword [esp + 8]
push 0x1009b9d4
push dword [esp + 0xc]
call dword [fcn.100974cc]
add esp, 0xc
ret

Function at 0x1003909c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 0x20
lea eax, [ebp - 0x20]
push 0
push eax
mov esi, ecx
call fcn.100496a0
add esp, 0xc
push dword [esi]
lea eax, [ebp - 0x20]
push 0x20
push eax
push 0x1009870c
push dword [ebp + 0xc]
jne 0x100390d1

Function at 0x10039f0a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10039f2c
jmp 0x10039f4d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x10039f49
and dword [ebp - 4], 0
jmp 0x10039f4d
xor eax, eax
jne 0x10039f17
mov eax, dword [ebp - 4]
leave
ret

Function at 0x10039fd1
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
jmp 0x10039feb
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x1003a015
jmp 0x1003a062
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x1003a039
jmp 0x1003a062
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x1003a05b
jmp 0x1003a062
mov dword [ebp - 4], 1
jmp 0x1003a074
mov eax, dword [ebp - 4]
leave
ret
Function at 0x1003a9c4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1003a9e6
jmp 0x1003aa07
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x1003aa03
and dword [ebp - 4], 0
jmp 0x1003aa07
xor eax, eax
jne 0x1003a9d1
mov eax, dword [ebp - 4]
leave
ret

Function at 0x1003aa67
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x1003aa99
jmp 0x1003aae6
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x1003aabd
jmp 0x1003aae6
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jne 0x1003aadf
jmp 0x1003aae6
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
leave
ret

Function at 0x1003b4be
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push 0x1003b43a
push edi
push edi
mov dword [esi + 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x1003b4e1
xor eax, eax
jmp 0x1003b567
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x2c], eax
call ebx
mov ecx, dword [esi + 0x2c]
cmp ecx, edi
mov dword [esi + 0x30], eax
je 0x1003b53f
cmp eax, edi
je 0x1003b53d
cmp dword [esi + 0x10], 1
je 0x1003b511
cmp dword [esi + 0x10], 2
jne 0x1003b51b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1003b505
cmp dword [esi + 0x10], 3
jne 0x1003b538
push dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x2c]
call edi
push dword [esi + 0x30]
call edi
jmp 0x1003b564
xor eax, eax
inc eax
jmp 0x1003b566
cmp ecx, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1003b54a
push ecx
call ebx
cmp dword [esi + 0x30], edi
je 0x1003b554
push dword [esi + 0x2c]
call ebx
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call ebx
xor eax, eax
pop ebx
pop edi
pop esi
ret 4

Function at 0x1003b954
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push edi
xor ebx, ebx
push ebx
push 0x1009d0fc
push ebx
push dword [ebp + 8]
call esi
push ebx
push 0x1009d0ec
push ebx
Function at 0x1003c121
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003c172
cmp dword [ebp + 0x10], 1
je 0x1003c15b
cmp dword [ebp + 0x10], 2
jne 0x1003c169
test edi, edi
mov eax, dword [ebp - 4]
je 0x1003c16e
cmp byte [eax + edi - 1], 0
je 0x1003c16e
push 0xd
pop eax
jmp 0x1003c172
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x1003c1ee
Capabilities:
Set file attributes

Disassembly:
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call edi
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x1003da87
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, ecx
call fcn.1003e3c8
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov dword [esi], 0x1009ed70
mov eax, esi
pop esi
ret

Function at 0x1003ef7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x30
push ebx
mov esi, 0x100bdf80
push esi
mov eax, 0x1009ee60
call fcn.1003ed49
mov edi, dword [ebp + 0xc]
add esp, 0xc
xor ecx, ecx
sub edi, esi
lea eax, [ecx + 0x100bdf80]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 0x30
jl 0x1003efa1
mov esi, 0x100bdf82
xor edi, edi
mov dword [ebp - 4], 8
mov al, byte [esi - 1]
mov cl, byte [esi - 2]
shl al, 1
add al, byte [esi]
shl cl, 1
add cl, byte [esi + 3]
shl al, 1
add al, byte [esi + 1]
movsx ecx, cl
shl al, 1
add al, byte [esi + 2]
add ecx, edi
movsx eax, al
shl ecx, 4
push 4
lea eax, [eax + ecx + 0x1009ef28]
push eax
push ebx
call fcn.1003edd6
add esp, 0xc
add edi, 4
add esi, 6
add ebx, 4
dec dword [ebp - 4]
jne 0x1003efc0
push 0x20
push dword [ebp + 8]
mov eax, 0x1009ee90
push dword [ebp + 8]
call fcn.1003ed49
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003f01f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x40
push dword [ebp + 0xc]
mov edi, 0x100bdfd0
push edi
mov esi, eax
call fcn.1003edd6
push 0x40
push edi
push edi
mov eax, 0x1009ede0
call fcn.1003ed49
add esp, 0x18
cmp byte [ebp + 0x10], 0
je 0x1003f0b6
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], 0x10
mov esi, 0x100bdfb0
push 0x20
push dword [0x100bad04]
push esi
call fcn.10049900
push dword [ebp + 0x10]
push dword [0x100bad04]
call fcn.1003ef7a
mov ecx, dword [0x100bad00]
mov eax, dword [0x100bad04]
mov edx, ecx
add esp, 0x14
sub edx, eax
mov dword [ebp - 4], 0x20
mov bl, byte [edx + eax]
xor byte [eax], bl
inc eax
dec dword [ebp - 4]
jne 0x1003f094
push 0x20
push esi
push ecx
call fcn.10049900
add dword [ebp + 0x10], 0x30
add esp, 0xc
dec dword [ebp - 8]
jne 0x1003f05f
jmp 0x1003f120
add esi, 0x2d0
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], 0x10
mov esi, 0x100bdfb0
push 0x20
push dword [0x100bad00]
push esi
call fcn.10049900
push dword [ebp + 0x10]
push dword [0x100bad00]
call fcn.1003ef7a
mov ecx, dword [0x100bad04]
mov eax, dword [0x100bad00]
mov edx, ecx
add esp, 0x14
sub edx, eax
mov dword [ebp - 8], 0x20
mov bl, byte [edx + eax]
xor byte [eax], bl
inc eax
dec dword [ebp - 8]
jne 0x1003f100
push 0x20
push esi
push ecx
call fcn.10049900
sub dword [ebp + 0x10], 0x30
add esp, 0xc
dec dword [ebp - 4]
jne 0x1003f0cb
push 0x40
push edi
push edi
mov eax, 0x1009ee20
call fcn.1003ed49
mov edi, dword [ebp + 8]
push 8
xor esi, esi
push esi
push edi
call fcn.100496a0
add esp, 0x18
mov dl, byte [esi + 0x100bdfd0]
mov ecx, esi
and ecx, 7
mov eax, esi
shl dl, cl
sar eax, 3
add eax, edi
or byte [eax], dl
inc esi
cmp esi, 0x40
jl 0x1003f13f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003f356
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.1003f308
mov byte [esi], 0x80
pop esi
ret

Function at 0x100402bd
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 4
push 0x20000005
push dword [ecx + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
dec eax
neg eax
sbb eax, eax
inc eax
leave
ret 4