joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53ae70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x7d0
push esi
push edi
mov esi, edx
mov edi, ecx
mov edx, 0x3e7
lea ecx, [esp + 8]
call fcn.0041ef30
mov edx, 0x3e7
lea ecx, [esp + 0x3f0]
call fcn.0041ef30
call fcn.0041d5b0
cmp esi, 2
je 0x53af39
xor eax, eax
cmp esi, 1
sete al
mov esi, eax
mov eax, dword [0x59bdd8]
test eax, eax
je 0x53aed6
mov eax, dword [0x59bddc]
test eax, eax
jne 0x53af39
test esi, esi
jne 0x53aed6
push edi
push str.__s_____0x0_0x4_________
lea ecx, [esp + 0x10]
push ecx
jmp 0x53aee1
push edi
push str.__s_____0xFFFFFFFF_0x4_________
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xffffffffffffffff
push 2
lea eax, [esp + 0x3f8]
push eax
lea edx, [esp + 0x14]
mov ecx, str.WWW_OpenURL
call fcn.00467140
test eax, eax
je 0x53af39
mov eax, dword [0x59bddc]
test eax, eax
je 0x53af8f
test esi, esi
jne 0x53af8f
push 0xffffffffffffffff
push 2
lea ecx, [esp + 0x3f8]
push ecx
mov edx, str.0xFFFFFFFF_0x0
mov ecx, str.WWW_Activate
call fcn.00467140
pop edi
pop esi
add esp, 0x7d0
ret
call fcn.00508980
mov al, byte [0x5ae628]
test al, al
push 5
push 0x5a9798
jne 0x53af6c
mov edx, dword [0x5b4314]
push 0
push edi
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
add esp, 0x7d0
ret
mov eax, dword [0x5b4314]
push edi
push 0x5ae628
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x53af8f
xor ecx, ecx
call fcn.0041d520
pop edi
pop esi
add esp, 0x7d0
ret

Function at 0x53bb90
Capabilities:
Capture screenshot
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
xor ecx, ecx
call fcn.00531d40
mov ecx, dword [0x5b4324]
test ecx, ecx
je 0x53bba8
xor edx, edx
jmp fcn.004973e0
call fcn.004e27f0
test eax, eax
jne 0x53bbb8
xor ecx, ecx
jmp fcn.0041d520
push eax
push 0
push 0
mov edx, 6
mov ecx, 0x5890f0
call fcn.00548f10
test eax, eax
mov dword [0x5b4324], eax
je 0x53bbdf
mov ecx, 0x583b74
jmp fcn.0053b910
ret
Function at 0x54bf90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x578
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x54bfb6
mov eax, 1
add esp, 0x578
ret
mov ecx, eax
call fcn.0054a5a0
push eax
xor edx, edx
mov ecx, 0x177e
call fcn.0041d620
push eax
lea ecx, [esp + 0x198]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 0
push 0
push 4
push 3
push 0
lea edx, [esp + 0x1ac]
push edx
mov edx, 0x59c030
xor ecx, ecx
call fcn.004b7c00
xor eax, eax
add esp, 0x578
ret

Function at 0x54c010
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
call fcn.004e2760
test eax, eax
je 0x54c11d
mov edx, esi
mov ecx, 4
call fcn.004b5390
mov eax, dword [esi + 0x908]
test eax, eax
je 0x54c03d
mov ecx, esi
call fcn.0054ac40
push ebx
lea ebx, [esi + 0x1c]
push edi
mov edx, 0x400
mov ecx, ebx
call fcn.0041ef30
lea edi, [esi + 0x1124]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x54c071
push esi
push eax
xor edx, edx
xor ecx, ecx
call fcn.0054afb0
pop edi
pop ebx
xor eax, eax
pop esi
ret
mov eax, dword [0x5a8b64]
test eax, eax
je 0x54c0bb
mov eax, dword [0x5a8b5c]
test eax, eax
je 0x54c0bb
mov ecx, dword [esi + 8]
call fcn.00488360
mov ecx, edi
call fcn.004881d0
test eax, eax
jne 0x54c0bb
mov eax, dword [esi + 8]
push esi
push eax
push 0
add esi, 0x10c0
push esi
call fcn.005705cb
add esp, 4
mov edx, eax
mov ecx, edi
call fcn.0048a3e0
pop edi
pop ebx
xor eax, eax
pop esi
ret
mov ecx, dword [0x5b4314]
push 0x400
push ebx
push edi
push 0x800c
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByName]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x54c11b
mov eax, dword [esi + 0x41c]
test eax, eax
jne 0x54c11b
mov eax, dword [esi + 0x420]
test eax, eax
je 0x54c0f9
mov dword [esi + 0x830], 3
lea edi, [esi + 0x444]
mov edx, edi
mov ecx, 0x1779
call fcn.0041d620
mov ecx, esi
call fcn.0054a7d0
mov edx, esi
mov ecx, edi
call fcn.0054a630
pop edi
pop ebx
xor eax, eax
pop esi
ret
Function at 0x54cfb1
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0xca
jne 0x54cfda
call fcn.0054e58c
cmp byte [esi + 0x40], 0
je 0x54cfd3
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x54d049
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x54d03e
mov eax, dword [esi + 8]
test eax, eax
je 0x54cffb
mov ecx, esi
call dword [eax]
mov eax, dword [esi + 0x190]
mov ecx, esi
call dword [eax]
test eax, eax
je 0x54d03a
cmp eax, 2
je 0x54d03e
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x54cff0
cmp eax, 3
je 0x54d01f
cmp eax, 1
jne 0x54cff0
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x54cff0
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x54cff0
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x54d067
cmp eax, 0xcc
je 0x54d067
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
call fcn.0054ce82
pop esi
ret
Function at 0x55fcc0
Capabilities:
Parse credit card information

Disassembly:
sub esp, 0xc4
mov eax, dword [esp + 0xd0]
push ebx
mov ebx, dword [esp + 0xd0]
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ebp, ecx
lea ecx, [eax + 1]
mov dword [ebx], ecx
cmp eax, dword [ebx + 4]
push esi
mov esi, edx
jb 0x55fcfc
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0xc4
ret 0x14
test byte [esp + 0xe4], 2
je 0x55fd20
mov edx, dword [esp + 0xe0]
lea eax, [esp + 0x50]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ebp
mov dword [esp + 0xe0], eax
push edi
mov cl, byte [esi]
movzx eax, cl
mov edi, eax
xor edx, edx
cmp edi, 0x4c
mov dword [esp + 0x24], edx
jle 0x55fd65
lea edx, [edi - 0x4c]
cmp edx, 0x96
mov dword [esp + 0x14], edx
jle 0x55fd4e
xor edx, edx
mov dh, byte [esi + 4]
mov dl, byte [esi + 5]
mov dword [esp + 0x14], edx
lea edi, [edx + edx]
cmp edi, dword [ebx + 0x10]
jl 0x561010
mov edx, dword [esp + 0x24]
mov edi, 0x4c
jmp 0x55fd6b
ja 0x561907
movzx edi, byte [edi + 0x5619cc]
jmp dword [edi*4 + 0x56191c]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + edi*4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + edi*4 + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0xc]
sub ecx, edx
mov edx, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x38]
mov edx, ebp
sub edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xd8]
push 2
push eax
push ecx
push ebx
push edx
lea edx, [esi + 3]
mov ecx, ebp
call fcn.0055fcc0
test eax, eax
jne 0x56190c
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov dword [ebx + 0x4c], eax
mov ch, byte [esi + 1]
mov cl, byte [esi + 2]
mov al, byte [esi + ecx]
add esi, ecx
cmp al, 0x3d
je 0x561041
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x1c]
mov dword [edx + edi*4], eax
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x18]
mov dword [ecx + edi*4 + 4], edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
pop edi
sub eax, ecx
mov ecx, dword [ebx + 8]
pop esi
pop ebp
mov dword [ecx + eax*4], edx
xor eax, eax
pop ebx
add esp, 0xc4
ret 0x14
mov eax, 0xfffffffb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret 0x14
Function at 0x56beb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x24]
push esi
mov esi, dword [edi + 0x34]
sub esi, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x56bf35
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00574b20
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x56bef8
mov eax, dword [edi + 0x38]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x56bf1a
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x56bf8e
mov ecx, dword [edi + 0x6c]
add ecx, dword [edi + 0x64]
push esi
add ecx, dword [edi + 0x30]
mov esi, eax
push ecx
call fcn.0056bbff
add dword [edi + 0x6c], eax
mov esi, dword [edi + 0x6c]
cmp esi, 3
jb 0x56bf7a
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp esi, 0x106
jae 0x56bf8e
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x56beb9
pop esi
pop ebx
leave
ret

Function at 0x56de92
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
mov eax, ecx
jne 0x56de9d
xor eax, eax
ret 4
mov ecx, edx
jmp fcn.0056dc3f

Function at 0x5708ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x570909
call fcn.00576aaa
mov dword [eax], 0x16
xor eax, eax
jmp 0x570973
push esi
push 0x88
push 1
call fcn.005735e4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x57095e
push esi
call fcn.00576d8b
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x57093c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x570848
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x570972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.005700aa
test ebx, ebx
pop ecx
je 0x570970
push ebx
call fcn.00576abc
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x572fc3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00575de6
xor esi, esi
inc esi
cmp dword [0x5c45e0], esi
pop ecx
jne 0x572feb
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 [0x5c45dc], esi
mov byte [0x5c45d8], al
jne 0x573051
mov ecx, dword [0x5c5b70]
test ecx, ecx
je 0x573032
mov eax, dword [0x5c5b6c]
sub eax, 4
cmp eax, ecx
jmp 0x57302b
mov eax, dword [eax]
test eax, eax
je 0x57301d
call eax
mov eax, dword [0x5c5b6c]
sub eax, 4
cmp eax, dword [0x5c5b70]
mov dword [0x5c5b6c], eax
jae 0x573015
mov eax, 0x59b028
mov esi, 0x59b030
cmp eax, esi
mov edi, eax
jae 0x573051
mov eax, dword [edi]
test eax, eax
je 0x57304a
call eax
add edi, 4
cmp edi, esi
jb 0x573042
mov eax, 0x59b034
mov esi, 0x59b038
cmp eax, esi
mov edi, eax
jae 0x573070
mov eax, dword [edi]
test eax, eax
je 0x573069
call eax
add edi, 4
cmp edi, esi
jb 0x573061
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x573081
push 8
call fcn.00575d52
jmp 0x573093
push dword [ebp + 8]
mov dword [0x5c45e0], 1
call fcn.00572f1c
pop ecx
pop ebp
ret
Function at 0x574729
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x593220
call fcn.005769a8
mov edi, 0x94
mov eax, edi
call fcn.00571390
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 [0x5c45a0], ecx
mov eax, dword [esi + 4]
mov dword [0x5c45ac], eax
mov edx, dword [esi + 8]
mov dword [0x5c45b0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5c45a4], esi
cmp ecx, 2
je 0x574789
or esi, 0x8000
mov dword [0x5c45a4], esi
shl eax, 8
add eax, edx
mov dword [0x5c45a8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x5747c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5747c4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x5747dc
cmp eax, 0x20b
je 0x5747c9
mov dword [ebp - 0x1c], esi
jmp 0x5747f0
cmp dword [ecx + 0x84], 0xe
jbe 0x5747c4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x5747ea
cmp dword [ecx + 0x74], 0xe
jbe 0x5747c4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00575e31
pop ecx
test eax, eax
jne 0x574804
push 0x1c
call fcn.00574705
pop ecx
call fcn.00576f7a
test eax, eax
jne 0x574815
push 0x10
call fcn.00574705
pop ecx
call fcn.0057b4b4
mov dword [ebp - 4], esi
call fcn.0057aef1
test eax, eax
jge 0x57482e
push 0x1b
call fcn.005746e0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5c5b64], eax
call fcn.0057c81d
mov dword [0x5c4608], eax
call fcn.0057c77b
test eax, eax
jge 0x574854
push 8
call fcn.005746e0
pop ecx
call fcn.0057c548
test eax, eax
jge 0x574865
push 9
call fcn.005746e0
pop ecx
call fcn.00572f5e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x574878
push eax
call fcn.005746e0
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0057c4df
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x574899
movzx eax, word [ebp - 0x34]
jmp 0x57489c
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004df160
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x5748ba
push edi
call fcn.00573096
call fcn.005730b8
jmp 0x5748ec
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.005769e3
ret
Function at 0x57a858
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x57aa1e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5c4a20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x57aa1e
test cl, 0x48
je 0x57a8be
mov al, byte [eax + 5]
cmp al, 0xa
je 0x57a8be
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x57a910
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x57a8f8
call fcn.00576aaa
mov dword [eax], 9
call fcn.00576ab3
mov dword [eax], esi
jmp 0x57a908
cmp eax, 0x6d
je 0x57aa1e
push eax
call fcn.00576abc
pop ecx
or eax, 0xffffffff
jmp 0x57aa20
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x57aa19
test edx, edx
je 0x57a933
cmp byte [ebx], 0xa
jne 0x57a933
or al, 4
jmp 0x57a935
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x57aa13
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x57aa03
cmp al, 0xd
je 0x57a969
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x57a9f5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x57a983
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x57a97e
add dword [ebp + 0x10], 2
jmp 0x57a9d7
mov dword [ebp + 0x10], eax
jmp 0x57a9f1
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x57a9ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x57a9f1
cmp dword [ebp - 0xc], 0
je 0x57a9f1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x57a9cc
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x57a9d7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x57a9f4
cmp ebx, dword [ebp + 0xc]
jne 0x57a9dc
cmp byte [ebp - 1], 0xa
jne 0x57a9dc
mov byte [ebx], 0xa
jmp 0x57a9f4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0057aad0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x57a9f5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x57a94d
jmp 0x57aa13
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x57aa13
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x57aa20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57abef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x59daa0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x57ac18
xor eax, eax
jmp 0x57ad86
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5c4a20]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x57ac4b
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0057f930
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x57ad1d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x57ad58
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x57aca6
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x57ac97
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x57ac7a
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x57ace6
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x57acef
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x57ac6b
jmp 0x57acf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x57ad81
cmp dword [ebp - 8], edi
je 0x57ad58
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x57ad4a
call fcn.00576aaa
mov dword [eax], 9
call fcn.00576ab3
mov dword [eax], esi
jmp 0x57ad53
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x57ad3f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x57acf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x57acf1
push dword [ebp - 8]
call fcn.00576abc
pop ecx
or eax, 0xffffffff
jmp 0x57ad84
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x57ad6d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x57ad6d
xor eax, eax
jmp 0x57ad84
call fcn.00576aaa
mov dword [eax], 0x1c
call fcn.00576ab3
mov dword [eax], edi
jmp 0x57ad53
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00578069
leave
ret
Function at 0x57c057
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x57c0c2
push 0x3d
push dword [ebp + 8]
call fcn.0057ffa3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x57c0c2
cmp dword [ebp + 8], esi
je 0x57c0c2
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x5c45c0]
cmp eax, dword [0x5c45c4]
jne 0x57c0a8
mov edi, eax
call fcn.0057bff6
mov dword [0x5c45c0], eax
cmp eax, ebx
jne 0x57c101
cmp dword [ebp + 0xc], ebx
je 0x57c0ca
cmp dword [0x5c45c8], ebx
je 0x57c0ca
call fcn.0057b58a
test eax, eax
je 0x57c101
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x57c205
push 4
call fcn.00570098
cmp eax, ebx
pop ecx
mov dword [0x5c45c0], eax
je 0x57c0c2
mov dword [eax], ebx
cmp dword [0x5c45c8], ebx
jne 0x57c101
push 4
call fcn.00570098
cmp eax, ebx
pop ecx
mov dword [0x5c45c8], eax
je 0x57c0c2
mov dword [eax], ebx
mov ebx, dword [0x5c45c0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0057bfa9
mov edi, eax
test edi, edi
pop ecx
jl 0x57c15a
cmp dword [ebx], 0
je 0x57c15a
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.005700aa
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x57c142
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x57c190
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x57c139
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00571c26
test eax, eax
pop ecx
pop ecx
je 0x57c190
jmp 0x57c18b
cmp dword [ebp - 4], 0
jne 0x57c1fe
test edi, edi
jge 0x57c16a
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00571c26
test eax, eax
pop ecx
pop ecx
je 0x57c0c2
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x5c45c0], eax
cmp dword [ebp + 0xc], 0
je 0x57c1e7
push dword [ebp + 8]
call fcn.00575280
inc eax
inc eax
push eax
call fcn.00570098
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x57c1e7
push dword [ebp + 8]
push esi
call fcn.00575310
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x57c1e0
or dword [ebp - 8], 0xffffffff
push esi
call fcn.005700aa
pop ecx
cmp dword [ebp - 4], 0
je 0x57c1f6
push dword [ebp + 8]
call fcn.005700aa
pop ecx
mov eax, dword [ebp - 8]
jmp 0x57c0c5
push esi
call fcn.005700aa
pop ecx
xor eax, eax
jmp 0x57c0c5
Function at 0x57c25e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00571390
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x57c2f3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x5c45a0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x57c2f3
cmp eax, 1
je 0x57c30b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x57c2f3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x57c2c8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x57c2ef
xor eax, eax
inc eax
jmp 0x57c327
cmp esi, ebx
jae 0x57c2f7
xor eax, eax
jmp 0x57c327
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5c45a0]
jmp 0x57c30d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret