joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453068
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45ee00]
cmp dword [eax + 0x30], 0
je 0x453112
cmp dword [ebx + 0x94], 0
jne 0x45310c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452ff8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45310c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4530d2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45310c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417bd0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4530e1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453c74
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453ca9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404118
jmp 0x453cb6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040407c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454b84
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454bc5
mov eax, esi
call fcn.0043b6d4
test al, al
je 0x454bc5
mov eax, dword [ebx + 0x84]
call fcn.0043b474
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454bc5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b474
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, ebx
xor eax, ebx
mov esi, ebx
mov esi, eax
mov esi, eax
xor eax, esi
mov ebx, ebx
xor esi, ebx
xor esi, ebx
inc edx
sub edi, 0xdf
dec edx
bswap edx
and edi, 0x77
bswap ebx
sbb edi, 0xf
dec edx
inc esi
imul ebx
inc edi
rol edi, 0x9b
rcr edi, 0xde
dec edx
add edx, 0xa5
inc esi
dec eax
inc edi
bswap edi
bswap edi
not eax
rol ebx, 0x3d
add edi, 0x26
not esi
rol eax, 0x26
add edi, 0xfc
add edi, 0x12
neg eax
imul eax
add eax, 0x33
bswap esi
imul edi
mov edi, 0x85
rcr edi, 0x16
add esi, 0xbb
bswap edx
or ebx, 0x92
not ebx
not esi
imul edi
sbb esi, 0xc3
imul ebx
not esi
neg edi
and esi, 0xcb
neg esi
ror ebx, 0xb0
rcl edi, 0xc1
not edx
dec edi
xor ecx, ecx
xor edi, edi
mov eax, ebx
mov eax, ebx
mov ebx, eax
xor eax, esi
xor ebx, ebx
mov eax, eax
or edi, 0xb1
and edx, 0xb3
neg eax
mov esi, 0x94
or edx, 0x9e
neg edx
sbb esi, 0xca
bswap ebx
mov edx, 0xcf
inc edx
imul esi
not ebx
rcr eax, 0x58
imul edx
imul edx
rol eax, 0x99
sbb edi, 0xbe
not edi
imul edx
sub ebx, 6
mov esi, 0x6e
or edi, 0xf0
mov eax, 0xf5
not edx
rol esi, 0x43
ror esi, 0x6e
dec edi
and edi, 0xb2
not edi
sbb edi, 0x14
neg eax
sub esi, 0x2c
and ebx, 0xa2
rcl edi, 0xef
or eax, 0xbf
inc edx
mov ebx, 0x57
add esi, 0x47
rol eax, 0x59
not esi
rcr edx, 0xa3
dec eax
dec ebx
rcl eax, 0x9c
rol esi, 0xd7
sub eax, 0x42
ror edx, 0x3a
imul esi
rcl ebx, 0xe8
rol edx, 0x27
mov eax, ebx
xor esi, eax
mov esi, ebx
xor esi, ebx
xor ebx, ebx
mov ebx, eax
xor ebx, ebx
mov ebx, eax
xor eax, esi
mov ecx, dword [ebp + 0xc]
bswap eax
mov edx, 0x15
neg esi
add edi, 0xff
sbb edi, 0x29
rol edx, 0x50
dec ebx
rol esi, 0xd6
ror edi, 0x10
rol ebx, 0xac
rcl esi, 0xe7
neg ebx
and edx, 0x76
add eax, 0x94
bswap ebx
inc edi
rcl edi, 0x98
imul edx
and edi, 0xac
bswap edi
ror ebx, 9
sub edx, 0x32
and edx, 0x71
add edx, 0xb
and eax, 4
rcr edx, 0x91
neg esi
or edi, 0x48
ror ebx, 0x6b
inc esi
sub esi, 0xc7
neg eax
neg edx
sbb edx, 0x5c
rcl edx, 0x79
and edx, 0xf9
dec ebx
dec esi
not eax
and esi, 0x39
neg ebx
dec eax
not eax
inc edi
rcl ebx, 0x6b
rcl eax, 0x64
rol ebx, 0x39
inc edi
inc edx
not edi
mov edi, dword [ebp + 8]
xor esi, ebx
xor esi, ebx
mov eax, ebx
mov eax, eax
mov esi, esi
mov ebx, eax
xor ebx, ebx
mov esi, esi
xor ebx, eax
not byte [edi]
mov ebx, ebx
xor esi, esi
xor ebx, esi
xor esi, ebx
mov esi, ebx
mov eax, ebx
xor ebx, ebx
mov ebx, ebx
xor esi, eax
xor ebx, esi
mov eax, eax
xor ebx, esi
sub byte [edi], 0xf1
add byte [edi], 0x63
mov eax, esi
xor ebx, eax
mov ebx, eax
xor ebx, ebx
mov esi, ebx
mov ebx, eax
mov eax, esi
mov esi, eax
mov eax, eax
imul byte [edi]
inc edi
loop 0x40127a
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40a9e3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40aa80
push ebx
push esi
call fcn.0040a9ac
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040a940
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40aa2d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aa7f
push edi
push eax
call fcn.0040b600
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40aa4d
call fcn.004094a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aa7e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040a940
add esp, 0x20
test eax, eax
jne 0x40aa6c
push edi
call fcn.004094a1
jmp 0x40aa74
push ebx
call fcn.004094a1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40bd7d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46bb68
push 0x46bb60
push str.FlsAlloc
push 0x1f
call fcn.0040bc3c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40bdb1
push dword [ebp + 8]
mov ecx, esi
call dword [0x415160]
call esi
jmp 0x40bdb7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40bdfb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46bb78
push 0x46bb70
push str.FlsGetValue
push 0x21
call fcn.0040bc3c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40be32
push dword [ebp + 8]
mov ecx, esi
call dword [0x415160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40be3a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46bb80
push 0x46bb78
push str.FlsSetValue
push 0x22
call fcn.0040bc3c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40be74
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x415160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4112d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4112fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4112fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182d8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182dc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xec3564], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182e0]
mov eax, dword [0x4182e4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xec3564], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xec3560]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xec3564], 0x3eb
mov dword [0xec3560], eax
mov eax, dword [0xec34b8]
cmove eax, dword [ebp - 0xc]
mov dword [0xec34b8], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xec355c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xec3564], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c062
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f6c
mov dword [ebp - 0x14], eax
cmp dword [0x81ed54], esi
jne 0x40c155
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c235
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c235
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c235
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81ed54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x81ed58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x81ed5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81ed64], eax
test eax, eax
je 0x40c152
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81ed60], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c16d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c18f
push 4
pop eax
jmp 0x40c237
cmp dword [ebp - 0x14], esi
je 0x40c18f
push dword [0x81ed54]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c174
mov eax, dword [0x81ed60]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1ed
cmp dword [0x81ed64], edi
je 0x40c1ed
push eax
call ebx
push dword [0x81ed64]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1ed
test eax, eax
je 0x40c1ed
call ecx
test eax, eax
je 0x40c1e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1e2
test byte [ebp - 8], 1
jne 0x40c1ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c21d
mov eax, dword [0x81ed58]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
call eax
mov esi, eax
test esi, esi
je 0x40c21a
mov eax, dword [0x81ed5c]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81ed54]
call ebx
test eax, eax
je 0x40c235
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040a8
mov esp, ebp
pop ebp
ret
Function at 0x401901
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cmp dword [0x404040], 0
jne 0x401a47
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
xor eax, eax
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x401968
mov ebx, dword [edx + 0x3c]
mov ebx, dword [edx + ebx + 0x78]
test ebx, ebx
je 0x401962
lea eax, [edx + ebx]
mov esi, dword [eax + 0xc]
add esi, edx
mov ebx, dword [esi]
or ebx, 0x20202020
cmp ebx, 0x6c64746e
jne 0x401962
mov ebx, dword [esi + 4]
or ebx, 0x20202020
cmp ebx, 0x6c642e6c
je 0x401971
mov ecx, dword [ecx]
mov edi, edx
jmp 0x401927
test eax, eax
jne 0x401973
jmp 0x401a3d
mov edi, edx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
mov dword [0x4411ec], edi
xor ebx, ebx
mov esi, dword [eax + 0x18]
add ecx, edi
add edx, edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x24]
dec esi
add ecx, edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + esi*4]
add eax, edi
cmp word [eax], 0x775a
jne 0x4019db
lea ecx, [ebx*8 + 0x404044]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [esp], eax
call fcn.004018de
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebx*8 + 0x404044], eax
mov eax, dword [ebp - 0x20]
inc ebx
movzx eax, word [eax + esi*2]
mov eax, dword [edx + eax*4]
mov dword [ecx + 4], eax
cmp ebx, 0x1f4
je 0x4019e6
lea eax, [esi - 1]
test esi, esi
je 0x4019e6
mov esi, eax
jmp 0x401994
mov dword [0x404040], ebx
dec ebx
test ebx, ebx
jne 0x4019f8
mov edx, 1
jmp 0x401a3d
xor eax, eax
mov edx, dword [eax*8 + 0x404048]
inc eax
mov ecx, dword [eax*8 + 0x404048]
cmp ecx, edx
jae 0x401a37
mov esi, dword [eax*8 + 0x40403c]
mov edi, dword [eax*8 + 0x404044]
mov dword [eax*8 + 0x404040], ecx
mov dword [eax*8 + 0x404048], edx
mov dword [eax*8 + 0x40403c], edi
mov dword [eax*8 + 0x404044], esi
cmp eax, ebx
jb 0x4019fa
jmp 0x4019ec
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
ret
Function at 0x401b6e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ecx, 8
xor eax, eax
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x22c]
mov esi, 0x406060
push ebx
sub esp, 0x220
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov byte [ebp + eax - 0x10c], al
and edx, 0x1f
mov dl, byte [ebp + edx - 0x22c]
mov byte [ebp + eax - 0x20c], dl
inc eax
cmp eax, 0x100
jne 0x401b8e
xor eax, eax
xor edx, edx
mov cl, byte [ebp + eax - 0x10c]
mov bl, byte [ebp + eax - 0x20c]
add ebx, ecx
add edx, ebx
movzx edx, dl
mov bl, byte [ebp + edx - 0x10c]
mov byte [ebp + edx - 0x10c], cl
mov byte [ebp + eax - 0x10c], bl
inc eax
cmp eax, 0x100
jne 0x401bb4
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
add esi, ecx
cmp esi, ecx
je 0x401c34
inc eax
movzx eax, al
movzx edi, byte [ebp + eax - 0x10c]
add ebx, edi
movzx ebx, bl
mov dl, byte [ebp + ebx - 0x10c]
mov byte [ebp + eax - 0x10c], dl
mov edx, edi
mov byte [ebp + ebx - 0x10c], dl
add dl, byte [ebp + eax - 0x10c]
movzx edx, dl
mov dl, byte [ebp + edx - 0x10c]
xor byte [ecx], dl
inc ecx
jmp 0x401bf2
mov eax, dword [ebp + 0xc]
add esp, 0x220
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401c42
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x158]
mov esi, 0x406080
push ebx
xor ebx, ebx
sub esp, 0x15c
mov dword [ebp - 0x118], ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x114]
mov eax, ecx
mov ecx, 0x3f
rep stosd dword es:[edi], eax
movzx edx, byte [ebp + eax - 0x158]
mov byte [ebp + edx - 0x118], al
inc eax
cmp eax, 0x40
jne 0x401c77
xor edx, edx
test byte [ebp + 0xc], 3
jne 0x401df1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
shr edx, 2
cmp byte [eax + esi - 1], 0x3d
lea edx, [edx + edx*2]
jne 0x401caf
dec edx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp byte [eax + ebx - 2], 0x3d
jne 0x401cbd
dec edx
lea eax, [edx + 0xf]
shr eax, 4
shl eax, 4
call fcn.00403910
xor ecx, ecx
sub esp, eax
test edx, edx
cmovns ecx, edx
mov dword [ebp - 0x15c], esp
xor eax, eax
mov edi, esp
xor esi, esi
rep stosb byte es:[edi], al
xor edi, edi
cmp edi, dword [ebp + 0xc]
jae 0x401de4
mov eax, dword [ebp + 8]
xor ebx, ebx
movzx eax, byte [eax + edi]
cmp al, 0x3d
je 0x401d04
movzx eax, byte [ebp + eax - 0x118]
mov ebx, eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x160], ecx
movzx eax, byte [eax + edi + 1]
cmp al, 0x3d
je 0x401d26
movzx eax, byte [ebp + eax - 0x118]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x164], ecx
movzx eax, byte [eax + edi + 2]
cmp al, 0x3d
je 0x401d48
movzx eax, byte [ebp + eax - 0x118]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x168], ecx
movzx eax, byte [eax + edi + 3]
add edi, 4
cmp al, 0x3d
je 0x401d6d
movzx eax, byte [ebp + eax - 0x118]
mov dword [ebp - 0x168], eax
mov ecx, esi
cmp esi, edx
jae 0x401ddd
mov eax, ebx
inc ecx
shl eax, 0x12
mov ebx, eax
mov eax, dword [ebp - 0x160]
shl eax, 0xc
add eax, ebx
mov ebx, dword [ebp - 0x164]
shl ebx, 6
add eax, ebx
mov ebx, dword [ebp - 0x168]
add eax, ebx
mov ebx, eax
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x15c]
shr ebx, 0x10
mov byte [eax + esi], bl
cmp ecx, edx
jae 0x401ddd
lea eax, [esi + 2]
mov ebx, dword [ebp - 0x160]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x15c]
mov byte [eax + ecx], bh
lea ecx, [esi + 2]
cmp ecx, edx
jae 0x401ddd
mov bl, byte [ebp - 0x160]
lea ecx, [esi + 3]
mov byte [eax + esi + 2], bl
mov esi, ecx
jmp 0x401ce4
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x15c]
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401e0e
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
test byte [eax + 0x68], 0x70
setne al
ret

Function at 0x401e1c
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 0x7331c0de
call dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
mov dword [esp], 0x4060c0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
cmp eax, 0x7331c0de
setne al
ret
Function at 0x401f9c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0x40
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
push eax
mov eax, 0x7fffffff
cmp eax, dword [ebp - 0x40]
mov eax, 0
sbb eax, dword [ebp - 0x3c]
leave
setae al
ret

Function at 0x4020e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x4030
mov ebp, esp
push esi
push ebx
call fcn.00403910
sub esp, eax
xor eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4010], eax
mov ebx, dword [ebp + 0x10]
lea esi, [ebp - 0x4010]
mov eax, dword [0x441160]
test eax, eax
jne 0x402124
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [0x441160], eax
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
sub esp, 0x14
test eax, eax
jne 0x4021bc
mov eax, dword [0x441168]
xor esi, esi
mov edx, dword [ebp - 0x4010]
lea ecx, [ebp - 0x400c]
mov dword [ebp - 0x400c], esi
test eax, eax
jne 0x40216d
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [0x441168], eax
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x4008]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], ebx
call eax
mov edx, dword [0x44115c]
mov ecx, dword [ebp - 0x4010]
sub esp, 0x18
test eax, eax
je 0x4021c0
test edx, edx
jne 0x4021b6
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x44115c], eax
mov dword [esp], ecx
call eax
jmp 0x4021bb
mov dword [esp], ecx
call edx
push edx
xor eax, eax
jmp 0x4021f5
test edx, edx
jne 0x4021d5
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x44115c], eax
mov dword [esp], ecx
call eax
jmp 0x4021da
mov dword [esp], ecx
call edx
push eax
lea eax, [ebp - 0x4008]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4021fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4410c4]
mov edx, dword [ebp + 8]
test eax, eax
jne 0x402218
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [0x4410c4], eax
mov dword [esp], edx
call eax
push edx
xor edx, edx
cmp eax, 0xffffffff
je 0x402230
shr eax, 4
xor eax, 1
mov edx, eax
and edx, 1
leave
mov eax, edx
ret