joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032d4
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40331c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x403317
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x403301
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x403309
cmp edx, ebx
jne 0x403457
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4032d8
add eax, dword [eax + 4]
jmp 0x4032c5
mov dword [ebp + 0xc], ebx
jmp fcn.00403327

Function at 0x403327
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40333f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40335d
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 0x4033bb
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 0x4033a2
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4033ab
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4033b5
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x403397
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x403321
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 0x403408
dec eax
je 0x4033ff
sub eax, 3
je 0x4033f6
mov dword [ebp - 4], 0x40
jmp 0x403425
mov dword [ebp - 4], 4
jmp 0x40340b
mov dword [ebp - 4], 0x20
jmp 0x40340b
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
invalid
xchg ebp, eax
inc esp
Function at 0x4034c6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [esi - 0x3a]
test dword [edi + 0x40fffffc], esi
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00402c78
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402c2d
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
Function at 0x404913
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x79c], 0
and byte [ebp - 0x79b], 0
mov byte [ebp - 0x79a], 0x10
and byte [ebp - 0x799], 0
mov byte [ebp - 0x798], 0xb3
mov byte [ebp - 0x797], 0x8c
mov byte [ebp - 0x796], 0x80
mov byte [ebp - 0x795], 0x81
mov byte [ebp - 0x794], 0x9d
mov byte [ebp - 0x793], 0x8a
mov byte [ebp - 0x792], 0x9c
mov byte [ebp - 0x791], 0xc1
mov byte [ebp - 0x790], 0x8b
mov byte [ebp - 0x78f], 0x83
mov byte [ebp - 0x78e], 0x83
mov byte [ebp - 0x78d], 0xef
call fcn.00402c68
jecxz 0x404914
push dword [ebx]
salc
movsd dword es:[edi], dword [esi]
clc
invalid
je 0x4048a9
push 0xc
lea eax, [ebp - 0x79c]
push eax
call fcn.00402c78
pop ecx
push eax
mov eax, dword [ebp - 0x550]
lea eax, [ebp + eax - 0x654]
push eax
call fcn.00402bd9
add esp, 0xc
lea eax, [ebp - 0x654]
mov dword [ebp - 0x3a0], eax
jmp 0x404be0
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.00402c68
je 0x404c59
into
sar edi, 0xb5
pushal
cld
invalid
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x404cb2
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x404cb7
jmp fcn.0040460a
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x404cfe
lea eax, [ebp - 0x714]
push eax
call fcn.00402c78
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00402c2d
add esp, 0xc
mov dword [ebp - 0x37c], eax
invalid
test ah, bh
invalid
invalid
cmp dword [ebp - 0x37c], 0
je 0x404d09
jmp 0x404d0e
jmp fcn.0040460a
cmp dword [ebp - 0x37c], 0
jne 0x404db8
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00402e44
add esp, 0x14
invalid
test dword [eax], esp
Function at 0x404e27
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cld
invalid
sbb byte [edx + eax - 0x6a], dh
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00402c68
loopne 0x404deb
pop ss
cmpsb byte [esi], byte es:[edi]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00402c68
mov ch, 0x66
mov ah, 0x79
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x404e55
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x404e55
call fcn.00402c68
popal
pop edi
mov dword [ebx], ebp
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00402c68
mov dword [eax - 0x32], ebp
add bh, bh
jne 0x404e9f
push dword [ebp + 4]
in eax, 0xff
dec dword [edx]
out dx, al

Function at 0x4064a8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4064b6
push 0xd
pop eax
jmp 0x4064e9
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4064bd
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40b634
Capabilities:
Delete file

Disassembly:
push 0x10
mov eax, 0x46960c
call fcn.00463cb0
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b667
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
xor eax, eax
inc eax
call fcn.00463d4f
ret 4
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push 0x46ecfc
push eax
call fcn.0040227e
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edi, esp
mov dword [ebp - 0x18], esp
call fcn.0041bade
push ecx
mov esi, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], esp
call fcn.00404264
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0
call fcn.0040291a
add esp, 0x10
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x40b6dc
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, esi
jmp 0x40b65f
lea esi, [ebp - 0x14]
call fcn.004041f5
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00401470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
push dword [ebp - 0x10]
push dword [ebp + 8]
call ebx
mov esi, eax
jmp 0x40b6c2
Function at 0x40e8c3
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x466e50
call fcn.00463cb0
push 0x18
mov dword [ebp - 4], 1
call fcn.0044a629
mov edi, eax
pop ecx
test edi, edi
je 0x40e901
mov ebx, 0x4872ec
lea esi, [edi + 8]
mov ecx, ebx
call fcn.004017a8
lea esi, [edi + 0x14]
mov ecx, ebx
call fcn.004017a8
mov esi, edi
jmp 0x40e903
xor esi, esi
lea edi, [ebp + 0xc]
call 0x40341e
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea edi, [esi + 8]
lea eax, [ebp + 0x10]
call fcn.00401470
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
lea edi, [esi + 0x14]
lea eax, [ebp + 0xc]
call fcn.00401470
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push edi
push esi
push 0x40e6ed
push edi
push edi
call fcn.00447664
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, edi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004017c3
call fcn.00463d4f
ret

Function at 0x40e96a
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push 0x10
mov eax, 0x467757
call fcn.00463cb0
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, 0x4872ec
mov ecx, edi
call fcn.004017a8
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
je 0x40ea57
mov eax, dword [0x4872ec]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4872ec]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 1
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.._d.tmp
push eax
call fcn.00402550
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00405212
add esp, 0x14
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00401470
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004017c3
mov ebx, dword [ebp - 0x18]
push ebx
call esi
push ebx
cmp eax, 0xffffffff
je 0x40ea2c
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x64
jl 0x40e9d0
jmp 0x40ea44
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40ea44
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
call fcn.00401470
lea eax, [ebx - 0x10]
call fcn.004017c3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004017c3
mov eax, dword [ebp + 8]
call fcn.00463d4f
ret 8
Function at 0x410c30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a42b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x5f4000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x5fdae0], 0x5d0c60
mov dword [0x5fdae8], 0x5d0e64
push 0
mov dword [ebp - 0x14], 0x5fdae0
mov dword [0x5fdafc], 1
mov dword [0x5fdaf8], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x410ede
lea eax, [ecx + 0x400000]
mov dword [0x5fdaf4], ecx
mov dword [0x5fdaf0], eax
mov edx, 0x1555
mov eax, dword [0x5fdaf8]
mov dword [0x5fdaec], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5fdaf8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5fdaf8]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x5fdaf8]
add ecx, eax
sub edx, 1
jne 0x410cc4
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x5fdb00
mov dword [ebp - 0x18], 0x5fdb00
mov dword [ebp - 0x1c], 0x5fdb00
mov dword [0x5fdb00], 0x5cfbc0
mov dword [0x5fdb04], edx
mov dword [0x5fdb08], edx
mov byte [ebp - 4], 1
mov dword [0x5fdb00], 0x5cfb5c
mov dword [0x5fdb0c], edx
mov dword [0x5fdb14], edx
mov dword [0x5fdb10], edx
mov dword [0x5fdb18], 0x40
mov byte [ebp - 4], 2
mov dword [0x5fdb18], 0x80
mov byte [ebp - 4], 5
mov dword [0x5fdb1c], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x5fdb30
mov dword [ebp - 0x20], 0x5fdb30
call esi
mov byte [ebp - 4], 7
mov dword [0x5fdb48], 0
mov byte [ebp - 4], 8
push 0x5fdb54
mov dword [ebp - 0x24], 0x5fdb54
call esi
mov byte [ebp - 4], 9
mov dword [0x5fdb6c], 0x3e8
mov dword [ebp - 0x28], 0x5fdb80
mov dword [ebp - 0x2c], 0x5fdb80
mov dword [0x5fdb80], 0x5cfbc0
mov dword [0x5fdb84], 0
mov dword [0x5fdb88], 0
mov byte [ebp - 4], 0xa
mov dword [0x5fdb80], 0x5cfb5c
mov dword [0x5fdb8c], 0
mov dword [0x5fdb94], 0
mov dword [0x5fdb90], 0
mov dword [0x5fdb98], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x5fdb98], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x5fdb74], 0x3e80
mov dword [0x5fdb78], 1
mov dword [0x5fdb7c], 0
lea eax, [eax*2 + 2]
mov dword [0x5fdb70], eax
mov byte [ebp - 4], 0xe
push 0x5fdb9c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x5fdbb4
call fcn.0040fc80
mov byte [ebp - 4], 0x10
mov dword [0x5fdb20], 0
mov dword [0x5fdbdc], 0
movsd xmm0, qword [0x5d1590]
movsd qword [0x5fdb28], xmm0
xorps xmm0, xmm0
mov dword [0x5fdbe0], 0
mov dword [0x5fdbe4], 0
mov dword [0x5fdbe8], 0
mov dword [0x5fdb24], 0
movq qword [0x5fdb4c], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x5fdae0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.0056d888
int3
Function at 0x4118d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x4118ef
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x4119c5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4119c5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4119bc
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x4119a0
cmp edi, 1
jne 0x411965
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x4119b7
cmp edi, 2
jne 0x411978
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x4119b7
cmp edi, 4
jne 0x411989
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x4119b7
cmp edi, 8
jne 0x4119a0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x4119b7
test edi, edi
jle 0x4119b7
push edi
mov ecx, esi
call fcn.00413740
push edi
push ebx
push eax
call fcn.0056a170
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x412980
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a6f5
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
mov eax, dword [0x5f4000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x412b3d
cmp word [esi], 0
je 0x412b3d
lea ecx, [ebp - 0x38]
call fcn.00404dd0
mov dword [ebp - 4], 0
cmp word [esi], 0
je 0x412a20
cmp word [esi + 2], 0
je 0x412a20
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4129e0
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x412a20
cmp word [esi + ecx*2 - 4], 0x3a
je 0x412a20
lea eax, [ecx - 1]
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.004152d0
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x412a20
cmp dword [ebp - 0x14], 0
mov esi, 0x5cdabc
cmovne esi, dword [ebp - 0x1c]
movzx ecx, word [esi]
test cx, cx
je 0x412b17
cmp ecx, 0x5c
jne 0x412a3c
cmp word [esi + 2], 0
je 0x412b17
cmp word [esi + 2], 0x3a
jne 0x412a62
movzx eax, word [esi + 4]
mov ecx, eax
test ax, ax
je 0x412b17
cmp ecx, 0x5c
jne 0x412a62
cmp word [esi + 6], 0
je 0x412b17
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x412b17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x412b17
cmp eax, 3
jne 0x412b13
push 0x5c
push esi
call fcn.00569a20
mov edx, eax
add esp, 8
test edx, edx
je 0x412b13
cmp word [edx + 2], 0
jne 0x412ac1
sub edx, 2
cmp edx, esi
jb 0x412b13
nop dword [eax]
cmp word [edx], 0x5c
je 0x412ac1
sub edx, 2
cmp edx, esi
jae 0x412ab0
xor esi, esi
jmp 0x412b1c
lea ecx, [ebp - 0x64]
call fcn.00404dd0
mov byte [ebp - 4], 1
sub edx, esi
sar edx, 1
lea ecx, [ebp - 0x64]
push edx
push esi
call fcn.004152d0
lea ecx, [ebp - 0x64]
call fcn.00414fb0
mov ecx, eax
call fcn.00412980
test eax, eax
je 0x412b07
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00404220
jmp 0x412b1c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00404220
xor esi, esi
jmp 0x412b1c
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00404220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a73d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x5f4000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x412ce2
cmp word [ecx], 0
je 0x412ce2
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x7c], 0x44
test eax, eax
js 0x412bc9
or dword [ebp - 0x50], 1
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], vtable.CVolCommonBaseWithMemManager.0
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x38]
call fcn.00413830
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x412c4f
xor esi, esi
jmp 0x412c72
push 0x1f4
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x412cad
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWConstString.virtual_12
jne 0x412ca8
mov ecx, 0x5fdae8
call fcn.004142e0
jmp 0x412cad
lea ecx, [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - 0x38], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412d00
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a770
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5f4000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x412e73
cmp word [esi], 0
je 0x412e73
lea ecx, [ebp - 0x244]
call fcn.00404dd0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x412d77
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call dword [eax + 0xc]
movzx eax, word [esi]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
cmp eax, 0x5c
je 0x412db0
test ax, ax
je 0x412de2
cmp word [esi + 2], 0x3a
jne 0x412de2
cmp word [esi + 4], 0x5c
jne 0x412de2
push 0x5c
push esi
call fcn.00569a20
add esp, 8
test eax, eax
je 0x412de2
cmp eax, esi
jbe 0x412dce
cmp word [eax - 2], 0x3a
lea ecx, [eax - 2]
cmovne eax, ecx
sub eax, esi
lea ecx, [ebp - 0x244]
add eax, 2
sar eax, 1
push eax
push esi
call fcn.004152d0
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x412e05
cmp dword [ebp - 0x220], edi
jne 0x412dfb
mov edi, 0x5cdabc
jmp 0x412e05
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x412e54
cmp word [edi], 0
je 0x412e54
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x412e54
test edi, edi
je 0x412e32
cmp word [edi], 0
je 0x412e32
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x412e5d
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x412e5d
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00404220
mov eax, esi
jmp 0x412e75
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568226
mov esp, ebp
pop ebp
ret
Function at 0x41d72a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41d783
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41d783
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x41d774
cmp esi, ecx
jae 0x41d783
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x41d762
cmp esi, ecx
jae 0x41d783
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x41d785
xor eax, eax
pop esi
pop ebp
ret

Function at 0x41f97f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x41f9c4
call fcn.00427c22
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f9c1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41fa0b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x41f9e7
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x59b9f0]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x41fa08
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x59b9f0]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc