joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432f7b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00432dec

Function at 0x433ba9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0041c980
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004292f4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x433beb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x433d47
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00441300
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x476b50]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0043373e
mov ecx, dword [esi*4 + 0x476b50]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x433d40
cmp eax, dword [edi + ecx + 0x24]
jne 0x433d40
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x433d40
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043373e
add esp, 0x14
test edx, edx
jl 0x433d40
jg 0x433cb6
test eax, eax
jb 0x433d40
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x433d40
jl 0x433cd0
cmp dword [ebp - 0x1008], eax
ja 0x433d40
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x433cee
test ebx, ebx
je 0x433d27
cmp ecx, edi
jae 0x433d27
mov al, byte [ecx]
cmp al, 0xd
jne 0x433d08
lea eax, [edi - 1]
cmp ecx, eax
jae 0x433d14
cmp byte [ecx + 1], 0xa
jne 0x433d14
inc ecx
jmp 0x433d14
movzx eax, al
movsx eax, byte [eax + 0x471308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x433cee
cmp edx, ebx
jne 0x433cee
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x433d45
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b8c5
leave
ret
Function at 0x4370f1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43713c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00437290
test al, al
jne 0x437136
sub edx, 2
cmp edx, edi
jne 0x43711c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43715e
lea eax, [edi + 2]
cmp edx, eax
je 0x43715e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043703d
add esp, 0x10
jmp 0x437258
push esi
lea ecx, [ebp - 0x255]
call fcn.00437290
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4371a1
push dword [ebp - 0x25c]
jmp 0x43714e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4371de
cmp word [ebp - 0x226], 0
je 0x4371ff
cmp word [ebp - 0x226], ax
jne 0x4371de
cmp word [ebp - 0x224], 0
je 0x4371ff
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043703d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43724b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4371b8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x437233
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x437258
push 0x436e6d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043da80
add esp, 0x10
jmp 0x437228
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b8c5
leave
ret

Function at 0x437b63
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x437b74
pop esi
ret
push ebx
push edi
push esi
call fcn.00437b2c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00430d7b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x437b9c
push ebx
push esi
push edi
call fcn.0041d070
add esp, 0xc
push 0
call fcn.00430116
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x437f60
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437bb1
Function at 0x43e0a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043e021
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43e21d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43e21d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43e1cc
jg 0x43e0fe
test eax, eax
je 0x43e1c2
push 1
push 0x1000
call fcn.004321a5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43e124
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43e1b9
push 0x8000
push ebx
call fcn.0042c981
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43e150
jg 0x43e14b
cmp ecx, 0x1000
jb 0x43e150
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042f8e5
add esp, 0x10
cmp eax, 0xffffffff
je 0x43e195
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43e14b
jl 0x43e17c
test ecx, ecx
jne 0x43e13d
push dword [ebp - 0xc]
push ebx
call fcn.0042c981
push esi
call fcn.00430116
add esp, 0xc
xor edi, edi
jmp 0x43e22e
cmp byte [edi + 0x24], 0
je 0x43e1ac
cmp dword [edi + 0x20], 5
jne 0x43e1ac
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43e1b7
mov edi, dword [edi + 0x18]
jmp 0x43e1b9
xor edi, edi
push esi
call fcn.00430116
pop ecx
jmp 0x43e22e
test ecx, ecx
jg 0x43e18e
jl 0x43e1cc
test eax, eax
jae 0x43e18e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043375c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43e1ef
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43e18e
jmp 0x43e226
push ebx
call fcn.004334eb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43e18e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43e22e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43e22b
mov edi, dword [edi + 0x18]
jmp 0x43e22e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043375c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441220
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44124d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44124d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x443aa0
Capabilities:
Accept command line arguments

Disassembly:
push 0x9c
mov eax, 0x452d9b
call fcn.0041c201
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
xor ecx, ecx
push 7
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
pop edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x88]
call fcn.00401b54
mov byte [ebp - 4], 1
call fcn.004452f7
push eax
lea ecx, [ebp - 0x70]
call fcn.00405622
push 0x37
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x47515c
call fcn.00407fa3
mov esi, eax
push 0x4676b8
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00401be4
pop ecx
push esi
push eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
push dword [ebp - 0xa4]
call fcn.00407b0e
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401b1d
lea ecx, [ebp - 0x58]
call fcn.004025cb
lea ecx, [ebp - 0x40]
call fcn.004025cb
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.004025cb
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
push 0x460b54
cmova eax, dword [ebp - 0x28]
push eax
call fcn.00421c83
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x443bf9
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x58]
call fcn.0040a0c9
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
push esi
push dword [ebp - 0x48]
cmova eax, dword [ebp - 0x58]
push 1
push eax
call fcn.00421f62
push esi
push 1
push 1
push 0x467718
call fcn.00421f62
add esp, 0x20
lea ecx, [ebp - 0x40]
mov edx, 0x49922c
call fcn.0040a0c9
cmp dword [ebp - 0x30], 0
je 0x443be2
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push esi
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push 1
push eax
call fcn.00421f62
add esp, 0x10
push esi
call fcn.004220c1
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004022be
lea ecx, [ebp - 0x58]
call fcn.004022be
lea ecx, [ebp - 0x70]
call fcn.004025cb
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.004025cb
call fcn.00445103
cmp dword [0x499288], edi
mov esi, 0x499274
push ecx
mov eax, esi
mov ecx, esp
cmova eax, dword [0x499274]
push eax
call fcn.00406979
mov ecx, dword [0x499520]
call fcn.004477ac
pop ecx
test eax, eax
je 0x443c48
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x499288], edi
cmova esi, dword [0x499274]
push esi
call fcn.004273f1
cmp dword [ebp - 0x18], 0
pop ecx
je 0x443c8e
cmp dword [ebp - 0x14], edi
lea ecx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
call fcn.004085da
test al, al
je 0x443c8e
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.004273f1
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, edi
jbe 0x443cdc
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], ecx
cmp eax, 0x1000
jb 0x443cd3
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040257b
mov eax, dword [ebp - 0xa8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa4]
push eax
push ecx
call fcn.0041b8d3
pop ecx
pop ecx
call fcn.0041c1b0
ret
Function at 0x4443bd
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push 0x464
mov eax, 0x452f3c
call fcn.0041c201
mov esi, ecx
mov ecx, dword [esi]
call fcn.0044769f
mov edx, dword [esi]
lea ecx, [ebp - 0x448]
mov ebx, eax
call fcn.004476bd
lea eax, [ebp - 0x470]
xor esi, esi
push eax
mov dword [ebp - 4], esi
push ebx
mov dword [ebp - 0x470], esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x464], esi
push 0x1c
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x47515c
call fcn.00407fa3
mov ecx, eax
push 7
pop edx
cmp dword [ecx + 0x14], edx
jbe 0x444432
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x46c]
cmp eax, dword [ebp - 0x468]
je 0x444446
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x470]
lea edi, [ebp - 0x42c]
mov dword [ebp - 0x430], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], edx
mov word [ebp - 0x42c], ax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x414], eax
test ecx, ecx
je 0x444493
push ecx
lea ecx, [ebp - 0x42c]
call fcn.004022f4
lea eax, [ebp - 0x430]
push eax
push 0x410d5d
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x468]
lea ecx, [ebp - 0x42c]
sub esi, dword [ebp - 0x46c]
sar esi, 2
call fcn.004025cb
lea ecx, [ebp - 0x460]
call fcn.004025cb
cmp esi, 1
jle 0x44455f
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0041d5f0
mov esi, dword [ebp - 0x46c]
add esp, 0xc
jmp 0x444551
push 0x200
lea eax, [ebp - 0x410]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [ebp - 0x434], 7
lea eax, [ebp - 0x448]
lea ecx, [ebp - 0x410]
cmova eax, dword [ebp - 0x448]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x444545
test dx, dx
je 0x444541
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x444545
add ecx, 4
add eax, 4
test dx, dx
jne 0x44451f
xor eax, eax
jmp 0x44454a
sbb eax, eax
or eax, 1
test eax, eax
je 0x44455b
add esi, 4
cmp esi, dword [ebp - 0x468]
jne 0x4444f1
jmp 0x444576
mov ebx, dword [esi]
jmp 0x444576
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x46c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x444576
mov ebx, dword [ecx]
lea ecx, [ebp - 0x46c]
call fcn.00402b03
lea ecx, [ebp - 0x448]
call fcn.004025cb
mov eax, ebx
call fcn.0041c1b0
ret
Function at 0x444bb4
Capabilities:
Create thread

Disassembly:
push 0x5c
mov eax, 0x453085
call fcn.0041c26d
cmp byte [0x4995dd], 0
jne 0x444c31
xor esi, esi
lea eax, [ebp - 0x48]
push eax
push esi
push 0x4991e0
push 0x4030a1
push esi
push esi
mov dword [0x499548], esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], esi
call fcn.0044afb0
or dword [ebp - 4], 0xffffffff
mov dword [0x499548], eax
jmp 0x444c0a
cmp dword [ebp - 0x48], 0
je 0x444c28
push esi
push esi
push 0x502
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x499548], 0
je 0x444c37
call fcn.0041c1bf
ret
lea ecx, [ebp - 0x2c]
call fcn.0040215b
mov dword [ebp - 4], 2
call fcn.004070b9
test al, al
lea eax, [ebp - 0x44]
je 0x444c77
push 0x2b
push 0x13
push eax
call fcn.0044412d
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401b93
lea ecx, [ebp - 0x44]
call fcn.004022e4
lea ecx, [ebp - 0x2c]
call fcn.00449e19
jmp 0x444c92
push 0x29
push 0x11
push eax
call fcn.0044412d
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401b93
lea ecx, [ebp - 0x44]
call fcn.004022e4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040554d
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x68]
call fcn.00404aff
push 0x46dacc
lea eax, [ebp - 0x68]
push eax
call fcn.0041f27e
int3

Function at 0x444cbd
Capabilities:
Create thread

Disassembly:
push esi
call fcn.004222cf
cmp byte [0x4995dd], 0
mov esi, eax
jne 0x444d1a
cmp dword [0x499544], 0
jne 0x444d1a
cmp word [0x4995e6], 3
push edi
mov edi, 0x4995e0
jne 0x444cfe
mov ecx, edi
call fcn.00402292
test al, 1
je 0x444cfe
mov eax, dword [0x4992f0]
shr eax, 9
test al, 1
je 0x444d19
push 0x49954c
xor eax, eax
push eax
push edi
push 0x4058b1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x499550], eax
pop edi
mov eax, esi
pop esi
ret
Function at 0x444de4
Capabilities:
Check mutex on windows

Disassembly:
push 0x64
mov eax, 0x453115
call fcn.0041c201
mov eax, dword [0x4992f0]
shr eax, 0xe
test al, 1
je 0x444e87
push 0x4991f8
lea ecx, [ebp - 0x28]
call fcn.00405622
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 0x4676f0
call fcn.00401b54
push 0x4676b8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401b54
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.0040a341
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004025cb
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004025cb
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x499554], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x444e8d
lea ecx, [ebp - 0x28]
call fcn.004025cb
call fcn.0041c1b0
ret
push 0x2e
push 0x29
lea eax, [ebp - 0x70]
push eax
call fcn.0044412d
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00449e19
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040554d
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x50]
call fcn.00404aff
push 0x46dacc
lea eax, [ebp - 0x50]
push eax
call fcn.0041f27e
int3

Function at 0x4452f7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x499220], 0
push esi
mov esi, 0x499210
jne 0x445412
push ebx
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.004022f4
cmp dword [0x499224], 7
mov eax, esi
cmova eax, dword [0x499210]
xor ebx, ebx
push ebx
push eax
call fcn.00426f68
pop ecx
pop ecx
test eax, eax
je 0x445370
push 0x460bc4
mov ecx, esi
call fcn.004022f4
mov ecx, esi
call fcn.004089b4
cmp dword [0x499220], ebx
je 0x445395
cmp dword [0x499224], 7
mov eax, esi
push ebx
cmova eax, dword [0x499210]
push eax
call fcn.00426f68
pop ecx
pop ecx
test eax, eax
je 0x4453a8
push str.TEMP
call fcn.004279b3
pop ecx
push eax
mov ecx, esi
call fcn.004022f4
cmp dword [0x499220], ebx
je 0x4453cd
cmp dword [0x499224], 7
mov eax, esi
push ebx
cmova eax, dword [0x499210]
push eax
call fcn.00426f68
pop ecx
pop ecx
test eax, eax
je 0x4453e0
push 0x4676e8
call fcn.004279b3
pop ecx
push eax
mov ecx, esi
call fcn.004022f4
cmp dword [0x499220], ebx
je 0x445405
cmp dword [0x499224], 7
mov eax, esi
push ebx
cmova eax, dword [0x499210]
push eax
call fcn.00426f68
pop ecx
pop ecx
test eax, eax
je 0x445411
push 0x4991e0
mov ecx, esi
call fcn.00405658
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041b8c5
leave
ret
Function at 0x44915d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x471040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
cmp dword [esi + 0xc], 0x201
jne 0x44924e
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041d5f0
mov eax, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x44b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], eax
xor eax, eax
push 7
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
lea edi, [ebp - 0x234]
pop ecx
mov dword [ebp - 0x254], 0x3c
mov dword [ebp - 0x238], 5
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebx + 0x44]
call dword [sym.imp.USER32.dll_HideCaret]
mov eax, dword [ebx + 0xb8]
pop edi
cmp eax, dword [ebx + 0xbc]
je 0x449251
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x449251
and dword [eax], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b8c5
leave
ret 0xc
Function at 0x44ea80
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x44ea9d
mov eax, dword [esi]
test eax, eax
je 0x44ebc1
cmp word [eax], 0
je 0x44ebc1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44ebc1
test al, 0x10
jne 0x44ebc1
cmp dword [esi + 0x14], 7
jbe 0x44eacf
mov esi, dword [esi]
push 0x467710
push esi
call fcn.00421c83
mov esi, eax
add esp, 8
test esi, esi
je 0x44ebc1
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.004293ab
push 2
push 0
push esi
call fcn.00428a2c
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004293ab
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004298e2
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x44ebb8
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.00428015
add esp, 0x10
test eax, eax
je 0x44ebb8
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x44ebb8
cmp dword [esp + 0x20], 0x48535844
jne 0x44ebb8
cmp dword [esp + 0x24], 0x28
jne 0x44ebb8
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.004220c1
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40193e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401951
push esp
mov dword [ebp - 0x24], 0x4016b5
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019f0
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019d1
pop ebp
ret 0x10

Function at 0x4021b2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 0x84, 0
sub ebp, 0x82
mov esi, eax
mov cl, byte [0x404050]
mov edx, eax
mov ebx, eax
shl edx, cl
mov eax, 0x404054
add edx, dword [0x404050]
call fcn.004020f3
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, esi
or al, 0x40
mov edi, 0x4039aa
push eax
sub edi, fcn.00403144
push edi
push fcn.00403144
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x402229
mov eax, fcn.00403144
mov ebx, esi
mov edx, edi
call fcn.004020f3
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.00402d42
lea edx, [ebp - 2]
mov eax, esi
mov dword [ebp - 2], 0
call fcn.0040151f
lea eax, [esi + 0x1c000]
lea edi, [esi + 1]
imul edi, eax
mov ebx, 0x404054
or bl, 1
xor edx, edx
mov eax, esi
div ebx
lea ebx, [ebp - 2]
add eax, 0x404054
mov edx, edi
call fcn.00403144
lea esp, [ebp + 0x82]
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret