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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401c66
pop dword [ebp - 0x20]
mov eax, 0x678a46d7
add eax, 0x98b5d58f
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x53146660
add dword [ebp - 0x30], 0xfb3ddeeb
mov dword [ebp - 0x2c], 0x300f8418
sub dword [ebp - 0x2c], 0xfddc37d3
mov dword [ebp - 0x28], 0x4d007f98
add dword [ebp - 0x28], 0xff4bc496
mov dword [ebp - 0x24], 0x589d040e
add dword [ebp - 0x24], 0xa762fbf2
lea eax, [ebp - 0x30]
push eax
mov eax, 0xb467239d
sub eax, 0xb426f349
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x20f16056
add dword [ebp - 0x30], 0x53810900
mov dword [ebp - 0x2c], 0x48e4f1d
sub dword [ebp - 0x2c], 0xc321eda8
mov dword [ebp - 0x28], 0xde731beb
sub dword [ebp - 0x28], 0x7b03af7f
mov dword [ebp - 0x24], 0x8e167a2a
add dword [ebp - 0x24], 0x71e985d6
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xf1f81ea4
add eax, 0xe481188
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x374ce
push 0
call eax
mov ecx, 0x4b47
xor edx, edx
add edx, eax
mov esi, 0xf18c093e
sub esi, 0xf14b993e
add esi, dword [ebp - 0x20]
mov ebx, 0xd4035702
add ebx, 0x3e0ea470
xor dword [ebp - 0xc], eax
mov edi, dword [esi]
xor dword [ebp - 0x14], ebx
xor edi, ebx
mov dword [edx], edi
sub dword [ebp - 0x1c], 0x743a9bb6
add edx, 0xced10658
sub edx, 0xced10654
add esi, 0xb3f9629b
add esi, 0x4c069d69
loop 0x401d84
add eax, 0xb8a6459b
add eax, 0x475ada54
xor ebx, ebx
add ebx, eax
add eax, 0x456d2437
sub eax, 0x456d2432
mov ecx, 0x38aa57f2
sub ecx, 0x386a57f2
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x401996
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x40c010]
test eax, eax
je 0x4019d5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019d5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019d5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019d5
cmp dword [ecx + 0x74], 0xe
jbe 0x4019d5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x7c7a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x694015
lea edi, [esi - 0x293015]
push edi
jmp 0x7c7a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7c7aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c7a90
mov eax, 1
add ebx, ebx
jne 0x7c7ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7c7ac4
jne 0x7c7ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c7ae3
dec eax
add ebx, ebx
jne 0x7c7ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7c7aa8
add ebx, ebx
jne 0x7c7adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7c7b35
xor ecx, ecx
sub eax, 3
jb 0x7c7afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7c7b6a
sar eax, 1
mov ebp, eax
jmp 0x7c7b06
add ebx, ebx
jne 0x7c7b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c7ad4
inc ecx
add ebx, ebx
jne 0x7c7b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7c7ad4
add ebx, ebx
jne 0x7c7b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7c7b16
jne 0x7c7b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7c7b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7c7b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7c7b46
jmp 0x7c7a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7c7b54
add edi, ecx
jmp 0x7c7a96
pop esi
mov edi, esi
mov ecx, 0x8319
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7c7b72
cmp byte [edi], 0x15
jne 0x7c7b72
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 0x7c7b77
lea edi, [esi + 0x3c3000]
mov eax, dword [edi]
or eax, eax
je 0x7c7be6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3c7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3c712c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7c7ba4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3c7134]
or eax, eax
je 0x7c7be0
mov dword [ebx], eax
add ebx, 4
jmp 0x7c7bc1
call dword [esi + 0x3c7130]
mov ebp, dword [esi + 0x3c7138]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x7c7c1a
sub esp, 0xffffff80
jmp 0x50ec30
Function at 0x42b5f0
Capabilities:
Authenticate hmac
Get number of processors

Disassembly:
dec esi
xor byte [edx + 0x33], ah
inc ecx
je 0x42b650
xor bh, byte [ecx]
jae 0x42b65d
xor ecx, dword [ecx + 0x39]
dec ecx
imul ecx, dword [esi + 0x42], 0x47645452
push edx
push esp
dec ecx
imul ecx, dword [edx + edi*2 + 0x34], 0x78324c38
jo 0x42b675
insd dword es:[edi], dx
push esi
push 0x79646b63
pop ecx
push edi
push edx
jo 0x42b679
push edi
xor eax, 0x786a5030
jae 0x42b688
push edi
xor eax, 0x4a58596c
dec eax
arpl word [ebp + 0x46], bp
imul esp, dword [ecx + 0x57], 0x56
jne 0x42b69b
inc ebx
inc edx
jo 0x42b695
inc esp
xor byte [ecx + 0x5a], ch
jns 0x42b68a
inc esp
inc ebp
cmp dword [ecx + 0x6a], ecx
jns 0x42b694
imul eax, dword [edx + 0x35], 0x6930544d
dec esi
xor byte [ecx + 0x4e], ch
push esp
pop ecx
jne 0x42b6a5
jp 0x42b6c0
xor cl, byte [ecx + 0x69]
inc edx
xor al, 0x4d
push 0x30
imul ecx, dword [esi + 0x6a], 0x444d7549
arpl word [edx], si
dec ecx
imul eax, dword [edx + 0x35], 0x69306a4d
dec esi
push esp
pop ecx
jne 0x42b6c5
jp 0x42b6e0
xor cl, byte [ecx + 0x69]
inc edx
outsb dx, byte [esi]
arpl word [ebp + 0x46], bp
imul esp, dword [ecx + 0x57], 0x56
jne 0x42b6eb
inc esi
push esi
jne 0x42b6ec
popal
pop eax
push edx
jp 0x42b6df
push ebx
dec edx
xor dword [ebx + 0x32], esp
push esi
jns 0x42b6ec
xor eax, dword [edx + 0x68]
pop ecx
xor dl, byte [esi + 0x50]
bound ebp, qword [esi + edx*2 + 0x7a]
pop edx
push ebx
dec ecx
sub edx, dword [eax + 0x48]
dec esi
xor byte [edx + 0x33], ah
inc ecx
arpl word [bp + di], si
push edx
jbe 0x42b716
inc ebx
xor dword [edx + 0x62], ebp
xor bh, byte [eax + 0x76]
arpl word [edx + 0x30], bp
imul ecx, dword [ecx + 0x7a], 0x6a51306b
insb byte es:[edi], dx
imul esi, dword [eax], 0x51
push 0x6c
inc edi
push edx
imul ecx, dword [ecx + 0x76], 0x7a786a50
inc edi
cmp dword [edi + 0x49], esi
inc edi
cmp dword [ebp + 0x5a], ebp
outsb dx, byte [esi]
dec esi
insb byte es:[edi], dx
inc esp
xor byte [ecx + 0x4c], ch
push 0x49
dec ecx
xor al, 0x4f
inc ebx
dec ecx
arpl word [bp + di], si
push edx
jbe 0x42b74e
inc ebx
xor dword [edx + 0x62], ebp
xor bh, byte [eax + 0x76]
arpl word [edx + 0x30], bp
imul ecx, dword [ecx + 0x7a], 0x6a51306b
insb byte es:[edi], dx
inc edi
push edx
imul ecx, dword [ecx + 0x67], 0x76523363
arpl word [ebx + 0x31], ax
jbe 0x42b76e
inc edi
inc esi
push 0x61
pop eax
push edx
xor eax, 0x75495350
dec esi
push esp
dec ecx
xor byte [ecx + 0x69], cl
cmp byte [ebx], ch
push eax
dec eax
dec esi
xor byte [edx + 0x33], ah
inc ecx
bound esi, qword [bp + si]
pop edx
insd dword es:[edi], dx
arpl word [edx], si
push esi
xor byte [eax + 0x53], dl
dec ecx
bound ebp, qword [ebp + 0x56]
Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0

Function at 0x405630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
adc dword [0x698e0c11], ecx
xor bl, al
sub esi, dword [edi]
pop es
adc dword [esi + ecx*4], ecx
imul esi, dword [edx], 0x7372bd8
jb 0x405632
push es
add byte [eax + 0x6f], dh
jo 0x4056b0
xor al, byte [eax]
add byte [edx], cl
sub al, 0x28
pop es
jb 0x40563f
push es
add byte [eax + 0x6f], dh
add byte cs:[eax], al
or bl, byte [eax]
outsd dx, dword [esi]
xor eax, dword [eax]
add byte [edx], cl
adc ecx, dword [ecx]
add bh, byte [ebx + 0xa]
add byte [eax], al
add al, 0x11
or dword [esi], edx
lcall 0x346f, 0x9a170911
add byte [eax], al
or ch, byte [ebx]
add dl, byte [esi]
sub al, byte [esi]
pop ss
pop eax
or al, byte [esi]
add ecx, dword [esi - 0x29ac097]
invalid
add byte [eax + 0x28], dh
sbb byte [eax], al
add byte [edx], cl
jge 0x4056c6
add byte [eax], al
add al, 2
jnp 0x4056cc
add byte [eax], al
add al, 0x28
xor eax, 0x2d0a0000
or al, 2
jnp 0x4056d9
or ch, byte [0xd7b020c]
add byte [eax], al
add al, 0x28
add byte ss:[eax], al
or ah, byte [esi]
add bh, byte [ebx + 6]
add byte [eax], al
add al, 0x28
add byte [eax + ebp], al
and al, byte [eax]
add byte [edx], cl
sub eax, 0x77b0229
add byte [eax], al
add al, 0x6f
aaa
add byte [eax], al
or bl, byte [edi]
rdmsr
sbb al, byte [edx]
jnp 0x4056fd
add byte [eax], al
add al, 0x6f
cmp byte [eax], al
add byte [edx], cl
sub al, 0xd
add bh, byte [ebx + 8]
add byte [eax], al
add al, 0x6f
or eax, 0x87b02
add byte [edi + ebp*2], al
cmp byte [eax], al
add byte [edx], cl
sub eax, 0x22a1602
jnp 0x405719
add byte [eax], al
add al, 0x72
sysret
cmp dword [eax], eax
add byte [edx], cl
sub eax, 0x97b0211
add byte [eax], al
add al, 0x72
sysret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d004]
jne 0x401010
repz ret
jmp fcn.00401562

Function at 0x409246
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405eb4
and dword [ebp - 4], 0
cmp dword [0x42fac0], 0
mov ebx, eax
jne 0x4092f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a8
push eax
call fcn.00405e42
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42fac0], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42fac4], eax
call esi
push eax
call fcn.00405e42
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42fac8], eax
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x42fad0], eax
test eax, eax
je 0x4092f7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405e42
pop ecx
mov dword [0x42facc], eax
mov eax, dword [0x42facc]
cmp eax, ebx
je 0x40934f
cmp dword [0x42fad0], ebx
je 0x40934f
push eax
call fcn.00405ebd
push dword [0x42fad0]
mov esi, eax
call fcn.00405ebd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40934f
test edi, edi
je 0x40934f
call esi
test eax, eax
je 0x409346
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409346
test byte [ebp - 0xc], 1
jne 0x40934f
or dword [ebp + 0x10], 0x200000
jmp 0x409388
mov eax, dword [0x42fac4]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409388
mov eax, dword [0x42fac8]
cmp eax, ebx
je 0x409388
push eax
call fcn.00405ebd
pop ecx
test eax, eax
je 0x409388
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42fac0]
call fcn.00405ebd
pop ecx
test eax, eax
je 0x4093a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b8e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
push esi
cmp ebx, 0x19f
jne 0x40b8f6
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor esi, esi
cmp ebx, ebp
jle 0x40b931
lea esp, [esp]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
call fcn.0040b8d0
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0x64
mov dword [esp + 8], eax
sub dword [esp + 8], 0x64
mov cl, byte [esp + 8]
xor byte [esi + edi], cl
inc esi
cmp esi, ebx
jl 0x40b900
pop esi
pop ebp
cmp ebx, 0x2d
jne 0x40b94c
mov dword [0x2ae8508], 0xa62e7790
mov dword [0x2ae850c], 0xffffffff
add esp, 8
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x429370
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov byte [0x541484], 0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetTickCount
mov dword [0x541e8c], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], edx
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0xc]
mov dl, byte [eax]
mov byte [ebp - 0xd], dl
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
mov al, byte [ebp - 0xd]
mov byte [ecx], al
cmp byte [ebp - 0xd], 0
je 0x4293cb
movsx edx, byte [ebp - 0xd]
cmp edx, 0x2c
jne 0x4293d3
mov ecx, dword [ebp - 0x24]
mov byte [ecx], 0
jmp 0x4293df
inc dword [ebp - 0x14]
inc dword [ebp - 0x24]
cmp dword [ebp - 0x14], 0x20
jl 0x4293a9
movsx eax, byte [ebp - 0xd]
cmp eax, 0x2c
jne 0x42940f
mov edx, dword [ebp - 0xc]
push edx
call fcn.00408540
pop ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
mov al, byte [ecx]
mov byte [ebp - 0xd], al
inc dword [ebp - 0xc]
cmp byte [ebp - 0xd], 0
je 0x42940f
movsx edx, byte [ebp - 0xd]
cmp edx, 0x2c
jne 0x4293f5
movsx ecx, byte [ebp - 0xd]
cmp ecx, 0x2c
jne 0x42943f
mov eax, dword [ebp - 0xc]
push eax
call fcn.00408540
pop ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebp - 0xd], cl
inc dword [ebp - 0xc]
cmp byte [ebp - 0xd], 0
je 0x42943f
movsx eax, byte [ebp - 0xd]
cmp eax, 0x2c
jne 0x429425
movsx edx, byte [ebp - 0xd]
cmp edx, 0x2c
jne 0x429455
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00408540
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x65c]
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0044cf08
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x65c]
push ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2f8]
mov eax, dword [edx + 0x160]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.004bd270
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0x88]
jmp 0x4294ad
mov ecx, dword [0x53d35c]
mov eax, dword [ecx]
call fcn.004d040c
call sub.kernel32.dll_GetTickCount
sub eax, dword [0x541e8c]
cmp eax, dword [ebp - 0x20]
jb 0x4294a0
mov byte [0x541484], 1
mov esp, ebp
pop ebp
ret
Function at 0x439504
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
mov ecx, edx
mov dword [ebp - 0x14], ecx
jmp 0x43954a
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [eax]
mov eax, dword [ebp + 8]
xor edx, dword [ebp + 8]
and edx, 0xff
shr eax, 8
mov ecx, dword [edx*4 + 0x52cda4]
xor ecx, eax
mov dword [ebp + 8], ecx
inc dword [ebp - 0x10]
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jb 0x439522
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x43fbb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x52e774
call fcn.00503ebc
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.00503470
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x43fc2d
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.kernel32.dll_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x43fc2d
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.00503490
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x43fc2d
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.kernel32.dll_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x43fc4a
cmp dword [ebp - 0x34], 0
je 0x43fc4a
mov edx, dword [ebp - 0x34]
jmp 0x43fc4f
mov edx, 0x52e3e8
lea eax, [ebp - 4]
call fcn.0050f7a0
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.00503480
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.0050f930
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0050f900
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x43fccd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x22
jne 0x401061
mov edx, dword [ebp - 0x4c]
add edx, 2
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov cx, word [eax]
test ecx, ecx
je 0x401049
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x22
je 0x401049
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov dword [ebp - 0x4c], ecx
jmp 0x401025
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x22
jne 0x40105f
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov dword [ebp - 0x4c], ecx
jmp 0x401079
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x20
jle 0x401079
mov ecx, dword [ebp - 0x4c]
add ecx, 2
mov dword [ebp - 0x4c], ecx
jmp 0x401061
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x40109d
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x20
jg 0x40109d
mov eax, dword [ebp - 0x4c]
add eax, 2
mov dword [ebp - 0x4c], eax
jmp 0x401079
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edx, dword [ebp - 0x18]
and edx, 1
test edx, edx
je 0x4010c5
mov eax, dword [ebp - 0x14]
and eax, 0xffff
mov dword [ebp - 0x50], eax
jmp 0x4010cc
mov dword [ebp - 0x50], 0xa
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402ec0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push 0x12c
lea eax, [ebp - 0x258]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x258]
push ecx
call fcn.00402f30
add esp, 8
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
je 0x402f21
mov edx, dword [ebp - 0x25c]
mov word [ebp + edx*2 - 0x258], 0
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x403894
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x52e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40392c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40390c
xor eax, eax
push ebp
push 0x403905
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403964
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40390c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x52e020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x52e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x530050], 0
je 0x404a75
cmp word [0x53032c], 0xd7b2
jne 0x404a3d
cmp dword [0x530334], 0
jbe 0x404a3d
mov eax, 0x530328
call dword [0x530344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404aa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52e02c], 0
jne 0x404a91
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404bf4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x52e030], 0
je 0x404c1a
mov edx, esi
mov eax, ebx
call dword [0x52e030]
jmp 0x404c29
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x530051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bbc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc