joyce8/EMBER2024-capa huggingface dataset:
Function at 0x824edc2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x824edd8
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x824ede9
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.0824ee2a
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x8251196
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x82510df
add ebx, 0
push ecx
call 0x82510f4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x71ac6094
sub ebx, dword [0x71ae58d3]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x71ae58c3
call fcn.0824cbbe
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.0824c0cc
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x8251252
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x8251252
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x8251209
mov eax, 1
lock xchg dword [0x71ae58cf], eax
push 0x3dd1fc71
call 0x8251196
push esi
add esp, 8
cmp eax, 0
jne 0x825117f
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x82511a5
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x82511ba
cmp ecx, edx
cmp eax, 0
je 0x82511df
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x82511c9
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.082511f8
dec eax
loope 0x82511fb
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x71ae58cf], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x825122f
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x8251244
jmp 0x825124f
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x825113d
Function at 0x82582b7
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x825858d
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x71ad2547
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x71ac950d
push 0xffffffffffffffff
call fcn.0824f4b7
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x8258321
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.08258339
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x8258581
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x8258555
Function at 0x8267d87
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x8267da9
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x8267da9
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x8267da9
ret
cmp word [ebx + 4], 0x14c
jne 0x8267da9
test word [ebx + 0x16], 2
je 0x8267da9
test word [ebx + 0x16], 0x100
je 0x8267da9
cmp word [ebx + 0x18], 0x10b
jne 0x8267da9
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x8267da9
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x8267e35
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x8267dc9
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0824ed14
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x8267da9
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x8267e35
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x8267da9
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x8267da9
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x8267da9
ret
cmp word [ebx + 4], 0x14c
jne 0x8267da9
test word [ebx + 0x16], 2
je 0x8267da9
test word [ebx + 0x16], 0x100
je 0x8267da9
cmp word [ebx + 0x18], 0x10b
jne 0x8267da9
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x8267da9
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x8267e35
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x8267dc9
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0824ed14
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x8267da9
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x8267eec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x8267f45
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x8267eec
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x8267efb
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x866db9e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x8267f4c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0824edc2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x8267feb
add edi, 4
add eax, 2
dec ecx
jne 0x8267f31
call 0x8267f98
loope 0x8267f8e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x8267fe8
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x8267ff9
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x8267fac
cmp eax, ecx
ja 0x8267fac
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x8268036
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x826802c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0824f2a1
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x8267efb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x8267f45
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x8267eec
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x8267efb
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x866db9e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x8267f4c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0824edc2
cmp eax, dword [ebp + 0xc]
pop eax
je 0x8267feb
add edi, 4
add eax, 2
dec ecx
jne 0x8267f31
call 0x8267f98
loope 0x8267f8e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x8267fe8
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x8267ff9
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x8267fac
cmp eax, ecx
ja 0x8267fac
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x8268036
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x826802c
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0824f2a1
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4c60f5d6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov al, byte [ebx]
inc ebx
xor edx, edx
mov dl, al
cmp edx, 6
jg 0x4c60f622
je 0x4c60f7a4
cmp edx, 5
ja case.0x4c60f603.0
jmp dword [edx*4 + 0x4c60f60a]
sub edx, 7
je 0x4c60f7bb
dec edx
je 0x4c60f7d8
dec edx
je 0x4c60f7ed
sub edx, 0xf3
jne case.0x4c60f603.0
mov eax, 1
jmp 0x4c60f829
cmp word [ebp + 0xc], 0
je 0x4c60f5e8
xor eax, eax
jmp 0x4c60f829
lea edx, [ebx + 1]
mov dword [edi + 0xa], edx
cmp word [ebp + 0xc], 0
jne 0x4c60f684
xor ecx, ecx
mov cl, byte [esi]
xor eax, eax
mov al, byte [ebx]
cmp ecx, eax
je 0x4c60f67d
xor eax, eax
jmp 0x4c60f829
inc ebx
inc esi
jmp 0x4c60f5e8
mov dl, byte [ebx]
inc ebx
mov byte [ebp - 3], dl
movzx ecx, word [ebp + 0xc]
inc ecx
push ecx
xor eax, eax
mov al, byte [ebp - 3]
push eax
push esi
call fcn.4c6216a0
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c60f6ad
xor eax, eax
jmp 0x4c60f829
mov edx, dword [ebp - 8]
sub edx, esi
sub word [ebp + 0xc], dx
mov esi, dword [ebp - 8]
inc esi
cmp word [ebp + 0xc], 0
je 0x4c60f5e8
push ebx
push esi
mov ax, word [ebp + 0xc]
push eax
push edi
call fcn.4c60f5d6
test eax, eax
je 0x4c60f6e0
mov eax, 1
jmp 0x4c60f829
cmp ebx, dword [edi + 0xa]
je 0x4c60f6ec
xor eax, eax
jmp 0x4c60f829
dec word [ebp + 0xc]
jmp 0x4c60f68a
lea edx, [ebx + 1]
mov dword [edi + 0xa], edx
cmp word [ebp + 0xc], 0
jne 0x4c60f71e
xor ecx, ecx
mov cl, byte [esi]
xor eax, eax
mov al, byte [ebx]
cmp ecx, eax
je 0x4c60f717
xor eax, eax
jmp 0x4c60f829
inc ebx
inc esi
jmp 0x4c60f5e8
mov dl, byte [ebx]
inc ebx
mov byte [ebp - 9], dl
push esi
mov cl, byte [ebp - 9]
push ecx
lea eax, [ebp + 0xc]
push eax
push edi
call fcn.4c60f832
mov esi, eax
test eax, eax
jne 0x4c60f740
xor eax, eax
jmp 0x4c60f829
cmp word [ebp + 0xc], 0
je 0x4c60f5e8
push ebx
push esi
mov dx, word [ebp + 0xc]
push edx
push edi
call fcn.4c60f5d6
test eax, eax
je 0x4c60f766
mov eax, 1
jmp 0x4c60f829
cmp ebx, dword [edi + 0xa]
je 0x4c60f772
xor eax, eax
jmp 0x4c60f829
dec word [ebp + 0xc]
jmp 0x4c60f724
movzx edx, word [ebx]
add esi, edx
add ebx, 2
jmp 0x4c60f5e8
xor ecx, ecx
mov cl, byte [esi]
xor eax, eax
mov al, byte [ebx]
cmp ecx, eax
je 0x4c60f79d
xor eax, eax
jmp 0x4c60f829
inc ebx
inc esi
jmp 0x4c60f5e8
mov dx, word [esi]
cmp dx, word [ebx]
je 0x4c60f7b0
xor eax, eax
jmp 0x4c60f829
add ebx, 2
add esi, 2
jmp 0x4c60f5e8
mov edx, dword [esi]
shl edx, 8
mov ecx, dword [ebx]
shl ecx, 8
cmp edx, ecx
je 0x4c60f7cd
xor eax, eax
jmp 0x4c60f829
add ebx, 3
add esi, 3
jmp 0x4c60f5e8
mov edx, dword [esi]
cmp edx, dword [ebx]
je 0x4c60f7e2
xor eax, eax
jmp 0x4c60f829
add ebx, 4
add esi, 4
jmp 0x4c60f5e8
mov dx, word [ebx]
mov word [ebp - 2], dx
add ebx, 2
movzx ecx, word [ebp - 2]
push ecx
push dword [ebx]
push esi
call fcn.4c6218bc
add esp, 0xc
test eax, eax
je 0x4c60f80f
xor eax, eax
jmp 0x4c60f829
add ebx, 4
movzx edx, word [ebp - 2]
add esi, edx
jmp 0x4c60f5e8
push 0x4c63b21a
call sub.KERNEL32.dll_OutputDebugStringA
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c619d4d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov ebx, 0x4c63fb20
mov esi, 0x4c63b7ed
lea edi, [ebp - 0x38]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
lea ecx, [ebx + 0x29]
push ecx
push 0
push 0x4c63b784
push 0x80000000
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
je 0x4c619da4
mov eax, 0x8000ffff
jmp 0x4c619ec9
push 0x2b
lea edx, [ebp - 0x38]
push edx
push 1
push 0
lea ecx, [ebx + 0x2a]
push ecx
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
je 0x4c619dd0
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, 0x8000ffff
jmp 0x4c619ec9
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
lea eax, [ebx + 0x3a]
push eax
push 0
lea edx, [ebx + 0x2b]
push edx
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
je 0x4c619e09
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, 0x8000ffff
jmp 0x4c619ec9
lea edx, [ebx + 0x3b]
push edx
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x4c619e30
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, 0x8000ffff
jmp 0x4c619ec9
push 0x105
lea edx, [ebp - 0x140]
push edx
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
jne 0x4c619e5d
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, 0x8000ffff
jmp 0x4c619ec9
lea edx, [ebp - 0x140]
push edx
call sub.KERNEL32.dll_lstrlenA
inc eax
push eax
lea ecx, [ebp - 0x140]
push ecx
push 1
push 0
lea eax, [ebx + 0x47]
push eax
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x4c619ea0
push 0xa
lea edx, [ebx + 0x57]
push edx
push 1
push 0
lea ecx, [ebx + 0x48]
push ecx
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
je 0x4c619eb7
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, 0x8000ffff
jmp 0x4c619ec9
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c625704
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.4c625134
test byte [ebp + 0xd], 0xc0
jne 0x4c625728
mov eax, dword [0x4c640810]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4c625735
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4c625762
je 0x4c625774
sub ecx, 0x100
je 0x4c625782
sub ecx, 0x100
je 0x4c625789
sub ecx, 0x100
je 0x4c62577b
jmp 0x4c625790
sub ecx, 0x600
je 0x4c625789
sub ecx, 0x100
je 0x4c625774
jmp 0x4c625790
mov edi, 1
jmp 0x4c625795
mov edi, 2
jmp 0x4c625795
mov edi, 4
jmp 0x4c625795
mov edi, 5
jmp 0x4c625795
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4c6257bc
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4c640d54]
test al, 0x80
je 0x4c6257b5
mov ebx, 0x80
jmp 0x4c6257ce
mov ebx, 1
jmp 0x4c6257ce
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c6257ce
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4c6257e0
je 0x4c6257e9
dec eax
je 0x4c6257f2
jmp 0x4c6257fb
mov dword [ebp - 4], 0x80000000
jmp 0x4c62580a
mov dword [ebp - 4], 0x40000000
jmp 0x4c62580a
mov dword [ebp - 4], 0xc0000000
jmp 0x4c62580a
push 1
call fcn.4c6254f4
pop ecx
mov ebx, eax
jmp 0x4c6258f6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4c625826
sub eax, 0x10
je 0x4c62582d
sub eax, 0x10
je 0x4c625836
sub eax, 0x10
je 0x4c62583f
jmp 0x4c62583f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4c625846
mov dword [ebp - 8], 1
jmp 0x4c625846
mov dword [ebp - 8], 2
jmp 0x4c625846
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4c6258af
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4c6258a4
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x4c6258a4
add ebx, 0xffffffb2
push ebx
call fcn.4c6254f4
pop ecx
mov ebx, eax
jmp 0x4c6258f6
mov edi, esi
push edi
call fcn.4c625668
pop ecx
test eax, eax
je 0x4c6258c3
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4c6258cf
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.4c625234
add esp, 8
mov ebx, eax
inc eax
jne 0x4c6258f6
push 4
call fcn.4c6254f4
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.4c625168
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c627454
Capabilities:
Get memory capacity

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x4c641238], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4c627738
cmp byte [0x4c638059], 0
je 0x4c6276f2
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.4c621a50
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c6276db
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.4c621a50
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c6276db
lea ebx, [ebp - 0x54]
jmp 0x4c6276dc
inc ebx
call fcn.4c627638
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x4c627759
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4c64123c
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.4c621820
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4c64123f
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x4c627759
cmp dword [0x4c641238], 0xffffffff
je 0x4c627759
mov eax, dword [0x4c641238]
test eax, eax
je 0x4c627759
cmp byte [eax], 0
je 0x4c627759
push esi
push eax
call fcn.4c6277e8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c628038
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
cmp esi, 1
jne 0x4c6280da
mov eax, dword [0x4c64ce24]
inc dword [0x4c64ce24]
test eax, eax
jne 0x4c62814d
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x4c64cdfc], eax
mov edx, dword [ebp + 0x10]
mov dword [0x4c638062], edx
cmp dword [0x4c6412c0], 0
je 0x4c6280aa
call fcn.4c627d60
mov ebx, eax
test eax, eax
je 0x4c6280aa
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x4c6280aa
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], edi
jmp 0x4c62814d
xor eax, eax
mov dword [0x4c6412c0], eax
jmp 0x4c6280b5
call ebx
push 0
lea edx, [ebp - 8]
push edx
call fcn.4c627d68
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c6280b3
mov edx, dword [ebp + 0x18]
push edx
push esi
mov ecx, dword [ebp + 0x10]
push ecx
call dword [edi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4c62814d
test esi, esi
jne 0x4c62813e
dec dword [0x4c64ce24]
jne 0x4c628116
mov eax, dword [ebp + 0x18]
push eax
push esi
mov edx, dword [ebp + 0x10]
push edx
call dword [edi + 0x18]
mov dword [ebp - 0xc], eax
cmp dword [0x4c6412c0], 0
jne 0x4c628116
jmp 0x4c628102
call ebx
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.4c627d68
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c628100
cmp dword [0x4c64ce24], 0
jne 0x4c62814d
cmp dword [0x4c64cdfc], 0
je 0x4c62814d
mov edx, dword [0x4c64cdfc]
push edx
call sub.KERNEL32.dll_FreeEnvironmentStringsA
xor ecx, ecx
mov dword [0x4c64cdfc], ecx
jmp 0x4c62814d
mov eax, dword [ebp + 0x18]
push eax
push esi
mov edx, dword [ebp + 0x10]
push edx
call dword [edi + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret