joyce8/EMBER2024-capa huggingface dataset:
Function at 0x942d7e
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.00942d41
push esi
call fcn.00942f2c
push dword [esp + 0x80]
mov esi, eax
call fcn.00942f2c
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0093af12
lea eax, [esp + 0x30]
push eax
push 5
push esi
call fcn.00942c5b
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x942f13
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call fcn.00942f61
mov edi, eax
add esp, 0x14
test edi, edi
je 0x942f13
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x942ef6
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x942edb
lea eax, [edi + 0x2c]
mov ebp, esi
xor ecx, ecx
mov edx, eax
sub ebp, eax
mov al, byte [edx + ebp]
mov byte [edx], al
mov byte [edi + ecx + 0x4c], al
inc ecx
inc edx
cmp ecx, ebx
jb 0x942e47
lea eax, [ebx + esi]
push eax
lea eax, [ebx + 0x2c]
add eax, edi
push eax
call fcn.00942cfc
mov edx, dword [esp + 0x20]
mov eax, edx
mov ebp, dword [esp + 0x24]
sub eax, esi
pop ecx
pop ecx
mov ecx, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x942ea5
lea eax, [edi + 0xc]
push edx
push eax
call fcn.00942cfc
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x942ea7
mov eax, edx
push eax
push esi
call fcn.00942cfc
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x942f07
mov ecx, dword [esp + 0x78]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x942f13
push 1
push edi
call fcn.00943055
pop ecx
pop ecx
xor edi, edi
push 0x94946c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x68
ret
Function at 0x942f61
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [0x949484], 0x40
jae 0x94304e
mov ecx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, 0xfff80000
add esi, ecx
add ecx, dword [esp + 0x5c]
push edi
cmp ecx, 0x80000000
lea edi, [esp + 0x2c]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb ebp, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
cmovb edi, eax
cmp edi, ebp
jae 0x94304b
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x943026
cmp dword [esp + 0x20], 0x10000
jne 0x943018
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x94301c
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x94301c
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x94302a
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add edi, eax
cmp edi, ebp
jb 0x942fc9
test ebx, ebx
je 0x94304b
xor eax, eax
cmp dword [eax*4 + 0x949488], 0
je 0x94303e
inc eax
cmp eax, 0x40
jb 0x94302c
jmp 0x94304b
inc dword [0x949484]
mov dword [eax*4 + 0x949488], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
Function at 0x944ae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
lea ebx, [eax + ebp]
cmp eax, 8
jbe 0x944c97
mov edi, dword [esp + 0x120]
lea esi, [ebp + 8]
push 0x800
lea eax, [edi + 0x5410]
push eax
mov eax, ebx
sub eax, esi
push eax
lea eax, [edi + 0x140c]
push esi
push eax
call fcn.00948110
add esp, 0x14
cmp eax, 0xffffff88
ja 0x944c97
add esi, eax
mov dword [esp + 0x14], 0x1c
mov eax, ebx
sub eax, esi
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00944ce0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x944c97
mov eax, dword [esp + 0x1c]
cmp eax, 8
ja 0x944c97
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [edi + 0x804]
push eax
call fcn.00945110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x944c97
add esi, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x18], 0x34
push eax
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00944ce0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x944c97
mov eax, dword [esp + 0x20]
cmp eax, 9
ja 0x944c97
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xb8]
push eax
lea eax, [edi + 0xc08]
push eax
call fcn.00945110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x944c97
add esi, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00944ce0
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x944c97
mov eax, dword [esp + 0x24]
cmp eax, 9
ja 0x944c97
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
push edi
call fcn.00945110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x944c97
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, ebx
ja 0x944c97
sub ebx, esi
xor edx, edx
sub ebx, 0xc
add edi, 0x5c10
nop
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x944c97
cmp ecx, ebx
jae 0x944c97
mov dword [edi], ecx
inc edx
add edi, 4
cmp edx, 3
jl 0x944c70
sub esi, ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe2
pop ebx
add esp, 0x10c
ret
Function at 0x947d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
shr eax, 8
test al, al
je 0x947d56
mov dword [esp + 0x14], ecx
jmp fcn.00946f60
mov dword [esp + 0x14], ecx
jmp fcn.00946320
Function at 0xbf4108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00bf4258
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 0xbf412e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbf411a
add dl, dl
jne 0xbf4139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbf418c
xor eax, eax
add dl, dl
jne 0xbf4146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbf422d
add dl, dl
jne 0xbf4155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbf4160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbf416b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbf4176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbf4182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbf4125
mov eax, 1
add dl, dl
jne 0xbf419a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbf41a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbf4191
sub eax, ebx
mov ebx, 1
jne 0xbf41d8
mov ecx, 1
add dl, dl
jne 0xbf41be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbf41c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbf41b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbf4125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbf41ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbf41fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbf41e6
cmp eax, 0x7d00
jae 0xbf421d
cmp eax, 0x500
jb 0xbf4218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbf4125
cmp eax, 0x7f
ja 0xbf4220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbf4125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbf424e
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 0xbf4125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
dec eax
je 0x401066
dec eax
jne 0x40107f
cmp dword [esp + 8], 5
jb 0x401059
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x401042
mov eax, 0x2002
pop esi
add esp, 0x94
ret
dec eax
pop esi
neg eax
sbb eax, eax
and eax, 0xffffdffc
add eax, 0x2004
add esp, 0x94
ret
mov eax, 0x2001
pop esi
add esp, 0x94
ret
mov esi, dword [esp + 0xc]
xor ecx, ecx
cmp ecx, esi
pop esi
sbb eax, eax
neg eax
add eax, 0x1001
add esp, 0x94
ret
mov eax, esi
pop esi
add esp, 0x94
ret
Function at 0x401090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 0x80
push 0x20
lea ecx, [esp + 0x20]
call fcn.0040947d
push 0x80
push 0x20
lea ecx, [esp + 0x34]
call fcn.0040947d
mov eax, dword [0x415b18]
mov dword [esp + 0x10], eax
call fcn.00401000
mov ebp, dword [sym.imp.USER32.dll_FindWindowExA]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [esp + 0x20], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.32770
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call ebp
mov edi, eax
test edi, edi
je 0x4011a2
push 5
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x401179
mov ecx, dword [esp + 0x18]
push 0x80
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
mov al, byte [esp + 0x20]
test al, 2
je 0x40112b
mov dword [esp + 0x1c], 0x6f
jmp 0x401137
test al, 4
je 0x401137
mov dword [esp + 0x1c], 0x14c1
mov edx, dword [esp + 0x18]
push str.Static
push edx
call fcn.00401260
add esp, 8
test eax, eax
jne 0x401179
push 0xfffffffffffffff4
push esi
call ebx
cmp eax, dword [esp + 0x1c]
jne 0x401179
push 0
push str.Button
push esi
push edi
call ebp
mov esi, eax
test esi, esi
je 0x401179
push 0xfffffffffffffff4
push esi
call ebx
cmp eax, 0x14b7
push 0
je 0x401186
jmp 0x40115a
push 0
push str.32770
push edi
jmp 0x4010e6
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 1
push 0x201
push esi
call edi
push 0
push 0
push 0x202
push esi
call edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x14]
call fcn.00409b05
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010d5
push str.FinishInstall
lea ecx, [esp + 0x14]
call fcn.00409b05
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401216
cmp dword [esp + 0x28], 1
je 0x401226
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4010d5
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call fcn.00409aae
lea ecx, [esp + 0x2c]
call fcn.00409aae
lea ecx, [esp + 0x18]
call fcn.00409aae
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x10
Function at 0x402711
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413388
cmp edx, dword [eax]
je 0x402733
add eax, 8
inc ecx
cmp eax, 0x413418
jl 0x402724
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413388]
jne 0x402861
mov eax, dword [0x416518]
cmp eax, 1
je 0x40283b
test eax, eax
jne 0x402764
cmp dword [0x4130f8], 1
je 0x40283b
cmp edx, 0xfc
je 0x402861
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40279b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402e70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402f60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4027de
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402f60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f630
push edi
call fcn.00404ad0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402e70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402e80
lea eax, [ebp - 0xa0]
push 0x40f610
push eax
call fcn.00402e80
push dword [esi + 0x41338c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402e80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404a43
add esp, 0x2c
pop edi
jmp 0x402861
lea eax, [ebp + 8]
lea esi, [esi + 0x41338c]
push 0
push eax
push dword [esi]
call fcn.00402f60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4adbd4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ad894

Function at 0x4add19
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004adc1e

Function at 0x4af4da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004af359

Function at 0x4c3000
Capabilities:
Packed with generic packer
Terminate process

Disassembly:
pushal
push 0x4c3031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4c303a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x4c3047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.00497fd6

Function at 0x1201054
Capabilities:
Packed with generic packer

Disassembly:
clc
jae 0x1201060
jmp 0x4086a255
pushal
jae 0x120106e
cli
sbb ebp, ecx
fdiv dword [ecx]
and al, 4
sub byte [eax + 0xe83dff], ah
add byte [eax], al
add byte [ebx - 0x15], bl
or byte [ebp + 0x13], bh
popal
mov ch, 0xae
shl dword [edi + 0x17], cl
call 0x1201073
pop ebx
jmp 0x120107e
add ebx, 0xffffff8d
cmp dword [ebx], 0
clc
jae 0x120108b
je 0x12010f2
je 0x12010f2
jmp 0x120109d
mov ecx, ebx
jae 0x12010a3
pop ds
aas
add ebx, 4
jmp 0x12010ac
mov edx, dword [ebx]
add edx, ebx
stc
jmp 0x12010ba
mov eax, dword [ebx + 4]
sub dword [edx], 0x85c81bd0
jmp 0x12010c7
add edx, 4
jmp 0x12010d3
sub eax, 1
jne 0x12010bd
add ebx, 8
sub dword [ecx], 1
clc
jae 0x12010e7
aad 0x22
jne 0x12010a6
call fcn.012010f8
popal
jmp section..taggant

Function at 0x402130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x402156
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4021ea
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4021a5
cmp eax, 0x40
je 0x4021a5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x402149
cmp eax, 0x40
je 0x402149
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x402149
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x4078f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4078ff
pop dword [ebp - 0x10]
mov eax, 0x3d00a73d
add eax, 0xc33fd1c2
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x5f906e33
sub dword [ebp - 0x20], 0x113e28e8
mov dword [ebp - 0x1c], 0x97a15fa0
sub dword [ebp - 0x1c], 0x656e135b
mov dword [ebp - 0x18], 0xc68b7375
add dword [ebp - 0x18], 0x85c0d0b9
mov dword [ebp - 0x14], 0x31f86e6d
add dword [ebp - 0x14], 0xce079193
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x35c161ad
sub dword [ebp - 0x20], 0xc14ef857
mov dword [ebp - 0x1c], 0x4e13bac6
sub dword [ebp - 0x1c], 0xca75951
mov dword [ebp - 0x18], 0x3fc63666
sub dword [ebp - 0x18], 0xdc56c9fa
mov dword [ebp - 0x14], 0x4d4d51db
sub dword [ebp - 0x14], 0x4d4d51db
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xb56c9571
sub eax, 0xb52a644d
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3b8fe
push 0
call eax
mov ecx, 0x287262cf
add ecx, 0xd78ddcb3
xor edx, edx
add edx, eax
mov esi, 0x6a77ba8f
sub esi, 0x6a34768f
add esi, dword [ebp - 0x10]
mov ebx, 0xaf76cd38
sub dword [ebp - 8], 0x2d9bc0b0
mov edi, dword [esi]
sub dword [ebp - 8], 0xff84410e
xor edi, ebx
mov dword [ebp - 8], 0x59fd8513
mov dword [edx], edi
sub dword [ebp - 0xc], 0x22e8db4b
add edx, 0x6e1fff49
add edx, 0x91e000bb
add esi, 0xdd68a633
add esi, 0x229759d1
loop 0x407a18
add eax, 0x7f49d1cb
add eax, 0x80b71f10
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x10002bd0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
cmp dword [0x1012511c], 0
je 0x10002bdf
mov eax, 1
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push 0x1012511c
call edi
mov esi, eax
test esi, esi
jne 0x10002c7c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x1012511c
call edi
mov esi, eax
test esi, esi
jne 0x10002c7c
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x1012511c
call edi
mov esi, eax
test esi, esi
jne 0x10002c7c
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push 0x1012511c
call edi
mov esi, eax
test esi, esi
jne 0x10002c7c
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push 0x1012511c
call edi
mov esi, eax
test esi, esi
jne 0x10002c7c
mov eax, dword [0x1012511c]
test eax, eax
je 0x10002c87
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov dword [0x1012511c], esi
mov eax, esi
pop esi
ret
push 0x10125120
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
mov eax, esi
pop esi
ret
Function at 0x10002c90
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b325
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
test esi, esi
jle 0x10002dd4
call fcn.10002bd0
test eax, eax
je 0x10002dd4
push 0x10125120
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x8003
push dword [0x1012511c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10002e58
push 0
push dword [ebp + 0x14]
push str.jixian123
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x10002d33
push str.CryptHashData_error
jmp 0x10002e5d
lea eax, [ebp - 0x6c]
push eax
push 0
push dword [ebp - 0x64]
push 0x6801
push dword [0x1012511c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10002d5b
push str.CryptDeriveKey_error
jmp 0x10002e5d
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x10002d72
push str.CryptDestroyHash_error
jmp 0x10002e5d
mov eax, dword [ebp - 0x68]
xor edi, edi
mov dword [ebp - 0x64], 0
mov edx, 0x3e8
sub esi, edi
cmp esi, edx
jbe 0x10002d8f
add edi, edx
mov ecx, edx
jmp 0x10002d94
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x70], ecx
cmp edx, esi
lea ecx, [ebp - 0x70]
push ecx
push eax
push 0
sbb eax, eax
inc eax
push eax
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10002df1
cmp esi, 0x3e8
jbe 0x10002dc9
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x70]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
jmp 0x10002d7e
push 0x10125120
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
push str.Error_Code:
mov edi, eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.100030b0
mov esi, eax
push 0xa
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.100717c7
push eax
mov edx, esi
lea ecx, [ebp - 0x60]
call fcn.100031a0
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10002e80
push eax
lea ecx, [ebp - 0x88]
call fcn.10002a00
push 0x100a8c24
lea eax, [ebp - 0x88]
jmp 0x10002e6d
push str.CryptCreateHash_error
lea ecx, [ebp - 0x7c]
call fcn.10002a00
push 0x100a8c24
lea eax, [ebp - 0x7c]
push eax
call fcn.1006815e
int3
Function at 0x10003b80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x10003be0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003ba0
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x10003be0
lea eax, [ebx + ebx]
call fcn.100672b0
mov edi, esp
test edi, edi
je 0x10003be0
push ebx
push edi
push 0xffffffffffffffff
xor eax, eax
push esi
push eax
push 0x3a8
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
jmp 0x10003be2
xor eax, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10003c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003c12
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret