joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3f7cf2c6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x3f7cf2d5
pop dword [ebp - 0x20]
mov eax, 0x245ff805
sub eax, 0xe4e30530
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x506df
push 0
mov eax, 0xfd9a0304
add eax, 0x41d30d9c
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xfdf90627
add ecx, 0x207531e
xor ebx, ebx
add ebx, eax
mov esi, 0x3f830000
add esi, dword [ebp - 0x20]
mov edx, 0xfd446722
add dword [ebp - 0xc], 0x8bfdcf21
mov edi, dword [esi]
mov dword [ebp - 8], 0x10cb1ea0
xor edi, edx
add dword [ebp - 0x10], eax
mov dword [ebx], edi
xor dword [ebp - 8], 0x99009644
add ebx, 4
add esi, 0x1f7f6656
sub esi, 0x1f7f6652
loop 0x3f7cf32a
add eax, 0x157e7
mov ebx, eax
add eax, 0x5455e007
add eax, 0xabaa1ffe
mov ecx, 0x59e75fe5
sub ecx, 0x1a7a5fe5
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x826ad80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6207000]
push edi
or ebp, 0xffffffff
jmp 0x826ada2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x826ada9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x826ad98
mov eax, 1
add ebx, ebx
jne 0x826adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x826adcc
jne 0x826adeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x826adeb
dec eax
add ebx, ebx
jne 0x826add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x826adb0
add ebx, ebx
jne 0x826ade7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x826ae3d
xor ecx, ecx
sub eax, 3
jb 0x826ae03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x826ae72
sar eax, 1
mov ebp, eax
jmp 0x826ae0e
add ebx, ebx
jne 0x826ae0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x826addc
inc ecx
add ebx, ebx
jne 0x826ae1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x826addc
add ebx, ebx
jne 0x826ae29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x826ae1e
jne 0x826ae3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x826ae1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x826ae5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x826ae4e
jmp 0x826ad9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x826ae5c
add edi, ecx
jmp 0x826ad9e
pop esi
mov edi, esi
mov ecx, 0x191eea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x826ae7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x826ae7f
lea edi, [esi + 0x7e61000]
mov eax, dword [edi]
or eax, eax
je 0x826aee7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e9b9a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e9bc04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x826aea5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e9bc0c]
or eax, eax
je 0x826aee1
mov dword [ebx], eax
add ebx, 4
jmp 0x826aec2
call dword [esi + 0x7e9bc08]
mov ebp, dword [esi + 0x7e9bc10]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x826af1b
sub esp, 0xffffff80
jmp 0x4959488
Function at 0x403c92
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x409024]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call main
mov ebx, eax
cmp ebx, esi
je 0x403d05
lea ecx, [ebp - 0x74]
call fcn.0040175a
mov eax, ebx
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040426a
add ebp, 0x1a0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403d1d
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.00403c92
cmp eax, esi
jne 0x403d4f
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x403d0d
lea ecx, [ebp - 0x74]
call fcn.0040175a
push dword [ebp - 0x78]
mov ecx, edi
call fcn.004016eb
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040175a
mov eax, esi
jmp 0x403ceb

Function at 0x403fd2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x403fe1
pop dword [ebp - 0x20]
mov eax, 0xb48dfee3
add eax, 0x4bb240fe
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x3b9bd52b
add dword [ebp - 0x30], 0x12b67020
mov dword [ebp - 0x2c], 0xc18d73d9
sub dword [ebp - 0x2c], 0x8f5a2794
mov dword [ebp - 0x28], 0xcb5fbd4f
add dword [ebp - 0x28], 0x80ec86df
mov dword [ebp - 0x24], 0xf3f2339
add dword [ebp - 0x24], 0xf0c0dcc7
lea eax, [ebp - 0x30]
push eax
mov eax, 0xaa387d49
sub eax, 0xa9f81d31
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe23bfe7e
sub dword [ebp - 0x30], 0x6dc99528
mov dword [ebp - 0x2c], 0x774d0bc1
sub dword [ebp - 0x2c], 0x35e0aa4c
mov dword [ebp - 0x28], 0xa4b0f952
sub dword [ebp - 0x28], 0x41418ce6
mov dword [ebp - 0x24], 0xb9dd2b51
sub dword [ebp - 0x24], 0xb9dd2b51
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3a7bb
push 0
call eax
mov ecx, 0x9d9e9ead
add ecx, 0x6261b819
xor esi, esi
add esi, eax
mov edx, 0x89d0a305
sub edx, 0x898f6905
add edx, dword [ebp - 0x20]
mov ebx, 0x3b551d36
mov dword [ebp - 0xc], 0xdd36f7de
mov edi, dword [edx]
add edi, ebx
xor dword [ebp - 4], 0x34a137f
mov dword [esi], edi
add esi, 4
add edx, 0x9991bfd0
add edx, 0x666e4034
loop 0x4040fa
add eax, 0x3d0f94fa
sub eax, 0x3d0e470f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x40426a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409024]
jne 0x404274
repz ret
jmp fcn.00404744
Function at 0x40473a
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x408088
call fcn.00404850
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x409494], ebx
jne 0x4044d5
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x409488
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x40450f
cmp eax, esi
jne 0x404502
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x404512
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x4044e9
xor esi, esi
inc esi
mov eax, dword [0x409484]
cmp eax, esi
jne 0x404525
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x404560
mov eax, dword [0x409484]
test eax, eax
jne 0x40455a
mov dword [0x409484], esi
push 0x406224
push 0x406218
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x404560
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40467a
mov dword [0x409138], esi
mov eax, dword [0x409484]
cmp eax, esi
jne 0x404584
push 0x406214
push 0x406204
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x409484], 2
cmp dword [ebp - 0x24], ebx
jne 0x404591
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x409498], ebx
je 0x4045b2
push 0x409498
call main
pop ecx
test eax, eax
je 0x4045b2
push ebx
push 2
push ebx
call dword [0x409498]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40460b
cmp al, bl
je 0x4045cb
cmp dword [ebp - 0x1c], ebx
jne 0x40460b
mov al, byte [esi]
cmp al, bl
je 0x4045db
cmp al, 0x20
ja 0x4045db
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4045cb
test byte [ebp - 0x40], 1
je 0x4045e7
movzx eax, word [ebp - 0x3c]
jmp 0x4045ea
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x409134], eax
cmp dword [0x409128], ebx
jne 0x404660
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x40461a
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x40462d
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4045b9
cmp dword [0x409138], ebx
jne 0x40466e
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x409134]
call fcn.00404895
ret
call main
jmp 0x4044a7

Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
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
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10004c34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10004c43
pop dword [ebp - 0x34]
mov eax, 0x9a9ec402
add eax, 0x75618841
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3beb4
push 0
mov eax, 0x6d461fd
add eax, 0x92c6eff
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x9c44110a
add ecx, 0x63bc4546
xor edx, edx
add edx, eax
mov ebx, 0x10016200
add ebx, dword [ebp - 0x34]
mov edi, 0x7c9d83c6
sub edi, 0x751d2d8d
xor dword [ebp - 0x30], esi
mov esi, dword [ebx]
mov dword [ebp - 0x1c], 0x1ed40e2d
sub esi, edi
mov dword [ebp - 0x24], 0x5bd38a1a
mov dword [edx], esi
sub dword [ebp - 0x24], 0xb8842568
add edx, 0x85785462
sub edx, 0x8578545e
add ebx, 4
loop 0x10004c9e
add eax, 0x24843694
sub eax, 0x2482ea81
xor ebx, ebx
add ebx, eax
add eax, 0xf028aef2
add eax, 0xfd75113
mov ecx, 0x1826256
add ecx, 0xe7d9daa
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x1000692c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ebx - 0x6c]
mov ecx, esi
call fcn.10004c34
test eax, eax
jne 0x1000694f
mov eax, 0x80070005
jmp 0x10006a17
push esi
mov ecx, esi
call fcn.10004c34
test eax, eax
js 0x10006a15
cmp dword [ebx + 0x44], 0
je 0x10006a15
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x10]
push edi
push eax
call esi
lea eax, [ebp - 8]
push eax
call esi
push 0x14
pop ecx
call fcn.1000a278
mov edi, eax
test edi, edi
je 0x100069a2
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
and dword [edi + 8], 0
mov dword [edi], vtable.CNameShowContactCardJob.0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
jmp 0x100069a4
xor edi, edi
test edi, edi
je 0x10006a14
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov esi, dword [ebx + 0x44]
mov dword [ebp + 8], esi
add esi, 0x7c
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
inc dword [esi + 0x18]
push 8
pop ecx
call fcn.1000a278
mov ebx, eax
test ebx, ebx
je 0x10006a04
and dword [ebx], 0
mov dword [ebx + 4], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9c]
test ecx, ecx
je 0x100069ec
mov dword [ecx], ebx
jmp 0x100069f2
mov dword [eax + 0x98], ebx
mov dword [eax + 0x9c], ebx
push dword [eax + 0xa0]
call dword [sym.imp.kernel32.dll_SetEvent]
dec dword [esi + 0x18]
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x1000ac2d
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x1000cb4c
call fcn.1000c97c
cmp byte [0x1001207c], 0
je 0x1000ac4c
mov eax, dword [0x10012080]
jmp 0x1000ad22
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
mov dword [ebp - 4], esi
push SysReAllocString
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ac9c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push 0x10012080
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000ac9c
cmp dword [ebp - 0x14], 4
je 0x1000acf5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
test eax, eax
je 0x1000acad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000acfd
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push 0x10012080
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000acfd
cmp dword [ebp - 0x14], 4
jne 0x1000acfd
mov esi, dword [0x10012080]
jmp 0x1000ad03
mov dword [0x10012080], esi
mov al, 1
mov dword [ebp - 4], 3
cmp dword [ebp - 0x10], 0
mov byte [0x1001207c], al
je 0x1000ad20
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.1000c95c
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402d60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45410c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402e03
cmp eax, 3
je 0x402d9b
cmp eax, 2
jne 0x402e18
push 0x5c
push edi
call fcn.00426247
mov esi, eax
add esp, 8
test esi, esi
je 0x402e18
sub esi, edi
lea eax, [ebp - 0x20c]
sar esi, 1
push esi
push edi
push 0x104
push eax
call fcn.0042bb21
add esi, esi
add esp, 0x10
cmp esi, 0x208
jae 0x402e2a
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [ebp + esi - 0x20c], ax
call fcn.00402d60
test eax, eax
je 0x402e18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402e03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e18
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret
call fcn.0040e77b
int3
Function at 0x4031d0
Capabilities:
Create directory
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x45410c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x10]
push esi
push edi
push 0x208
push 0
push eax
mov dword [esp + 0x20], ecx
call fcn.00427180
mov edi, dword [ebp + 0xc]
mov esi, 1
mov eax, edi
add esp, 0xc
and eax, esi
mov dword [esp + 0x10], eax
cmp esi, eax
jne 0x403255
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [0x45407c]
test eax, eax
je 0x4033a9
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.0042599b
add esp, 8
test eax, eax
je 0x4033a9
xor ecx, ecx
mov word [eax], cx
jmp 0x4032fd
mov eax, edi
and eax, 2
cmp esi, eax
jne 0x403273
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4032f5
mov eax, edi
and eax, 8
cmp esi, eax
jne 0x4032d8
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4033a9
lea ecx, [esp + 0x18]
call fcn.004036a0
push str.eset
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0042bfd3
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4032fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4033a9
jmp 0x4032fd
mov eax, edi
and eax, 4
cmp esi, eax
jne 0x4033a9
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4033a9
test ebx, ebx
je 0x403391
lea ecx, [esp + 0x18]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403310
sub ecx, edx
sar ecx, 1
je 0x403344
mov eax, 0x5c
cmp ax, word [esp + ecx*2 + 0x16]
je 0x403344
push 0x44c590
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0042bfd3
add esp, 0xc
push ebx
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0042bfd3
add esp, 0xc
test eax, eax
jne 0x403401
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40337c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4033a9
test edi, 0x100
je 0x403391
push 6
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x18]
call fcn.00403440
test al, al
jne 0x4033bc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esi, esi
cmp esi, 0xff
jae 0x403401
mov eax, dword [esp + 0x10]
jmp 0x403218
test edi, 0x100
je 0x4033d1
push 2
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x18]
push eax
push 0x104
push dword [esp + 0x1c]
call fcn.0042c048
add esp, 0xc
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x224]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret
Function at 0x403440
Capabilities:
Create directory
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x45410c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x2ac], ecx
push 0
push eax
call fcn.00427180
push 0x208
lea eax, [ebp - 0x290]
push 0
push eax
call fcn.00427180
add esp, 0x18
mov eax, 0xa
lea ebx, [ebx]
dec eax
mov dword [ebp - 0x2b0], eax
xor eax, eax
mov dword [ebp - 0x2a0], eax
xor ebx, ebx
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], eax
nop
call fcn.0042bb2c
mov esi, eax
shl esi, 0xc
call fcn.0042bb2c
mov edi, eax
xor edi, esi
shl edi, 8
call fcn.0042bb2c
xor eax, edi
mov dword [ebp + ebx*4 - 0x2a0], eax
inc ebx
cmp ebx, 4
jb 0x4034c0
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x29c]
test eax, eax
je 0x403513
xor edi, dword [ebp - 0x2a4]
xor edi, dword [ebp - 0x2a8]
mov dword [ebp - 0x29c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor ebx, dword [ebp - 0x298]
mov dword [ebp - 0x298], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
shl esi, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, eax
xor edx, esi
xor edx, dword [ebp - 0x294]
mov ecx, edx
mov dword [ebp - 0x294], edx
shr ecx, 0x18
push ecx
mov ecx, edx
shr ecx, 0x10
movzx eax, cl
push eax
mov eax, edx
shr eax, 8
movzx eax, al
push eax
movzx eax, dl
push eax
mov eax, ebx
shr eax, 0x18
push eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
push eax
mov eax, ebx
shr eax, 8
movzx eax, al
push eax
movzx eax, bl
push eax
movzx eax, word [ebp - 0x29a]
push eax
movzx eax, di
push eax
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x88]
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x40
push eax
call fcn.00403870
add esp, 0x38
cmp eax, 0xffffffff
je 0x40364b
mov esi, dword [ebp - 0x2ac]
lea eax, [ebp - 0x290]
push esi
push 0x104
push eax
call fcn.0042c048
add esp, 0xc
test eax, eax
jne 0x403659
lea eax, [ebp - 0x290]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4035e0
sub eax, edx
sar eax, 1
je 0x403619
mov ecx, 0x5c
cmp cx, word [ebp + eax*2 - 0x292]
je 0x403619
push 0x44c590
lea eax, [ebp - 0x290]
push 0x104
push eax
call fcn.0042bfd3
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x290]
push 0x104
push eax
call fcn.0042bfd3
add esp, 0xc
test eax, eax
jne 0x403659
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
je 0x40366c
mov eax, dword [ebp - 0x2b0]
test eax, eax
jne 0x403490
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x290]
push eax
push 0x104
push esi
call fcn.0042c048
mov ecx, dword [ebp - 4]
add esp, 0xc
test eax, eax
sete al
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret
Function at 0x404020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4401e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45410c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x10]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x404057
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
test eax, eax
je 0x4040c7
push 0
push 0x455e10
push 0x455df8
push 0
push eax
call fcn.004277b7
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4040c7
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4040c7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4040c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi + 8], eax
test eax, eax
je 0x4040c7
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4040ea
mov dword [edi + 8], eax
xor bl, bl
test esi, esi
je 0x4040d4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov bl, 1
jmp 0x4040c9
Function at 0x404a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404ab9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404ab9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404aa8
cmp esi, edx
jae 0x404ab9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404a96
cmp esi, edx
jae 0x404ab9
cmp word [esi], 0
je 0x404ab9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret