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

Disassembly:
mov eax, 0x853c
call fcn.10016550
mov eax, dword [0x100951fc]
xor eax, esp
mov dword [esp + 0x8538], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x854c]
push 0x1008430c
push str.Kernel32.dll
call dword [0x10034100]
push eax
call dword [0x10034044]
mov dword [0x10097974], eax
mov eax, dword [0x1000003c]
mov eax, dword [eax + 0x10000080]
test eax, eax
je 0x1000b4d9
lea ecx, [eax + 0x10000000]
mov dword [esp + 0x10], ecx
jmp 0x1000b4e1
mov dword [esp + 0x10], 0
push 0x10084304
push 0x2711
push edi
call dword [0x10034084]
mov esi, eax
test esi, esi
je 0x1000b5a5
push esi
push edi
call dword [0x10034090]
mov ebx, eax
test ebx, ebx
je 0x1000b5a5
push esi
push edi
call dword [0x10034088]
push ebx
mov esi, eax
call dword [0x1003408c]
mov ebx, eax
mov eax, 4
mov ecx, str.MIED
mov edx, ebx
push ebp
mov edi, edi
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x1000b548
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1000b530
test eax, eax
je 0x1000b5bf
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x1000b597
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000b5bf
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x1000b597
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000b5bf
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x1000b597
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1000b5bf
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x1000b5bf
test edi, edi
mov eax, 1
jg 0x1000b5c1
or eax, 0xffffffff
jmp 0x1000b5c1
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x8538]
xor ecx, esp
call fcn.10015b2b
add esp, 0x853c
ret
xor eax, eax
test eax, eax
pop ebp
jne 0x1000b5a5
mov edi, dword [ebx + 4]
push edi
lea eax, [ebx + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10016820
sub esi, edi
sub esi, 8
push esi
lea edx, [edi + ebx + 8]
push edx
lea eax, [esp + 0x1028]
push eax
call fcn.10016820
add esp, 0x18
xor ecx, ecx
xor edx, edx
test esi, esi
je 0x1000b619
jmp 0x1000b600
mov al, byte [esp + edx + 0x14]
xor byte [esp + ecx + 0x1014], al
lea eax, [edx + 1]
xor edx, edx
add ecx, 1
div edi
cmp ecx, esi
jne 0x1000b600
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x40
push esi
push edi
mov dword [esp + 0x1c], 0
call dword [0x10097974]
lea edx, [esp + 0x1014]
push edx
push edi
call fcn.1000b2d0
mov ecx, dword [esp + 0x14]
add esp, 8
mov bl, al
lea eax, [esp + 0xc]
push eax
push ecx
push esi
push edi
call dword [0x10097974]
mov ecx, dword [esp + 0x8544]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.10015b2b
add esp, 0x853c
ret
Function at 0x1000b680
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1002abb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100951fc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x38]
push edi
call fcn.10015a45
mov esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x38]
push edi
push eax
push esi
mov dword [esp + 0x38], ebx
call fcn.10016820
add esp, 0x10
xor ecx, ecx
xor edx, edx
cmp edi, ebx
je 0x1000b6f6
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov al, byte [edx + ebx]
xor byte [ecx + esi], al
lea eax, [edx + 1]
xor edx, edx
add ecx, 1
div ebp
cmp ecx, edi
jne 0x1000b6e0
xor ebx, ebx
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x40]
push esi
push edx
call fcn.100018c0
mov ecx, dword [eax]
mov ebp, ecx
mov dword [eax], ebx
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x38], 1
mov edx, dword [esp + 0x48]
push edx
call fcn.10015b26
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push ebp
mov ecx, edi
mov byte [edi + 4], 0
call fcn.10003900
push ebp
call fcn.10015b26
push esi
call fcn.10015b26
add esp, 8
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x402170
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], 0
mov dword [0x408e70], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp + 8], 1
jle 0x40222b
mov eax, dword [eax + 4]
lea edx, [ebp - 0x210]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [ebp - 0x210]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40222b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea edx, [ebp - 4]
push 0
push edx
push edi
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x769c
call esi
jmp 0x402222
push 0
push 0x401040
push 0
push 0x66
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403c2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4086a8
cmp edx, dword [eax]
je 0x403c4f
add eax, 8
inc ecx
cmp eax, 0x408738
jl 0x403c40
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4086a8]
jne 0x403d7d
mov eax, dword [0x408e88]
cmp eax, 1
je 0x403d57
test eax, eax
jne 0x403c80
cmp dword [0x4085f0], 1
je 0x403d57
cmp edx, 0xfc
je 0x403d7d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403cb7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404b50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403cfa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404b50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40748c
push edi
call fcn.004059d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405530
lea eax, [ebp - 0xa0]
push 0x40746c
push eax
call fcn.00405530
push dword [esi + 0x4086ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405530
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405945
add esp, 0x2c
pop edi
jmp 0x403d7d
lea eax, [ebp + 8]
lea esi, [esi + 0x4086ac]
push 0
push eax
push dword [esi]
call fcn.00404b50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x403cdc
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x403d17
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x403cfe
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x403d0f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x403d19
inc edi
add eax, 0x28
cmp edi, esi
jb 0x403cf4
xor eax, eax
pop edi
pop esi
ret

Function at 0x405cff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x405ceb
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
test dword [esp + edi*8 - 1], ebx
inc dword [ebx - 0x3a343]
inc dword [eax]
je 0x405d32
lea eax, [ebp - 0x714]
push eax
call fcn.00403cac
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00403c61
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x405d3d
jmp 0x405d42
jmp 0x40563e
cmp dword [ebp - 0x37c], 0
jne 0x405dec
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
inc dword [eax]
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403e78
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x405dd8
lea eax, [ebp - 0x714]
push eax
call fcn.00403cac
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.00403d41
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
invalid

Function at 0x401930
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401943
push esp
mov dword [ebp - 0x24], 0x401660
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.zeenty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.upsent
push str.zeenty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019e2
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019c3
pop ebp
ret 0x10
Function at 0x4553eb
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4657f0
call fcn.0045c8f0
mov edi, 0x94
mov eax, edi
call fcn.0045ca50
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 [0x475b1c], ecx
mov eax, dword [esi + 4]
mov dword [0x475b28], eax
mov edx, dword [esi + 8]
mov dword [0x475b2c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x475b20], esi
cmp ecx, 2
je 0x45544b
or esi, 0x8000
mov dword [0x475b20], esi
shl eax, 8
add eax, edx
mov dword [0x475b24], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x455486
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x455486
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x45549e
cmp eax, 0x20b
je 0x45548b
mov dword [ebp - 0x1c], esi
jmp 0x4554b2
cmp dword [ecx + 0x84], 0xe
jbe 0x455486
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4554ac
cmp dword [ecx + 0x74], 0xe
jbe 0x455486
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0045eda8
pop ecx
test eax, eax
jne 0x4554de
cmp dword [0x475aec], 1
jne 0x4554cb
call fcn.0045e499
push 0x1c
call fcn.0045e322
push 0xff
call fcn.0045727b
pop ecx
pop ecx
call fcn.0045ed06
mov dword [ebp - 4], esi
call fcn.0045eb5b
test eax, eax
jge 0x4554f7
push 0x1b
call fcn.004553c6
pop ecx
call fcn.0045eabc
mov dword [0x4773c8], eax
call fcn.0045e952
mov dword [0x475ae8], eax
call fcn.0045e8bc
test eax, eax
jge 0x45551c
push 8
call fcn.004553c6
pop ecx
call fcn.0045e689
test eax, eax
jge 0x45552d
push 9
call fcn.004553c6
pop ecx
push 1
call fcn.004572ab
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x455543
push eax
call fcn.004553c6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0045e643
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x455564
movzx eax, word [ebp - 0x40]
jmp 0x455567
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401010
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x455585
push edi
call fcn.004573d6
call fcn.004573f8
jmp 0x4555b7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045c92b
ret
Function at 0x457315
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x475b5c], esi
push edi
jne 0x457335
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 [0x475b58], esi
mov byte [0x475b54], al
jne 0x45739b
mov ecx, dword [0x4763a8]
test ecx, ecx
je 0x45737c
mov eax, dword [0x4763a4]
sub eax, 4
cmp eax, ecx
jmp 0x457375
mov eax, dword [eax]
test eax, eax
je 0x457367
call eax
mov eax, dword [0x4763a4]
sub eax, 4
cmp eax, dword [0x4763a8]
mov dword [0x4763a4], eax
jae 0x45735f
mov eax, 0x46a048
mov esi, 0x46a050
cmp eax, esi
mov edi, eax
jae 0x45739b
mov eax, dword [edi]
test eax, eax
je 0x457394
call eax
add edi, 4
cmp edi, esi
jb 0x45738c
mov eax, 0x46a054
mov esi, 0x46a05c
cmp eax, esi
mov edi, eax
jae 0x4573ba
mov eax, dword [edi]
test eax, eax
je 0x4573b3
call eax
add edi, 4
cmp edi, esi
jb 0x4573ab
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4573d4
push dword [ebp + 8]
mov dword [0x475b5c], 1
call fcn.0045727b
pop ebp
ret
Function at 0x45e322
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x46a408]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x46a8d0]
je 0x45e357
inc eax
cmp eax, 0x13
jb 0x45e348
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x46a8d0]
jne 0x45e47d
mov eax, dword [0x475aec]
cmp eax, 1
je 0x45e455
cmp eax, edx
jne 0x45e387
cmp dword [0x46a464], 1
je 0x45e455
cmp ecx, 0xfc
je 0x45e47d
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45e3bd
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00453ff0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00455320
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45e3f1
mov eax, edi
push eax
call fcn.00455320
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4666fc
push edi
call fcn.004613f0
add esp, 0x10
push edi
call fcn.00455320
push dword [esi + 0x46a8d4]
mov ebx, eax
call fcn.00455320
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0045ca50
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00453ff0
push edi
push ebx
call fcn.00454000
push 0x466b98
push ebx
call fcn.00454000
push dword [esi + 0x46a8d4]
push ebx
call fcn.00454000
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00462645
add esp, 0x2c
jmp 0x45e47d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x46a8d4]
push dword [esi]
call fcn.00455320
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00454e0d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x45e952
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x475e34]
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 0x45e99b
call ebp
mov esi, eax
cmp esi, ebx
je 0x45e981
mov dword [0x475e34], 1
jmp 0x45e9a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45e996
push 2
pop eax
mov dword [0x475e34], eax
jmp 0x45e99b
mov eax, dword [0x475e34]
cmp eax, 1
jne 0x45e9f8
cmp esi, ebx
jne 0x45e9b3
call ebp
mov esi, eax
cmp esi, ebx
jne 0x45e9b3
xor eax, eax
jmp 0x45ea9f
cmp word [esi], bx
mov eax, esi
je 0x45e9c8
inc eax
inc eax
cmp word [eax], bx
jne 0x45e9ba
inc eax
inc eax
cmp word [eax], bx
jne 0x45e9ba
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00457248
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x45e9eb
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x45ea9f
push ebp
push esi
push edi
call fcn.004540f0
add esp, 0xc
jmp 0x45e9dd
cmp eax, 2
je 0x45ea01
cmp eax, ebx
jne 0x45e9ac
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x45e9ac
cmp byte [ebp], bl
mov esi, ebp
je 0x45ea37
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x45e9ac
push esi
add edi, eax
call fcn.00455320
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x45ea14
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00457248
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x45eab0
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x45ea91
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 0x45eaa6
push edi
call fcn.00455320
push esi
lea edi, [edi + eax + 1]
call fcn.004553b0
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x45ea57
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.004555e7
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x45e9ac
Function at 0x45eabc
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x475e38]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x45eafc
call esi
test eax, eax
je 0x45eae1
mov dword [0x475e38], 1
jmp 0x45eb01
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45eaf8
mov dword [0x475e38], 2
jmp 0x45eb0a
xor eax, eax
jmp 0x45eb58
cmp eax, 1
jne 0x45eb05
call esi
jmp 0x45eb58
cmp eax, 2
jne 0x45eaf8
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 0x45eb50
lea eax, [esi + esi]
push eax
call fcn.00457248
mov ebp, eax
test ebp, ebp
pop ecx
je 0x45eb50
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x45eb54
push ebp
call fcn.004555e7
pop ecx
xor eax, eax
jmp 0x45eb56
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x45f947
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x476284]
mov eax, dword [0x46a408]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x45fb0d
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4762a0]
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 - 0x80], ebx
je 0x45fb0d
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x45f9b1
xor eax, eax
jmp 0x45fb21
test al, 0x20
je 0x45f9c2
push 2
push edi
push edi
push ecx
call fcn.00462f69
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x45fa97
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x45fade
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x45fa24
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45fa15
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x45f9f7
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45fa64
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x45fa70
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x45f9eb
jmp 0x45fa72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x45fb08
cmp dword [ebp + 0x3a4], edi
je 0x45fade
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x45fad0
mov dword [0x475b14], eax
jmp 0x45fb14
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45fac2
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x45fa72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x45fa72
push dword [ebp + 0x3a4]
call fcn.00462f0a
pop ecx
jmp 0x45fb1e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45faf6
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x45f9aa
mov dword [0x475b10], 0x1c
mov dword [0x475b14], edi
jmp 0x45fb1e
sub eax, dword [ebp - 0x7c]
jmp 0x45fb21
and dword [0x475b14], 0
mov dword [0x475b10], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00454e0d
add ebp, 0x39c
leave
ret
Function at 0x46209c
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.0045ca50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x462137
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 [0x475b1c]
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 0x462137
cmp eax, 1
je 0x462158
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 0x462137
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x462104
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x462133
xor eax, eax
inc eax
jmp 0x462177
cmp edi, eax
jae 0x46213b
xor eax, eax
jmp 0x462177
cmp eax, esi
jae 0x462142
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 [0x475b1c]
jmp 0x46215b
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