joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10859058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.108591a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1085907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1085906a
add dl, dl
jne 0x10859089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108590dc
xor eax, eax
add dl, dl
jne 0x10859096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1085917d
add dl, dl
jne 0x108590a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108590b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108590bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108590c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108590d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10859075
mov eax, 1
add dl, dl
jne 0x108590ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108590f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108590e1
sub eax, ebx
mov ebx, 1
jne 0x10859128
mov ecx, 1
add dl, dl
jne 0x1085910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10859119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10859105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10859075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1085913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1085914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10859136
cmp eax, 0x7d00
jae 0x1085916d
cmp eax, 0x500
jb 0x10859168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10859075
cmp eax, 0x7f
ja 0x10859170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10859075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1085919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10859075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x3aec18b0
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5cfc70e0
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40ba90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov dword [esp + 0xc], ecx
lea eax, [ebp + 8]
mov dword [esp + 0x10], eax
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov ecx, eax
add ecx, 4
mov dword [esp + 0x34], ecx
mov ecx, eax
add ecx, 0x1c
mov dword [esp + 0x38], ecx
mov ecx, eax
add ecx, 0x38
mov dword [esp + 0x3c], ecx
mov ecx, eax
add ecx, 0x60
mov dword [esp + 0x40], ecx
add eax, 0x78
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], 0x8f62ef5
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
sub eax, 0x8f62ef5
je 0x40bb0e
jmp 0x40baf5
mov eax, dword [esp + 8]
sub eax, 0x5d5462b0
je 0x40bb1b
jmp 0x40bb09
jmp 0x40bb94
mov dword [esp + 0x14], 0x5d5462b0
jmp 0x40bb94
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0x1a4
vmovsd xmm0, qword [0x43e258]
vmovsd qword [esp + 0x20], xmm0
mov dword [esp + 0x1c], 0x1572
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x30]
lea eax, [0x43e9e8]
mov dword [esp], eax
call fcn.00424130
sub esp, 4
mov ecx, dword [esp + 0x34]
call fcn.004244e0
mov ecx, dword [esp + 0x38]
call fcn.004244e0
mov ecx, dword [esp + 0x3c]
call fcn.004244e0
mov ecx, dword [esp + 0x40]
call fcn.004244e0
mov ecx, dword [esp + 0x44]
call fcn.004244e0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov esp, ebp
pop ebp
ret 0x9c
jmp 0x40badd
Function at 0x414740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [0x446080]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x5b0fe21
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
sub eax, 0x5b0fe21
je 0x41478c
jmp 0x414774
mov eax, dword [ebp - 0x10]
sub eax, 0x401a416d
je 0x4147c9
jmp 0x414787
jmp 0x4147d9
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x87
sub byte [edi], 0x35
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x41479c
mov dword [ebp - 0xc], 0x401a416d
jmp 0x4147d9
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042e880
add esp, 0xc
pop edi
pop ebp
ret
jmp 0x41475e
Function at 0x42f14b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42f18a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f18a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f18a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42f18a
cmp dword [ecx + 0x74], 0xe
jbe 0x42f18a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4368eb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x436988
push ebx
push esi
call fcn.004368b4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00436848
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x436935
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436987
push edi
push eax
call fcn.00435380
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x436955
call fcn.004353ce
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436986
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00436848
add esp, 0x20
test eax, eax
jne 0x436974
push edi
call fcn.004353ce
jmp 0x43697c
push ebx
call fcn.004353ce
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x437b97
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441240
push 0x441238
push str.FlsAlloc
push 0x1f
call fcn.00437a56
mov esi, eax
add esp, 0x10
test esi, esi
je 0x437bcb
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e14c]
call esi
jmp 0x437bd1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x437c15
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441250
push 0x441248
push str.FlsGetValue
push 0x21
call fcn.00437a56
mov esi, eax
add esp, 0x10
test esi, esi
je 0x437c4c
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x437c54
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441258
push 0x441250
push str.FlsSetValue
push 0x22
call fcn.00437a56
mov esi, eax
add esp, 0x10
test esi, esi
je 0x437c8e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43cf60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43cf8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43cf8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10005a8d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10005b7d
mov eax, 0x94
call fcn.10005a50
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10005bf2
mov ecx, dword [esi + 0x10]
mov dword [0x1000d91c], ecx
mov eax, dword [esi + 4]
mov dword [0x1000d928], eax
mov edx, dword [esi + 8]
mov dword [0x1000d92c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000d920], esi
je 0x10005af8
or esi, 0x8000
mov dword [0x1000d920], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000d924], eax
call fcn.100069ea
test eax, eax
pop ecx
je 0x10005bf2
call fcn.100060ec
test eax, eax
jne 0x10005b25
call fcn.10006a3b
jmp 0x10005bf2
call fcn.10006948
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000e134], eax
call fcn.10006826
mov dword [0x1000d908], eax
call fcn.10006307
test eax, eax
jl 0x10005b76
call fcn.10006784
test eax, eax
jl 0x10005b71
call fcn.10006551
test eax, eax
jl 0x10005b71
push 0
call fcn.10005d7f
test eax, eax
pop ecx
jne 0x10005b71
inc dword [0x1000d904]
jmp 0x10005c03
call fcn.10006505
call fcn.10005ed5
jmp 0x10005b1b
test eax, eax
jne 0x10005bad
cmp dword [0x1000d904], eax
jle 0x10005bf2
dec dword [0x1000d904]
cmp dword [0x1000d958], eax
jne 0x10005b9c
call fcn.10005ebd
call fcn.10006505
call fcn.10005ed5
call fcn.10006a3b
jmp 0x10005c03
cmp eax, 2
jne 0x10005bf6
push 0x8c
push 1
call fcn.1000624c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10005bf2
push esi
push dword [0x1000d034]
call dword [0x1000d968]
test eax, eax
push esi
je 0x10005bec
call fcn.10005ef2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10005c03
call fcn.100061db
pop ecx
xor eax, eax
jmp 0x10005c06
cmp eax, 3
jne 0x10005c03
push 0
call fcn.100060bd
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10005de9
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1000b280
call fcn.10006c40
push 8
call fcn.10007098
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1000d95c], esi
jne 0x10005e1d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1000d958], esi
mov al, byte [ebp + 0x10]
mov byte [0x1000d954], al
cmp dword [ebp + 0xc], edi
jne 0x10005e67
cmp dword [0x1000e128], edi
je 0x10005e57
mov eax, dword [0x1000e124]
sub eax, 4
mov dword [0x1000e124], eax
cmp eax, dword [0x1000e128]
jb 0x10005e57
mov eax, dword [eax]
cmp eax, edi
je 0x10005e38
call eax
jmp 0x10005e38
push 0x1000d020
mov eax, 0x1000d01c
call fcn.10005d67
pop ecx
push 0x1000d028
mov eax, 0x1000d024
call fcn.10005d67
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10005e98
cmp dword [ebp + 0x10], edi
jne 0x10005ea6
mov dword [0x1000d95c], esi
push dword [ebp + 8]
call fcn.10005d25
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10005ea5
push 8
call fcn.10006fe3
pop ecx
ret
call fcn.10006c7b
ret
Function at 0x10006d95
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1000d540]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1000d0e8]
je 0x10006dca
inc eax
cmp eax, 0x13
jb 0x10006dbb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000d0e8]
jne 0x10006ef0
mov eax, dword [0x1000d910]
cmp eax, 1
je 0x10006ec8
cmp eax, edx
jne 0x10006dfa
cmp dword [0x1000d914], 1
je 0x10006ec8
cmp ecx, 0xfc
je 0x10006ef0
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10006e30
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10008570
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10008670
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10006e64
mov eax, edi
push eax
call fcn.10008670
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000b710
push edi
call fcn.10008e50
add esp, 0x10
push edi
call fcn.10008670
push dword [esi + 0x1000d0ec]
mov ebx, eax
call fcn.10008670
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10005a50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10008570
push edi
push ebx
call fcn.10008580
push 0x1000b6f0
push ebx
call fcn.10008580
push dword [esi + 0x1000d0ec]
push ebx
call fcn.10008580
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10008d57
add esp, 0x2c
jmp 0x10006ef0
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1000d0ec]
push dword [esi]
call fcn.10008670
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10008fa5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10008d57
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000dc3c], ebx
push esi
push edi
jne 0x10008dd7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10008e12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000dc3c], eax
je 0x10008e12
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000dc40], eax
call esi
cmp dword [0x1000d91c], 2
mov dword [0x1000dc44], eax
jne 0x10008dd7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000dc4c], eax
je 0x10008dd7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000dc48], eax
mov eax, dword [0x1000dc48]
test eax, eax
je 0x10008e1c
call eax
test eax, eax
je 0x10008e03
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000dc4c]
test eax, eax
je 0x10008e03
test byte [ebp - 8], 1
jne 0x10008e1c
cmp dword [0x1000d928], 4
jb 0x10008e16
or byte [ebp + 0x12], 0x20
jmp 0x10008e3b
xor eax, eax
jmp 0x10008e4b
or byte [ebp + 0x12], 4
jmp 0x10008e3b
mov eax, dword [0x1000dc40]
test eax, eax
je 0x10008e3b
call eax
mov ebx, eax
test ebx, ebx
je 0x10008e3b
mov eax, dword [0x1000dc44]
test eax, eax
je 0x10008e3b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000dc3c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a18e
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.10005a50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000a229
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 [0x1000d91c]
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 0x1000a229
cmp eax, 1
je 0x1000a24a
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 0x1000a229
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000a1f6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1000a225
xor eax, eax
inc eax
jmp 0x1000a269
cmp edi, eax
jae 0x1000a22d
xor eax, eax
jmp 0x1000a269
cmp eax, esi
jae 0x1000a234
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 [0x1000d91c]
jmp 0x1000a24d
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
Function at 0x403070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4030a8
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f86b
mov esp, ebp
pop ebp
ret
push esi
call fcn.004031b0
test al, al
je 0x403098
push edi
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00421960
call fcn.0041f2b0
lea edx, [ebp - 0x210]
push 0x105
push edx
mov dword [esi + 0x44], eax
call fcn.0041f1e0
add esp, 0x14
lea eax, [ebp - 0x210]
lea edi, [esi + 0x38]
push eax
mov ecx, edi
call fcn.00403f70
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
je 0x403154
push 0x435bdc
push str.http:__
mov ecx, edi
call fcn.00404050
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.00421960
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0041f370
add esp, 0x14
lea ecx, [ebp - 0x210]
lea edi, [esi + 0x34]
push ecx
mov ecx, edi
call fcn.00403f70
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
jne 0x403165
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f86b
mov esp, ebp
pop ebp
ret
push 0x435bdc
push str.http:__
mov ecx, edi
call fcn.00404050
push 0
push 0
push esi
push 0x401fe0
push 0
push 0
call fcn.00420973
mov ecx, dword [ebp - 4]
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
setne al
xor ecx, ebp
pop edi
call fcn.0041f86b
mov esp, ebp
pop ebp
ret
Function at 0x4056e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4056fb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405734
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x405730
jmp 0x405720
cmp esi, eax
jae 0x405734
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405720
cmp esi, eax
jb 0x40573b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405a10
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ea96
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x134], eax
cmp esi, edi
je 0x405bef
cmp ebx, edi
je 0x405bef
cmp eax, edi
je 0x405bef
cmp byte [esi], 0x7c
jne 0x405a68
inc esi
call fcn.00405ea0
test eax, eax
je 0x405bef
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x405a90
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405bef
xor eax, eax
push 0x10b
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x12c], al
lea eax, [ebp - 0x12b]
push edi
push eax
mov byte [ebp - 0x1c], 0
call fcn.00421960
add esp, 0xc
cmp esi, edi
je 0x405ba1
push 0x7c
push esi
call fcn.00421100
mov edi, eax
add esp, 8
test edi, edi
je 0x405b9f
sub eax, esi
cmp eax, 7
jle 0x405ae4
mov eax, 7
push eax
push esi
lea ecx, [ebp - 0x1c]
push 8
push ecx
call fcn.00420663
lea esi, [edi + 1]
push 0x7c
push esi
call fcn.00421100
mov edi, eax
add esp, 0x18
test edi, edi
je 0x405b9f
sub eax, esi
cmp eax, 0x10b
ja 0x405b94
push eax
push esi
lea edx, [ebp - 0x12c]
push 0x10c
push edx
call fcn.00420663
lea eax, [ebp - 0x1c]
push eax
call fcn.004211d4
add esp, 0x14
sub eax, 1
je 0x405b67
sub eax, 1
jne 0x405b94
mov dword [ebp - fcn.00406c40], 0x435f58
push ebx
lea ecx, [ebp - 0x12c]
push ecx
push 2
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 1
call fcn.00406c40
jmp 0x405b8d
mov dword [ebp - fcn.004065a0], 0x435f4c
push ebx
lea edx, [ebp - 0x12c]
push edx
push 1
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0
call fcn.004065a0
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 1]
test esi, esi
jne 0x405ac3
xor edi, edi
mov edx, dword [ebp - 0x134]
mov ecx, ebx
call fcn.00405c50
lea ecx, [ebp - 0x154]
mov eax, 0x414
push ecx
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], 3
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], edi
mov word [ebp - 0x144], ax
mov dword [ebp - 0x13e], edi
mov dword [ebp - 0x13a], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f86b
mov esp, ebp
pop ebp
ret