joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 8]
mov dword [esp], edi
call fcn.00444908
mov ebx, eax
lea eax, [eax + 0x40]
and eax, 0xfffffff0
call fcn.004387e0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
lea esi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call fcn.00444910
lea eax, [ebx + 0x10]
lea edi, [esi + eax]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x30]
mov dword [edi], 0x61616161
mov dword [edi + 4], 0x61616161
mov dword [edi + 8], 0x61616161
mov dword [edi + 0xc], 0x61616161
mov dword [edi + 0x10], 0x61616161
mov dword [edi + 0x14], 0x61616161
mov dword [edi + 0x18], 0x61616161
mov dword [edi + 0x1c], 0x61616161
mov dword [ebp - 0x1c], eax
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [0x5a547c]
sub esp, 0xc
mov byte [esi + ebx + 0xf], 0x2d
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [0x5a5574]
sub esp, 8
test eax, eax
je 0x44b2ef
int3
mov dword [esp], esi
call dword [0x5a5498]
sub esp, 4
test ax, ax
jne 0x44b393
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00444900
mov edx, edi
mov ebx, eax
mov eax, 0x20
nop
lea esi, [esi]
bt ebx, eax
jae 0x44b328
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x44b320
mov dword [esp], esi
call dword [0x5a5470]
sub esp, 4
test ax, ax
je 0x44b390
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0044b180
cmp eax, ebx
mov esi, eax
je 0x44b3aa
mov dword [esp], ebx
call fcn.00444968
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
call dword [0x5a550c]
sub esp, 4
mov dword [esp], edi
call dword [0x5a5474]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
mov ecx, dword [ebp - 0x24]
mov edx, esi
movzx eax, ax
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0044b180
mov esi, eax
jmp 0x44b362
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00444a78
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44b362
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x44b362
Function at 0x1001ac5
Capabilities:
Modify service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 2
push 0x40000000
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
push esi
mov dword [ebp - 4], esi
call fcn.01004f4e
mov edi, eax
cmp edi, esi
jne 0x1001b1f
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1001b1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001b1f
xor edi, edi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.01004f05
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x1001b37
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1006034]
and word [ebp - 0x210], 0
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
and dword [ebp - 0x214], eax
mov ecx, 0x82
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
mov edi, 0x10011a8
push edi
call fcn.01002059
pop ecx
mov esi, 0x104
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001beb
lea eax, [ebp - 0x210]
push eax
call fcn.01002059
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x210]
push 0x10011a4
push eax
call fcn.01002015
lea eax, [ebp - 0x210]
push eax
call fcn.01002059
sub esi, eax
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.01002015
add esp, 0x20
push 0
lea eax, [ebp - 0x214]
push eax
push 1
push 0x1001110
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x1001bf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x1001c2c
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x1001c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x214], 0
je 0x1001c29
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01001ced
leave
ret
Function at 0x1001e34
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x10011e0
call fcn.01002c88
mov edi, 0x94
mov eax, edi
call fcn.01002df0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x10062b8], ecx
mov eax, dword [esi + 4]
mov dword [0x10062c4], eax
mov edx, dword [esi + 8]
mov dword [0x10062c8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10062bc], esi
cmp ecx, 2
je 0x1001e94
or esi, 0x8000
mov dword [0x10062bc], esi
shl eax, 8
add eax, edx
mov dword [0x10062c0], eax
cmp word [0x1000000], 0x5a4d
jne 0x1001ed0
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1001ed0
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1001ee9
cmp ecx, 0x20b
je 0x1001ed6
and dword [ebp - 0x1c], 0
jmp 0x1001efd
cmp dword [eax + 0x84], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x1001ef7
cmp dword [eax + 0x74], 0xe
jbe 0x1001ed0
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01002c2a
pop ecx
test eax, eax
jne 0x1001f2a
cmp dword [0x10062a8], 1
jne 0x1001f17
call fcn.01002406
push 0x1c
call fcn.01002219
push 0xff
call fcn.01002078
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.01002a5a
test eax, eax
jge 0x1001f3f
push 0x1b
call fcn.01001e05
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1006854], eax
call fcn.0100292d
mov dword [0x10062a0], eax
call fcn.01002884
test eax, eax
jge 0x1001f65
push 8
call fcn.01001e05
pop ecx
call fcn.0100262a
test eax, eax
jge 0x1001f76
push 9
call fcn.01001e05
pop ecx
call fcn.010020d2
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001f89
push eax
call fcn.01001e05
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010025bc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1001fab
movzx eax, word [ebp - 0x40]
jmp 0x1001fae
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01001c3d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1001fcf
push esi
call fcn.010021b2
call fcn.010021ea
jmp 0x1002001
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01002cc3
ret
Function at 0x1002219
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1006034]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1006040]
je 0x1002243
inc eax
cmp eax, 0x12
jb 0x1002234
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1006040]
mov dword [ebp - 0x110], esi
jne 0x10023ee
mov eax, dword [0x10062a8]
cmp eax, 1
je 0x10023bc
test eax, eax
jne 0x1002279
cmp dword [0x100603c], 1
je 0x10023bc
cmp ecx, 0xfc
je 0x10023ee
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10022b4
push 5
pop ecx
mov esi, 0x1001554
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10022bf
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10022f7
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10022d7
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001550
push ebx
call fcn.01002f40
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10022fc
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1006044]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002316
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01002df0
mov edx, esp
push 6
pop ecx
mov esi, 0x1001534
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002342
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100234e
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002367
mov eax, dword [ebp - 0x110]
mov esi, 0x1001530
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1006044]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002385
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002391
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001508
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01002e32
add esp, 0xc
jmp 0x10023ee
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10023ee
mov esi, dword [esi + 0x1006044]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10023d3
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01001ced
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100292d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1006410]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1002979
call esi
mov edi, eax
cmp edi, ebx
je 0x100295f
mov dword [0x1006410], 1
jmp 0x100297e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1002974
push 2
pop eax
mov dword [0x1006410], eax
jmp 0x1002979
mov eax, dword [0x1006410]
cmp eax, 1
jne 0x10029f6
cmp edi, ebx
jne 0x100298a
call esi
mov edi, eax
cmp edi, ebx
je 0x10029ff
cmp word [edi], bx
mov eax, edi
je 0x100299f
inc eax
inc eax
cmp word [eax], bx
jne 0x1002991
inc eax
inc eax
cmp word [eax], bx
jne 0x1002991
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10029ed
push eax
call fcn.0100356c
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x10029ed
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x10029ea
push dword [ebp - 4]
call fcn.010034a7
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1002a4e
cmp eax, 2
je 0x1002a03
cmp eax, ebx
je 0x1002a03
xor eax, eax
jmp 0x1002a50
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10029ff
cmp byte [esi], bl
je 0x1002a20
inc eax
cmp byte [eax], bl
jne 0x1002a16
inc eax
cmp byte [eax], bl
jne 0x1002a16
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.0100356c
cmp eax, ebx
pop ecx
je 0x1002a47
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002e32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1006414], ebx
push esi
push edi
jne 0x1002eb4
push 0x10015d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1002eef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10015c4
push edi
call esi
test eax, eax
mov dword [0x1006414], eax
je 0x1002eef
push 0x10015b4
push edi
call esi
push 0x10015a0
push edi
mov dword [0x1006418], eax
call esi
cmp dword [0x10062b8], 2
mov dword [0x100641c], eax
jne 0x1002eb4
push 0x1001584
push edi
call esi
test eax, eax
mov dword [0x1006424], eax
je 0x1002eb4
push 0x100156c
push edi
call esi
mov dword [0x1006420], eax
mov eax, dword [0x1006420]
test eax, eax
je 0x1002ef9
call eax
test eax, eax
je 0x1002ee0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1006424]
test eax, eax
je 0x1002ee0
test byte [ebp - 8], 1
jne 0x1002ef9
cmp dword [0x10062c4], 4
jb 0x1002ef3
or byte [ebp + 0x12], 0x20
jmp 0x1002f18
xor eax, eax
jmp 0x1002f28
or byte [ebp + 0x12], 4
jmp 0x1002f18
mov eax, dword [0x1006418]
test eax, eax
je 0x1002f18
call eax
mov ebx, eax
test ebx, ebx
je 0x1002f18
mov eax, dword [0x100641c]
test eax, eax
je 0x1002f18
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1006414]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003f16
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1003f47
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1003f4e
cmp ebx, dword [ebp + 8]
jae 0x1003f4e
xor eax, eax
jmp 0x100413e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1003f5f
xor eax, eax
inc eax
jmp 0x100413d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1003f75
cmp ecx, edx
jae 0x10040ba
cmp dword [eax + 4], 0
je 0x1003f7e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1003f66
cmp dword [ebp + 8], 0
je 0x1003fa0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10040ba
cmp eax, esi
jae 0x10040ba
mov eax, dword [0x1006430]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1003fc5
cmp dword [esi*4 + 0x1006438], edi
je 0x10040be
inc esi
cmp esi, eax
jl 0x1003fb3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100413a
cmp dword [ebp - 8], 0x1000000
jne 0x100413a
test byte [ebp - 0xc], 0xcc
je 0x1004043
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100413a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100413a
cmp word [eax + 0x18], 0x10b
jne 0x100413a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100413a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1004043
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1004043
test byte [ecx + 0x27], 0x80
jne 0x10040ba
push 1
push 0x1006478
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1003f57
mov ecx, dword [0x1006430]
test ecx, ecx
mov edx, ecx
jle 0x1004077
lea eax, [ecx*4 + 0x1006434]
cmp dword [eax], edi
je 0x1004077
dec edx
sub eax, 4
test edx, edx
jg 0x100406b
test edx, edx
jne 0x10040a8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1004084
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100409c
lea eax, [edx*4 + 0x1006438]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100408a
cmp ecx, 0x10
jge 0x10040a8
inc ecx
mov dword [0x1006430], ecx
push 0
push 0x1006478
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1003f57
xor eax, eax
jmp 0x100413d
test esi, esi
jle 0x1003f57
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1006478
call ebx
test eax, eax
jne 0x1003f57
cmp dword [esi*4 + 0x1006438], edi
je 0x1004114
mov eax, dword [0x1006430]
lea esi, [eax - 1]
test esi, esi
jl 0x1004102
cmp dword [esi*4 + 0x1006438], edi
je 0x10040fe
dec esi
jns 0x10040f2
test esi, esi
jge 0x1004112
cmp eax, 0x10
jge 0x100410d
inc eax
mov dword [0x1006430], eax
lea esi, [eax - 1]
jmp 0x1004114
je 0x100412c
xor ecx, ecx
test esi, esi
jl 0x100412c
lea eax, [ecx*4 + 0x1006438]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100411a
push 0
push 0x1006478
call ebx
jmp 0x1003f57
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004c83
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002df0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004ce9
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10062b8]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1004ced
xor eax, eax
jmp 0x1004cfa
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4125f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e4cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00482b28
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x412672
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048034d
mov eax, dword [eax]
push 0x4b0c7c
push eax
call fcn.00472604
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00482db3
test bl, bl
je 0x412672
push 0x4b0c7c
lea ecx, [esp + 0xc]
call fcn.00483143
push 0x4b0c88
lea ecx, [esp + 0xc]
call fcn.00483143
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4126ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00482db3
jmp 0x412779
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x412732
lea edx, [esp + 0x7c]
push 0x4b0c84
push edx
call fcn.00472604
add esp, 8
test eax, eax
je 0x412732
lea eax, [esp + 0x7c]
push 0x4b0c80
push eax
call fcn.00472604
add esp, 8
test eax, eax
je 0x412732
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4126c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00482db3
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4139e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x413a42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x413a50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48e62b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ba81c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x413b88
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x413ab6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00482db3
xor eax, eax
jmp 0x413bff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00482ef0
push esi
lea ecx, [esp + 0xc]
call fcn.0048317f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x413bdd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.004139e0
test eax, eax
jne 0x413bdd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.004139e0
test eax, eax
jne 0x413bdd
lea eax, [esp + 0x14]
push 0x4b0ca8
push eax
call fcn.00473750
mov esi, eax
add esp, 8
test esi, esi
jne 0x413bbc
lea ecx, [esp + 0x14]
push 0x4b0ca4
push ecx
call fcn.004736d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x413bbc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x413bbf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00482ea0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x413ace
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00482db3
xor eax, eax
jmp 0x413bff
mov byte [esi], 0
push 0x4b0ca0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00482db3
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4