joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44855c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x14384b8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4485a0
push 0xa
pop esi
cmp word [ebx], si
jne 0x4485a0
or byte [eax + edi + 0x28], 4
jmp 0x4485a5
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x448710
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4486e8
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4485f2
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x44861c
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x44863b
push 0xa
pop ebx
cmp word [edx], bx
jne 0x448609
push ebx
add eax, 4
pop edx
jmp 0x448611
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4485b7
jmp 0x448710
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4486e3
cmp dword [ebp - 0x14], 0
je 0x4486e3
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x14384b8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4486bf
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x448687
mov word [esi], ax
jmp 0x44870d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x14384b8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x14384b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x14384b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x44870d
cmp word [ebp - 4], ax
jne 0x4486c9
cmp esi, ebx
je 0x44867f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00448f9b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x448710
push 0xd
pop eax
jmp 0x44867f
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x14384b8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x44870a
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x448710
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44a9f8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1434080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x44aa3b
call fcn.00438cc7
mov dword [eax], 0xf
call fcn.00438cdc
mov dword [eax], 0xd
call fcn.00438b41
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004330c7
leave
ret
test eax, eax
jne 0x44aa42
inc eax
jmp 0x44aa2f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x44aa2d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x44aa2f
Function at 0x44ccc0
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 0x44cd5d
push ebx
push esi
call fcn.0044cc89
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.0044abe5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44cd0a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44cd5c
push edi
push eax
call fcn.00449180
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44cd2a
call fcn.00445900
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44cd5b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044abe5
add esp, 0x20
test eax, eax
jne 0x44cd49
push edi
call fcn.00445900
jmp 0x44cd51
push ebx
call fcn.00445900
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 0x44cd60
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44cd71
pop esi
ret
push ebx
push edi
push esi
call fcn.0044cc89
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00449180
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44cd99
push ebx
push esi
push edi
call fcn.004352b0
add esp, 0xc
push 0
call fcn.00445900
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x44d168
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044cdae

Function at 0x44fb17
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00445d2c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fb86
cmp esi, dword [ebp - 4]
je 0x44fb81
cmp dword [ebp + 0xc], 0
je 0x44fb81
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44fb5e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044f66c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44fb88
xor eax, eax
inc eax
jmp 0x44fb88
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44fbf3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1434080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00445d2c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00445d2c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x44fc6a
cmp word [ecx], dx
je 0x44fc6a
mov eax, dword [0x46535c]
push edi
dec eax
push eax
push 0x465248
call fcn.0044fb8c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x44fcdd
cmp word [eax], dx
je 0x44fcdd
mov eax, dword [edi]
test eax, eax
je 0x44fc8e
cmp word [eax], dx
je 0x44fc8e
lea eax, [ebp - 0x10]
push eax
call fcn.0044f572
jmp 0x44fc97
lea eax, [ebp - 0x10]
push eax
call fcn.0044f60d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x44fd07
mov eax, dword [0x465244]
push dword [ebp - 0x14]
dec eax
push eax
push 0x464f38
call fcn.0044fb8c
add esp, 0xc
test al, al
je 0x44fd07
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x44fcd2
cmp word [eax], di
je 0x44fcd2
lea eax, [ebp - 0x10]
push eax
call fcn.0044f572
pop ecx
jmp 0x44fd09
lea eax, [ebp - 0x10]
push eax
call fcn.0044f60d
jmp 0x44fccf
mov eax, dword [edi]
test eax, eax
je 0x44fcf4
cmp word [eax], dx
je 0x44fcf4
lea eax, [ebp - 0x10]
push eax
call fcn.0044f527
pop ecx
jmp 0x44fd07
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x44fdd2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044fa11
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44fdd2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x44fdd2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x44fdd2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x44fd5f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00446578
test ebx, ebx
je 0x44fdcd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00446578
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fdd2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44fdd2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00440d6b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x44fdd4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004330c7
leave
ret
Function at 0x455231
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004551ad
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4553a0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4553a0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x455355
jg 0x45528d
test eax, eax
je 0x45534b
push 1
push 0x1000
call fcn.00445f60
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4552b0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x455342
push 0x8000
push ebx
call fcn.004431d1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4552d9
jg 0x4552d4
cmp ecx, 0x1000
jb 0x4552d9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00447786
add esp, 0x10
cmp eax, 0xffffffff
je 0x45531e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4552d4
jl 0x455305
test ecx, ecx
jne 0x4552c6
push dword [ebp - 0xc]
push ebx
call fcn.004431d1
push esi
call fcn.00445900
add esp, 0xc
xor ebx, ebx
jmp 0x4553ae
cmp byte [edi + 0x24], 0
je 0x455335
cmp dword [edi + 0x20], 5
jne 0x455335
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x455340
mov ebx, dword [edi + 0x18]
jmp 0x455342
xor ebx, ebx
push esi
call fcn.00445900
pop ecx
jmp 0x4553ae
test ecx, ecx
jg 0x455317
jl 0x455355
test eax, eax
jae 0x455317
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448f9b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x455375
cmp byte [edi + 0x1c], 0
je 0x455317
jmp 0x4553a6
push ebx
call fcn.0044da20
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x455317
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4553ae
cmp byte [edi + 0x1c], 0
je 0x4553ab
mov ebx, dword [edi + 0x18]
jmp 0x4553ae
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00448f9b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4566b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4566dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4566dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4029dd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x404b74
mov ecx, dword [edx]
mov edi, dword [edx + 4]
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
sub ecx, 4
push edx
mov edx, 0x404b74
mov dword [edx], ecx
mov dword [edx + 4], edi
pop edx
mov al, byte [edi]
mov ah, byte [esi]
add ah, byte [0x404123]
xor al, ah
mov byte [edi], al
cmp esi, edx
je 0x402a1f
inc esi
inc edi
dec ecx
jne 0x402a06
jmp 0x402a23
mov esi, ebx
jmp 0x402a19
mov edi, esi
push 0x3c
push 0x404b74
push 0x111
push dword [0x404acc]
call sub.user32.dll_SendMessageA
mov ecx, dword [0x404b74]
mov edi, dword [0x404b78]
mov esi, dword [0x404b68]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x402a4e
mov esi, dword [0x40411e]
mov ecx, dword [0x40411a]
push ecx
add ecx, esi
mov dword [0x404aac], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x404b68]
mov ebx, esi
add ebx, eax
mov dword [0x404aa8], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x402ae9
cmp eax, ecx
jae 0x402a9b
nop
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x402aac
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x402aa3
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x402abf
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x402ab8
pop ecx
inc edx
movzx eax, byte [edx]
cmp cl, 0xff
jne 0x402adb
cmp al, 0xff
jne 0x402ad4
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x402ae5
mov eax, 0xff
jmp 0x402ae5
cmp al, 0xff
jne 0x402ae5
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x402a91
mov ecx, dword [0x404aac]
sub ecx, esi
test ecx, ecx
je 0x402afe
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x402af5
mov edi, dword [0x404b68]
sub edi, 0x3fd
mov dword [0x404b68], edi
ret

Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
dec eax
sub ebx, 0x9429eb38
call fcn.00408967
xor dword [ecx], edx
mov eax, eax
sub eax, eax
inc ecx
cmp ecx, esi
jne fcn.00408947
sub ebx, ebx
inc eax
ret
Function at 0x402500
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
push edi
test edx, edx
je 0x40267a
mov edi, dword [ebp + 8]
test edi, edi
je 0x40267a
mov dword [edi + 0xf0], 0xa
mov ecx, dword [edx]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
push ebx
mov ebx, 0xff00ff
and ecx, ebx
or eax, ecx
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, ebx
or eax, ecx
push esi
lea esi, [edi + 4]
mov dword [esi], eax
mov ecx, dword [edx + 8]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, ebx
or eax, ecx
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov edx, eax
rol eax, 8
and eax, ebx
ror edx, 8
and edx, 0xff00ff00
mov ebx, 0xff
or edx, eax
mov eax, edx
mov dword [edi + 0xc], edx
shr eax, 0x10
and eax, ebx
mov ecx, dword [eax*4 + 0x5e2c90]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
and eax, ebx
and ecx, 0xff000000
mov eax, dword [eax*4 + 0x5e2890]
and eax, 0xff0000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x5e3490]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esi]
xor ecx, dword [edi]
xor eax, ecx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 0x14], eax
xor ecx, eax
mov eax, edx
mov dword [edi + 0x18], ecx
xor eax, ecx
mov dword [edi + 0x1c], eax
mov edi, 0x5e1764
lea esi, [esi + 0x10]
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 8
and eax, ebx
mov edx, dword [eax*4 + 0x5e2890]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
and eax, ebx
mov eax, dword [eax*4 + 0x5e2c90]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5e3090]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x5e3490]
and eax, 0xff00
xor edx, eax
xor edx, dword [esi - 4]
xor edx, dword [edi]
add edi, 4
mov dword [esi + 0xc], edx
mov eax, dword [esi]
xor eax, edx
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x18], eax
cmp edi, 0x5e1788
jne 0x4025fb
pop esi
xor eax, eax
pop ebx
jmp 0x40267d
or eax, 0xffffffff
pop edi
pop ebp
ret
Function at 0x402680
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00402500
pop ecx
test eax, eax
js 0x40285c
push esi
push edi
mov edi, dword [ebx + 0xf0]
shl edi, 2
test edi, edi
jle 0x4026ef
lea edx, [ebx + 8]
lea esi, [ebx + 8]
xor ebx, ebx
lea edx, [edx + edi*4]
mov ecx, dword [esi - 8]
add ebx, 4
mov eax, dword [edx - 8]
sub edi, 4
mov dword [esi - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], ecx
mov ecx, dword [esi - 4]
mov dword [esi - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], ecx
mov ecx, dword [esi]
mov dword [esi], eax
lea esi, [esi + 0x10]
mov eax, dword [edx + 4]
mov dword [edx], ecx
lea edx, [edx - 0x10]
mov ecx, dword [esi - 0xc]
mov dword [esi - 0xc], eax
mov dword [edx + 0x14], ecx
cmp ebx, edi
jl 0x4026b0
mov ebx, dword [ebp + 8]
xor edi, edi
inc edi
cmp dword [ebx + 0xf0], edi
jle 0x402858
lea esi, [ebx + 2]
lea esi, [esi + 0x10]
mov edx, dword [esi - 2]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x5e3090]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x5e2490]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e1c90]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e2090]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e1890]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x5e3090]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x5e2490]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e1c90]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e2090]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e1890]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x5e3090]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x5e2490]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e1c90]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e2090]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e1890]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x5e3090]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x5e2490]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e1c90]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e2090]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, dword [eax*4 + 0x5e1890]
inc edi
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x402701
pop edi
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403bd1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5956a9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x60f490]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [esp + 0x10]
call fcn.00403e67
and dword [esp + 0x30], 0
lea eax, [esp + 0xc]
push eax
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00403b70
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00404102
mov dword [esi], vtable.std::system_error.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41006a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x60f490]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
lea edx, [ebp - 0x3ec]
cmovae ecx, dword [ebp + 8]
call fcn.00417baf
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00404102
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00559612
mov esp, ebp
pop ebp
ret
Function at 0x4101be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x596f2f
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x60f490]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x60f490]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, edx
mov dword [esp + 0x14], ebx
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.MYDATA
movzx edx, bx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test esi, esi
jne 0x4102fd
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5e1685
call fcn.00403e67
and dword [esp + 0x100], esi
lea ecx, [esp + 0x90]
mov edx, dword [esp + 0x28]
call fcn.00404a8f
mov esi, eax
mov edx, ebx
mov byte [esp + 0x100], 1
lea ecx, [esp + 0x30]
call fcn.00404ad6
push eax
mov edx, str.FindResource_err
mov byte [esp + 0x104], 2
lea ecx, [esp + 0x64]
call fcn.00404bfe
mov byte [esp + 0x104], 3
lea ecx, [esp + 0xc4]
mov edx, eax
mov dword [esp], str.ierr
call fcn.00404c2e
sub esp, 0x14
mov byte [esp + 0x118], 4
mov ecx, esp
mov edx, eax
push esi
call fcn.00404c60
pop ecx
mov byte [esp + 0x118], 8
call fcn.0042f9b7
add esp, 0x30
lea ecx, [esp + 0xa8]
xor esi, esi
xor ebx, ebx
inc ebx
push esi
push ebx
call fcn.00404102
push esi
push ebx
lea ecx, [esp + 0x50]
call fcn.00404102
push esi
push ebx
lea ecx, [esp + 0x20]
call fcn.00404102
lea ecx, [esp + 0x78]
jmp 0x4103f7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41032a
test ebx, ebx
je 0x41032a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
mov dword [edi + 4], ebx
jmp 0x410403
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x5e1685
call fcn.00403e67
mov edx, ebx
mov dword [esp + 0x100], 9
lea ecx, [esp + 0xd8]
call fcn.0040ff62
mov esi, eax
mov byte [esp + 0x100], 0xa
lea ecx, [esp + 0xa8]
mov edx, dword [esp + 0x2c]
call fcn.00404ad6
push eax
mov edx, str.FindResource_err
mov byte [esp + 0x104], 0xb
lea ecx, [esp + 0x7c]
call fcn.00404bfe
mov byte [esp + 0x104], 0xc
lea ecx, [esp + 0x4c]
mov edx, eax
mov dword [esp], str.nResSize
call fcn.00404c2e
sub esp, 0x14
mov byte [esp + 0x118], 0xd
mov ecx, esp
mov edx, eax
push esi
call fcn.00404c60
pop ecx
mov byte [esp + 0x118], 0x11
call fcn.0042f9b7
add esp, 0x30
lea ecx, [esp + 0x30]
xor esi, esi
xor ebx, ebx
inc ebx
push esi
push ebx
call fcn.00404102
push esi
push ebx
lea ecx, [esp + 0x68]
call fcn.00404102
push esi
push ebx
lea ecx, [esp + 0x98]
call fcn.00404102
lea ecx, [esp + 0xc0]
push esi
push ebx
call fcn.00404102
mov dword [edi + 4], esi
mov dword [edi], esi
mov eax, edi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00559612
mov esp, ebp
pop ebp
ret