joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4b5fa6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x4b5fe0
sbb byte [ecx - 0x1017438b], cl
std
invalid
dec esi
or al, 0xf
mov bh, 0xd0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x4b5ff4
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x4b5fe5
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004b5da0
sub ch, bh
aad 0x39
lea eax, [ebp - 0x58]
push eax
call fcn.004b5db0
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004b5d65
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4b608e
invalid
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
lea esi, [edi + edi*8 - 1]
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
jg 0x4b6090
inc ebp
int 0x7f
jg 0x4b6090
inc ebp
int 0x7f
invalid
inc ebp
Function at 0x4b6464
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
inc edi
push es
inc edi
push es
jne 0x4b6477
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4b6495
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4b64f3
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4b64da
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4b64e3
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4b64ed
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4b64cf
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4b6459
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4b6540
dec eax
je 0x4b6537
sub eax, 3
je 0x4b652e
mov dword [ebp - 4], 0x40
jmp 0x4b655d
mov dword [ebp - 4], 4
jmp 0x4b6543
mov dword [ebp - 4], 0x20
jmp 0x4b6543
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4b658f
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4b650f
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.004b5da0
rcl byte [ebx - 0x77], 0xe1
loope 0x4b6583
jne 0x4b659a
push 1
push esi
call edi
mov eax, esi
jmp 0x4b659b
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b669f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
invalid
invalid

Function at 0x4b7742
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x4b7e46
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
inc dword [eax]
jne 0x4b791b
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
invalid
invalid
Function at 0x4bcbd7
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x54cfb4
call fcn.0052c954
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00404281
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x556a24
call fcn.0040446f
cmp eax, 0xffffffff
jne 0x4bcc8b
push 0
push 0x558630
lea ecx, [ebp - 0x4d0]
call fcn.0040446f
cmp eax, 0xffffffff
jne 0x4bcc8b
push 0
push 0x555214
lea ecx, [ebp - 0x4d0]
call fcn.0040446f
cmp eax, 0xffffffff
jne 0x4bcc8b
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00404281
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4bcc67
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.004024f0
jmp 0x4bccba
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00404b39
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.004024f0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4bccb1
mov ebx, dword [ebp - 0x4cc]
jmp 0x4bccba
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.004024f0
mov eax, ebx
call fcn.0052c903
ret

Function at 0x4f50d8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00417783
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4f5114
call fcn.004f52f7
mov dword [esi + 0xc], 1
jmp 0x4f5119
call fcn.004f52f7
cmp dword [esi], 0
je 0x4f5162
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4f513c
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00417501
jmp 0x4f514d
push 0xff
mov ecx, esi
call fcn.00402750
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00414e5c
jmp 0x4f5186
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4f5186
push dword [esi]
push dword [ebp - 4]
call fcn.004201ed
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f524c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004f52f7
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4f5294
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417501
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00414e5c
jmp 0x4f529f
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004201ed
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1005721
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1001590
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005779
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10015cc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100576c
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100577b
xor eax, eax
pop esi
leave
ret 4

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403cf8
nop
nop
sub eax, 0x403c9e
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401790
Capabilities:
Get common file path

Disassembly:
sub esp, 0x134
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x140]
push ebx
push esi
mov esi, dword [esp + 0x140]
mov dword [esp + 0x34], eax
xor eax, eax
xor ebx, ebx
push edi
mov edi, dword [esp + 0x150]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 3
jne 0x40181c
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00411e16
add esp, 0x134
ret
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, 1
je 0x401830
cmp eax, ebx
jne 0x401917
push ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ebp, eax
cmp ebp, ebx
jl 0x4018d1
lea eax, [esp + 0x14]
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebp, eax
cmp ebp, ebx
jl 0x4018c5
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0x41
cmp edi, ebx
jne 0x401887
mov dword [esp + 0x30], ebx
jmp 0x401893
mov dword [esp + 0x30], 0x401760
mov dword [esp + 0x34], edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
cmp esi, ebx
je 0x4018db
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x4018db
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebp
jmp 0x401916
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
call edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp byte [ecx], bl
sete al
pop ebp
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411e16
add esp, 0x134
ret
Function at 0x401d60
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x17c
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
mov ebx, dword [esp + 0x18c]
lea eax, [esp + 0x74]
push eax
push 0xfa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401e78
lea eax, [esp + 0x74]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401da0
mov ecx, dword [str.cmadd.log]
mov edx, dword [0x422990]
push esi
push 0
push 0x80
push 4
push 0
mov dword [eax], ecx
mov cx, word [0x422994]
push 0
mov dword [eax + 4], edx
push 0x40000000
lea edx, [esp + 0x90]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e77
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401e70
push edi
push 0
call fcn.0041241b
mov ecx, dword [esp + 0x190]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x190]
push eax
mov dword [esp + 0x18], edx
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004123b8
add esp, 4
push eax
lea eax, [esp + 0x24]
push str._r_n_n_n_s_nError:__d__d_r_nData:
push eax
call fcn.0041246c
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x64
lea edx, [esp + 0x24]
push edx
push esi
call edi
mov ecx, dword [esp + 0x198]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push ebx
push esi
call edi
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x17c]
pop ebx
xor ecx, esp
call fcn.00411e16
add esp, 0x17c
ret

Function at 0x402f50
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4229c8
mov edi, eax
push 0x69
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402fd2
test esi, esi
je 0x402fd2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
test eax, eax
je 0x402fd2
push esi
push ebx
push eax
call fcn.00411f40
add esp, 0xc
xor eax, eax
test esi, esi
jbe 0x402fc9
mov ecx, dword [edi]
add ecx, eax
mov dl, al
add dl, 0x7a
xor dl, byte [ecx]
inc eax
rol dl, 4
mov byte [ecx], dl
cmp eax, esi
jb 0x402fb4
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x403080
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, dword [esp + 0x80c]
lea eax, [esp + 0x810]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.00412ae4
add esp, 0xc
cmp dword [0x429190], 0
je 0x4030f6
push 0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [0x4281c4]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4030ef
push str._nError_writing_record_log
call fcn.004129a1
add esp, 4
lea ecx, [esp + 4]
push ecx
jmp 0x4030fb
lea edx, [esp + 4]
push edx
call fcn.004129a1
mov ecx, dword [esp + 0x808]
add esp, 4
xor ecx, esp
call fcn.00411e16
add esp, 0x808
ret

Function at 0x4031a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xa
mov esi, eax
push 0x63
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4031f0
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00411e16
add esp, 0x110
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40329b
test ebp, ebp
je 0x40329b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40329b
push ebp
call fcn.00411e74
mov edi, eax
add esp, 4
test edi, edi
je 0x40329b
push ebp
push esi
push edi
call fcn.00411f40
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x1c]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403247
lea eax, [esp + 0x10]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403256
mov cx, word [0x4229e8]
mov dl, byte [0x4229ea]
push 0
push 0
push 4
push 0
mov word [eax], cx
push 0
mov byte [eax + 2], dl
push 0xc0000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4032b5
push edi
call fcn.0041232a
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00411e16
add esp, 0x110
ret
push ebx
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0041232a
add esp, 4
test ebx, ebx
pop ebx
je 0x40329b
cmp dword [esp + 0xc], ebp
jne 0x40329b
mov ecx, dword [esp + 0x118]
pop ebp
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00411e16
add esp, 0x110
ret
Function at 0x403300
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xa
mov esi, eax
push 0x64
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x403350
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00411e16
add esp, 0x110
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4033f9
test ebp, ebp
je 0x4033f9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4033f9
push ebp
call fcn.00411e74
mov edi, eax
add esp, 4
test edi, edi
je 0x4033f9
push ebp
push esi
push edi
call fcn.00411f40
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x1c]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4033a7
lea eax, [esp + 0x10]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4033b6
mov ecx, dword [0x4229ec]
mov edx, dword [0x4229f0]
push 0
push 0
push 4
push 0
mov dword [eax], ecx
push 0
mov dword [eax + 4], edx
push 0xc0000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403413
push edi
call fcn.0041232a
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00411e16
add esp, 0x110
ret
push ebx
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0041232a
add esp, 4
test ebx, ebx
pop ebx
je 0x4033f9
cmp dword [esp + 0xc], ebp
jne 0x4033f9
mov ecx, dword [esp + 0x118]
pop ebp
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00411e16
add esp, 0x110
ret