joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001d67
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x100d4a58]
sub esp, 0x114
test eax, eax
jne 0x10001e85
push esi
push 0x10
pop esi
lea eax, [ebp - 0x114]
push eax
mov dword [0x100d4a58], esi
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x104]
sub eax, 0
je 0x10001e75
dec eax
je 0x10001e4b
mov ecx, dword [ebp - 0x110]
cmp ecx, 5
jae 0x10001dca
mov dword [0x100d4a58], esi
jmp 0x10001e7f
mov eax, dword [ebp - 0x10c]
jne 0x10001e0a
test eax, eax
jne 0x10001de5
mov dword [0x100d4a58], 0x20
jmp 0x10001e7f
cmp eax, 1
jne 0x10001df9
mov dword [0x100d4a58], 0x30
jmp 0x10001e7f
cmp eax, 2
jne 0x10001e30
mov dword [0x100d4a58], 0x40
jmp 0x10001e7f
cmp ecx, 6
jne 0x10001e30
test eax, eax
jne 0x10001e1f
mov dword [0x100d4a58], 0x80
jmp 0x10001e7f
cmp eax, 1
jne 0x10001e30
mov dword [0x100d4a58], 0x90
jmp 0x10001e7f
push eax
push ecx
push str.Qt:_Untested_Windows_version__d._d_detected_
call fcn.10001b90
add esp, 0xc
mov dword [0x100d4a58], 0xf0
jmp 0x10001e7f
cmp dword [ebp - 0x10c], 0x5a
jne 0x10001e60
mov dword [0x100d4a58], 4
jmp 0x10001e7f
xor eax, eax
cmp dword [ebp - 0x10c], 0xa
sete al
inc eax
inc eax
mov dword [0x100d4a58], eax
jmp 0x10001e7f
mov dword [0x100d4a58], 1
mov eax, dword [0x100d4a58]
pop esi
leave
ret

Function at 0x10003343
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10002fec
push eax
push esi
push dword [ebp + 8]
call fcn.10002fa1
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
invalid

Function at 0x1000340d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10002fec
push eax
push esi
push dword [ebp + 8]
invalid
push ebp
sti
invalid
Function at 0x10003644
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10003690
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
ror byte [ecx - 0x35c4f7b3], 1
ror byte [ecx - 0x35c4f7b3], 1
jae 0x1000368b
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10003675
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
into
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000367d
cmp edx, ebx
jne 0x100037cb
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000364c
add eax, dword [eax + 4]
jmp 0x10003639
mov dword [ebp + 0xc], ebx
jmp 0x1000369b

Function at 0x10003835
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov ebp, 0x55fffffc

Function at 0x10003868
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0x55fffffc
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10002fec
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10002fa1
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0

Function at 0x100038db
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
invalid
invalid
inc ebx
Function at 0x10003c54
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.10002fec
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10002fa1
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.10002fdc
mov edi, 0x687fa49e
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x10003cd0
cmp dword [ebp - 0x398], 0
je 0x10003e9a
cmp dword [ebp + 0xc], 1
je 0x10003e9a
cmp dword [ebp + 0xc], 8
jne 0x10003e62
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
call fcn.10002fdc
mov eax, 0x80342a56
movsd dword es:[edi], dword [esi]
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.10002fdc
sub al, 0xb6
pop ebp
lea eax, [eax - 0x22f5b]
inc dword [eax]
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax

Function at 0x10003ec7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10002fba
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
invalid
movsd dword es:[edi], dword [esi]
xchg edi, eax
Function at 0x10004969
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.10002fa1
add esp, 0xc
mov dword [ebp - 0x730], eax
and dword [ebp - 0x6fc], 0
push 1
pop eax
test eax, eax
je 0x10005082
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x10004b57
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
xchg eax, edi
invalid
inc dword [eax]
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
test dword [esi - 0x63000008], ecx
cmp dword [ebp - 0x6fc], 1
jne 0x10004c08
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
invalid
invalid
invalid
clc

Function at 0x1000ff49
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 2
lea ecx, [ebp - 8]
push ecx
push 0xd
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000ffba
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.10003c54
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 0x100ac86c
call fcn.10002b85
or ecx, 0xffffffff
test al, al
mov eax, dword [ebp - 4]
je 0x1000ffab
lock xadd dword [eax], ecx
jne 0x1000ffa6
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
xor eax, eax
inc eax
leave
ret
lock xadd dword [eax], ecx
jne 0x1000ffba
push dword [ebp - 4]
call fcn.10002b2d
pop ecx
xor eax, eax
leave
ret
Function at 0x10011526
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edi, edi
push edi
push edi
push ebx
push eax
mov dword [ebp - 8], eax
call esi
add eax, eax
jne 0x1001156d
push ebx
push str.QLocale:_empty_windows_locale_info___d_
call fcn.10001b90
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov eax, section..data
xor edx, edx
mov dword [ecx], eax
inc edx
lock xadd dword [eax], edx
mov eax, ecx
jmp 0x10011608
push edi
push eax
lea ecx, [ebp - 4]
call fcn.1000d747
mov eax, dword [ebp - 4]
mov edi, dword [eax + 8]
lea ecx, [ebp - 4]
call fcn.100017ed
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x100115d5
push ebx
push str.QLocale:_empty_windows_locale_info___d_
call fcn.10001b90
mov esi, dword [ebp + 8]
pop ecx
pop ecx
mov eax, section..data
xor ecx, ecx
mov dword [esi], eax
inc ecx
lock xadd dword [eax], ecx
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100115d1
push dword [ebp - 4]
call fcn.10001746
pop ecx
mov eax, esi
jmp 0x10011608
lea ecx, [ebp - 4]
call fcn.100017ed
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.10003c54
mov eax, dword [ebp - 4]
add esp, 0xc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10011605
push dword [ebp - 4]
call fcn.10001746
pop ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x430001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x50523fe3
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..pdata_1
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x560d6da1
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Copy file
Extract resource via kernel32 functions
Get common file path
Get file size
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
mov byte [ebp - 0x338], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x1c], 0xa
mov byte [ebp - 0x1b], 0xa
mov byte [ebp - 0x1a], 0xa
mov byte [ebp - 0x19], 0xa
mov byte [ebp - 0x18], 0xa
mov byte [ebp - 0x17], 0xa
mov byte [ebp - 0x16], 0xa
mov byte [ebp - 0x15], 0xa
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
call fcn.004021a1
mov eax, 0x401c20
mov edi, 0x401a0b
sub eax, edi
mov dword [ebp - 0x24], eax
mov eax, 0x401f02
sub eax, fcn.00401ce6
mov dword [ebp - 0x20], eax
mov eax, 0x4019fa
sub eax, 0x401943
mov dword [ebp - 0x28], eax
mov eax, 0x40193a
sub eax, fcn.004015ee
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.RT_RCDATA
push 0x66
call fcn.00401450
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x4010d7
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov esi, 0x40443c
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
call fcn.00402350
add esp, 0xc
test eax, eax
je 0x40119f
push 8
lea eax, [ebp - 0x130]
push section..data
push eax
call fcn.00401f17
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00401f8f
push dword [ebp - 0x20]
lea eax, [ebp - 0x130]
push fcn.00401ce6
push eax
call fcn.00401f8f
push dword [ebp - 0x28]
lea eax, [ebp - 0x130]
push 0x401943
push eax
call fcn.00401f8f
push dword [ebp - 0x2c]
lea eax, [ebp - 0x130]
push fcn.004015ee
push eax
call fcn.00401f8f
push dword [ebp - 0x10]
lea eax, [ebp - 0x130]
push dword [ebp - 0x14]
push eax
call fcn.00401f8f
add esp, 0x48
lea eax, [ebp - 0x130]
push 0x100
push ebx
push eax
call fcn.004022f0
call fcn.004015ee
push str.svchost.exe
push dword [ebp - 0x14]
call fcn.00401ce6
add esp, 0x14
mov dword [ebp - 4], ebx
call fcn.00401499
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 8
mov byte [ecx + section..data], al
jl 0x4011a2
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
call fcn.00402350
add esp, 0xc
test eax, eax
je 0x40119f
push 8
lea eax, [ebp - 0x130]
push section..data
push eax
call fcn.00401f17
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.00401f8f
push dword [ebp - 0x20]
lea eax, [ebp - 0x130]
push fcn.00401ce6
push eax
call fcn.00401f8f
push dword [ebp - 0x28]
lea eax, [ebp - 0x130]
push 0x401943
push eax
jmp loc.00409000
Function at 0x401600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4016ca
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x10], ecx
push ebx
push esi
push edi
call fcn.00438350
mov eax, dword [eax + 4]
push str.DATA
push str.INSCODE16
mov esi, dword [eax + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4016de
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4016de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4016de
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0xfa00
mov ebx, eax
jbe 0x40167c
mov eax, 0xe
jmp 0x4016e3
push 0x28
call fcn.00420809
mov dword [ebp - 0x14], eax
add esp, 4
mov esi, eax
mov ecx, 0
mov dword [ebp - 4], 0
test esi, esi
je 0x4016a9
push 0x400
mov ecx, esi
call fcn.0042d062
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
movzx edx, bx
mov eax, dword [ebp - 0x10]
push edx
push edi
mov ebx, dword [ecx]
mov dword [eax + 8], ecx
call dword [ebx + 0x40]
mov ecx, dword [ebp - 0x10]
call fcn.00401470
jmp 0x4016e3
mov eax, 0xd
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406c10
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406cdf
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.004201c1
push 0
mov eax, dword [ebp + 8]
mov byte [ebp - 0x18], 0
mov ecx, dword [esi + 0x14]
push eax
mov dword [ebp - 4], 0
mov ebx, dword [ecx]
call dword [ebx + 0x30]
mov ecx, dword [esi + 0x14]
push 0x64
lea eax, [ebp - 0x7c]
mov ebx, dword [ecx]
push eax
call dword [ebx + 0x3c]
xor edx, edx
test eax, eax
je 0x406c71
xor ecx, ecx
cmp byte [ebp + edx - 0x7c], cl
je 0x406c84
inc edx
cmp eax, edx
ja 0x406c66
cmp eax, 0x64
jne 0x406ccf
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042060a
jmp 0x406c50
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042060a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
inc eax
push eax
call fcn.00420809
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], 0xffffffff
call fcn.00406ce9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
call fcn.00406ce9
xor eax, eax
jmp 0x406cbd

Function at 0x4076c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407778
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x10], ecx
push ebx
push esi
push edi
call fcn.00438350
mov eax, dword [eax + 4]
push str.DATA
push str.INSCODE32
mov esi, dword [eax + 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40778c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40778c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40778c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push 0x28
call fcn.00420809
mov dword [ebp - 0x14], eax
add esp, 4
mov esi, eax
mov ecx, 0
mov dword [ebp - 4], 0
test esi, esi
je 0x407757
push 0x400
mov ecx, esi
call fcn.0042d062
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
movzx edx, bx
mov eax, dword [ebp - 0x10]
push edx
push edi
mov ebx, dword [ecx]
mov dword [eax + 0x14], ecx
call dword [ebx + 0x40]
mov ecx, dword [ebp - 0x10]
call fcn.00406900
jmp 0x407791
mov eax, 0xd
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
push ecx
lea ecx, [esp + 4]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
add esp, 0x104
ret
Function at 0x40d240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
call fcn.00438350
mov esi, dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40d29c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x1c]
test eax, eax
mov dword [ecx], eax
je 0x40d29c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40d29c
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40d295
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp], eax
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40d370
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d5df
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push edi
mov esi, dword [ecx + 0x3c]
lea ecx, [ebp - 0x10]
lea edi, [esi + 0x20]
call fcn.004201c1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004201c1
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00420419
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
jne 0x40d43b
push 0
push 0
push str.You_must_name_your_work_prior_to__nediting_a_form.
call fcn.0042da94
call fcn.0042645b
test eax, eax
mov eax, 0
je 0x40d3ec
call fcn.0042645b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x78]
push 0
mov eax, dword [eax + 0x1c]
push 0xe103
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
lea ecx, [ebp - 0x14]
call fcn.00420419
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 8], 0
jne 0x40d43b
mov byte [ebp - 4], 0
call fcn.0040d5d7
mov dword [ebp - 4], 0xffffffff
call fcn.0040d5e9
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bx, word [ebp + 8]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
jne 0x40d4be
cmp bx, 0x3ee
jne 0x40d491
lea edi, [esi + 0x54]
mov eax, dword [edi]
cmp dword [eax - 8], 0
jne 0x40d522
lea eax, [ebp - 0x118]
push eax
push 0
push 0x446ce8
call fcn.0040c320
add esp, 0xc
lea eax, [ebp - 0x118]
mov ecx, edi
push eax
call fcn.00420469
push str.FILE
push str.REGDEFAULT
jmp 0x40d519
lea edi, [esi + 0x58]
mov eax, dword [edi]
cmp dword [eax - 8], 0
jne 0x40d522
lea eax, [ebp - 0x118]
push eax
push 0
push 0x446ce8
call fcn.0040c320
add esp, 0xc
lea eax, [ebp - 0x118]
jmp 0x40d507
cmp bx, 0x3ee
jne 0x40d4f0
lea edi, [esi + 0x54]
mov eax, dword [edi]
cmp dword [eax - 8], 0
jne 0x40d522
push 0x8000
mov ecx, esi
call fcn.00409970
push eax
mov ecx, edi
call fcn.00420469
push str.FILE
push str.REGDEFAULT
jmp 0x40d519
lea edi, [esi + 0x58]
mov eax, dword [edi]
cmp dword [eax - 8], 0
jne 0x40d522
push 0x4000
mov ecx, esi
call fcn.00409970
push eax
mov ecx, edi
call fcn.00420469
push str.FILE
push str.SPLDEFAULT
push edi
call fcn.0040d2b0
add esp, 0xc
cmp bx, 0x3ee
jne 0x40d52e
add esi, 0x54
jmp 0x40d531
add esi, 0x58
push str.SSFORM32.EXE
lea ecx, [ebp - 0x10]
call fcn.00420469
push 0x20
lea ecx, [ebp - 0x10]
call fcn.00420632
cmp bx, 0x3ee
jne 0x40d556
push 0x446cb4
jmp 0x40d55b
push 0x446cb0
lea ecx, [ebp - 0x10]
call fcn.0042060a
push esi
lea eax, [ebp - 0x18]
push 0x20
push eax
call fcn.0041ee5f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00420647
mov byte [ebp - 4], 1
call fcn.0040d5cf
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp ax, 0x20
jae 0x40d414
mov ecx, dword [str.Failed_to_execute__s__error_code___d]
lea edx, [ebp - 0xdc]
movzx eax, ax
push eax
push str.Form_Editor
push ecx
push edx
call fcn.0040f8d0
add esp, 0x10
lea ecx, [ebp - 0xdc]
push 0
push 0x10
push ecx
call fcn.0042da94
jmp 0x40d414