joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469600
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4f66e0]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x469620
jmp 0x46970d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
movzx edx, word [ecx]
test edx, edx
je 0x469672
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x469658
mov edx, dword [ebp - 0x218]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x469661
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x218]
add edx, 2
mov dword [ebp - 0x218], edx
jmp 0x46962f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x4696d5
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
sar edx, 1
shl edx, 1
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.00498400
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
sar edx, 1
mov word [ebp + edx*2 - 0x420], 0
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00469600
add esp, 8
mov edx, dword [ebp - 0x214]
add edx, 2
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00498ba4
add esp, 8
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00498b7a
add esp, 8
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 8]
call fcn.00498784
mov esp, ebp
pop ebp
ret
Function at 0x476aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c56c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax], vtable.CGridHeaderSection.0
mov ecx, dword [ebp - 0x1c]
add ecx, 4
call fcn.00477380
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2c
mov dword [ebp - 0x18], ecx
call fcn.004b5d44
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x30], 0x40
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x20], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4783f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c57ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov dword [eax], vtable.CGridColumn.0
mov ecx, dword [ebp - 0x28]
add ecx, 8
mov dword [ebp - 0x18], ecx
call fcn.004b5d44
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
call dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov edx, dword [ebp - 0x18]
mov dword [edx], ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0x34
mov dword [ebp - 0x24], eax
call fcn.004b5d44
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
call dword [edx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
add ecx, 0x44
call fcn.004b00b3
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0xc], 0x40
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14], 0x2710
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x3c], 1
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x40], 1
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x58], 1
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x38], 0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x482d20
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x482d89
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x482d4b
test byte [eax + 0x230], 1
jne 0x482d68
movzx si, byte [edx]
cmp si, cx
jbe 0x482d68
push 0x4f3214
push eax
call fcn.00484910
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push 0x4d66ec
push eax
call fcn.00481b60
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x482e01
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.00481b40
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.00481b40
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.00481b40
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x482dfa
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x482dfa
push 0x4f31d4
push eax
call fcn.00484910
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x482d70
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x482e34
push 0x4f3194
push esi
call fcn.00484910
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00481b40
lea ecx, [esp + 0x10]
push 2
push ecx
push 0x4d66ec
push esi
call fcn.00481b60
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x489f00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x489f0b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x48a00e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4d6958]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d6958]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d6958]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d6958]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d6958]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4d6958]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4d6958]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4d6958]
xor eax, edx
inc ecx
dec edi
jne 0x489f26
pop edi
test esi, esi
je 0x48a030
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4d6958]
xor eax, edx
inc ecx
dec esi
jne 0x48a012
pop esi
pop ebx
not eax
ret
Function at 0x48f8ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x48f901
call fcn.004bd601
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x48f901
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x48f8f7
xor eax, eax
jmp 0x48fa1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x48f931
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x48f931
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x48fa17
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x48f95e
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0049062c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x48fa17
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x48f9a7
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x48f9a7
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x48f9a1
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0049062c
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x48fa07
and dword [ebp + 0xc], 0
jmp 0x48fa07
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x48fa07
push 0xc
call fcn.004b5cf0
mov esi, eax
test esi, esi
pop ecx
je 0x48f9e9
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x48f9eb
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x48fa02
push dword [ebp - 8]
call fcn.004b0514
jmp 0x48fa07
call fcn.004b04eb
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x48f96c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x49bfa0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4db9c0
call fcn.0049be20
push 8
call fcn.0049d4a3
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4fb8e8], esi
jne 0x49bfd4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4fb8e4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4fb8e0], al
cmp dword [ebp + 0xc], edi
jne 0x49c01e
cmp dword [0x4fc268], edi
je 0x49c00e
mov eax, dword [0x4fc264]
sub eax, 4
mov dword [0x4fc264], eax
cmp eax, dword [0x4fc268]
jb 0x49c00e
mov eax, dword [eax]
cmp eax, edi
je 0x49bfef
call eax
jmp 0x49bfef
push 0x4f1308
mov eax, 0x4f1300
call fcn.0049bf1e
pop ecx
push 0x4f1314
mov eax, 0x4f130c
call fcn.0049bf1e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x49c04f
cmp dword [ebp + 0x10], edi
jne 0x49c05d
mov dword [0x4fb8e8], esi
push dword [ebp + 8]
call fcn.0049bedc
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x49c05c
push 8
call fcn.0049d3ee
pop ecx
ret
call fcn.0049be5b
ret

Function at 0x49c0d1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0049a270
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49c16c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4fb8a8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x49c16c
cmp eax, 1
je 0x49c18d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49c16c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x49c139
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x49c168
xor eax, eax
inc eax
jmp 0x49c1ac
cmp edi, eax
jae 0x49c170
xor eax, eax
jmp 0x49c1ac
cmp eax, esi
jae 0x49c177
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4fb8a8]
jmp 0x49c190
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49cb89
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4fbafc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x49cbd2
call ebp
mov esi, eax
cmp esi, ebx
je 0x49cbb8
mov dword [0x4fbafc], 1
jmp 0x49cbd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x49cbcd
push 2
pop eax
mov dword [0x4fbafc], eax
jmp 0x49cbd2
mov eax, dword [0x4fbafc]
cmp eax, 1
jne 0x49cc2f
cmp esi, ebx
jne 0x49cbea
call ebp
mov esi, eax
cmp esi, ebx
jne 0x49cbea
xor eax, eax
jmp 0x49ccd6
cmp word [esi], bx
mov eax, esi
je 0x49cbff
inc eax
inc eax
cmp word [eax], bx
jne 0x49cbf1
inc eax
inc eax
cmp word [eax], bx
jne 0x49cbf1
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00499c1f
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x49cc22
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x49ccd6
push ebp
push esi
push edi
call fcn.00498400
add esp, 0xc
jmp 0x49cc14
cmp eax, 2
je 0x49cc38
cmp eax, ebx
jne 0x49cbe3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x49cbe3
cmp byte [ebp], bl
mov esi, ebp
je 0x49cc6e
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x49cbe3
push esi
add edi, eax
call fcn.00498cc0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x49cc4b
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00499c1f
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x49cce7
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x49ccc8
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x49ccdd
push edi
call fcn.00498cc0
push esi
lea edi, [edi + eax + 1]
call fcn.0049873d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x49cc8e
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0049935b
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x49cbe3
Function at 0x49ccf3
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4fbb00]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x49cd33
call esi
test eax, eax
je 0x49cd18
mov dword [0x4fbb00], 1
jmp 0x49cd38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x49cd2f
mov dword [0x4fbb00], 2
jmp 0x49cd41
xor eax, eax
jmp 0x49cd8f
cmp eax, 1
jne 0x49cd3c
call esi
jmp 0x49cd8f
cmp eax, 2
jne 0x49cd2f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x49cd87
lea eax, [esi + esi]
push eax
call fcn.00499c1f
mov ebp, eax
test ebp, ebp
pop ecx
je 0x49cd87
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x49cd8b
push ebp
call fcn.0049935b
pop ecx
xor eax, eax
jmp 0x49cd8d
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x49e123
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4f66e0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x49e154
xor eax, eax
jmp 0x49e2dd
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4fc160]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x49e190
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004a81dc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x49e26b
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x49e2a9
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x49e1f4
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x49e1e5
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x49e1c5
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49e234
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x49e23d
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x49e1b6
jmp 0x49e23f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x49e2d8
cmp dword [ebp - 0x6c], edi
je 0x49e2a9
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x49e29e
call fcn.0049c2d4
mov dword [eax], 9
call fcn.0049c2dd
mov dword [eax], esi
jmp 0x49e2d3
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49e293
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x49e23f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x49e23f
push dword [ebp - 0x6c]
call fcn.0049c2e6
pop ecx
jmp 0x49e2d3
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x49e2c1
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x49e2c1
xor eax, eax
jmp 0x49e2db
call fcn.0049c2d4
mov dword [eax], 0x1c
call fcn.0049c2dd
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x49e2db
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00498784
add ebp, 0x3a0
leave
ret
Function at 0x4a253c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4a256a
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4a2571
cmp ebx, dword [eax + 4]
jae 0x4a2571
xor eax, eax
jmp 0x4a2761
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4a2582
xor eax, eax
inc eax
jmp 0x4a2760
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4a2598
cmp ecx, edx
jae 0x4a26dd
cmp dword [eax + 4], 0
je 0x4a25a1
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4a2589
cmp dword [ebp + 8], 0
je 0x4a25c3
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4a26dd
cmp eax, esi
jae 0x4a26dd
mov eax, dword [0x4fbc90]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4a25e8
cmp dword [esi*4 + 0x4fbc98], edi
je 0x4a26e1
inc esi
cmp esi, eax
jl 0x4a25d6
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a275d
cmp dword [ebp - 8], 0x1000000
jne 0x4a275d
test byte [ebp - 0xc], 0xcc
je 0x4a2666
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4a275d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a275d
cmp word [eax + 0x18], 0x10b
jne 0x4a275d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4a275d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4a2666
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4a2666
test byte [ecx + 0x27], 0x80
jne 0x4a26dd
push 1
push 0x4fbcd8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4a257a
mov ecx, dword [0x4fbc90]
test ecx, ecx
mov edx, ecx
jle 0x4a269a
lea eax, [ecx*4 + 0x4fbc94]
cmp dword [eax], edi
je 0x4a269a
dec edx
sub eax, 4
test edx, edx
jg 0x4a268e
test edx, edx
jne 0x4a26cb
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4a26a7
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4a26bf
lea eax, [edx*4 + 0x4fbc98]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4a26ad
cmp ecx, 0x10
jge 0x4a26cb
inc ecx
mov dword [0x4fbc90], ecx
push 0
push 0x4fbcd8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4a257a
xor eax, eax
jmp 0x4a2760
test esi, esi
jle 0x4a257a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4fbcd8
call ebx
test eax, eax
jne 0x4a257a
cmp dword [esi*4 + 0x4fbc98], edi
je 0x4a2737
mov eax, dword [0x4fbc90]
lea esi, [eax - 1]
test esi, esi
jl 0x4a2725
cmp dword [esi*4 + 0x4fbc98], edi
je 0x4a2721
dec esi
jns 0x4a2715
test esi, esi
jge 0x4a2735
cmp eax, 0x10
jge 0x4a2730
inc eax
mov dword [0x4fbc90], eax
lea esi, [eax - 1]
jmp 0x4a2737
je 0x4a274f
xor ecx, ecx
test esi, esi
jl 0x4a274f
lea eax, [ecx*4 + 0x4fbc98]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4a273d
push 0
push 0x4fbcd8
call ebx
jmp 0x4a257a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret