joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e5e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00403448
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00408110
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x403ebf
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.004034f2
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403eee
mov edi, dword [ebp - 8]
test edi, edi
je 0x403f29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x403f29
cmp byte [ebp + 8], bl
je 0x403efe
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403f16
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403f19
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
lea ecx, [esi - 0x10]
call fcn.00401252
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4045eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push edi
push eax
push 1
xor ebx, ebx
mov edi, ecx
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40465e
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40465e
cmp dword [ebp - 8], 4
jne 0x40465e
cmp dword [ebp - 0xc], 4
ja 0x40465e
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov byte [edi + 4], 1
jmp 0x404663
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec edx
rcr esi, 0x8d
bswap edx
sbb edi, 0x31
inc edx
rcl ebx, 0xa7
bswap eax
neg edx
sub esi, 0x98
sub ebx, 0x3e
bswap eax
inc edi
rcl edx, 0x98
neg esi
rcl eax, 0xc4
bswap edx
dec esi
imul eax
bswap esi
dec esi
sbb eax, 0x51
imul ebx
neg edi
rol edx, 0x21
neg eax
imul edx
sub edi, 0xed
inc edx
rol eax, 0x36
sbb ebx, 0x43
add esi, 0xb3
rcr ebx, 0x7f
inc eax
and edi, 0xc7
sbb esi, 0x72
dec ebx
not edi
inc edx
sbb edx, 7
rcr edx, 0xdf
dec ebx
ror edx, 0xa4
imul esi
rcl ebx, 0x8f
sbb esi, 0xbd
rol esi, 0x9a
rcl eax, 0x8e
or eax, 0x79
dec edi
or edi, 0x92
xor ecx, ecx
xor edi, edi
bswap eax
or esi, 0x4c
bswap edi
and edx, 0xde
not ebx
not esi
neg ebx
and ebx, 0xc1
inc edx
neg edx
and edx, 0x86
dec edi
inc esi
bswap esi
add eax, 0x84
sub ebx, 0xb6
mov eax, 0x2f
inc edi
add edi, 0x40
rol ebx, 0x79
bswap ebx
dec ebx
ror edx, 0x60
sub esi, 0xde
imul eax
or ebx, 0xc0
ror edi, 0xc2
rcr esi, 0x4d
or eax, 0x9b
dec edi
ror edx, 0xe4
not ebx
not esi
dec ebx
not edi
rcl esi, 0x83
rol eax, 0x2e
neg edi
inc edx
not edx
or ebx, 0x14
bswap ebx
bswap edx
or edx, 0x56
sbb ebx, 0x8f
rcr ebx, 0xfd
ror ebx, 0xdb
neg esi
or esi, 0xf2
and eax, 0xc4
mov ecx, dword [ebp + 0xc]
and edx, 0x98
bswap esi
imul ebx
rol edx, 0x37
inc ebx
rcl ebx, 0x44
rcr edi, 0xee
rcr eax, 0xce
inc edi
sbb edx, 0x89
inc edx
rol edi, 0xf5
rcl esi, 0x76
mov ebx, 0xc
sbb edi, 0x70
not ebx
not ebx
dec ebx
sbb ebx, 0x70
not esi
sbb esi, 0xee
or eax, 0xd2
not ebx
inc esi
neg edi
mov eax, 0x7f
imul ebx
neg esi
mov esi, 0x68
inc eax
inc edx
mov esi, 0xa
not eax
imul edx
imul ebx
neg edi
bswap edi
rcr edi, 0x8b
sbb ebx, 0x22
rcl edx, 0x5a
and ebx, 0x4e
inc eax
neg edi
or esi, 0x68
rcr edi, 0x2d
imul esi
sub eax, 0x20
sub esi, 0xcf
add ebx, 0xb4
imul edx
mov edi, dword [ebp + 8]
mov esi, eax
mov ebx, ebx
mov eax, eax
not byte [edi]
xor ebx, ebx
xor ebx, eax
xor esi, ebx
mov ebx, ebx
mov eax, esi
xor ebx, ebx
mov ebx, ebx
xor ebx, eax
xor esi, eax
add byte [edi], 0x79
mov eax, ebx
mov esi, eax
mov esi, eax
xor esi, ebx
xor eax, ebx
mov eax, eax
xor ebx, esi
xor ebx, esi
xor eax, eax
sub byte [edi], 0x30
mov esi, esi
mov esi, ebx
xor esi, eax
xor ebx, esi
xor esi, ebx
mov esi, esi
xor ebx, esi
mov esi, esi
mov eax, ebx
imul byte [edi]
inc edi
loop 0x4013dd
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404f85
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x494800]
jne 0x404f8f
repz ret
jmp fcn.00407320
Function at 0x4055f5
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.004043a5
and dword [ebp - 4], 0
cmp dword [0x495990], 0
mov ebx, eax
jne 0x4056a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405757
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405757
push eax
call fcn.00404333
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x495990], eax
call esi
push eax
call fcn.00404333
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x495994], eax
call esi
push eax
call fcn.00404333
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x495998], eax
call esi
push eax
call fcn.00404333
pop ecx
mov dword [0x4959a0], eax
test eax, eax
je 0x4056a6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404333
pop ecx
mov dword [0x49599c], eax
mov eax, dword [0x49599c]
cmp eax, ebx
je 0x4056fe
cmp dword [0x4959a0], ebx
je 0x4056fe
push eax
call fcn.004043ae
push dword [0x4959a0]
mov esi, eax
call fcn.004043ae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4056fe
test edi, edi
je 0x4056fe
call esi
test eax, eax
je 0x4056f5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4056f5
test byte [ebp - 0xc], 1
jne 0x4056fe
or dword [ebp + 0x10], 0x200000
jmp 0x405737
mov eax, dword [0x495994]
cmp eax, ebx
je 0x405737
push eax
call fcn.004043ae
pop ecx
test eax, eax
je 0x405737
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405737
mov eax, dword [0x495998]
cmp eax, ebx
je 0x405737
push eax
call fcn.004043ae
pop ecx
test eax, eax
je 0x405737
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x495990]
call fcn.004043ae
pop ecx
test eax, eax
je 0x405757
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405759
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401016
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4010a6
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x4010a3
push 0x5c
push esi
call dword [sym.imp.MSVCR80.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4010a3
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40107c
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x401075
test ebp, ebp
je 0x401075
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x40107c
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x40109d
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x40109d
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x40102e
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x401bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x401bd7
pop dword [ebp - 0x2c]
mov eax, 0x3260da0
add eax, 0xfd1a0e37
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xfcb30415
sub dword [ebp - 0x3c], 0xae60beca
mov dword [ebp - 0x38], 0x130c47d
sub dword [ebp - 0x38], 0xcefd7838
mov dword [ebp - 0x34], 0x6bbe9a16
add dword [ebp - 0x34], 0xe08daa18
mov dword [ebp - 0x30], 0xd49f0383
add dword [ebp - 0x30], 0x2b60fc7d
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x6bfe256a
add eax, 0x94424af6
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x70146706
add dword [ebp - 0x3c], 0x45e0250
mov dword [ebp - 0x38], 0x6468a52e
add dword [ebp - 0x38], 0xdd03bc47
mov dword [ebp - 0x34], 0x2e2e210d
add dword [ebp - 0x34], 0x35414b5f
mov dword [ebp - 0x30], 0x39362d02
sub dword [ebp - 0x30], 0x39362d02
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc6ac638a
add eax, 0x39940d76
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x35373
push 0
call eax
mov ecx, 0xaf04908a
sub ecx, 0xaf044dfa
mov edi, eax
mov esi, 0x557b577d
sub esi, 0x553a577d
add esi, dword [ebp - 0x2c]
mov ebx, 0x7a1623d1
mov dword [ebp - 8], 0xe01bce18
mov edx, dword [esi]
xor edx, ebx
xor dword [ebp - 0x20], eax
mov dword [edi], edx
mov dword [ebp - 0x24], 0xe92931f8
add edi, 4
add esi, 0x49687c12
add esi, 0xb69783f2
loop 0x401cf3
add eax, 0xfd13
mov ebx, eax
add eax, 0x66ee2727
sub eax, 0x66ee2722
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x406250
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80ffeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x404534
call fcn.00406eb1
push 4
mov dword [esp + 0x18], 0
call fcn.00407d56
mov edi, eax
add esp, 4
test edi, edi
je 0x4062c4
push ebx
call fcn.00406d89
mov dword [edi], eax
call fcn.00406b48
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406e72
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4062b8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406e9a
pop ebx
jmp 0x4062c6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4087c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813520]
jne 0x4087cb
repz ret
jmp fcn.0040cf1c
Function at 0x411b62
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040aec4
and dword [ebp - 0x14], 0
cmp dword [0x818a94], 0
mov dword [ebp - 0x18], eax
jne 0x411c15
push 0x403944
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411cbd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403938
push ebx
call edi
test eax, eax
je 0x411cbd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403928
push ebx
mov dword [0x818a94], eax
call edi
push eax
call esi
push 0x403914
push ebx
mov dword [0x818a98], eax
call edi
push eax
call esi
push 0x4038f8
push ebx
mov dword [0x818a9c], eax
call edi
push eax
call esi
mov dword [0x818aa4], eax
test eax, eax
je 0x411c15
push 0x4038e0
push ebx
call edi
push eax
call esi
mov dword [0x818aa0], eax
mov eax, dword [0x818aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411c6e
cmp dword [0x818aa4], ecx
je 0x411c6e
push eax
call esi
push dword [0x818aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411c6e
test ebx, ebx
je 0x411c6e
call edi
test eax, eax
je 0x411c65
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411c65
test byte [ebp - 8], 1
jne 0x411c6e
or dword [ebp + 0x10], 0x200000
jmp 0x411ca1
mov eax, dword [0x818a98]
cmp eax, dword [ebp - 0x18]
je 0x411ca1
push eax
call esi
test eax, eax
je 0x411ca1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411ca1
mov eax, dword [0x818a9c]
cmp eax, dword [ebp - 0x18]
je 0x411ca1
push eax
call esi
test eax, eax
je GetConsoleAliasExesA
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x818a94]
call esi
test eax, eax
je 0x411cbd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp OpenJobObjectA
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087c1
leave
ret
Function at 0x80eb60
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9d820], 0x37
jne 0x80ebf8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404110
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404148
push 0x4041c0
push 0x4041e8
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9d824]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81d884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80ee40
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9d820]
sub esp, 0x574
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x81d884]
cmp eax, ebx
jbe 0x80f028
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x80ee76
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0xb9d820], 0x1c
jne 0x80ee8d
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x814700]
mov eax, dword [0x814704]
mov esi, dword [edi]
mov ebp, dword [0x814708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x81470c]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x80eeca
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0xb9c7a4], ebx
mov eax, dword [esp + 0x18]
add dword [0xb9c7a4], eax
mov edx, dword [0xb9c7a4]
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0xb9d820], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x80ef64
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0xb9d820], 0x979
mov dword [0xb9c7a8], 0xff6b3619
mov dword [0xb9c7ac], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x80efab
push 0
lea eax, [esp + 0x184]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0xb9d820]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x80efcd
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x80eec8
cmp eax, 0x8d4
jne 0x80efe4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], ecx
cmp dword [0xb9d820], 0x17
jne 0x80f017
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x80ee70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x574
ret
Function at 0x180e8104
Capabilities:
Create http request

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
inc eax
push 0x102
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
push eax
mov dword [esi], 0x18197a70
mov dword [esi + 0xc], 0x18197570
call fcn.18154cf5
xor ebx, ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
push 0x2c
lfence
call fcn.18119198
add esp, 0xc
mov dword [eax], eax
push 0x10000000
push ebx
push ebx
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push ebx
mov dword [esi + 0x44], eax
push ebx
mov byte [esi + 0x4c], bl
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x10], eax
mov eax, esi
pop esi
pop ebx
ret
Function at 0x180f385f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x181c700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, ecx
mov dword [ebp - 0x28], 0xf
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x3c], ebx
lea esi, [edx + 1]
mov dword [ebp - 0x2c], ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x180f3885
sub edx, esi
push edx
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1801e678
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x20]
call fcn.180d64a3
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x180f38da
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], ecx
cmp eax, 0x1000
jb 0x180f38d1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.18007c32
mov eax, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.18118e16
pop ecx
pop ecx
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
jb 0x180f38e6
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180f38f8
test al, 0x10
jne 0x180f38f8
mov bl, 1
lea ecx, [ebp - 0x20]
call fcn.1800fd77
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.181188e8
leave
ret

Function at 0x180fd52b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
fild dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
fstp qword [esi + 8]
fild dword [ebp + 0xc]
mov dword [esi], 0x18197eb0
fstp qword [esi + 0x10]
fld qword [ebp + 0x10]
fstp qword [esi + 0x18]
fld qword [ebp + 0x18]
fstp qword [esi + 0x20]
fldz
fst qword [esi + 0x28]
fst qword [esi + 0x30]
fstp qword [esi + 0x38]
call fcn.181552cd
or dword [esi + 0x13c4], 0xffffffff
lea edi, [esi + 0x48]
mov ecx, eax
xor edx, edx
mov dword [esi + 0x44], ecx
inc edx
mov ebx, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
inc edx
mov dword [edi], ecx
lea edi, [edi + 4]
cmp edx, ebx
jb 0x180fd579
fldz
mov ecx, esi
mov dword [esi + 0x40], ebx
fstp qword [esi + 0x13c8]
fld1
fstp qword [esi + 0x13d0]
call fcn.180fd626
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x180fff78
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x180fffc0
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x180fff88
jmp 0x180fffcd
cmp dword [esi], 0x4e0
jb 0x180fffcd
call fcn.18100007
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x18100007
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x18100019
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x1810005e
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], 0
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebx
ret
Function at 0x10002ec0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x10002ee4
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x10002f50
push 0
push 0
call fcn.100a0087
add esp, 0x18
mov dword [esi + 8], eax
pop esi
ret

Function at 0x10002f00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0xc], eax
je 0x10002f48
cmp byte [ebp + 8], 0
je 0x10002f48
mov eax, dword [esi + 8]
test eax, eax
je 0x10002f48
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10002f48
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 8], 0
pop esi
pop ebp
ret 8
Function at 0x10004610
Capabilities:
Extract resource via kernel32 functions

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