joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405282
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.WinMain_start__lpCmdLine_is:
call esi
mov eax, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x4052a2
mov eax, str.NULL
push eax
call esi
push str.WinMain_start__parameter_is:
call esi
push str.package.nameZoom.msipackage.versionlatestpackage.size8398kdownloadRoothttps:__launcher.zoom.us_clientactionjoinbrowserchromeconfiddGlkPUxYbWtFWWxIVFdXM2xZN3lVZWp0VXc_3Dconfno5414250255zc0mcv0.92.11227.0929stafalseinstaller.exeInstaller.exe
call esi
push 0x444
call fcn.00407475
pop ecx
cmp eax, edi
je 0x4052ce
mov edx, dword [esp + 0xc]
push eax
call fcn.0040538c
jmp 0x4052d0
xor eax, eax
push str.zoom.us_Downloader_Mutex_1.0.0.0
push edi
push 0x1f0001
mov dword [0x41ddb8], eax
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, edi
je 0x4052f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4052fc
call fcn.00406405
test eax, eax
jne 0x40531c
push edi
push str.zoom.us_Boot_Downloader
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x405341
push edi
push edi
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x405341
mov ecx, dword [esp + 0x14]
call fcn.004057bb
mov eax, dword [0x41ddb8]
cmp eax, edi
je 0x405334
push eax
call fcn.00405348
push str.WinMain_end
mov dword [0x41ddb8], edi
call esi
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x56d790
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.ws2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x56d91f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x56d90a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x56d7ec
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56d7e0
sub eax, edx
inc eax
jmp 0x56d7ee
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x56d7ff
lea ebp, [ecx + 0xe]
jmp 0x56d80b
cmp ecx, 0x17
jne 0x56d8ac
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x56d8ac
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x56d8ac
cmp ecx, ebp
jb 0x56d8ac
add eax, 0x20
add eax, ebp
push eax
call dword [0x636024]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x56d8fb
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.005885b0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x56d898
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.005885b0
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x56d8a8
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x56d7d2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x56d8cc
push eax
call dword [sym.imp.ws2_32.dll_freeaddrinfo]
test esi, esi
je 0x56d906
test edi, edi
je 0x56d8eb
mov esi, dword [edi + 0x1c]
push edi
call dword [0x636028]
add esp, 4
mov edi, esi
test esi, esi
jne 0x56d8d4
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x56d8bb
test edi, edi
jne 0x56d916
mov esi, 0x2af9
push esi
call dword [sym.imp.ws2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret

Function at 0x56dd20
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.00597acd
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x56dd46
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x56dd90
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x56de3b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.005566d0
add esp, 0xc
cmp eax, 4
jne 0x56ddf6
cmp byte [0x637270], 0
jne 0x56de02
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x56de3d
mov eax, dword [esp + 0x1c]
jmp 0x56de1f
imul eax, dword [0x63726c], 0x41c64e6d
add eax, 0x3039
mov dword [0x63726c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x56de33
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x56de23
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x56ddb0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x56de50
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x636510]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, edx
push ebx
and eax, 0xfffffffe
lea ebx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x9c]
cmp eax, 0x100
jae 0x56dfb9
test dl, 1
je 0x56dfb9
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x56df63
nop word [eax + eax]
push 4
lea eax, [esp + 0x14]
mov ebx, 4
push eax
push dword [esp + 0x1c]
cmp edi, ebx
cmovb ebx, edi
call fcn.005566d0
add esp, 0xc
cmp eax, 4
jne 0x56df09
cmp byte [0x637270], 0
jne 0x56df19
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x56dfa0
mov eax, dword [esp + 0x10]
jmp 0x56df36
imul eax, dword [0x63726c], 0x41c64e6d
add eax, 0x3039
mov dword [0x63726c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x56df50
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x56df40
mov dword [esp + 0x10], eax
test edi, edi
jne 0x56dec0
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x56dfa0
test edx, edx
je 0x56df9a
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x5bd794]
mov byte [ebp], al
movzx eax, byte [ecx + 0x5bd794]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x56df70
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0058774b
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.0058774b
add esp, 0x8c
ret

Function at 0x56dfe0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.00588b30
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..reloc
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x126416a9
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3bcb10af
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x404010
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x56a2b5f0
push 0
push ebx
call ebp
pop esp
mov dword [ebx + 0x824], 0x5901
mov eax, dword [0x410260]
test eax, eax
jl 0x40403d
lea edx, [edi + 0x10]
push edx
test byte [0xca409e40], dl
add esp, 4
jmp 0x40403f
xor eax, eax
test edi, edi
mov dword [edi + 0x1c], esp
jne 0x403fe1
mov dword [ebx + 0x849], 0xce000001
pop ss
inc ebx
clc
add byte [edi - 0x2c], dh
add byte [ebx + 0x758b6345], cl
out dx, eax
mov edx, dword [ebp - 0xc]
adc byte [ecx - 0x7439d410], al
jae 0x404078
sub esi, dword [eax - 0x1674b7d5]
mov eax, dword [0x3006a08]
ret
add esi, edx
xor dword [ebx + 0x10], 0xffffff8b
or eax, 0x410298
mov eax, esi
add ecx, eax
mov eax, dword [str.mswsock]
xor dword [ecx - 0x7f27700], 0x43
inc ecx
add byte [ebx], dh
jle 0x404083
invalid

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
add al, 0
nop
nop
or dl, byte [eax - 0x6f6f7c70]
stc
mov eax, dword [edx - 0x74f7ba75]
inc eax
adc al, 0x85
rcl byte [ebx + esi*8 + 0x67], 0x4d
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [str.Benchmarking__s]
call esi
test eax, eax
jne 0x40a3fe
pop esi
pop ebp
ret 0x23
aam 0xd6
add eax, 0x960ac580
pop esi
pop ebp
loope 0x40a411
add byte [ebx], dh
rcr byte [ebp + 0x55], 8
add ch, cl
xor eax, eax
pop ebp
push ebp
or byte [eax], al
int 1
aaa
add dword [edi], esi
add byte [eax], al
pop ebp
int1
or byte [eax], al
sub dl, byte [eax - 0x6fbd6fde]
xor al, 0xc3
nop
nop
nop
jo 0x40a3b6
nop
nop
nop
nop
add eax, 0x9090c790
nop
xor cl, dh
in al, dx
fistp qword [0x834108dc]
adc al, 0x7c
and ebp, eax
sub byte [edi], al
inc ecx
add bh, bh
adc eax, sym.imp.KERNEL32.dll_InitializeCriticalSection
mov eax, dword [ebp + 0x66]
push 0x405720
push 0xb048a470
push 0x410728
push eax
call 0x79405600
xor eax, eax
pop ebp
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x15680437
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4f1a5229
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x4100db]
shl eax, 2
mov dword [0x4100df], eax
push edi
push ecx
xor eax, eax
mov edi, 0x412894
mov ecx, 0x412df8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.00405c33
pop ecx
push 0x4100a4
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x4100e3], eax
push 0
jmp fcn.0040fb20
Function at 0x40a21c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.0040e024
pop ecx
mov ebx, eax
test eax, eax
jne 0x40a240
xor eax, eax
jmp 0x40a2e9
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x40a261
cmp esi, 0x104
jb 0x40a26c
push ebx
call fcn.0040df1c
pop ecx
xor eax, eax
jmp 0x40a2e9
cmp byte [ebx + 1], 0x3a
jne 0x40a29c
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 2
jae 0x40a29c
push ebx
call fcn.0040df1c
pop ecx
xor eax, eax
jmp 0x40a2e9
inc esi
test edi, edi
je 0x40a2df
cmp esi, dword [ebp + 0x10]
jbe 0x40a2b1
push ebx
call fcn.0040df1c
pop ecx
xor eax, eax
jmp 0x40a2e9
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.0040df1c
pop ecx
mov eax, edi
jmp 0x40a2e9
push esi
push ebx
call fcn.0040e4b8
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40a2f0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40a335
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
je 0x40a324
cmp eax, dword [ebp + 0x10]
jle 0x40a3be
mov dword [0x412664], 8
xor eax, eax
jmp 0x40a429
cmp dword [0x412d14], 1
jne 0x40a37a
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x40a3be
xor eax, eax
jmp 0x40a429
call sub.KERNEL32.dll_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x40a3ba
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.dll_GetFullPathNameA
jmp 0x40a3be
xor eax, eax
jmp 0x40a429
lea edx, [ebp - 0x10c]
push edx
call fcn.004058cc
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x40a3de
mov dword [0x412664], 0x22
xor eax, eax
jmp 0x40a429
test edi, edi
jne 0x40a400
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040e024
pop ecx
mov edi, eax
test eax, eax
jne 0x40a400
mov dword [0x412664], 8
xor eax, eax
jmp 0x40a429
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a95c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x40a97b
mov eax, dword [0x411890]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x40a988
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x40a9b5
je 0x40a9c7
sub ecx, 0x100
je 0x40a9d5
sub ecx, 0x100
je 0x40a9dc
sub ecx, 0x100
je 0x40a9ce
jmp 0x40a9e3
sub ecx, 0x600
je 0x40a9dc
sub ecx, 0x100
je 0x40a9c7
jmp 0x40a9e3
mov edi, 1
jmp 0x40a9e8
mov edi, 2
jmp 0x40a9e8
mov edi, 4
jmp 0x40a9e8
mov edi, 5
jmp 0x40a9e8
mov edi, 3
test byte [ebp + 0xd], 1
je 0x40aa0f
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x411d98]
test al, 0x80
je 0x40aa08
mov ebx, 0x80
jmp 0x40aa21
mov ebx, 1
jmp 0x40aa21
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40aa21
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x40aa33
je 0x40aa3c
dec eax
je 0x40aa45
jmp 0x40aa4e
mov dword [ebp - 4], 0x80000000
jmp 0x40aa5d
mov dword [ebp - 4], 0x40000000
jmp 0x40aa5d
mov dword [ebp - 4], 0xc0000000
jmp 0x40aa5d
push 1
call fcn.0040a6d4
pop ecx
mov ebx, eax
jmp 0x40ab49
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x40aa79
sub eax, 0x10
je 0x40aa80
sub eax, 0x10
je 0x40aa89
sub eax, 0x10
je 0x40aa92
jmp 0x40aa92
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x40aa99
mov dword [ebp - 8], 1
jmp 0x40aa99
mov dword [ebp - 8], 2
jmp 0x40aa99
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x40ab02
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40aaf7
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x40aaf7
add ebx, 0xffffffb2
push ebx
call fcn.0040a6d4
pop ecx
mov ebx, eax
jmp 0x40ab49
mov edi, esi
push edi
call fcn.0040a8cc
pop ecx
test eax, eax
je 0x40ab16
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x40ab22
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0040a430
add esp, 8
mov ebx, eax
inc eax
jne 0x40ab49
push 4
call fcn.0040a6d4
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e300
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x40e75c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x412668], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x40e814
cmp byte [0x4100da], 0
je 0x40e7ce
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0040d870
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40e7b7
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0040d870
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40e7b7
lea ebx, [ebp - 0x54]
jmp 0x40e7b8
inc ebx
call fcn.0040e714
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x40e835
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x41266c
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004058cc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x41266f
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x40e835
cmp dword [0x412668], 0xffffffff
je 0x40e835
mov eax, dword [0x412668]
test eax, eax
je 0x40e835
cmp byte [eax], 0
je 0x40e835
push esi
push eax
call fcn.0040e8c4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x412da4], 0
jne 0x40f581
cmp dword [0x412dc0], 0
jne 0x40f530
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x412dc0], eax
test eax, eax
jne 0x40f530
push str.GetEnvironmentStrings_failed
call fcn.0040e84c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x412dc0]
jmp 0x40f544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004058cc
pop ecx
mov edi, eax
test eax, eax
jne 0x40f53c
lea edi, [ebp + 1]
push edi
call fcn.0040e024
pop ecx
mov ebx, eax
mov dword [0x412da8], ebx
test ebx, ebx
jne 0x40f56e
xor eax, eax
jmp 0x40f644
push edi
mov edx, dword [0x412dc0]
push edx
push ebx
call fcn.00405730
add esp, 0xc
jmp 0x40f5a1
xor esi, esi
mov ebx, dword [0x412da4]
jmp 0x40f59b
push eax
call fcn.004058cc
pop ecx
test eax, eax
jne 0x40f597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40f58b
lea ebx, [esi + 4]
push 4
mov dword [0x412dac], ebx
inc ebx
push ebx
call fcn.0040d8c8
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40f5c4
xor eax, eax
jmp 0x40f644
cmp dword [0x412da4], 0
jne 0x40f5f5
xor esi, esi
mov ebx, dword [0x412da8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40f5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004058cc
pop ecx
mov edi, eax
test eax, eax
jne 0x40f5dc
jmp 0x40f626
xor esi, esi
mov ebx, dword [0x412da4]
mov eax, dword [esp]
mov edi, eax
jmp 0x40f620
push eax
call fcn.004058cc
pop ecx
test eax, eax
je 0x40f615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40f619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40f604
mov eax, dword [0x412da4]
test eax, eax
je 0x40f636
push eax
call fcn.0040df1c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x412da4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret