joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403120
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe34
lea ecx, [ebp - 0xe34]
push ebx
xor ebx, ebx
call fcn.00402860
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push str.HookType
push eax
call fcn.004047b0
add esp, 8
test eax, eax
je 0x403215
push esi
add eax, 9
je 0x403190
mov cl, byte [eax]
xor edx, edx
test cl, cl
je 0x403189
lea esi, [ebp - 0x100]
sub esi, eax
nop dword [eax]
cmp cl, 0x20
je 0x403189
cmp edx, 0xff
jae 0x403189
mov byte [esi + eax], cl
inc edx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403170
mov byte [ebp + edx - 0x100], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push str.ProcessID
push eax
call fcn.004047b0
add esp, 8
test eax, eax
je 0x403214
add eax, 0xa
je 0x4031e0
mov cl, byte [eax]
xor edx, edx
test cl, cl
je 0x4031d9
lea esi, [ebp - 0x200]
sub esi, eax
nop dword [eax]
cmp cl, 0x20
je 0x4031d9
cmp edx, 0xff
jae 0x4031d9
mov byte [esi + eax], cl
inc edx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4031c0
mov byte [ebp + edx - 0x200], bl
push 0x10
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.0042e4a2
push 0x10
mov esi, eax
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.0042e4a2
add esp, 0x18
lea ecx, [ebp - 0xe34]
push esi
push eax
call fcn.004028c0
mov ebx, eax
pop esi
lea ecx, [ebp - 0xe34]
call fcn.00402880
xor eax, eax
cmp ebx, 1
pop ebx
setne al
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403b4c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403b8b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403b8b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403b8b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403b8b
cmp dword [ecx + 0x74], 0xe
jbe 0x403b8b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4301f9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x430238
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x430238
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x430238
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x430238
cmp dword [ecx + 0x74], 0xe
jbe 0x430238
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x437b83
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437a57
Function at 0x4384ec
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x459438]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x438537
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004388fa
test al, al
jne 0x438531
sub edx, 2
cmp edx, edi
jne 0x438517
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x438559
lea eax, [edi + 2]
cmp edx, eax
je 0x438559
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004381b3
add esp, 0x10
jmp 0x438653
push esi
lea ecx, [ebp - 0x255]
call fcn.004388fa
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43859c
push dword [ebp - 0x25c]
jmp 0x438549
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4385d9
cmp word [ebp - 0x226], 0
je 0x4385fa
cmp word [ebp - 0x226], ax
jne 0x4385d9
cmp word [ebp - 0x224], 0
je 0x4385fa
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004381b3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x438646
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4385b3
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43862e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x438653
push 0x437c03
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00445890
add esp, 0x10
jmp 0x438623
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041ef
leave
ret
Function at 0x439dca
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x439e67
push ebx
push esi
call fcn.00439d86
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00434745
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x439e14
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x439e66
push edi
push eax
call fcn.00434eba
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x439e34
call fcn.00434e80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x439e65
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00434745
add esp, 0x20
test eax, eax
jne 0x439e53
push edi
call fcn.00434e80
jmp 0x439e5b
push ebx
call fcn.00434e80
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x439e6a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x439e7b
pop esi
ret
push ebx
push edi
push esi
call fcn.00439d86
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00434eba
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x439ea3
push ebx
push esi
push edi
call fcn.004102d0
add esp, 0xc
push 0
call fcn.00434e80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43a792
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043a118

Function at 0x43da11
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00434276
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43da80
cmp esi, dword [ebp - 4]
je 0x43da7b
cmp dword [ebp + 0xc], 0
je 0x43da7b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x43da58
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043d563
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43da82
xor eax, eax
inc eax
jmp 0x43da82
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x43dae7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x459438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00434276
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00434276
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x43db5e
cmp word [ecx], dx
je 0x43db5e
mov eax, dword [0x45210c]
push edi
dec eax
push eax
push 0x451ff8
call fcn.0043da86
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43dbd1
cmp word [eax], dx
je 0x43dbd1
mov eax, dword [edi]
test eax, eax
je 0x43db82
cmp word [eax], dx
je 0x43db82
lea eax, [ebp - 0x10]
push eax
call fcn.0043d469
jmp 0x43db8b
lea eax, [ebp - 0x10]
push eax
call fcn.0043d504
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x43dbfb
mov eax, dword [0x451ff4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x451ce8
call fcn.0043da86
add esp, 0xc
test al, al
je 0x43dbfb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x43dbc6
cmp word [eax], di
je 0x43dbc6
lea eax, [ebp - 0x10]
push eax
call fcn.0043d469
pop ecx
jmp 0x43dbfd
lea eax, [ebp - 0x10]
push eax
call fcn.0043d504
jmp 0x43dbc3
mov eax, dword [edi]
test eax, eax
je 0x43dbe8
cmp word [eax], dx
je 0x43dbe8
lea eax, [ebp - 0x10]
push eax
call fcn.0043d400
pop ecx
jmp 0x43dbfb
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x43dcc6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0043d90b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43dcc6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x43dcc6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43dcc6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43dc53
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0043e9d6
test ebx, ebx
je 0x43dcc1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0043e9d6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43dcc6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43dcc6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00446d53
add esp, 0x10
xor eax, eax
inc eax
jmp 0x43dcc8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041ef
leave
ret
Function at 0x43e648
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x453334
push 0x45332c
push str.FlsAlloc
push 0x1f
call fcn.0043e316
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e67c
push dword [ebp + 8]
mov ecx, esi
call dword [0x44f1a0]
call esi
jmp 0x43e682
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43e6c6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x453344
push 0x45333c
push str.FlsGetValue
push 0x21
call fcn.0043e316
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e6fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x44f1a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43e705
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45334c
push 0x453344
push str.FlsSetValue
push 0x22
call fcn.0043e316
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43e73f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44f1a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44a60f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x45acc0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44a64f
cmp byte [ebx], 0xa
jne 0x44a64f
or byte [edi + eax + 0x28], 4
jmp 0x44a654
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x44a753
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44a736
inc eax
cmp dl, 0xd
je 0x44a680
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44a6a6
cmp eax, ecx
jae 0x44a6b4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x44a668
jmp 0x44a753
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44a731
cmp dword [ebp - 0x10], 0
je 0x44a731
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x45acc0]
test byte [eax + edi + 0x28], 0x48
je 0x44a70b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44a6f6
mov byte [esi], dl
jmp 0x44a707
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45acc0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44a753
cmp byte [ebp - 1], 0xa
jne 0x44a71a
cmp esi, ebx
jne 0x44a71a
mov byte [esi], 0xa
jmp 0x44a752
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00449bda
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44a753
mov byte [esi], 0xd
jmp 0x44a752
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x45acc0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44a750
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44a753
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44a75c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x45acc0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44a7a2
cmp word [ebx], dx
jne 0x44a7a2
or byte [eax + edi + 0x28], 4
jmp 0x44a7a7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44a90a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44a8ea
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44a7e8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44a81e
cmp eax, edx
jae 0x44a82c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44a7c3
jmp 0x44a90a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44a8e5
cmp dword [ebp - 0x18], 0
je 0x44a8e5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x45acc0]
test byte [eax + edi + 0x28], 0x48
je 0x44a8bb
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x44a87f
mov word [esi], cx
jmp 0x44a8b6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x45acc0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45acc0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x45acc0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44a90a
pop eax
cmp word [ebp - 4], ax
jne 0x44a8cb
cmp esi, ebx
jne 0x44a8cb
mov word [esi], ax
jmp 0x44a907
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00449bda
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44a90a
push 0xd
pop eax
jmp 0x44a8c6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x45acc0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44a904
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44a90a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44dd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44dd2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44dd2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x402b70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
lea edi, [ebp + 8]
cmp byte [ecx + 0xb], 0
js 0x402b86
je 0x402bb4
mov eax, esi
jmp 0x402b8e
cmp dword [esi + 4], 0
je 0x402bb4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [esi + 0xb], 0
js 0x402ba6
mov word [esi], 0
mov byte [esi + 0xb], 0
jmp 0x402bb4
mov eax, dword [esi]
mov word [eax], 0
mov dword [esi + 4], 0
cmp esi, edi
je 0x402bfa
cmp byte [esi + 0xb], 0
js 0x402be2
cmp byte [edi + 0xb], 0
jns 0x402bd2
mov ecx, esi
push dword [edi + 4]
push dword [edi]
call fcn.0040a0b0
jmp 0x402bfa
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
jmp 0x402bfa
movzx eax, byte [edi + 0xb]
mov edx, edi
test al, al
jns 0x402bf1
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, esi
push eax
push edx
call fcn.00409fa0
cmp byte [edi + 0xb], 0
jns 0x402c0a
push dword [edi]
call fcn.0040bae0
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x424942
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042494d

Function at 0x427bec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427bf7

Function at 0x42f400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
xor eax, eax
dec eax
mov dword [ecx - 4], eax
mov dword [ecx - 8], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
push dword [edi + 0x28]
call dword [eax + 0x10]
mov ebx, eax
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c199
add esp, 0x10
cmp eax, esi
jne 0x42f483
cmp ebx, 1
je 0x42f425
cmp ebx, 2
mov esi, 0xffffffff
je 0x42f486
mov eax, dword [ebp - 0x20]
push dword [eax + 0x20]
call fcn.0041be36
add esp, 4
neg eax
sbb esi, esi
jmp 0x42f486
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c5fb
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42f4a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x42f4c9
push dword [ecx + 0x20]
push esi
push 1
push eax
call fcn.0041c199
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jle 0x42f4f1
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, byte [eax + edi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp eax, 0xffffffff
je 0x42f4f3
inc edi
cmp esi, edi
mov eax, ebx
jne 0x42f4d2
mov edi, esi
jmp 0x42f4f3
xor edi, edi
mov eax, edi
add esp, 4
jmp 0x42f4c2
Function at 0x42f500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [0x450014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
cmp ebx, eax
je 0x42f54d
mov edi, ecx
mov byte [ebp - 0x19], bl
cmp byte [ecx + 0x2c], 0
je 0x42f567
xor esi, esi
inc esi
lea eax, [ebp - 0x19]
push dword [edi + 0x20]
push esi
push esi
push eax
call fcn.0041c199
add esp, 0x10
cmp eax, esi
mov esi, 0xffffffff
je 0x42f54f
jmp 0x42f551
xor ebx, ebx
mov esi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040c5fb
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x20]
mov dword [ecx], eax
lea esi, [ebp - 0x19]
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x18]
push edx
push esi
push dword [edi + 0x28]
call dword [eax + 8]
cmp dword [ebp - 0x24], esi
je 0x42f5ea
mov ebx, eax
cmp eax, 3
je 0x42f5d5
cmp ebx, 1
ja 0x42f5ea
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
sub esi, eax
push dword [edi + 0x20]
push esi
push 1
push eax
call fcn.0041c199
add esp, 0x10
cmp eax, esi
jne 0x42f5ea
mov esi, dword [ebp - 0x24]
cmp ebx, 1
je 0x42f572
mov ebx, dword [ebp + 8]
jmp 0x42f54f
xor ebx, ebx
inc ebx
push dword [edi + 0x20]
push ebx
push ebx
push esi
call fcn.0041c199
add esp, 0x10
cmp eax, ebx
je 0x42f5cd
xor esi, esi
dec esi
jmp 0x42f551

Function at 0x42f630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp byte [ecx + 0x2c], 0
je 0x42f659
push dword [ecx + 0x20]
push esi
push 2
push eax
call fcn.0041c199
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
test esi, esi
jle 0x42f682
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ebx, eax
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
cmp ax, 0xffff
je 0x42f684
inc edi
cmp esi, edi
mov eax, ebx
jne 0x42f662
mov edi, esi
jmp 0x42f684
xor edi, edi
mov eax, edi
add esp, 4
jmp 0x42f652