joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b694
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x426120]
jne 0x40b69e
repz ret
jmp fcn.0040f886

Function at 0x4166a4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040fa06
and dword [ebp - 4], 0
cmp dword [0x428394], 0
mov ebx, eax
jne 0x416755
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416806
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420ae8
push edi
call esi
test eax, eax
je 0x416806
push eax
call fcn.0040f994
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428394], eax
call esi
push eax
call fcn.0040f994
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428398], eax
call esi
push eax
call fcn.0040f994
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42839c], eax
call esi
push eax
call fcn.0040f994
pop ecx
mov dword [0x4283a4], eax
test eax, eax
je 0x416755
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f994
pop ecx
mov dword [0x4283a0], eax
mov eax, dword [0x4283a0]
cmp eax, ebx
je 0x4167ad
cmp dword [0x4283a4], ebx
je 0x4167ad
push eax
call fcn.0040fa0f
push dword [0x4283a4]
mov esi, eax
call fcn.0040fa0f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4167ad
test edi, edi
je 0x4167ad
call esi
test eax, eax
je 0x4167a4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4167a4
test byte [ebp - 0xc], 1
jne 0x4167ad
or dword [ebp + 0x10], 0x200000
jmp 0x4167e6
mov eax, dword [0x428398]
cmp eax, ebx
je 0x4167e6
push eax
call fcn.0040fa0f
pop ecx
test eax, eax
je 0x4167e6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4167e6
mov eax, dword [0x42839c]
cmp eax, ebx
je 0x4167e6
push eax
call fcn.0040fa0f
pop ecx
test eax, eax
je 0x4167e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428394]
call fcn.0040fa0f
pop ecx
test eax, eax
je 0x416806
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416808
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405bd0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x408034]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
and dword [ebp - 0x24], 0
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
push eax
mov dword [ebp - 0x1c], ebx
xor edi, edi
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x405c55
push 0x42
call sub.msvcrt.dll_malloc
mov esi, eax
pop ecx
test esi, esi
jne 0x405c2c
mov eax, dword [0x40a224]
test eax, eax
je 0x405c28
push 0x1b6c
push eax
call fcn.00406261
pop ecx
pop ecx
test esi, esi
je 0x405c55
push esi
lea edx, [ebp - 0x14]
call fcn.00405272
push 8
push dword [0x408040]
lea eax, [ebp - 0x18]
push dword [0x40a244]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x405ccf
and dword [ebp - 0x18], ebx
push dword [0x40a24c]
push 0x1b69
push dword [0x40a224]
call fcn.00406261
add esp, 0xc
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x18], 0
je 0x405c9c
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x10
push dword [0x408040]
lea eax, [ebp - 0x18]
push dword [0x40a244]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test esi, esi
je 0x405ca7
push esi
call sub.msvcrt.dll_free
pop ecx
test ebx, ebx
je 0x405cb2
push ebx
call sub.msvcrt.dll_free
pop ecx
test edi, edi
je 0x405cbd
push edi
call sub.msvcrt.dll_free
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406d00
leave
ret
lea eax, [ebp - 0x24]
push eax
push 0x2000001
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x405c55
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
push 0
push 1
push 1
push dword [ebp - 0x18]
call dword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
cmp dword [ebp - 0x20], ebx
jne 0x405d1e
mov ecx, 0x1b70
call fcn.004019ec
jmp 0x405c6e
push dword [ebp - 0x20]
call sub.msvcrt.dll_malloc
mov edi, eax
pop ecx
test edi, edi
jne 0x405d4b
mov eax, dword [0x40a224]
test eax, eax
je 0x405d43
push 0x1b6c
push eax
call fcn.00406261
pop ecx
pop ecx
test edi, edi
je 0x405c6e
lea eax, [ebp - 0x20]
push eax
push edi
push 1
push 1
push dword [ebp - 0x18]
call dword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
test eax, eax
je 0x405d0f
mov edx, dword [edi + 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
push 0x32
pop ecx
call fcn.00405693
mov ebx, dword [ebp - 0x1c]
test eax, eax
je 0x405c55
xor eax, eax
cmp dword [ebx + 0x10], eax
setne al
mov dword [ebp - 0x1c], eax
jmp 0x405c72
Function at 0x40649c
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], esi
mov ebx, esi
push edi
test eax, eax
je 0x406582
test ecx, ecx
je 0x406582
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x406582
or dword [edi], 0xffffffff
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
mov dword [eax], esi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x40650b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x406561
movzx esi, si
or esi, 0x80070000
jmp 0x40655f
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4064f4
cmp dword [ebp - 4], ebx
je 0x40652a
mov esi, 0x80004005
jmp 0x406563
push esi
push esi
push esi
push 2
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x4064f4
push dword [ebp - 8]
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x4064f4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test esi, esi
je 0x406573
cmp dword [edi], 0xffffffff
je 0x406573
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
test ebx, ebx
je 0x40657e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x406587
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40658e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x40a230]
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
mov esi, edx
test eax, eax
je 0x40662b
test esi, esi
je 0x40662b
cmp dword [ebp + 8], ecx
je 0x40662b
push ebx
push ecx
push ecx
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4065e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x406626
movzx esi, si
or esi, 0x80070000
jmp 0x406626
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40660f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40661f
movzx esi, si
or esi, 0x80070000
jmp 0x40661f
mov esi, dword [ebp - 4]
sub esi, dword [ebp + 8]
neg esi
sbb esi, esi
and esi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
jmp 0x406630
mov eax, 0x80070057
pop esi
leave
ret 4
Function at 0x406ad3
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x407270
call fcn.004071a8
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40a2a8
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406b18
cmp eax, esi
jne 0x406b0b
xor esi, esi
inc esi
mov edi, esi
jmp 0x406b1b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406aef
xor esi, esi
inc esi
cmp dword [0x40a2ac], esi
jne 0x406b2d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406b67
cmp dword [0x40a2ac], ebx
jne 0x406b61
mov dword [0x40a2ac], esi
push 0x4010cc
push 0x4010c0
call fcn.00406c4c
pop ecx
pop ecx
test eax, eax
je 0x406b67
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406c3c
mov dword [0x408124], esi
cmp dword [0x40a2ac], esi
jne 0x406b8a
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40a2ac], 2
test edi, edi
jne 0x406b97
xor eax, eax
mov ecx, 0x40a2a8
xchg dword [ecx], eax
cmp dword [0x40a2b0], 0
je 0x406bc3
push 0x40a2b0
call fcn.00407000
pop ecx
test eax, eax
je 0x406bc3
push ebx
push 2
push ebx
mov esi, dword [0x40a2b0]
mov ecx, esi
call dword [0x40b1fc]
call esi
push dword [0x408130]
push dword [0x40812c]
push dword [0x408128]
call fcn.0040299a
add esp, 0xc
mov dword [0x408120], eax
cmp dword [0x408138], 0
jne 0x406c21
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x408124], 0
jne 0x406c35
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x408120]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0049d000
jmp 0x406ad3

Function at 0x406ec4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x407290
call fcn.004071a8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406f24
cmp eax, 0xffffffff
je 0x406f24
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x406f1d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x406f1d
cmp edx, 0x10000000
jae 0x406f1d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x406f1a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x406f90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406fce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406fc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x406fd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406fb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4070c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4070f1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4070f1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4070f1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4027e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40401d], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402828
xor eax, eax
jmp 0x402843
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1ecc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01ecc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1ecc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ecc06a
add dl, dl
jne 0x1ecc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ecc0dc
xor eax, eax
add dl, dl
jne 0x1ecc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ecc17d
add dl, dl
jne 0x1ecc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ecc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ecc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ecc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1ecc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1ecc075
mov eax, 1
add dl, dl
jne 0x1ecc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ecc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ecc0e1
sub eax, ebx
mov ebx, 1
jne 0x1ecc128
mov ecx, 1
add dl, dl
jne 0x1ecc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ecc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ecc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ecc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1ecc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ecc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ecc136
cmp eax, 0x7d00
jae 0x1ecc16d
cmp eax, 0x500
jb 0x1ecc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ecc075
cmp eax, 0x7f
ja 0x1ecc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ecc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1ecc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1ecc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1002de50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1002de5f
pop dword [ebp - 0x24]
mov eax, 0x1002de5f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x691d5f16
add dword [ebp - 0x34], 0xe534e635
mov dword [ebp - 0x30], 0xc21c541c
add dword [ebp - 0x30], 0x7016f829
mov dword [ebp - 0x2c], 0x5cd298ba
add dword [ebp - 0x2c], 0xef79ab74
mov dword [ebp - 0x28], 0x78bfdfab
sub dword [ebp - 0x28], 0x78bfdfab
lea eax, [ebp - 0x34]
push eax
mov eax, 0xa19c9b04
add eax, 0x6e675530
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x510c3654
add dword [ebp - 0x34], 0x23663302
mov dword [ebp - 0x30], 0x5a349cbd
sub dword [ebp - 0x30], 0x18c83b48
mov dword [ebp - 0x2c], 0x36784547
sub dword [ebp - 0x2c], 0xd308d8db
mov dword [ebp - 0x28], 0x151591ac
sub dword [ebp - 0x28], 0x151591ac
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x56b90de6
sub eax, 0x46b51d9a
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x465b8
push 0
call eax
mov ecx, 0x495a
xor edi, edi
add edi, eax
mov edx, 0x78150bae
sub edx, 0x680fbdae
add edx, dword [ebp - 0x24]
mov esi, 0x6fad5c3a
xor dword [ebp - 8], 0x81255674
mov ebx, dword [edx]
mov dword [ebp - 0x1c], 0x1f606058
xor ebx, esi
xor dword [ebp - 4], 0x1a1419d0
mov dword [edi], ebx
add dword [ebp - 0x18], ecx
add edi, 0x58524c18
add edi, 0xa7adb3ec
add edx, 0x26fc5e50
add edx, 0xd903a1b4
loop 0x1002df72
add eax, 0x1183b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2fe0c990
sub ecx, 0x1fe0c990
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x100366e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e348
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004e2d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004e28c]
cmp eax, 0xffffffff
jne 0x10036716
xor ebx, ebx
jmp 0x1003671f
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003675f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003679e
test esi, esi
jne 0x100367a2
push 0x10035270
push 0x1004fad8
call fcn.1002de50
mov eax, dword [0x1004e28c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003675f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003678c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003678c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100367e4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100367cd
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x100367a2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036730
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10036809
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x10036809
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1002de50
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100367f0
jmp 0x10036730

Function at 0x402658
Capabilities:
Terminate process

Disassembly:
xor edi, edi
xor esi, esi
mov edx, eax
mov eax, 5
add eax, 5
inc eax
test eax, 0xb
jne 0x40267a
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
mov dword [0x401036], eax
ret
Function at 0x40f5a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebx + 0x40fffffc], edi
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0040ed3b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040ecf0
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
invalid
test dword [esi], edi
cld

Function at 0x40fc8d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x39d30001], ebx
test dword [ebp + 0x26fffffc], ebx
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
lea eax, [ebp - 0x36c]
push eax
call fcn.0040ed3b
Function at 0x1000678b
Capabilities:
Encode data using xor

Disassembly:
inc edi
and dword [ecx + 0x407f2f26], ecx
rcl ebx, 1
adc al, 0x77
inc edi
mov bh, 0x10
sbb esp, edx
sbb eax, 0xdbd56629
and ah, byte [ebx]
loope 0x100067ab
sub eax, 0xf15bec8d
movsd dword es:[edi], dword [esi]
invalid

Function at 0x10747318
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10747468
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1074733e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1074732a
add dl, dl
jne 0x10747349
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1074739c
xor eax, eax
add dl, dl
jne 0x10747356
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1074743d
add dl, dl
jne 0x10747365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10747370
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1074737b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10747386
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10747392
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10747335
mov eax, 1
add dl, dl
jne 0x107473aa
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x107473b5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107473a1
sub eax, ebx
mov ebx, 1
jne 0x107473e8
mov ecx, 1
add dl, dl
jne 0x107473ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107473d9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107473c5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10747335
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x107473ff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1074740a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x107473f6
cmp eax, 0x7d00
jae 0x1074742d
cmp eax, 0x500
jb 0x10747428
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10747335
cmp eax, 0x7f
ja 0x10747430
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10747335
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1074745e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10747335
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10