joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52e0a0
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov eax, dword [0x5a1afc]
sub esp, 0x88
push esi
push 0xa
push 0x2b
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x52e1a7
mov ecx, dword [0x5a1afc]
push ebx
push ebp
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x5a1afc]
push esi
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x52e1a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x52e1a5
push edi
push 0x5990e0
push 0x180
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x5990e0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x52e111
mov eax, dword [str.miunst_.exe]
mov ecx, dword [0x57bf30]
mov edx, dword [0x57bf34]
mov dword [edi], eax
push 0x1001
lea eax, [esp + 0x14]
push eax
mov dword [edi + 4], ecx
push 0x5990e0
mov dword [edi + 8], edx
mov byte [esp + 0x1c], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
pop edi
je 0x52e1a5
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 0x5990e0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52e170
push 0x5994c8
sub eax, edx
push 0x598248
lea ecx, [eax + 0x5990e0]
push 0x57bf24
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x5990e0
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebp
pop ebx
pop esi
add esp, 0x88
ret
Function at 0x52e740
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.0041e210
mov edx, 0x3e7
lea ecx, [esp + 0x3f0]
call fcn.0041e210
call fcn.0041c970
cmp esi, 2
je 0x52e809
xor eax, eax
cmp esi, 1
sete al
mov esi, eax
mov eax, dword [0x589c60]
test eax, eax
je 0x52e7a6
mov eax, dword [0x589c64]
test eax, eax
jne 0x52e809
test esi, esi
jne 0x52e7a6
push edi
push str.__s_____0x0_0x4_________
lea ecx, [esp + 0x10]
push ecx
jmp 0x52e7b1
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.004646e0
test eax, eax
je 0x52e809
mov eax, dword [0x589c64]
test eax, eax
je 0x52e85f
test esi, esi
jne 0x52e85f
push 0xffffffffffffffff
push 2
lea ecx, [esp + 0x3f8]
push ecx
mov edx, str.0xFFFFFFFF_0x0
mov ecx, str.WWW_Activate
call fcn.004646e0
pop edi
pop esi
add esp, 0x7d0
ret
call fcn.00501240
mov al, byte [0x59ca78]
test al, al
push 5
push 0x598248
jne 0x52e83c
mov edx, dword [0x5a1b00]
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 [0x5a1b00]
push edi
push 0x59ca78
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x1f
jae 0x52e85f
xor ecx, ecx
call fcn.0041c8e0
pop edi
pop esi
add esp, 0x7d0
ret

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

Disassembly:
xor ecx, ecx
call fcn.00525770
mov ecx, dword [0x5a1b10]
test ecx, ecx
je 0x52f6d8
xor edx, edx
jmp fcn.00492410
call fcn.004dbf30
test eax, eax
jne 0x52f6e8
xor ecx, ecx
jmp fcn.0041c8e0
push eax
push 0
push 0
mov edx, 6
mov ecx, str.URL_List
call fcn.0053c810
test eax, eax
mov dword [0x5a1b10], eax
je 0x52f70f
mov ecx, 0x574b10
jmp fcn.0052f460
ret
Function at 0x53f700
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 0x53f726
mov eax, 1
add esp, 0x578
ret
mov ecx, eax
call fcn.0053de90
push eax
xor edx, edx
mov ecx, 0x177e
call fcn.0041c9e0
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, 0x589eb8
xor ecx, ecx
call fcn.004b2150
xor eax, eax
add esp, 0x578
ret

Function at 0x540711
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0xca
jne 0x54073a
call fcn.00541ced
cmp byte [esi + 0x40], 0
je 0x540733
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 0x5407a9
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x54079e
mov eax, dword [esi + 8]
test eax, eax
je 0x54075b
mov ecx, esi
call dword [eax]
mov eax, dword [esi + 0x190]
mov ecx, esi
call dword [eax]
test eax, eax
je 0x54079a
cmp eax, 2
je 0x54079e
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x540750
cmp eax, 3
je 0x54077f
cmp eax, 1
jne 0x540750
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x540750
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x540750
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x5407c7
cmp eax, 0xcc
je 0x5407c7
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.005405e2
pop esi
ret
Function at 0x553420
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 0x55345c
pop esi
pop ebp
mov eax, 0xfffffff8
pop ebx
add esp, 0xc4
ret 0x14
test byte [esp + 0xe4], 2
je 0x553480
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 0x5534c5
lea edx, [edi - 0x4c]
cmp edx, 0x96
mov dword [esp + 0x14], edx
jle 0x5534ae
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 0x554770
mov edx, dword [esp + 0x24]
mov edi, 0x4c
jmp 0x5534cb
ja 0x555067
movzx edi, byte [edi + 0x55512c]
jmp dword [edi*4 + 0x55507c]
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.00553420
test eax, eax
jne 0x55506c
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 0x5547a1
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 0x55f3ff
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x24]
push esi
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x34]
mov edx, dword [edi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 4], eax
jne 0x55f426
test ecx, ecx
jne 0x55f430
test edx, edx
jne 0x55f430
mov eax, ebx
jmp 0x55f49c
cmp eax, 0xffffffff
jne 0x55f430
push 0xfffffffffffffffe
pop eax
jmp 0x55f49c
mov edx, dword [edi + 0x24]
lea edx, [ebx + edx - 0x106]
cmp ecx, edx
jb 0x55f49c
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00567640
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov esi, edx
sub esi, ebx
cmp edx, ebx
sbb edx, edx
not edx
and edx, esi
dec ecx
mov word [eax], dx
jne 0x55f461
mov eax, dword [edi + 0x38]
mov edx, ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov esi, ecx
sub esi, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, esi
dec edx
mov word [eax], cx
jne 0x55f480
mov eax, dword [ebp - 4]
add eax, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x55f4f3
push eax
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
push eax
call fcn.0055f1ec
add dword [edi + 0x6c], eax
mov esi, dword [edi + 0x6c]
cmp esi, 3
jb 0x55f4df
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 0x55f4f3
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x55f408
pop esi
pop ebx
leave
ret
Function at 0x56036e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
mov eax, ecx
jne 0x56037e
xor eax, eax
jmp 0x560472
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 8
push esi
not eax
mov esi, 0xff
jb 0x560452
push edi
mov edi, ebx
shr edi, 3
xor ecx, ecx
mov cl, byte [edx]
sub ebx, 8
xor ecx, eax
and ecx, esi
shr eax, 8
mov dword [ebp + 8], eax
mov eax, dword [ecx*4 + 0x580148]
mov ecx, dword [ebp + 8]
xor eax, ecx
xor ecx, ecx
inc edx
mov cl, byte [edx]
xor ecx, eax
and ecx, esi
mov ecx, dword [ecx*4 + 0x580148]
shr eax, 8
xor ecx, eax
xor eax, eax
inc edx
mov al, byte [edx]
xor eax, ecx
and eax, esi
mov eax, dword [eax*4 + 0x580148]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
inc edx
mov cl, byte [edx]
xor ecx, eax
and ecx, esi
mov ecx, dword [ecx*4 + 0x580148]
shr eax, 8
xor ecx, eax
xor eax, eax
inc edx
mov al, byte [edx]
xor eax, ecx
and eax, esi
mov eax, dword [eax*4 + 0x580148]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
inc edx
mov cl, byte [edx]
xor ecx, eax
and ecx, esi
mov ecx, dword [ecx*4 + 0x580148]
shr eax, 8
xor ecx, eax
xor eax, eax
inc edx
mov al, byte [edx]
xor eax, ecx
and eax, esi
mov eax, dword [eax*4 + 0x580148]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
inc edx
mov cl, byte [edx]
xor ecx, eax
and ecx, esi
mov ecx, dword [ecx*4 + 0x580148]
shr eax, 8
xor eax, ecx
inc edx
dec edi
jne 0x560399
pop edi
test ebx, ebx
je 0x56046e
xor ecx, ecx
mov cl, byte [edx]
xor ecx, eax
and ecx, esi
mov ecx, dword [ecx*4 + 0x580148]
shr eax, 8
xor eax, ecx
inc edx
dec ebx
jne 0x560456
pop esi
not eax
pop ebx
pop ebp
ret 4

Function at 0x56587f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x5b1dd0], esi
push edi
jne 0x56589f
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 [0x5b1dcc], esi
mov byte [0x5b1dc8], al
jne 0x565905
mov ecx, dword [0x5b3468]
test ecx, ecx
je 0x5658e6
mov eax, dword [0x5b3464]
sub eax, 4
cmp eax, ecx
jmp 0x5658df
mov eax, dword [eax]
test eax, eax
je 0x5658d1
call eax
mov eax, dword [0x5b3464]
sub eax, 4
cmp eax, dword [0x5b3468]
mov dword [0x5b3464], eax
jae 0x5658c9
mov eax, 0x589028
mov esi, 0x589034
cmp eax, esi
mov edi, eax
jae 0x565905
mov eax, dword [edi]
test eax, eax
je 0x5658fe
call eax
add edi, 4
cmp edi, esi
jb 0x5658f6
mov eax, 0x589038
mov esi, 0x58903c
cmp eax, esi
mov edi, eax
jae 0x565924
mov eax, dword [edi]
test eax, eax
je 0x56591d
call eax
add edi, 4
cmp edi, esi
jb 0x565915
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x56593f
push dword [ebp + 8]
mov dword [0x5b1dd0], 1
call fcn.005657ea
pop ecx
pop ebp
ret
Function at 0x56730d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x581688
call fcn.0056e840
mov edi, 0x94
mov eax, edi
call fcn.00565660
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 [0x5b1d90], ecx
mov eax, dword [esi + 4]
mov dword [0x5b1d9c], eax
mov edx, dword [esi + 8]
mov dword [0x5b1da0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5b1d94], esi
cmp ecx, 2
je 0x56736d
or esi, 0x8000
mov dword [0x5b1d94], esi
shl eax, 8
add eax, edx
mov dword [0x5b1d98], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x5673a8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5673a8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x5673c0
cmp eax, 0x20b
je 0x5673ad
mov dword [ebp - 0x1c], esi
jmp 0x5673d4
cmp dword [ecx + 0x84], 0xe
jbe 0x5673a8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x5673ce
cmp dword [ecx + 0x74], 0xe
jbe 0x5673a8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0056870c
pop ecx
test eax, eax
jne 0x567400
cmp dword [0x5b1e24], 1
jne 0x5673ed
call fcn.0056ea03
push 0x1c
call fcn.0056e88c
push 0xff
call fcn.005657ea
pop ecx
pop ecx
call fcn.0056d448
mov dword [ebp - 4], esi
call fcn.0056d0cc
test eax, eax
jge 0x567419
push 0x1b
call fcn.005672e8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5b3224], eax
call fcn.0056ed7a
mov dword [0x5b1e1c], eax
call fcn.0056ecd8
test eax, eax
jge 0x56743f
push 8
call fcn.005672e8
pop ecx
call fcn.0056eaa5
test eax, eax
jge 0x567450
push 9
call fcn.005672e8
pop ecx
call fcn.0056581a
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x567463
push eax
call fcn.005672e8
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0056ea3c
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x567484
movzx eax, word [ebp - 0x34]
jmp 0x567487
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004d88b0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x5674a5
push edi
call fcn.00565941
call fcn.00565963
jmp 0x5674d7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0056e87b
ret
Function at 0x56ca18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x5b20d0]
push edi
jae 0x56cbdf
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x5b20e0]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x56cbdf
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x56cabe
test dl, 2
jne 0x56cabe
test dl, 0x48
je 0x56ca88
mov al, byte [eax + 5]
cmp al, 0xa
je 0x56ca88
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x56cad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x56cab9
mov dword [0x5b1d88], ecx
jmp 0x56cbe6
cmp eax, 0x6d
jne 0x56cac5
xor eax, eax
jmp 0x56cbf3
push eax
call fcn.0056d06d
pop ecx
jmp 0x56cbf0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x56cbda
test edx, edx
je 0x56caf4
cmp byte [edi], 0xa
jne 0x56caf4
or al, 4
jmp 0x56caf6
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x56cbd4
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x56cbc4
cmp al, 0xd
je 0x56cb2a
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x56cbb6
dec ecx
cmp dword [ebp - 8], ecx
jae 0x56cb44
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x56cb3f
add dword [ebp - 8], 2
jmp 0x56cb98
mov dword [ebp - 8], eax
jmp 0x56cbb2
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x56cb6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56cbb2
cmp dword [ebp - 0x10], 0
je 0x56cbb2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x56cb8d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x56cb98
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x56cbb5
cmp edi, dword [ebp + 0xc]
jne 0x56cb9d
cmp byte [ebp - 1], 0xa
jne 0x56cb9d
mov byte [edi], 0xa
jmp 0x56cbb5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0056cbf8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x56cbb6
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x56cb0e
jmp 0x56cbd4
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x56cbd4
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x56cbf3
and dword [0x5b1d88], 0
mov dword [0x5b1d84], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x56cc84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x58c600]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x5b20d0]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x56ce14
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x5b20e0]
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 - 0x18], ebx
je 0x56ce14
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x56cce3
xor eax, eax
jmp 0x56ce28
test al, 0x20
je 0x56ccf4
push 2
push edi
push edi
push ecx
call fcn.00571670
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x56cdb0
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x56cde8
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x56cd4a
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x56cd3b
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x56cd20
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x56cd8a
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x56cd93
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x56cd14
jmp 0x56cd95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x56ce0f
cmp dword [ebp + 8], edi
je 0x56cde8
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x56cddd
mov dword [0x5b1d88], eax
jmp 0x56ce1b
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x56cdd2
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x56cd95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x56cd95
push dword [ebp + 8]
call fcn.0056d06d
pop ecx
jmp 0x56ce25
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x56cdfd
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x56ccdc
mov dword [0x5b1d84], 0x1c
mov dword [0x5b1d88], edi
jmp 0x56ce25
sub eax, dword [ebp - 0x14]
jmp 0x56ce28
and dword [0x5b1d88], 0
mov dword [0x5b1d84], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.0056a239
leave
ret
Function at 0x56d66a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x56d68a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0056d06d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x56d6ab
test byte [esp + 8], 2
je 0x56d6ab
mov dword [0x5b1d84], 0xd
mov dword [0x5b1d88], 5
jmp 0x56d686
xor eax, eax
ret
Function at 0x56e55e
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 0x56e5c9
push 0x3d
push dword [ebp + 8]
call fcn.00571e6d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x56e5c9
cmp dword [ebp + 8], esi
je 0x56e5c9
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x5b1db0]
cmp eax, dword [0x5b1db4]
jne 0x56e5af
mov edi, eax
call fcn.0056e4fd
mov dword [0x5b1db0], eax
cmp eax, ebx
jne 0x56e608
cmp dword [ebp + 0xc], ebx
je 0x56e5d1
cmp dword [0x5b1db8], ebx
je 0x56e5d1
call fcn.0056d50f
test eax, eax
je 0x56e608
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x56e70c
push 4
call fcn.005635a3
cmp eax, ebx
pop ecx
mov dword [0x5b1db0], eax
je 0x56e5c9
mov dword [eax], ebx
cmp dword [0x5b1db8], ebx
jne 0x56e608
push 4
call fcn.005635a3
cmp eax, ebx
pop ecx
mov dword [0x5b1db8], eax
je 0x56e5c9
mov dword [eax], ebx
mov ebx, dword [0x5b1db0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0056e4b0
mov edi, eax
test edi, edi
pop ecx
jl 0x56e661
cmp dword [ebx], 0
je 0x56e661
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.005635b5
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x56e649
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x56e697
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x56e640
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00564c59
test eax, eax
pop ecx
pop ecx
je 0x56e697
jmp 0x56e692
cmp dword [ebp - 4], 0
jne 0x56e705
test edi, edi
jge 0x56e671
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.00564c59
test eax, eax
pop ecx
pop ecx
je 0x56e5c9
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x5b1db0], eax
cmp dword [ebp + 0xc], 0
je 0x56e6ee
push dword [ebp + 8]
call fcn.00567cf0
inc eax
inc eax
push eax
call fcn.005635a3
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x56e6ee
push dword [ebp + 8]
push esi
call fcn.00567d80
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 0x56e6e7
or dword [ebp - 8], 0xffffffff
push esi
call fcn.005635b5
pop ecx
cmp dword [ebp - 4], 0
je 0x56e6fd
push dword [ebp + 8]
call fcn.005635b5
pop ecx
mov eax, dword [ebp - 8]
jmp 0x56e5cc
push esi
call fcn.005635b5
pop ecx
xor eax, eax
jmp 0x56e5cc