joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401870
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x40b050]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x114], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x4092c0
call fcn.00401130
add esp, 8
push ebx
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x4018f5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018e2
sub eax, edx
mov dword [esp + 0xc], eax
jne 0x4019c6
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x409294
call fcn.00401130
add esp, 8
push ebx
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x401944
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401931
sub eax, edx
mov dword [esp + 0xc], eax
jne 0x4019c6
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x409254
call fcn.00401130
add esp, 8
push ebx
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x4019de
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401980
sub eax, edx
mov dword [esp + 0xc], eax
je 0x4019de
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401990
mov edx, dword [str.LOCALS1Temp]
mov edi, esi
mov dword [edi], edx
mov eax, dword [0x409248]
mov dword [edi + 4], eax
mov ecx, dword [0x40924c]
mov dword [edi + 8], ecx
mov dx, word [0x409250]
mov word [edi + 0xc], dx
mov al, byte [0x409252]
mov byte [edi + 0xe], al
mov eax, 1
mov ecx, dword [esp + 0x11c]
call fcn.00401f3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x11c]
xor eax, eax
call fcn.00401f3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40267f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4099e0
call fcn.00402a0c
mov edi, 0x94
mov eax, edi
call fcn.00401f50
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 [0x40c1a8], ecx
mov eax, dword [esi + 4]
mov dword [0x40c1b4], eax
mov edx, dword [esi + 8]
mov dword [0x40c1b8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40c1ac], esi
cmp ecx, 2
je 0x4026df
or esi, 0x8000
mov dword [0x40c1ac], esi
shl eax, 8
add eax, edx
mov dword [0x40c1b0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40271a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40271a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402732
cmp eax, 0x20b
je 0x40271f
mov dword [ebp - 0x1c], esi
jmp 0x402746
cmp dword [ecx + 0x84], 0xe
jbe 0x40271a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402740
cmp dword [ecx + 0x74], 0xe
jbe 0x40271a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00404aa5
pop ecx
test eax, eax
jne 0x402772
cmp dword [0x40c17c], 1
jne 0x40275f
call fcn.0040425a
push 0x1c
call fcn.004040e3
push 0xff
call fcn.00403f48
pop ecx
pop ecx
call fcn.00404a03
mov dword [ebp - 4], esi
call fcn.00404858
test eax, eax
jge 0x40278b
push 0x1b
call fcn.0040265a
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x40d754], eax
call fcn.00404736
mov dword [0x40c174], eax
call fcn.00404694
test eax, eax
jge 0x4027b1
push 8
call fcn.0040265a
pop ecx
call fcn.00404461
test eax, eax
jge 0x4027c2
push 9
call fcn.0040265a
pop ecx
push 1
call fcn.00403f78
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4027d8
push eax
call fcn.0040265a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00404404
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4027f9
movzx eax, word [ebp - 0x40]
jmp 0x4027fc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401e20
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40281a
push edi
call fcn.004040a3
call fcn.004040c5
jmp 0x40284c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402a47
ret
Function at 0x403fe2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40c1e8], esi
push edi
jne 0x404002
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40c1e4], esi
mov byte [0x40c1e0], al
jne 0x404068
mov ecx, dword [0x40d748]
test ecx, ecx
je 0x404049
mov eax, dword [0x40d744]
sub eax, 4
cmp eax, ecx
jmp 0x404042
mov eax, dword [eax]
test eax, eax
je 0x404034
call eax
mov eax, dword [0x40d744]
sub eax, 4
cmp eax, dword [0x40d748]
mov dword [0x40d744], eax
jae 0x40402c
mov eax, 0x40b024
mov esi, 0x40b02c
cmp eax, esi
mov edi, eax
jae 0x404068
mov eax, dword [edi]
test eax, eax
je 0x404061
call eax
add edi, 4
cmp edi, esi
jb 0x404059
mov eax, 0x40b030
mov esi, 0x40b038
cmp eax, esi
mov edi, eax
jae 0x404087
mov eax, dword [edi]
test eax, eax
je 0x404080
call eax
add edi, 4
cmp edi, esi
jb 0x404078
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4040a1
push dword [ebp + 8]
mov dword [0x40c1e8], 1
call fcn.00403f48
pop ebp
ret

Function at 0x4040e3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40b050]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40b0b8]
je 0x404118
inc eax
cmp eax, 0x13
jb 0x404109
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b0b8]
jne 0x40423e
mov eax, dword [0x40c17c]
cmp eax, 1
je 0x404216
cmp eax, edx
jne 0x404148
cmp dword [0x40b098], 1
je 0x404216
cmp ecx, 0xfc
je 0x40423e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40417e
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404bf0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404e20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4041b2
mov eax, edi
push eax
call fcn.00404e20
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x409a24
push edi
call fcn.00404cf0
add esp, 0x10
push edi
call fcn.00404e20
push dword [esi + 0x40b0bc]
mov ebx, eax
call fcn.00404e20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401f50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404bf0
push edi
push ebx
call fcn.00404c00
push 0x409a20
push ebx
call fcn.00404c00
push dword [esi + 0x40b0bc]
push ebx
call fcn.00404c00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404af6
add esp, 0x2c
jmp 0x40423e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40b0bc]
push dword [esi]
call fcn.00404e20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00401f3f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404af6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40c304], ebx
push esi
push edi
jne 0x404b76
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404bb1
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40c304], eax
je 0x404bb1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40c308], eax
call esi
cmp dword [0x40c1a8], 2
mov dword [0x40c30c], eax
jne 0x404b76
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40c314], eax
je 0x404b76
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40c310], eax
mov eax, dword [0x40c310]
test eax, eax
je 0x404bbb
call eax
test eax, eax
je 0x404ba2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40c314]
test eax, eax
je 0x404ba2
test byte [ebp - 8], 1
jne 0x404bbb
cmp dword [0x40c1b4], 4
jb 0x404bb5
or byte [ebp + 0x12], 0x20
jmp 0x404bda
xor eax, eax
jmp 0x404bea
or byte [ebp + 0x12], 4
jmp 0x404bda
mov eax, dword [0x40c308]
test eax, eax
je 0x404bda
call eax
mov ebx, eax
test ebx, ebx
je 0x404bda
mov eax, dword [0x40c30c]
test eax, eax
je 0x404bda
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40c304]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404eab
Capabilities:
Parse pe header

Disassembly:
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 0x404ed9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x404ee0
cmp ebx, dword [eax + 4]
jae 0x404ee0
xor eax, eax
jmp 0x4050d0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404ef1
xor eax, eax
inc eax
jmp 0x4050cf
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404f07
cmp ecx, edx
jae 0x40504c
cmp dword [eax + 4], 0
je 0x404f10
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404ef8
cmp dword [ebp + 8], 0
je 0x404f32
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40504c
cmp eax, esi
jae 0x40504c
mov eax, dword [0x40c318]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x404f57
cmp dword [esi*4 + 0x40c320], edi
je 0x405050
inc esi
cmp esi, eax
jl 0x404f45
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4050cc
cmp dword [ebp - 8], 0x1000000
jne 0x4050cc
test byte [ebp - 0xc], 0xcc
je 0x404fd5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4050cc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4050cc
cmp word [eax + 0x18], 0x10b
jne 0x4050cc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4050cc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404fd5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404fd5
test byte [ecx + 0x27], 0x80
jne 0x40504c
push 1
push 0x40c360
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x404ee9
mov ecx, dword [0x40c318]
test ecx, ecx
mov edx, ecx
jle 0x405009
lea eax, [ecx*4 + 0x40c31c]
cmp dword [eax], edi
je 0x405009
dec edx
sub eax, 4
test edx, edx
jg 0x404ffd
test edx, edx
jne 0x40503a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405016
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40502e
lea eax, [edx*4 + 0x40c320]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40501c
cmp ecx, 0x10
jge 0x40503a
inc ecx
mov dword [0x40c318], ecx
push 0
push 0x40c360
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x404ee9
xor eax, eax
jmp 0x4050cf
test esi, esi
jle 0x404ee9
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x40c360
call ebx
test eax, eax
jne 0x404ee9
cmp dword [esi*4 + 0x40c320], edi
je 0x4050a6
mov eax, dword [0x40c318]
lea esi, [eax - 1]
test esi, esi
jl 0x405094
cmp dword [esi*4 + 0x40c320], edi
je 0x405090
dec esi
jns 0x405084
test esi, esi
jge 0x4050a4
cmp eax, 0x10
jge 0x40509f
inc eax
mov dword [0x40c318], eax
lea esi, [eax - 1]
jmp 0x4050a6
je 0x4050be
xor ecx, ecx
test esi, esi
jl 0x4050be
lea eax, [ecx*4 + 0x40c320]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4050ac
push 0
push 0x40c360
call ebx
jmp 0x404ee9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406031
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40d628]
mov eax, dword [0x40b050]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x4061f7
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40d640]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x4061f7
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40609b
xor eax, eax
jmp 0x40620b
test al, 0x20
je 0x4060ac
push 2
push edi
push edi
push ecx
call fcn.00406f64
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406181
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4061c8
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40610e
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4060ff
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4060e1
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40614e
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40615a
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4060d5
jmp 0x40615c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4061f2
cmp dword [ebp + 0x3a4], edi
je 0x4061c8
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4061ba
mov dword [0x40c1a0], eax
jmp 0x4061fe
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4061ac
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40615c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40615c
push dword [ebp + 0x3a4]
call fcn.00406e4f
pop ecx
jmp 0x406208
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4061e0
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x406094
mov dword [0x40c19c], 0x1c
mov dword [0x40c1a0], edi
jmp 0x406208
sub eax, dword [ebp - 0x7c]
jmp 0x40620b
and dword [0x40c1a0], 0
mov dword [0x40c19c], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00401f3f
add ebp, 0x39c
leave
ret
Function at 0x407c39
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00401f50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x407cd4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40c1a8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407cd4
cmp eax, 1
je 0x407cf5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x407cd4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407ca1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407cd0
xor eax, eax
inc eax
jmp 0x407d14
cmp edi, eax
jae 0x407cd8
xor eax, eax
jmp 0x407d14
cmp eax, esi
jae 0x407cdf
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x40c1a8]
jmp 0x407cf8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x527df4
Capabilities:
Encrypt data using des

Disassembly:
push esi
push edi
add esp, 0xfffffff4
mov byte [esp], dl
mov edi, eax
lea eax, [esp + 1]
xor ecx, ecx
mov edx, 8
call fcn.00404c54
xor edx, edx
mov esi, 0x625494
movzx eax, byte [esp]
add eax, eax
add eax, eax
add eax, eax
movzx eax, byte [esi + eax*8]
dec eax
movzx ecx, al
shr ecx, 3
movzx ecx, byte [edi + ecx]
and al, 7
movzx eax, al
and cl, byte [eax + 0x625794]
test cl, cl
je 0x527e55
mov eax, edx
and al, 7
movzx eax, al
movzx eax, byte [eax + 0x625794]
movzx ecx, dl
shr ecx, 3
or byte [esp + ecx + 1], al
inc edx
inc esi
cmp dl, 0x40
jne 0x527e15
mov edx, edi
lea eax, [esp + 1]
mov ecx, 8
call fcn.00404460
add esp, 0xc
pop edi
pop esi
ret

Function at 0x527e74
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov esi, eax
mov edi, 0x625794
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 8
call fcn.00404c54
lea eax, [esp + 0xc]
xor ecx, ecx
mov edx, 8
call fcn.00404c54
xor ecx, ecx
mov ebx, 0x625744
movzx eax, byte [ebx]
add eax, 0x1f
mov edx, eax
shr edx, 3
movzx edx, byte [esi + edx]
and eax, 7
and dl, byte [edi + eax]
test dl, dl
je 0x527eea
movzx ebp, cl
mov eax, ebp
push ecx
mov ecx, 6
xor edx, edx
div ecx
pop ecx
movzx eax, byte [edi + edx]
push eax
mov eax, ebp
mov ebp, 6
xor edx, edx
div ebp
pop edx
or byte [esp + eax + 4], dl
inc ecx
inc ebx
cmp cl, 0x30
jne 0x527eac
mov cl, 8
mov eax, dword [esp]
lea edx, [esp + 4]
movzx ebx, byte [eax]
xor byte [edx], bl
inc edx
inc eax
dec cl
jne 0x527efa
xor ecx, ecx
lea eax, [esp + 4]
movzx edx, cl
mov ebx, edx
and ebx, 1
test bl, bl
je 0x527f3c
movzx ebx, byte [eax]
shr ebx, 2
mov ebp, edx
add ebp, 2
add ebp, ebp
add ebp, ebp
add ebp, ebp
lea ebp, [ebp*8 + 0x625494]
movzx ebx, byte [ebp + ebx]
shr edx, 1
add byte [esp + edx + 0xc], bl
jmp 0x527f62
movzx ebx, byte [eax]
shr ebx, 2
mov ebp, edx
add ebp, 2
add ebp, ebp
add ebp, ebp
add ebp, ebp
lea ebp, [ebp*8 + 0x625494]
movzx ebx, byte [ebp + ebx]
shl ebx, 4
shr edx, 1
mov byte [esp + edx + 0xc], bl
inc ecx
inc eax
cmp cl, 8
jne 0x527f0b
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 8
call fcn.00404c54
xor ecx, ecx
mov edx, 0x625774
movzx eax, byte [edx]
dec eax
mov ebx, eax
shr ebx, 3
movzx ebx, byte [esp + ebx + 0xc]
and eax, 7
and bl, byte [edi + eax]
test bl, bl
je 0x527fad
mov eax, ecx
and al, 7
movzx eax, al
movzx eax, byte [edi + eax]
movzx ebx, cl
shr ebx, 3
or byte [esp + ebx + 4], al
inc ecx
inc edx
cmp cl, 0x20
jne 0x527f80
movzx eax, byte [esp + 4]
xor byte [esi], al
movzx eax, byte [esp + 5]
xor byte [esi + 1], al
movzx eax, byte [esp + 6]
xor byte [esi + 2], al
movzx eax, byte [esp + 7]
xor byte [esi + 3], al
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x528c08
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ecx, eax
mov ebx, dword [ebp + 8]
dec ebx
test ebx, ebx
jl 0x528c3d
inc ebx
mov eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xffffff
movzx esi, byte [eax]
xor ecx, esi
and ecx, 0xff
xor edx, dword [ecx*4 + 0x6324c0]
mov ecx, edx
inc eax
dec ebx
jne 0x528c1a
mov eax, ecx
pop esi
pop ebx
pop ebp
ret 4
Function at 0x401dd8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0xc]
sub edi, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
mov edx, dword [esi]
push 1
xor ebx, ebx
push edi
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x6c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xe8]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x401f11
push eax
call fcn.004241f5
mov ebx, eax
test ebx, ebx
pop ecx
je 0x401ede
mov eax, dword [ebx + 0x10]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x401e52
lea eax, [ebx + 0x14]
push eax
call fcn.0041c440
movzx eax, word [ebp + 0xc]
movzx edi, di
shl edi, 0x10
or edi, eax
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.00424436
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0xe8], eax
jne 0x401ea8
mov ecx, dword [ebx + 0x40]
xor eax, eax
cmp ecx, eax
je 0x401e9a
cmp word [ecx], ax
je 0x401e9a
push 1
push eax
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401ede
cmp dword [ebx + 0x10], eax
je 0x401ede
mov dword [ebp - 4], 1
jmp 0x401ede
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x401ec7
lea eax, [ebx + 0x14]
push eax
call fcn.0041c440
push edi
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.00424436
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0xe8], ecx
je 0x401eef
push 0x67
jmp 0x401f0a
cmp dword [ebp - 8], ecx
je 0x401f11
cmp dword [ebp - 0xc], ecx
je 0x401f11
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0xe4]
cmp edx, dword [eax]
jne 0x401f08
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.00401a39
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403502
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
lea eax, [ebp + 8]
call fcn.00423484
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.0040ae0b
mov esi, dword [ebp + 8]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea eax, [esi - 0x10]
call fcn.00401023
pop esi
leave
ret 4