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

Disassembly:
mov eax, 0x4344f3
call fcn.004339e0
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00407553
mov ebx, dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
cmp edi, 1
je 0x405224
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405217
mov al, 1
jmp 0x405307
call ebx
cmp eax, 0xb7
je 0x4052b8
test edi, edi
je 0x4052b8
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp edi, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, esi
call fcn.0040765c
test al, al
je 0x4052ab
push 0
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405260
mov bl, 1
jmp 0x4052a6
call ebx
cmp eax, 0xb7
je 0x40526d
xor bl, bl
jmp 0x4052a6
lea ecx, [ebp - 0x50]
call fcn.00405c60
lea ecx, [ebp - 0x28]
call fcn.004028e9
push dword [ebp - 0x18]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00405d00
test al, al
jne 0x405294
xor bl, bl
jmp 0x40529d
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00401abd
pop ecx
push dword [ebp - 0x18]
jmp 0x4052ff
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.00401abd
pop ecx
call ebx
cmp eax, 0xb7
je 0x4052c5
xor al, al
jmp 0x405307
lea ecx, [ebp - 0x88]
call fcn.00405c60
lea ecx, [ebp - 0x60]
call fcn.004028e9
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.00405d00
test al, al
jne 0x4052f3
xor bl, bl
jmp 0x4052fc
mov ebx, dword [ebp - 0x68]
shr ebx, 4
and bl, 1
push dword [ebp - 0x60]
call fcn.00401abd
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405320
Capabilities:
Delete file

Disassembly:
mov eax, 0x434508
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00405c83
cmp eax, 0xffffffff
je 0x405354
test al, 0x10
jne 0x405354
test al, 1
je 0x405354
mov edx, eax
mov ecx, edi
and edx, 0xfffffffe
call fcn.00404d1a
test al, al
je 0x4053b5
mov ecx, edi
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_DeleteFileW]
mov ebx, eax
cmp ebx, 1
je 0x405373
push edi
call esi
test eax, eax
je 0x405373
mov al, 1
jmp 0x4053b7
test ebx, ebx
je 0x4053b5
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x4053af
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
test esi, esi
pop ecx
setne al
jmp 0x4053b7
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040826a
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040826a
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40826a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x408279
pop dword [ebp - 0x28]
mov eax, 0x854128a9
add eax, 0x7aff59d0
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3e0c5
push 0
mov eax, 0x12bd85e3
sub eax, 0x127a05b3
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x1b3becbf
sub ecx, 0x1b3b973b
xor esi, esi
add esi, eax
mov edi, 0x7906b205
sub edi, 0x78c1ec05
add edi, dword [ebp - 0x28]
mov ebx, 0xe7f1256
add ebx, 0x5e104f26
add dword [ebp - 4], edi
mov edx, dword [edi]
mov dword [ebp - 8], 0xe972db68
xor edx, ebx
sub dword [ebp - 0x18], 0xf9b87c6b
mov dword [esi], edx
xor dword [ebp - 0x10], 0x4badd5
add esi, 0x94c7bd53
add esi, 0x6b3842b1
add edi, 0x3412aee3
sub edi, 0x3412aedf
loop 0x4082da
add eax, 0x148e3
mov ebx, eax
add eax, 0x3f4cbffe
add eax, 0xc0b34007
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x415bb2
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, ecx
jbe 0x415cc9
mov ecx, edx
mov edx, dword [esp + 4]
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
add eax, edx
xor eax, edx
dec ecx
jne 0x415bc2
ret 4

Function at 0x41711f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x435726
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
call fcn.004171c5
lea eax, [esi + 0x8c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov byte [ebp - 4], 5
mov byte [esi + 0x95], bl
mov dword [esi + 0x98], ebx
call fcn.0040d4f9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x94], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4196f4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x435aa2
call fcn.004339e0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.004028e9
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0041974e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4197a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x435aed
call fcn.004339e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0042214a
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.004197f6
push dword [esi + 0x24]
call fcn.00401abd
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.00418b2e
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00419d33
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41add3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x435cee
call fcn.004339e0
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x43987c
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea ecx, [esi + 0x48]
mov dword [ebp - 4], edi
call fcn.004028e9
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi], fcn.0041a6a2
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x41baeb
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x435e42
call fcn.004339e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 1
call fcn.00418b2e
and byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0041c873
push dword [esi + 0xc]
call fcn.00401abd
pop ecx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x42fb71
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x43757a
call fcn.004339e0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43c770
mov dword [esi + 4], 0x43c758
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43c73c
mov dword [esi + 4], 0x43c724
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x433770
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433799
xor eax, eax
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4337a8
mov eax, 1
ret 4

Function at 0x433db6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce40
push 0x433db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x446748], 0xffffffff
or dword [0x44674c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x444730]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x44472c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x446744], eax
call fcn.00433ef9
cmp dword [0x444420], 0
jne 0x433e39
push 0x433ef6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00433ee4
push 0x444034
push 0x444030
call sub.msvcrt.dll__initterm
mov eax, dword [0x444728]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x444724]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
push 0x44402c
push section..data
call sub.msvcrt.dll__initterm
call dword [sym.imp.msvcrt.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004312ef
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4

Function at 0x408954
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.00408972
inc edx
xor dword [ebx], ecx
inc edx
inc ebx
add edi, edi
cmp ebx, eax
jne main
and edi, edi
ret
Function at 0x4c7ff1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d2408
cmp edx, dword [eax]
je 0x4c8013
add eax, 8
inc ecx
cmp eax, 0x4d2498
jl 0x4c8004
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d2408]
jne 0x4c8141
mov eax, dword [0x4d7e30]
cmp eax, 1
je 0x4c811b
test eax, eax
jne 0x4c8044
cmp dword [0x4d2334], 1
je 0x4c811b
cmp edx, 0xfc
je 0x4c8141
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c807b
lea eax, [ebp - 0x1a4]
push 0x4cde38
push eax
call fcn.004c89d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c8e60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c80be
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c8e60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cde34
push edi
call fcn.004cad30
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cde18
push eax
call fcn.004c89d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c89e0
lea eax, [ebp - 0xa0]
push 0x4cde14
push eax
call fcn.004c89e0
push dword [esi + 0x4d240c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c89e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cddec
push eax
call fcn.004caca4
add esp, 0x2c
pop edi
jmp 0x4c8141
lea eax, [ebp + 8]
lea esi, [esi + 0x4d240c]
push 0
push eax
push dword [esi]
call fcn.004c8e60
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 0x408657
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, eax
test ecx, ecx
je 0x4086df
test edi, edi
je 0x4086df
cmp edi, 0xffff
jbe 0x408677
cmp byte [edi], 0
je 0x4086df
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx + 0x7c], 0
je 0x4086df
mov eax, dword [edx + ecx + 0x78]
test eax, eax
je 0x4086df
cmp eax, dword [edx + ecx + 0x50]
jae 0x4086df
mov esi, dword [eax + ecx + 0x1c]
mov edx, dword [eax + ecx + 0x20]
mov ebx, dword [eax + ecx + 0x24]
add esi, ecx
add edx, ecx
add ebx, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ebx
cmp edi, 0xffff
ja 0x4086d2
mov edx, dword [eax + ecx + 0x10]
cmp edi, edx
jb 0x4086df
mov eax, dword [eax + ecx + 0x14]
add eax, edx
cmp edi, eax
jae 0x4086df
sub edi, edx
mov eax, dword [esi + edi*4]
pop edi
pop esi
add eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + ecx + 0x18]
xor ebx, ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x4086eb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov edx, dword [edx + ebx*4]
lea esi, [edx + ecx]
mov dl, byte [edi]
mov eax, edi
cmp dl, byte [esi]
jne 0x408708
sub esi, edi
test dl, dl
je 0x408717
mov dl, byte [eax + 1]
inc eax
cmp dl, byte [esi + eax]
je 0x4086fb
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x4086e8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + ebx*2]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
pop edi
pop esi
add eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408bef
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x408c4f
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 8], edx
mov esi, dword [edx + 0x30]
mov edi, dword [ebp + 8]
test esi, esi
je 0x408c47
mov ax, word [edx + 0x2c]
mov cl, byte [edi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x408c2d
add cl, 0x20
mov al, byte [esi]
lea ebx, [eax - 0x41]
cmp bl, 0x19
ja 0x408c39
add al, 0x20
cmp cl, al
jne 0x408c47
test cl, cl
je 0x408c5a
inc edi
add esi, 2
jmp 0x408c21
mov edx, dword [edx + 4]
cmp edx, dword [ebp - 8]
jne 0x408c13
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409039
Capabilities:
Encode data using xor

Disassembly:
test edi, edi
je 0x409061
test esi, esi
je 0x409061
mov cl, byte [esi + 2]
xor cl, byte [esi]
lea edx, [esi + 1]
sub cl, byte [edx]
mov eax, edi
mov byte [edi], cl
je 0x40905e
mov cl, byte [edx]
xor cl, byte [edx + 2]
inc edx
inc eax
sub cl, byte [edx]
mov byte [eax], cl
jne 0x409051
sub eax, edi
ret
xor eax, eax
ret
Function at 0x401aa0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40e044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40e03c]
sub esp, 4
test ebx, ebx
je 0x401aeb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401ae4
test esi, esi
je 0x401ae4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ac0
mov dword [esp], 0x40e044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cd0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401df8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401d5e
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401d6e
cmp edx, 4
je 0x401d6e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cd0