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

Disassembly:
cmp ecx, dword [0x100bbef4]
jne 0x10073697
repz ret
jmp fcn.1007abf8
Function at 0x10081152
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 + 0x100bc830]
je 0x1008116d
inc edi
cmp edi, 0x17
jb 0x1008115e
cmp edi, 0x17
jae 0x100812ed
push ebp
push 3
call fcn.10087eb8
cmp eax, 1
pop ecx
je 0x100812b9
push 3
call fcn.10087eb8
test eax, eax
pop ecx
jne 0x100811a1
cmp dword [0x100c43d8], 1
je 0x100812b9
cmp ebx, 0xfc
je 0x100812ec
push 0x100a7d80
mov ebx, 0x314
push ebx
mov ebp, 0x100c4910
push ebp
call fcn.1007f514
add esp, 0xc
test eax, eax
je 0x100811d7
push esi
push esi
push esi
push esi
push esi
call fcn.10074357
add esp, 0x14
push 0x104
mov esi, 0x100c4929
push esi
push 0
mov byte [0x100c4a2d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1008121b
push 0x100a7d68
push 0x2fb
push esi
call fcn.1007f514
add esp, 0xc
test eax, eax
je 0x1008121b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10074357
add esp, 0x14
push esi
call fcn.1007f580
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10081260
push esi
call fcn.1007f580
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x100c4c24
push 0x100a7d64
sub ecx, eax
push ecx
push eax
call fcn.100877a6
add esp, 0x14
test eax, eax
je 0x10081260
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10074357
add esp, 0x14
jmp 0x10081262
xor esi, esi
push 0x100a7d60
push ebx
push ebp
call fcn.100876e3
add esp, 0xc
test eax, eax
je 0x10081282
push esi
push esi
push esi
push esi
push esi
call fcn.10074357
add esp, 0x14
push dword [edi*8 + 0x100bc834]
push ebx
push ebp
call fcn.100876e3
add esp, 0xc
test eax, eax
je 0x100812a4
push esi
push esi
push esi
push esi
push esi
call fcn.10074357
add esp, 0x14
push 0x12010
push 0x100a7d38
push ebp
call fcn.10087cfb
add esp, 0xc
jmp 0x100812ec
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x100812ec
cmp ebp, 0xffffffff
je 0x100812ec
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100bc834]
push dword [esi]
call fcn.1007f580
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 0x10087cfb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1007c50f
xor ebx, ebx
cmp dword [0x100c4e78], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10087dd1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10087eb1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100a8fa4
push edi
call esi
cmp eax, ebx
je 0x10087eb1
push eax
call fcn.1007c4a1
mov dword [esp], 0x100a8f94
push edi
mov dword [0x100c4e78], eax
call esi
push eax
call fcn.1007c4a1
mov dword [esp], 0x100a8f80
push edi
mov dword [0x100c4e7c], eax
call esi
push eax
call fcn.1007c4a1
mov dword [0x100c4e80], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100795b3
test eax, eax
pop ecx
pop ecx
je 0x10087d9f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10074357
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10087dd1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1007c4a1
cmp eax, ebx
pop ecx
mov dword [0x100c4e88], eax
je 0x10087dd1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1007c4a1
pop ecx
mov dword [0x100c4e84], eax
mov eax, dword [0x100c4e84]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10087e56
cmp dword [0x100c4e88], ecx
je 0x10087e56
push eax
call fcn.1007c518
push dword [0x100c4e88]
mov esi, eax
call fcn.1007c518
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10087e56
cmp edi, ebx
je 0x10087e56
call esi
cmp eax, ebx
je 0x10087e23
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10087e23
test byte [ebp - 0x18], 1
jne 0x10087e56
lea eax, [ebp - 0x10]
push eax
call fcn.100795ea
test eax, eax
pop ecx
je 0x10087e3e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10074357
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10087e4d
or dword [ebp + 0x10], 0x200000
jmp 0x10087e91
or dword [ebp + 0x10], 0x40000
jmp 0x10087e91
mov eax, dword [0x100c4e7c]
cmp eax, dword [ebp - 8]
je 0x10087e91
push eax
call fcn.1007c518
cmp eax, ebx
pop ecx
je 0x10087e91
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10087e91
mov eax, dword [0x100c4e80]
cmp eax, dword [ebp - 8]
je 0x10087e91
push eax
call fcn.1007c518
cmp eax, ebx
pop ecx
je 0x10087e91
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100c4e78]
call fcn.1007c518
cmp eax, ebx
pop ecx
je 0x10087eb1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10087eb3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x62aa92
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x3c]
add eax, edx
add eax, 4
add eax, 0x14
lea eax, [eax + 0x60]
add eax, 8
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x118], 0x49
mov byte [ebp - 0x117], 0x6d
mov byte [ebp - 0x116], 0x70
mov byte [ebp - 0x115], 0x6f
mov byte [ebp - 0x114], 0x72
mov byte [ebp - 0x113], 0x74
mov byte [ebp - 0x112], 0x20
mov byte [ebp - 0x111], 0x54
mov byte [ebp - 0x110], 0x61
mov byte [ebp - 0x10f], 0x62
mov byte [ebp - 0x10e], 0x6c
mov byte [ebp - 0x10d], 0x65
mov byte [ebp - 0x10c], 0x3a
mov byte [ebp - 0x10b], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x62ab67
lea esi, [ebp - 0x14]
mov ecx, 0x14
mov al, 0
mov byte [esi], al
inc esi
dec ecx
jne 0x62ab31
mov ebx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov edi, ebx
mov ecx, 0x14
repe cmpsb byte [esi], byte es:[edi]
je 0x62ab5d
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0062ab71
test eax, eax
je 0x62ab67
add ebx, 0x14
jmp 0x62ab3a
popal
mov eax, 1
leave
ret 8
popal
mov eax, 0
leave
ret 8
Function at 0x62ab71
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
pushal
mov eax, 1
test eax, eax
je 0x62addd
mov byte [ebp - 0x10c], 0x50
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x6f
mov byte [ebp - 0x109], 0x63
mov byte [ebp - 0x108], 0x65
mov byte [ebp - 0x107], 0x73
mov byte [ebp - 0x106], 0x73
mov byte [ebp - 0x105], 0x69
mov byte [ebp - 0x104], 0x6e
mov byte [ebp - 0x103], 0x67
mov byte [ebp - 0x102], 0x20
mov byte [ebp - 0x101], 0x49
mov byte [ebp - 0x100], 0x6d
mov byte [ebp - 0xff], 0x70
mov byte [ebp - 0xfe], 0x6f
mov byte [ebp - 0xfd], 0x72
mov byte [ebp - 0xfc], 0x74
mov byte [ebp - 0xfb], 0x20
mov byte [ebp - 0xfa], 0x44
mov byte [ebp - 0xf9], 0x69
mov byte [ebp - 0xf8], 0x72
mov byte [ebp - 0xf7], 0x65
mov byte [ebp - 0xf6], 0x63
mov byte [ebp - 0xf5], 0x74
mov byte [ebp - 0xf4], 0x6f
mov byte [ebp - 0xf3], 0x72
mov byte [ebp - 0xf2], 0x79
mov byte [ebp - 0xf1], 0x3a
mov byte [ebp - 0xf0], 0
mov eax, 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp + 0xc]
mov ebx, eax
mov eax, 1
test eax, eax
je 0x62addd
mov eax, 1
test eax, eax
je 0x62addd
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x62addd
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x10]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
sub ecx, ecx
mov eax, dword [ebp - 0xc]
add eax, ecx
mov eax, dword [eax]
test eax, eax
je 0x62add3
mov ebx, eax
and eax, 0x80000000
jne 0x62ad4a
mov byte [ebp - 0x10c], 0x4e
mov byte [ebp - 0x10b], 0x61
mov byte [ebp - 0x10a], 0x6d
mov byte [ebp - 0x109], 0x65
mov byte [ebp - 0x108], 0x3a
mov byte [ebp - 0x107], 0x20
mov byte [ebp - 0x106], 0
lea eax, [ebp - 0x10c]
mov eax, 1
test eax, eax
je 0x62addd
add ebx, dword [ebp + 0xc]
lea ebx, [ebx + 2]
mov eax, ebx
mov eax, 1
test eax, eax
je 0x62addd
mov eax, 1
test eax, eax
je 0x62addd
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop ecx
test eax, eax
je 0x62addd
mov ebx, dword [ebp - 8]
add ebx, ecx
mov dword [ebx], eax
add ecx, 4
jmp 0x62aca5
mov byte [ebp - 0x10c], 0x4f
mov byte [ebp - 0x10b], 0x72
mov byte [ebp - 0x10a], 0x64
mov byte [ebp - 0x109], 0x69
mov byte [ebp - 0x108], 0x6e
mov byte [ebp - 0x107], 0x61
mov byte [ebp - 0x106], 0x6c
mov byte [ebp - 0x105], 0x3a
mov byte [ebp - 0x104], 0x20
mov byte [ebp - 0x103], 0
lea eax, [ebp - 0x10c]
mov eax, 1
test eax, eax
je 0x62addd
xor ebx, 0x80000000
mov eax, ebx
mov eax, 1
test eax, eax
je 0x62ab67
push ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
pop ecx
test eax, eax
je 0x62addd
mov ebx, dword [ebp - 8]
add ebx, ecx
mov dword [ebx], eax
add ecx, 4
jmp 0x62aca5
popal
mov eax, 1
leave
ret 0xc
popal
mov eax, 0
leave
ret 0xc
Function at 0x62ae9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
sub eax, eax
mov ax, word [edx + 2]
mov dword [ebp - 0x118], eax
add edx, 0x14
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0xc]
mov ebx, dword [ebp + 8]
push edx
push 4
push eax
push dword [ebp - 0x114]
call dword [ebx + 0x24]
test eax, eax
je 0x62afee
mov byte [ebp - 0x10c], 0x53
mov byte [ebp - 0x10b], 0x65
mov byte [ebp - 0x10a], 0x74
mov byte [ebp - 0x109], 0x20
mov byte [ebp - 0x108], 0x49
mov byte [ebp - 0x107], 0x6d
mov byte [ebp - 0x106], 0x61
mov byte [ebp - 0x105], 0x67
mov byte [ebp - 0x104], 0x65
mov byte [ebp - 0x103], 0x20
mov byte [ebp - 0x102], 0x77
mov byte [ebp - 0x101], 0x72
mov byte [ebp - 0x100], 0x69
mov byte [ebp - 0xff], 0x74
mov byte [ebp - 0xfe], 0x61
mov byte [ebp - 0xfd], 0x62
mov byte [ebp - 0xfc], 0x6c
mov byte [ebp - 0xfb], 0x65
mov byte [ebp - 0xfa], 0x3a
mov byte [ebp - 0xf9], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x62afee
mov edx, dword [ebp - 0x110]
lea ebx, [edx + 0x60]
mov eax, dword [edx + 0x5c]
mov edx, 8
mul edx
add eax, ebx
mov dword [ebp - 8], eax
mov eax, 0x28
mov edx, dword [ebp - 0x118]
mul edx
add eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push ebx
push dword [ebp + 8]
call fcn.0062aff8
test eax, eax
je 0x62afee
add ebx, 0x28
dec ecx
jne 0x62afc7
popal
mov eax, dword [ebp - 0x114]
leave
ret 0x10
popal
mov eax, 0
leave
ret 0x10

Function at 0x62b09e
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
pushal
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x24]
and ebx, 0xe0000000
cmp ebx, 0xe0000000
jne 0x62b0c9
mov eax, 0x40
mov dword [ebp - 0x108], eax
jmp 0x62b12e
mov ebx, dword [edx + 0x24]
and ebx, 0x60000000
cmp ebx, 0x60000000
jne 0x62b0e7
mov eax, 0x20
mov dword [ebp - 0x108], eax
jmp 0x62b12e
mov ebx, dword [edx + 0x24]
and ebx, 0xc0000000
cmp ebx, 0xc0000000
jne 0x62b105
mov eax, 4
mov dword [ebp - 0x108], eax
jmp 0x62b12e
mov ebx, dword [edx + 0x24]
and ebx, 0x40000000
cmp ebx, 0x40000000
jne 0x62b123
mov eax, 2
mov dword [ebp - 0x108], eax
jmp 0x62b12e
mov eax, 1
mov dword [ebp - 0x108], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x62b16b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov eax, 1
popal
mov eax, 1
leave
ret 0x10
popal
sub eax, eax
leave
ret 0x10
Function at 0x62b172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x62b1a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x62b1a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x62bdff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.0062bf04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.0062bf20
push edx
push dword [ebp + 0x10]
push eax
call fcn.0062beec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0062bf04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0062becb
push ecx
push dword [ebp + 8]
call fcn.0062bf04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0062bf04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0062becb
push ecx
push dword [ebp + 8]
call fcn.0062bf04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0062bf04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0062becb
push ecx
push dword [ebp + 8]
call fcn.0062bf04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.0062bf04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.0062becb
cmp ecx, 0x2b
jne 0x62be0f
leave
ret 0xc

Function at 0x62d4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x62d544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x112ba0
push 0
call dword [eax + 0x20]
test eax, eax
je 0x62d5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x112ba0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x112ba0
call fcn.0062d3fa
push 0x112ba0
push dword [ebp + 0xc]
call fcn.0062b1a8
test eax, eax
jne 0x62d5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x112ba0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.0062d5dd
test eax, eax
je 0x62d5d6
jmp 0x62d574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x62d5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x62d60b
Capabilities:
Terminate process

Disassembly:
call fcn.0062d618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.dll_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001294
cmp byte [ebx], 0x3d
je 0x10001280
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10004010], eax
cmp dword [ebp - 8], 0
jne 0x100012c2
xor eax, eax
jmp 0x1000131f
mov ebx, dword [ebp - 0x10]
jmp 0x1000130c
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x10001306
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x100012f4
jmp 0x1000131f
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call fcn.100020a1
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012c7
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100013a9
Capabilities:
Allocate or change rwx memory
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
add edi, 0x18
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x100013d7
mov eax, 0
jmp 0x100014a9
lea edi, [ebp - 0x14]
push edi
push 0x40
mov edi, dword [ebp + 8]
mov edi, dword [edi + 4]
add edi, 0x18
push edi
mov edi, dword [ebp - 0xc]
add edi, 0xffffffe8
push edi
call sub.KERNEL32.dll_VirtualProtect
mov dword [ebp - 4], 0
jmp 0x10001472
mov dword [ebp - 0x11c], 0
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 0
je 0x10001445
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
add esi, edi
mov dword [ebp - 8], esi
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0xc]
add edi, dword [ebp - 4]
push edi
push dword [ebp - 8]
call fcn.10001324
add esp, 8
cmp eax, 0
je 0x10001445
inc dword [ebp - 0x10]
add dword [ebp - 4], 4
mov dword [ebp - 0x11c], 1
cmp dword [ebp - 0x11c], 0
jne 0x1000146f
mov edi, dword [ebp - 4]
mov esi, edi
add esi, dword [ebp - 0xc]
movzx ebx, byte [esi]
mov edx, dword [ebp + 8]
movsx edx, byte [edx]
add edx, edi
and edx, 0xff
mov edi, ebx
xor edi, edx
mov ebx, edi
mov byte [esi], bl
inc dword [ebp - 4]
mov edi, dword [ebp + 8]
mov edi, dword [edi + 4]
cmp dword [ebp - 4], edi
jb 0x100013fc
mov edi, dword [ebp + 8]
mov byte [edi], 0
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov edi, dword [edi + 4]
add edi, 0x18
push edi
mov edi, dword [ebp - 0xc]
add edi, 0xffffffe8
push edi
call sub.KERNEL32.dll_VirtualProtect
mov eax, 0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406059
Capabilities:
Access peb ldr_data

Disassembly:
add ebp, 0x24
push esp
call fcn.00403eb7
and ebx, dword [esi]
shl byte [ebx], 1
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x40607b
xchg esi, eax
lodsd eax, dword [esi]

Function at 0x40614d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40616c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406172
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4061a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4061f1
test edi, edi
jne 0x4061ae
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4061eb
Function at 0xa3215b
Capabilities:
Hash data with md5

Disassembly:
and dword [eax], 0
mov dword [eax + 8], 0x5355b325
push ebx
jmp 0xa32145
pushal
mov bh, byte [esp]
mov dword [esp + 0x10], eax
popal
jmp 0xa32165
lea esp, [esp + 8]
jmp 0xa3210c
lea ebx, [ebx + 0xc]
push ecx
mov ecx, 0xd61415ef
pushal
lea esp, [esp + 0x1b]
jmp 0xa6be1a
lea esp, [esp + 1]
jmp 0xa6be48
lea ecx, reloc.oleaut32.dll_SysFreeString
call fcn.00a6be32
pop ebx
call fcn.00a6bede
and dword [eax + 4], 0
push ebx
lea esp, [esp + 4]
and dword [eax], 0
jmp 0xa6be98
lea esp, [esp + 4]
mov dword [eax + 0xc], 0xefcdab89
push dx
jmp 0xa6bebd
pushal
lea esp, [esp + 0x20]
mov dword [eax + 8], 0x67452301
push edx
jmp 0xa6be82
mov dword [eax + 0x14], reloc.oleaut32.dll_SysFreeString
ret
mov word [esp], bx
lea esp, [esp + 2]
mov dword [eax + 0x10], 0x98badcfe
jmp 0xa6bea7

Function at 0xa3d13b
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0xa3d16a
pop dword [esp + 2]
mov byte [esp + 1], bh
push word [esp + 6]
ja 0xa3d125
lea esp, [esp + 2]
mov dword [esp + 0x30], esi
pushfd
pop word [esp]
jmp 0xa3d1a6
lea esp, [esp + 2]
mov dword [esp + 0x30], esi
pushfd
jmp 0xa3d1a2
pop word [esp]
call 0xa3d18c

Function at 0xa3d1b6
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 2]
jmp 0xa3d1dd
mov ax, word [esp]
jmp 0xa3d203
lea esi, [esp + 4]
setne bl
bsf ebx, edi
jne 0xa3d1bc
mov ax, word [esp]
jmp 0xa3d285
not ch
jmp 0xa3d205

Function at 0xa3d4ac
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 1], ch
push ecx
call fcn.00a3d13b
push 0xf0a302b0
jmp 0xa3d1ab
pop dword [esp]
lea esp, [esp + 2]
mov dword [esp + 0x2c], ebp
push esp
jmp 0xa3d100
push word [esp + 3]
mov dword [esp], esi
push ebp
jmp 0xa3d117
rdtsc
cpuid
mov ebx, 0x1d18bdc5
jmp 0xa3d1f3
mov edi, dword [esp + 0x2c]
bswap ecx
push bp
xchg byte [esp], ch
call fcn.00a3d1b6
not ch
sub esp, 0xbc
mov ebp, esp
mov cl, ch
jmp 0xa3d215
rcr eax, 0x19
ja 0xa3d247
mov bl, 0x16
jmp 0xa3d249
jmp 0xa3d181
lea eax, reloc.oleaut32.dll_SysFreeString
xchg ebx, eax
mov eax, 0x9767cdb4
mov bx, dx
jmp 0xa3d266
mov bl, 0x16
mov ecx, edi
mov dh, byte [esp]
jmp 0xa3d231
lea edx, [ecx + ecx]
mov eax, ebx
jmp 0xa3d2a2
neg al
jl 0xa3d250
lea edx, [ecx + ecx]
mov eax, ebx
rdtsc
mov ebx, 0xd36338ae
rdtsc
jmp 0xa3d28c
dec edi
sub edx, 0x6b7e2414
jo 0xa3d2c3
shr ah, 2
setle dh
jmp 0xa3d2b0
rdtsc
mov ebx, 0xd36338ae
rdtsc
jmp 0xa3d28c
setle dh
call 0xa3d2c8
shr ah, 2
jmp 0xa3d2ad
mov word [esp], bp
lea esp, [esp + 2]
mov dword [esp + 0x2c], esp
push sp
push word [esp]
ja 0xa3d22c
push word [esp + 3]
mov dword [esp], esi
push ebp
pop dword [esp]
lea esp, [esp + 2]
jmp 0xa3d11e
lea esp, [esp + 4]
jmp 0xa3d2f4

Function at 0xa3db5e
Capabilities:
Execute anti-debugging instructions

Disassembly:
shr bh, cl
mov bx, 0xc4b9
lea edx, [edx + 0x1a]
jmp 0xa3dc1f
clc
btr bx, si
mov bh, byte [esp]
call fcn.00a3dbd6