joyce8/EMBER2024-capa huggingface dataset:
Function at 0x554170
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
push edi
push 0
push 0
push 0x18b
mov esi, ecx
push 0x6d
push esi
call ebp
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x554235
test eax, eax
jle 0x554235
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 8
push 0x6e
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 8
push 0x6d
push esi
call edi
push eax
call ebx
push 8
push 0x6f
push esi
call edi
push eax
call ebx
push 8
push 0x70
push esi
call edi
push eax
call ebx
push 0
push 0
push 0x190
push 0x6d
push esi
call ebp
cmp eax, 0xffffffff
je 0x554215
test eax, eax
jle 0x554215
cmp dword [esp + 0x10], eax
jne 0x5541f5
push 0
jmp 0x5541f7
push 1
push 0x6f
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 1
push 0x70
push esi
call edi
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push 0x6f
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x70
push esi
call edi
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x6e
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x6d
push esi
call edi
push eax
call ebx
push 0
push 0x6f
push esi
call edi
push eax
call ebx
push 0
push 0x70
push esi
call edi
push eax
call ebx
push 0
push 0x6e
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x6d
push esi
call edi
push eax
call ebx
push 0
push 0x6f
push esi
call edi
push eax
call ebx
push 0
push 0x70
push esi
call edi
push eax
call ebx
push 1
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x555f30
Capabilities:
Capture screenshot
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
xor ecx, ecx
call fcn.00545450
mov ecx, dword [0x5f92fc]
test ecx, ecx
je 0x555f48
xor edx, edx
jmp fcn.0049a4f0
call fcn.004f0b80
test eax, eax
jne 0x555f58
xor ecx, ecx
jmp fcn.0041f0a0
push 0x5f92fc
push eax
push 0
push 0
mov edx, 6
mov ecx, str.Urls_List
call fcn.005677e0
test eax, eax
mov dword [0x5f92fc], eax
je 0x555f84
mov ecx, 0x5a4bec
jmp fcn.00555cc0
ret
Function at 0x562120
Capabilities:
Capture screenshot

Disassembly:
push ecx
push edi
mov edi, ecx
test edi, edi
mov dword [esp + 4], edx
je 0x562146
push ebx
mov ebx, dword [0x5f92e4]
test ebx, ebx
je 0x562145
cmp dword [ebx], edi
je 0x562149
mov ebx, dword [ebx + 0xe08]
test ebx, ebx
jne 0x562137
pop ebx
pop edi
pop ecx
ret
mov eax, dword [ebx + 0x71c]
test eax, eax
push ebp
push esi
jne 0x56215f
mov ebp, str.sstatus
jmp 0x562208
cmp eax, 1
jne 0x56216c
lea ebp, [ebx + 8]
jmp 0x562208
cmp eax, 2
jne 0x5621ab
mov eax, dword [ebx + 0x720]
cmp eax, 1
jne 0x562184
lea ebp, [ebx + 8]
jmp 0x562208
cmp eax, 2
jne 0x562190
mov ebp, str.smessage
jmp 0x562208
lea esi, [ebx + 8]
push 0x20
push esi
call fcn.005912e0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x5621a8
mov ebp, esi
jmp 0x562208
inc ebp
jmp 0x562208
cmp eax, 3
jne 0x5621c7
cmp dword [ebx + 0x720], 1
jne 0x5621c0
mov ebp, str.sdccs
jmp 0x562208
mov ebp, str.sdccg
jmp 0x562208
cmp eax, 4
jne 0x5621d3
mov ebp, str.slist
jmp 0x562208
cmp eax, 5
jne 0x5621df
mov ebp, str.sfinger
jmp 0x562208
cmp eax, 6
jne 0x5621eb
mov ebp, str.surl
jmp 0x562208
cmp eax, 7
jne 0x5621f7
mov ebp, str.snotify
jmp 0x562208
xor ecx, ecx
cmp eax, 8
setne cl
dec ecx
and ecx, str.slinks
mov ebp, ecx
push 0
push edi
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
mov esi, eax
push 0x118
push esi
call edi
push 0
push 0x119
push esi
call edi
push 0
push 0x11a
push esi
call edi
push 0
push 0x11b
push esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, 3
jne 0x562252
mov dword [ebx + 0x76c], eax
jmp 0x562275
cmp eax, 1
jne 0x56225f
mov dword [ebx + 0x76c], eax
jmp 0x562275
test eax, eax
jne 0x56226b
mov dword [ebx + 0x76c], eax
jmp 0x562275
mov dword [ebx + 0x76c], 2
mov eax, dword [ebx + 0x76c]
cmp eax, 3
push 8
jne 0x562289
push 0x11b
jmp 0x5622a5
cmp eax, 1
jne 0x562295
push 0x119
jmp 0x5622a5
test eax, eax
jne 0x5622a0
push 0x118
jmp 0x5622a5
push 0x11a
push esi
call edi
test ebp, ebp
je 0x5622ea
mov eax, dword [ebx + 0x76c]
cmp eax, 2
jne 0x5622c0
push 0x5ee150
push 0
jmp 0x5622de
push eax
push 0x5a4998
push 0x5eef00
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x5ee150
push 0x5eef00
mov ecx, str.spacing
mov edx, ebp
call fcn.004bc990
pop esi
pop ebp
mov ecx, ebx
pop ebx
pop edi
add esp, 4
jmp fcn.0048dc80
Function at 0x56a870
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 0x56a896
mov eax, 1
add esp, 0x578
ret
mov ecx, eax
call fcn.00568e70
push eax
xor edx, edx
mov ecx, 0x177e
call fcn.0041f1a0
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, 0x5c0170
xor ecx, ecx
call fcn.004c2c40
xor eax, eax
add esp, 0x578
ret

Function at 0x56a8f0
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, ecx
call fcn.004f0af0
test eax, eax
je 0x56aa04
mov edx, esi
mov ecx, 4
call fcn.004c0070
mov eax, dword [esi + 0x908]
test eax, eax
je 0x56a924
mov ecx, esi
call fcn.00569510
mov ecx, esi
call fcn.004c1000
push ebx
lea ebx, [esi + 0x1c]
push edi
mov edx, 0x400
mov ecx, ebx
call fcn.00420e60
lea edi, [esi + 0x1128]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x56a958
push esi
push eax
xor edx, edx
xor ecx, ecx
call fcn.00569870
pop edi
pop ebx
xor eax, eax
pop esi
ret
mov eax, dword [0x5cd3e4]
test eax, eax
je 0x56a9a2
mov eax, dword [0x5cd3dc]
test eax, eax
je 0x56a9a2
mov ecx, dword [esi + 8]
call fcn.00488ab0
mov ecx, edi
call fcn.00488920
test eax, eax
jne 0x56a9a2
mov eax, dword [esi + 8]
push esi
push eax
push 0
add esi, 0x10c4
push esi
call fcn.0059164b
add esp, 4
mov edx, eax
mov ecx, edi
call fcn.0048ab30
pop edi
pop ebx
xor eax, eax
pop esi
ret
mov ecx, dword [0x5f92ec]
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 0x56aa02
mov eax, dword [esi + 0x41c]
test eax, eax
jne 0x56aa02
mov eax, dword [esi + 0x420]
test eax, eax
je 0x56a9e0
mov dword [esi + 0x830], 3
lea edi, [esi + 0x444]
mov edx, edi
mov ecx, 0x1779
call fcn.0041f1a0
mov ecx, esi
call fcn.005690a0
mov edx, esi
mov ecx, edi
call fcn.00568f00
pop edi
pop ebx
xor eax, eax
pop esi
ret
Function at 0x56c5f4
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0xca
jne 0x56c61d
call fcn.0056dbbc
cmp byte [esi + 0x40], 0
je 0x56c616
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 0x56c68c
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x56c681
mov eax, dword [esi + 8]
test eax, eax
je 0x56c63e
mov ecx, esi
call dword [eax]
mov eax, dword [esi + 0x190]
mov ecx, esi
call dword [eax]
test eax, eax
je 0x56c67d
cmp eax, 2
je 0x56c681
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x56c633
cmp eax, 3
je 0x56c662
cmp eax, 1
jne 0x56c633
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x56c633
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x56c633
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x56c6aa
cmp eax, 0xcc
je 0x56c6aa
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.0056c4c5
pop esi
ret
Function at 0x58cc8b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x58cd10
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00596460
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], 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 0x58ccd3
mov eax, dword [edi + 0x40]
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 0x58ccf5
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x58cd69
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.0058c9d4
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
jb 0x58cd55
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x58cd69
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x58cc94
pop esi
pop ebx
leave
ret

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

Disassembly:
test edx, edx
mov eax, ecx
jne 0x58edfb
xor eax, eax
ret 4
mov ecx, edx
jmp fcn.0058eb9d

Function at 0x591b3d
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 0x591b5a
call fcn.005981ca
mov dword [eax], 0x16
xor eax, eax
jmp 0x591bc4
push esi
push 0x88
push 1
call fcn.00594ef4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x591baf
push esi
call fcn.005984ab
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 0x591b8d
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x591a99
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x591bc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0059112a
test ebx, ebx
pop ecx
je 0x591bc1
push ebx
call fcn.005981dc
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5948d3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00597506
xor esi, esi
inc esi
cmp dword [0x6095bc], esi
pop ecx
jne 0x5948fb
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 [0x6095b8], esi
mov byte [0x6095b4], al
jne 0x594961
mov ecx, dword [0x60ab50]
test ecx, ecx
je 0x594942
mov eax, dword [0x60ab4c]
sub eax, 4
cmp eax, ecx
jmp 0x59493b
mov eax, dword [eax]
test eax, eax
je 0x59492d
call eax
mov eax, dword [0x60ab4c]
sub eax, 4
cmp eax, dword [0x60ab50]
mov dword [0x60ab4c], eax
jae 0x594925
mov eax, 0x5be028
mov esi, 0x5be030
cmp eax, esi
mov edi, eax
jae 0x594961
mov eax, dword [edi]
test eax, eax
je 0x59495a
call eax
add edi, 4
cmp edi, esi
jb 0x594952
mov eax, 0x5be034
mov esi, 0x5be038
cmp eax, esi
mov edi, eax
jae 0x594980
mov eax, dword [edi]
test eax, eax
je 0x594979
call eax
add edi, 4
cmp edi, esi
jb 0x594971
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x594991
push 8
call fcn.00597472
jmp 0x5949a3
push dword [ebp + 8]
mov dword [0x6095bc], 1
call fcn.0059482c
pop ecx
pop ebp
ret
Function at 0x595e68
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5b5e50
call fcn.005980c8
mov edi, 0x94
mov eax, edi
call fcn.005925e0
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 [0x60957c], ecx
mov eax, dword [esi + 4]
mov dword [0x609588], eax
mov edx, dword [esi + 8]
mov dword [0x60958c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x609580], esi
cmp ecx, 2
je 0x595ec8
or esi, 0x8000
mov dword [0x609580], esi
shl eax, 8
add eax, edx
mov dword [0x609584], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x595f03
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x595f03
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x595f1b
cmp eax, 0x20b
je 0x595f08
mov dword [ebp - 0x1c], esi
jmp 0x595f2f
cmp dword [ecx + 0x84], 0xe
jbe 0x595f03
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x595f29
cmp dword [ecx + 0x74], 0xe
jbe 0x595f03
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00597551
pop ecx
test eax, eax
jne 0x595f43
push 0x1c
call fcn.00595e44
pop ecx
call fcn.0059869a
test eax, eax
jne 0x595f54
push 0x10
call fcn.00595e44
pop ecx
call fcn.0059d3b3
mov dword [ebp - 4], esi
call fcn.0059c311
test eax, eax
jge 0x595f6d
push 0x1b
call fcn.00595e1f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x60ab44], eax
call fcn.0059e71d
mov dword [0x6095e4], eax
call fcn.0059e67b
test eax, eax
jge 0x595f93
push 8
call fcn.00595e1f
pop ecx
call fcn.0059e448
test eax, eax
jge 0x595fa4
push 9
call fcn.00595e1f
pop ecx
call fcn.0059486e
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x595fb7
push eax
call fcn.00595e1f
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0059e3df
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x595fd8
movzx eax, word [ebp - 0x34]
jmp 0x595fdb
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004ec250
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x595ff9
push edi
call fcn.005949a6
call fcn.005949c8
jmp 0x59602b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00598103
ret
Function at 0x59bf78
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 0x59c140
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x609a00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x59c140
test cl, 0x48
je 0x59bfde
mov al, byte [eax + 5]
cmp al, 0xa
je 0x59bfde
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 0x59c030
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x59c018
call fcn.005981ca
mov dword [eax], 9
call fcn.005981d3
mov dword [eax], esi
jmp 0x59c028
cmp eax, 0x6d
je 0x59c140
push eax
call fcn.005981dc
pop ecx
or eax, 0xffffffff
jmp 0x59c142
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 0x59c13b
test edx, edx
je 0x59c053
cmp byte [ebx], 0xa
jne 0x59c053
or al, 4
jmp 0x59c055
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 0x59c135
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x59c125
cmp al, 0xd
je 0x59c089
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x59c117
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x59c0a3
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x59c09e
add dword [ebp + 0x10], 2
jmp 0x59c0f7
mov dword [ebp + 0x10], eax
jmp 0x59c113
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 0x59c0cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59c113
cmp dword [ebp - 0xc], 0
je 0x59c113
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x59c0ec
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x59c0f7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x59c116
cmp ebx, dword [ebp + 0xc]
jne 0x59c0fc
cmp byte [ebp - 1], 0xa
jne 0x59c0fc
mov byte [ebx], 0xa
jmp 0x59c116
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005a14d7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x59c117
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x59c06d
jmp 0x59c135
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x59c135
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x59c142
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59c5aa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5c1b40]
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 0x59c5d3
xor eax, eax
jmp 0x59c741
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 + 0x609a00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x59c606
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.005a14d7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x59c6d8
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x59c713
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 0x59c661
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x59c652
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 0x59c635
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 0x59c6a1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x59c6aa
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x59c626
jmp 0x59c6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x59c73c
cmp dword [ebp - 8], edi
je 0x59c713
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x59c705
call fcn.005981ca
mov dword [eax], 9
call fcn.005981d3
mov dword [eax], esi
jmp 0x59c70e
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 0x59c6fa
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x59c6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x59c6ac
push dword [ebp - 8]
call fcn.005981dc
pop ecx
or eax, 0xffffffff
jmp 0x59c73f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x59c728
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x59c728
xor eax, eax
jmp 0x59c73f
call fcn.005981ca
mov dword [eax], 0x1c
call fcn.005981d3
mov dword [eax], edi
jmp 0x59c70e
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00599789
leave
ret
Function at 0x59df56
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 0x59dfc1
push 0x3d
push dword [ebp + 8]
call fcn.005a1f79
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x59dfc1
cmp dword [ebp + 8], esi
je 0x59dfc1
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x60959c]
cmp eax, dword [0x6095a0]
jne 0x59dfa7
mov edi, eax
call fcn.0059def5
mov dword [0x60959c], eax
cmp eax, ebx
jne 0x59e000
cmp dword [ebp + 0xc], ebx
je 0x59dfc9
cmp dword [0x6095a4], ebx
je 0x59dfc9
call fcn.0059d489
test eax, eax
je 0x59e000
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x59e104
push 4
call fcn.00591118
cmp eax, ebx
pop ecx
mov dword [0x60959c], eax
je 0x59dfc1
mov dword [eax], ebx
cmp dword [0x6095a4], ebx
jne 0x59e000
push 4
call fcn.00591118
cmp eax, ebx
pop ecx
mov dword [0x6095a4], eax
je 0x59dfc1
mov dword [eax], ebx
mov ebx, dword [0x60959c]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0059dea8
mov edi, eax
test edi, edi
pop ecx
jl 0x59e059
cmp dword [ebx], 0
je 0x59e059
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0059112a
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x59e041
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x59e08f
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x59e038
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00593194
test eax, eax
pop ecx
pop ecx
je 0x59e08f
jmp 0x59e08a
cmp dword [ebp - 4], 0
jne 0x59e0fd
test edi, edi
jge 0x59e069
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00593194
test eax, eax
pop ecx
pop ecx
je 0x59dfc1
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x60959c], eax
cmp dword [ebp + 0xc], 0
je 0x59e0e6
push dword [ebp + 8]
call fcn.005969a0
inc eax
inc eax
push eax
call fcn.00591118
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x59e0e6
push dword [ebp + 8]
push esi
call fcn.00596a30
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 0x59e0df
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0059112a
pop ecx
cmp dword [ebp - 4], 0
je 0x59e0f5
push dword [ebp + 8]
call fcn.0059112a
pop ecx
mov eax, dword [ebp - 8]
jmp 0x59dfc4
push esi
call fcn.0059112a
pop ecx
xor eax, eax
jmp 0x59dfc4
Function at 0x59e15e
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.005925e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x59e1f3
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 [0x60957c]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x59e1f3
cmp eax, 1
je 0x59e20b
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 0x59e1f3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x59e1c8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x59e1ef
xor eax, eax
inc eax
jmp 0x59e227
cmp esi, ebx
jae 0x59e1f7
xor eax, eax
jmp 0x59e227
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x60957c]
jmp 0x59e20d
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