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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdc000]
push edi
jmp 0x4ea2ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ea2f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea2e0
mov eax, 1
add ebx, ebx
jne 0x4ea303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ea314
jne 0x4ea333
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea333
dec eax
add ebx, ebx
jne 0x4ea320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ea2f8
add ebx, ebx
jne 0x4ea32f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ea385
xor ecx, ecx
sub eax, 3
jb 0x4ea34b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ea3ba
sar eax, 1
mov ebp, eax
jmp 0x4ea356
add ebx, ebx
jne 0x4ea356
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea324
inc ecx
add ebx, ebx
jne 0x4ea364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ea324
add ebx, ebx
jne 0x4ea371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ea366
jne 0x4ea382
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ea366
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ea3a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ea396
jmp 0x4ea2e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ea3a4
add edi, ecx
jmp 0x4ea2e6
pop esi
mov edi, esi
mov ecx, 0x6a2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ea3c2
cmp byte [edi], 7
jne 0x4ea3c2
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 0x4ea3c7
lea edi, [esi + 0xe8000]
mov eax, dword [edi]
or eax, eax
je 0x4ea436
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xea000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xea050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4ea3f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xea054]
or eax, eax
je 0x4ea430
mov dword [ebx], eax
add ebx, 4
jmp 0x4ea411
call dword [esi + 0xea064]
mov ebp, dword [esi + 0xea058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x4ea46a
sub esp, 0xffffff80
jmp 0x40c8a0
Function at 0x46ce1e
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20034
call fcn.00441ef0
push ebx
push esi
lea eax, [ebp - 0x20034]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046dcfe
lea eax, [ebp - 0x10034]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046dcfe
pop ecx
pop ecx
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46cea8
cmp byte [ebp + 8], al
je 0x46cecc
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x46cf8d
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x46cf8d
lea ecx, [ebp - 0x20034]
call fcn.0046e0b7
test al, al
je 0x46cecc
lea ecx, [ebp - 0x10034]
call fcn.0046e0b7
test al, al
je 0x46ced2
cmp byte [ebp + 8], 0
jne 0x46cf0b
xor al, al
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b606
lea ecx, [ebp - 0x34]
call fcn.0046d1df
mov bl, al
lea ecx, [ebp - 0x34]
neg bl
sbb bl, bl
call fcn.0040b1ff
add bl, 1
jne 0x46cecc
lea ecx, [ebp - 0x10034]
call fcn.0046e0b7
test al, al
je 0x46cecc
lea eax, [ebp - 0x20034]
push str..
push eax
call fcn.00428fc8
lea eax, [ebp - 0x20034]
push eax
call fcn.004248f3
xor ecx, ecx
mov word [ebp + eax*2 - 0x20032], cx
lea eax, [ebp - 0x10034]
push eax
call fcn.004248f3
xor ecx, ecx
mov dword [ebp - 0x20], 2
add esp, 0x10
mov word [ebp + eax*2 - 0x10032], cx
lea eax, [ebp - 0x20034]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10034]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0x24], eax
mov eax, 0x614
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x46cecc
mov al, 1
jmp 0x46cece
Function at 0x46d2c7
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.0040c25d
lea ecx, [esp + 0x30]
call fcn.0040c25d
lea ecx, [esp + 0x20]
call fcn.0040c25d
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0040592d
mov ecx, dword [esp + 0x10]
call fcn.0046e0b7
test al, al
je 0x46d31e
push str..
lea ecx, [esp + 0x14]
call fcn.004052b7
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00406bff
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x46d3be
cmp al, 1
jne 0x46d3be
test byte [esp + 0x40], 0x10
jne 0x46d399
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.0040c1c3
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00407cf8
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.004052b7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x46d3b5
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x46d351
mov al, bl
mov byte [esp + 0xe], al
jmp 0x46d351
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x46d3c9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.0040b1ff
lea ecx, [esp + 0x30]
call fcn.0040b1ff
lea ecx, [esp + 0x10]
call fcn.0040b1ff
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401497
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x433cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405a2f
cmp eax, ebx
je 0x401533
push ebx
push dword [0x433cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x433cb0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402f07
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f31
add eax, dword [0x433c18]
push edi
push edi
push eax
push dword [0x40a014]
mov dword [0x41f97c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402d89
cmp eax, edi
jl 0x40302a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x403026
cmp dword [ebp - 4], esi
jne 0x403026
push dword [ebp + 8]
add dword [0x41f97c], esi
call fcn.00402d89
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403029
cmp dword [ebp + 0x10], edi
jne 0x402ff5
cmp dword [ebp + 8], edi
jle 0x403021
mov esi, 0x41f980
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fa5
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x403026
cmp edi, dword [ebp - 4]
jne 0x403026
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff1
cmp dword [ebp + 0x14], edi
jne 0x402ff1
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41f97c], eax
cmp dword [ebp + 8], 0
jg 0x402f98
jmp 0x403021
push 0xfffffffffffffffe
jmp 0x403028
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403000
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x403026
mov eax, dword [ebp - 4]
add dword [0x41f97c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403029
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x405615
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
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.00404dcc
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404d81
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
dec dword [ecx - 0x6737b]
inc edi
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al

Function at 0x40567b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx - 0x6737b]
inc edi
test dword [esp + edi*8 - 1], edi
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
invalid
Function at 0x4056c1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cdq
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
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00404dcc
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404d81
add esp, 0xc
invalid
invalid

Function at 0x405a65
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.00404dbc
add eax, 0x68c00a81
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x405ab0
cmp dword [ebp - 0x398], 0
je 0x405c7a
cmp dword [ebp + 0xc], 1
je 0x405c7a
cmp dword [ebp + 0xc], 8
jne 0x405c42
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
invalid
test dword [ebp - 7], edx
invalid
invalid
Function at 0x407000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431da7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 0x433b0c
lea ecx, [ebp + 0xc]
call fcn.00407f60
lea ecx, [ebp + 0xc]
call fcn.00408d90
shl eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
push eax
call fcn.00424dd7
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp + 0xc]
call fcn.004085a0
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00416ff0
add esp, 0xc
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x10], 0
je 0x4070a8
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00424dd2
add esp, 4
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x18]
je 0x4070cb
mov dword [ebp - 0x24], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408cf0
mov eax, dword [ebp - 0x24]
jmp 0x4070e4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408cf0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x407100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 2
mov dword [ebp - 4], 2
mov ax, word [0x433b14]
mov word [ebp - 0xc], ax
mov cl, byte [0x433b16]
mov byte [ebp - 0xa], cl
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x40714e
mov eax, 0x80004005
jmp 0x407150
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x407a80
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431e63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x10038
call fcn.004173f0
mov eax, dword [0x44220c]
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10028], 0x3c
mov dword [ebp - 0x1001c], 0
mov dword [ebp - 0x10024], 0
mov eax, dword [ebp - 0x10028]
push eax
call fcn.00424dd7
add esp, 4
mov dword [ebp - 0x10038], eax
mov ecx, dword [ebp - 0x10038]
mov dword [ebp - 0x1002c], ecx
mov word [ebp - 0x10014], 0
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x10012]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x10014]
push edx
push 0x7fff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.0040c5e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10020], eax
cmp dword [ebp - 0x10020], 0xffffffff
jne 0x407b6c
mov dword [ebp - 0x1003c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408cf0
mov eax, dword [ebp - 0x1003c]
jmp 0x407c8e
mov eax, dword [ebp - 0x10028]
push eax
push 0
mov ecx, dword [ebp - 0x1002c]
push ecx
call fcn.00416e10
add esp, 0xc
push 0
lea edx, [ebp - 0x1001c]
push edx
mov eax, dword [ebp - 0x10028]
push eax
mov ecx, dword [ebp - 0x1002c]
push ecx
mov edx, dword [ebp - 0x10020]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1002c]
movzx ecx, byte [eax]
cmp ecx, 0xff
jne 0x407bf7
mov edx, dword [ebp - 0x1002c]
movzx eax, byte [edx + 1]
cmp eax, 0xfe
jne 0x407bf7
mov ecx, dword [ebp - 0x1002c]
mov dword [ebp - 0x10030], ecx
push 0xa
push 0x433b54
mov edx, dword [ebp - 0x10030]
add edx, 2
push edx
call fcn.00407e10
add esp, 0xc
mov dword [ebp - 0x10018], eax
jmp 0x407c1f
mov eax, dword [ebp - 0x1002c]
mov dword [ebp - 0x10034], eax
push 0xa
push str._timeline_
mov ecx, dword [ebp - 0x10034]
push ecx
call fcn.00417330
add esp, 0xc
mov dword [ebp - 0x10018], eax
mov edx, dword [ebp - 0x1002c]
mov dword [ebp - 0x10040], edx
mov eax, dword [ebp - 0x10040]
push eax
call fcn.00424dd2
add esp, 4
cmp dword [ebp - 0x10018], 0
jne 0x407c4d
mov dword [ebp - 0x10024], 1
push 0
push 0
push 0
mov ecx, dword [ebp - 0x10020]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x10020]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10024]
mov dword [ebp - 0x10044], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408cf0
mov eax, dword [ebp - 0x10044]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00416ccb
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40d618
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40d66b
call fcn.0042f185
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40d66b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40d661
xor eax, eax
jmp 0x40d784
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40d69b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40d69b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40d781
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40d6c8
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040d211
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40d781
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40d711
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40d711
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40d70b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040d211
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40d771
and dword [ebp + 0xc], 0
jmp 0x40d771
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40d771
push 0xc
call fcn.00424da7
mov esi, eax
test esi, esi
pop ecx
je 0x40d753
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40d755
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40d76c
push dword [ebp - 8]
call fcn.0042487a
jmp 0x40d771
call fcn.00424851
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40d6d6
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x418275
Capabilities:
Terminate process

Disassembly:
push 8
push 0x438688
call fcn.00418504
push 8
call fcn.0041bec9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4453f8], esi
jne 0x4182a9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4453f4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4453f0], al
cmp dword [ebp + 0xc], edi
jne 0x4182f3
cmp dword [0x446d88], edi
je 0x4182e3
mov eax, dword [0x446d84]
sub eax, 4
mov dword [0x446d84], eax
cmp eax, dword [0x446d88]
jb 0x4182e3
mov eax, dword [eax]
cmp eax, edi
je 0x4182c4
call eax
jmp 0x4182c4
push 0x441090
mov eax, 0x441088
call fcn.004181f3
pop ecx
push 0x44109c
mov eax, 0x441094
call fcn.004181f3
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x418324
cmp dword [ebp + 0x10], edi
jne 0x418332
mov dword [0x4453f8], esi
push dword [ebp + 8]
call fcn.004181b1
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x418331
push 8
call fcn.0041be14
pop ecx
ret
call fcn.0041853f
ret

Function at 0x41846c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x418489
call fcn.00418a86
mov dword [eax], 0x16
xor eax, eax
jmp 0x4184f3
push esi
push 0x8c
push 1
call fcn.00418f76
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4184de
push esi
call fcn.00419b09
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4184bc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4183d7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4184f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00417cc5
test ebx, ebx
pop ecx
je 0x4184f0
push ebx
call fcn.00418a98
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41861d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004173f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4186b8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4453b8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4186b8
cmp eax, 1
je 0x4186d9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4186b8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x418685
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4186b4
xor eax, eax
inc eax
jmp 0x4186f8
cmp edi, eax
jae 0x4186bc
xor eax, eax
jmp 0x4186f8
cmp eax, esi
jae 0x4186c3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4453b8]
jmp 0x4186dc
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret