joyce8/EMBER2024-capa huggingface dataset:
Function at 0xadaa86
Capabilities:
Encode data using base64

Disassembly:
lea ebp, [ecx + ebp - 0x6de3]
bt edx, 0x2c
div cl
mov eax, dword [ebp + ecx*4 - 0x1b77c]
xor eax, ebx
shr edx, cl
rol eax, 3
bswap ecx
bts dx, 0xb0
lea eax, [eax + edx*2 - 0xb3b08c0]
jb 0xa53c71
setae dl
ror ecx, 0xab
xor eax, 0xfa311b16
add ecx, ecx
ror eax, 3
btr ecx, edx
dec cl
xor ebx, eax
lea ecx, [ecx*2 - 0x64cf5c5d]
add edi, eax
shl dx, 0xcd
jmp edi
mov dx, word ss:[eax + edx*2 - 0x6529929e]
mov eax, ecx
btc ecx, ecx
adc ebp, 2
call fcn.00a86125
movzx edx, al
lea ebp, [eax + ebp - 0x4080fffd]
xadd dword [esp + eax - 0x4080fffe], eax
imul eax
push eax
movzx eax, byte [edi + edx*8 - 0xe7b25c2]
pop edx
bt edx, edx
adc edi, 7
rol dword [esp + 4], 0x69
push edx
xor al, bl
not edx
sub al, 0x93
rol edx, 0xc4
not al
or edx, dword [esp + edx - 0x3dbe66dd]
neg edx
push edx
ror al, 1
not al
or edx, 0xf52b8784
xor bl, al
lea eax, [esp + eax + 0x10]
bswap edx
not dword [esp + 0xc]
mov dword [eax], ecx
jmp 0xad2d32
shr al, 0xa1
xor cl, 0x3b
jmp 0xa4ad58
jno 0xa46f64
lea edx, [eax*2 + 0x6ca6fe11]
or eax, dword [edi + eax]
push ecx
bswap edx
mov edx, dword [edi + edx*4 - 0x47fa99ac]
add cl, byte [edi + 8]
push 0x6593ef2d
add edi, 6
shld eax, edx, cl
mov dword [edi], eax
pop ecx
pop ecx
jmp esi
push edx
pop edx
pop ecx
pop edx
pop ecx
pop ecx
jmp esi
neg cl
mov dword [esp], eax
ror cl, 1
xchg dword [esp + 1], eax
xor eax, 0xb5af3a02
not cl
xchg word [esp + eax - 0x4b6ea3e4], ax
or byte [esp + eax - 0x4b6ec195], al
lea eax, [eax + eax*8 + 0x228ad7a0]
sbb cl, 0xbd
lea eax, [eax*4 - 0x63f90d4b]
shl eax, 0xc7
jp 0x9c6b1b
xor bl, cl
and dword [esp + 1], eax
xchg dword [esp + 1], eax
shl al, 1
lea ecx, [esp + ecx + 8]
inc eax
cbw
rol dword [esp + 2], 6
mov dword [ecx], edx
btc eax, 0xbf
add dword [esp + eax - 0x4080ffff], eax
mov ecx, dword [ebp + eax - 0x40810001]
jne 0xa9d16b
and eax, edx
btc cx, cx
movsx edx, cx
xchg edx, ecx
mov dword [ecx + esi - 0x6ddf], eax
mov eax, 0x69ac7f36
jb 0x9ba0f0
mov ecx, 0xacab7cbd
btc ecx, ecx
sbb esi, 3
movsx eax, cl
lea eax, [ecx*8 + 0x41a2fd01]
lea edx, [eax + eax*8 - 0x704013c8]
mov ecx, dword [esi + edx - 0x6eb5e669]
xor ecx, ebx
imul edx
shl dl, 7
shr edx, 0x41
ror ecx, 1
not edx
xor ecx, 0xc4927b8a
rol ecx, 3
inc dl
lea ecx, [ecx + eax - 0x11e42fb7]
xor ebx, ecx
add ebp, ecx
mov ecx, edx
fld qword [eax + edi - 0xb256791]
bswap eax
call fcn.00a2696f
mov eax, 0xf606af3a
push eax
shl dword [esp], 0x81
mov eax, dword [edi]
adc edi, 3
mov edx, 0x683af6ad
xor eax, ebx
shr byte [esp + edx - 0x683af6aa], 0xc4
xor eax, 0xd6104a8f
bswap eax
lea ecx, [edx + edx*2 + 0x7d97c713]
sub cl, 0xbe
shr cx, 0x41
rol eax, 2
bswap eax
btc dx, dx
rol ecx, 0xca
not eax
jae 0x96e44e
sbb edx, 0x193ff68e
xadd dl, cl
xor eax, 0x28b6373f
neg edx
imul ecx, ecx
lea ecx, [edx + ecx - 0x16778e0]
xor ebx, eax
add esi, eax
lea edx, [edx*2 - 0x2f7574c3]
pop eax
and cl, ah
mov eax, dword [edx + ebp - 0x3294c94f]
jno 0xa0b18c
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401ae0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b1f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b1f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b1f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b1f
cmp dword [ecx + 0x74], 0xe
jbe 0x401b1f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0xb97b4d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00b97b4d
ret
Function at 0x40320a
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov eax, 0x49986b
call fcn.00498a28
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
test eax, eax
je 0x403244
test al, 3
jne 0x40323c
cmp byte [edx + eax - 1], 0x3d
jne 0x403244
xor ecx, ecx
inc ecx
mov dword [ebp - 0x1c], ecx
jmp 0x403249
mov ecx, edi
mov dword [ebp - 0x1c], edi
lea ebx, [eax + 3]
shr ebx, 2
sub ebx, ecx
shl ebx, 2
mov eax, ebx
mov dword [ebp - 0x24], ebx
shr eax, 2
imul eax, eax, 3
push edi
add eax, ecx
mov ecx, esi
push eax
call fcn.0040352c
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], 1
test ebx, ebx
je 0x403318
mov eax, dword [ebp - 0x10]
lea edx, [ebx - 1]
add eax, 2
shr edx, 2
inc edx
mov ebx, eax
movzx eax, byte [ebx - 2]
mov dword [ebp - 0x14], esi
mov ecx, dword [eax*4 + 0x4b1198]
movzx eax, byte [ebx - 1]
shl ecx, 6
or ecx, dword [eax*4 + 0x4b1198]
movzx eax, byte [ebx]
shl ecx, 6
or ecx, dword [eax*4 + 0x4b1198]
movzx eax, byte [ebx + 1]
shl ecx, 6
or ecx, dword [eax*4 + 0x4b1198]
cmp dword [esi + 0x14], 0xf
jbe 0x4032cd
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov eax, ecx
sar eax, 0x10
mov byte [esi + edi], al
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], esi
cmp dword [esi + 0x14], 0xf
jbe 0x4032e9
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov eax, ecx
sar eax, 8
mov byte [esi + edi + 1], al
mov esi, dword [ebp - 0x18]
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x403302
mov eax, dword [esi]
mov byte [eax + edi + 2], cl
add ebx, 4
add edi, 3
sub edx, 1
jne 0x40328b
mov ebx, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], 0
je 0x40338e
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
movzx eax, byte [ebx + edi]
mov edx, dword [eax*4 + 0x4b1198]
movzx eax, byte [ebx + edi + 1]
shl edx, 6
or edx, dword [eax*4 + 0x4b1198]
shl edx, 0xc
cmp dword [esi + 0x14], 0xf
jbe 0x40334c
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov ecx, edx
mov edi, dword [ebp - 0x1c]
sar ecx, 0x10
mov byte [eax + edi - 1], cl
lea eax, [ebx + 2]
mov edi, dword [ebp - 0x10]
cmp dword [ebp + 8], eax
jbe 0x40338e
mov al, byte [ebx + edi + 2]
cmp al, 0x3d
je 0x40338e
movzx eax, al
mov ecx, esi
sar edx, 8
mov eax, dword [eax*4 + 0x4b1198]
shl eax, 6
sar eax, 8
or al, dl
movzx eax, al
push eax
call fcn.0040339f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403c39
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4998e2
call fcn.00498a28
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x14]
mov dword [edi + 8], eax
lea ecx, [edi + 0x14]
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], 0x4b2044
mov dword [edi + 4], ebx
mov dword [edi + 0x10], eax
call fcn.00403962
mov dword [ebp - 4], ebx
lea esi, [edi + 0x40]
mov dword [edi + 0x2c], 0x60
mov dword [edi + 0x38], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x34], ebx
mov dword [ebp + 0x14], esi
and dword [esi], ebx
push 0x28
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0046f0e2
pop ecx
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.00404b8c
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi + 0x60], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x404a2c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 7
mov esi, ecx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
dec eax
neg eax
pop esi
sbb al, al
inc al
pop ebp
ret 4

Function at 0x40502a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x405038
pop esi
mov eax, edx
pop ebp
ret 4

Function at 0x405198
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x4051bb
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x4051a9
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x40530e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x49996c
call fcn.00498a28
sub esp, 0x60
xor edx, edx
xor eax, eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
mov dword [ebx], 0x4b211c
lea edi, [ebx + 0x44]
mov word [ebx + 4], 0x100
mov byte [ebx + 6], dl
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], 7
mov word [ebx + 0x44], ax
mov dword [ebp - 4], edx
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 8
call esi
push 0xb
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], 0xffffff
call esi
push 0x1a
mov dword [ebx + 0xc], eax
call esi
push 0xf
mov dword [ebx + 0x14], eax
call esi
mov dword [ebx + 0x18], eax
lea edi, [ebx + 0x34]
xor eax, eax
lea ecx, [ebp - 0x6c]
stosd dword es:[edi], eax
push 5
push 0
push 0
stosd dword es:[edi], eax
push 0xa
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040b54c
add esp, 0xc
lea eax, [ebp - 0x6c]
mov ecx, ebx
push eax
call fcn.00405422
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405aa8
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x499996
call fcn.00498a28
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, esi
mov dword [ebp - 0x18], ecx
xor edx, edx
mov dword [ebp - 0x1c], edx
lea ebx, [esi + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 0x10]
mov dword [eax], edx
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebx], 7
mov word [esi], ax
lea eax, [ecx + 0x20]
mov dword [ebp - 4], edx
push dword [eax]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
jle 0x405b78
inc edi
cmp edi, dword [ebx]
ja 0x405b3c
cmp dword [ebx], 7
mov ecx, esi
mov dword [ebp - 0x14], ecx
jbe 0x405b1c
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi]
add eax, 0x20
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
push edi
push 0
push ecx
mov dword [esi + 0x10], edi
call fcn.00405f26
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x14]
add esp, 0xc
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov word [eax + edi*2], cx
jmp 0x405b4b
push ecx
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.00405e17
mov dword [ebp - 0x18], ebx
cmp dword [ebx], 7
lea eax, [esi + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, esi
jbe 0x405b5d
mov eax, dword [esi]
push edi
push eax
push dword [ecx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, esi
push 0
push edi
call fcn.00405d1f
mov ebx, dword [ebp - 0x18]
test edi, edi
jne 0x405b8e
mov eax, dword [ebp - 0x14]
and dword [eax], 0
mov eax, esi
cmp dword [ebx], 7
jbe 0x405b89
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x410528
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
call fcn.00410510
lea eax, [edi + 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403962
cmp dword [ebp - 8], 7
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00402f3d
test esi, esi
jne 0x41056e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x410576
and dword [edi + 0x10], 0
and dword [edi + 0x14], 0
pop edi
pop esi
leave
ret

Function at 0x41057a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x49a1e5
call fcn.00498a28
sub esp, 0x44
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov al, byte [edi + 0x21]
cmp al, 2
jne 0x41065e
call fcn.004101f8
test al, al
je 0x41064b
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4105cb
mov eax, dword [ebp - 0x10]
add dword [edi + 0x10], eax
jmp 0x410676
xor edx, edx
xor ecx, ecx
call fcn.0040bdc2
lea edx, [edi + 0x28]
mov dword [ebp - 0x20], 0xfa
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x1c], 0x11
mov dword [ebp - 0x18], str.C:BooCode_OffergateMultiSetupoglibOGLiboglib_netwinternet_buffer.cpp
mov dword [ebp - 0x14], str.bool___thiscall_og::WinternetBuffer::AddData_unsigned_char__unsigned_int_
call fcn.0041510b
push 0x28
push str.Failed_to_write_data_to_file_buffer_for
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040efea
push eax
lea ecx, [ebp - 0x38]
call fcn.00403476
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.0040be49
lea ecx, [ebp - 0x38]
call fcn.00402fc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00402fc0
push ecx
push str.AddData_error_when_writing_to_file
jmp 0x410651
push ecx
push str.AddData_error__can_not_create_temp_file
mov ecx, edi
call fcn.004100e8
mov byte [edi + 0x22], 1
jmp 0x41067b
cmp al, 1
jne 0x41067b
push esi
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push dword [edi + 4]
call fcn.0041068d
add dword [edi + 0x10], esi
pop esi
adc dword [edi + 0x14], ebx
mov bl, 1
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x411745
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x49a348
call fcn.00498a28
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
push edi
mov dword [esi], eax
mov dword [esi + 4], eax
mov byte [esi + 8], 1
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp + 0xc]
mov ebx, eax
cmp dword [ecx + 0x14], 7
jbe 0x41177c
mov ecx, dword [ecx]
push ecx
push 0x60
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4117e8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4117e1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4117da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4117ef
mov ecx, esi
call fcn.00403617
mov eax, dword [ebp + 0xc]
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, esi
mov byte [esi + 8], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
push str.cant_load_resource_handle
jmp 0x4117f4
push str.resource_empty
jmp 0x4117f4
push str.resource_not_found
jmp 0x4117f4
push str.cant_lock_resource_handle
lea ecx, [ebp - 0x1c]
call fcn.004037e8
push 0x4c810c
lea eax, [ebp - 0x1c]
push eax
call fcn.004718cd
int3

Function at 0x41180b
Capabilities:
Create thread

Disassembly:
mov eax, 0x49a3b7
call fcn.00498a28
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], edi
call fcn.00413f33
push dword [ebp + 8]
mov dword [ebp - 4], ebx
lea esi, [edi + 0x10]
mov dword [edi], 0x4b35b0
lea ecx, [esi + 8]
mov dword [ebp - 0x14], esi
mov dword [esi], 5
mov word [esi + 4], bx
call fcn.0040c781
lea ecx, [esi + 0x160]
mov byte [ebp - 4], 1
push ebx
call fcn.004103f6
mov byte [ebp - 4], 2
call fcn.00417aa8
mov byte [esi + 5], al
test al, al
je 0x41188c
lea ecx, [ebp - 0x2c]
call fcn.00417bd7
push eax
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 3
call fcn.0040e238
lea ecx, [ebp - 0x2c]
call fcn.00402fc0
lea ecx, [edi + 0x1f0]
call fcn.0041195c
push dword [ebp + 8]
lea ecx, [edi + 0x250]
mov byte [ebp - 4], 5
call fcn.00403962
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x26c], eax
lea eax, [edi + 0x274]
push eax
mov dword [edi + 0x270], ebx
call esi
mov dword [edi + 0x28c], ebx
mov dword [edi + 0x290], ebx
push dword [ebp + 0x14]
lea ecx, [edi + 0x294]
mov byte [ebp - 4], 7
call fcn.00403c03
lea eax, [edi + 0x2b0]
mov word [edi + 0x2ac], bx
push eax
call esi
push ebx
push ebx
push edi
push 0x411a89
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x268], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4151f7
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov eax, 0x49a8f8
call fcn.00498a28
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x18], esi
mov edi, esi
mov ebx, edx
xor edx, edx
mov dword [ebp - 0x14], edx
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 0x14]
pop edi
mov dword [esi + 0x10], edx
mov dword [eax], edi
mov byte [esi], dl
mov dword [ebp - 4], edx
mov ecx, ebx
mov dword [ebp - 0x14], 1
cmp dword [ebx + 0x14], edi
jbe 0x415240
mov ecx, dword [ebx]
lea edi, [esi + 0x14]
jmp 0x415242
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edx
push 1
push dword [ebx + 0x10]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x415299
push ecx
push dword [ebp - 0x10]
mov ecx, esi
call fcn.004155bb
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x41526c
mov eax, dword [esi]
cmp dword [ebx + 0x14], 0xf
mov ecx, dword [ebx + 0x10]
jbe 0x415277
mov ebx, dword [ebx]
lea edx, [ebp - 0x10]
push edx
push eax
push 1
push ecx
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x415299
and dword [esi + 0x10], eax
mov eax, esi
cmp dword [edi], 0xf
jbe 0x415296
mov eax, dword [esi]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416088
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41609b
test al, 0x10
jne 0x41609b
mov al, 1
ret
xor al, al
ret

Function at 0x416297
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x49abcb
call fcn.00498a28
sub esp, 0xc
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x18], ebx
mov edi, ebx
xor ecx, ecx
mov esi, edx
mov dword [ebp - 0x14], ecx
push 7
stosd dword es:[edi], eax
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], edx
mov word [ebx], ax
mov dword [ebp - 4], ecx
mov eax, esi
mov dword [ebp - 0x14], 1
cmp dword [esi + 0x14], edx
jbe 0x4162dc
mov eax, dword [esi]
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x416333
push 2
pop ecx
mul ecx
push 0xffffffffffffffff
pop ecx
cmovb eax, ecx
push eax
call fcn.0046f0d9
push dword [ebp - 0x10]
mov edi, eax
push 0
push edi
call fcn.00470c60
add esp, 0x10
cmp dword [esi + 0x14], 7
jbe 0x416315
mov esi, dword [esi]
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x41632c
push edi
mov ecx, ebx
call fcn.004070bd
push edi
call fcn.0046f0d4
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x416522
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
xor esi, esi
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
push eax
mov ebx, esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x41659b
push eax
call fcn.0047457e
mov edi, eax
pop ecx
test edi, edi
je 0x41659b
push edi
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x416594
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4b3dbc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x416594
mov eax, dword [ebp - 8]
cmp dword [eax], 0xfeef04bd
jne 0x416594
mov ebx, dword [eax + 8]
xor ecx, ecx
or ecx, dword [eax + 0xc]
or ebx, esi
mov esi, ecx
push edi
call fcn.00474563
pop ecx
pop edi
mov eax, esi
mov edx, ebx
pop esi
pop ebx
leave
ret