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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x459a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412e10
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x411cbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x411cbb
or esi, 0xffffffff
jmp 0x411cbd
xor esi, esi
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x411cf3
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411ce9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411d04
push ecx
push edx
call fcn.00413993
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00413b9e
mov esp, ebp
pop ebp
ret
call fcn.0041719f
int3

Function at 0x411d10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x459a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x7ff
push eax
lea eax, [ebp - 0x804]
mov byte [ebp - 0x804], 0
push eax
call fcn.0041c310
lea eax, [ebp - 0x804]
add esp, 0xc
lea edx, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411d50
push ebx
sub eax, edx
push esi
push edi
test eax, eax
jle 0x411d94
dec eax
lea esi, [ebp - 0x804]
add esi, eax
mov cl, byte [esi]
and cl, 0xc0
cmp cl, 0x80
jne 0x411d77
test eax, eax
jne 0x411d60
lea eax, [ebp - 0x820]
mov dword [ebp - 0x820], esi
push eax
call fcn.004129f0
add esp, 4
cmp eax, 0xffffffff
jne 0x411d94
mov byte [esi], 0
mov al, byte [ebp - 0x803]
lea esi, [ebp - 0x803]
test al, al
je 0x411e0f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp al, 0x2f
jne 0x411e07
cmp byte [esi + 1], 0
je 0x411e07
lea eax, [ebp - 0x804]
mov byte [esi], 0
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.00412e10
add esp, 8
lea eax, [ebp - 0x81c]
cmp dword [ebp - 0x808], 8
cmovae eax, dword [ebp - 0x81c]
push 0
push eax
call ebx
test eax, eax
jne 0x411df9
call edi
cmp eax, 0xb7
jne 0x411e22
lea ecx, [ebp - 0x81c]
call fcn.0040b690
mov byte [esi], 0x2f
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x411db0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413b9e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x81c]
call fcn.0040b690
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b9e
mov esp, ebp
pop ebp
ret
Function at 0x411e50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x459a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412e10
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
neg eax
sbb esi, esi
cmp ecx, 8
jb 0x411ebd
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411eb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411ecf
push ecx
push edx
call fcn.00413993
add esp, 8
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
xor ecx, ebp
pop esi
call fcn.00413b9e
mov esp, ebp
pop ebp
ret
call fcn.0041719f
int3

Function at 0x411ee0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x459a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00412e10
add esp, 8
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
neg eax
sbb esi, esi
neg esi
cmp ecx, 8
jb 0x411f4f
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411f45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411f61
push ecx
push edx
call fcn.00413993
add esp, 8
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
xor ecx, ebp
pop esi
call fcn.00413b9e
mov esp, ebp
pop ebp
ret
call fcn.0041719f
int3
Function at 0x411f70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f2cd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x459a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00412e10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00412e10
add esp, 0x10
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 3
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x14]
neg eax
sbb esi, esi
cmp ecx, 8
jb 0x412017
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41200d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41207e
push ecx
push edx
call fcn.00413993
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x412061
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412057
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41207e
push ecx
push edx
call fcn.00413993
add esp, 8
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413b9e
mov esp, ebp
pop ebp
ret
call fcn.0041719f
int3

Function at 0x4120b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412110
add esp, 8
mov esi, eax
test byte [ebp + 0xc], 8
je 0x412106
test esi, esi
je 0x412106
push esi
push 3
lea eax, [ebp - 4]
push 1
push eax
call fcn.0041da06
add esp, 0x10
cmp eax, 3
jne 0x4120f7
cmp byte [ebp - 4], 0xef
jne 0x4120f7
cmp byte [ebp - 3], 0xbb
jne 0x4120f7
cmp byte [ebp - 2], 0xbf
je 0x412104
push 0
push 0
push esi
call fcn.0041dda9
add esp, 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4122b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0041da06
add esp, 0x10
pop ebp
ret
Function at 0x4122d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call fcn.0041dda9
push ebx
call fcn.0041e408
push 0
push 0
push ebx
mov esi, eax
call fcn.0041dda9
mov eax, 0x400
test esi, esi
cmovs esi, eax
lea edi, [esi + 1]
push edi
call fcn.0041720b
push dword [ebp + 8]
mov ebx, eax
push edi
push 1
push ebx
call fcn.0041da06
add esp, 0x30
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x412330
lea ecx, [eax + 1]
push ecx
push ebx
call fcn.0041ad18
mov esi, dword [ebp - 4]
jmp 0x412390
jbe 0x412395
lea edi, [eax + eax]
mov esi, eax
push edi
push ebx
call fcn.0041ad18
push dword [ebp + 8]
mov ebx, eax
mov eax, esi
push eax
push 1
lea ecx, [eax + ebx]
push ecx
call fcn.0041da06
add esp, 0x18
test eax, eax
je 0x412386
add esi, eax
cmp esi, edi
jne 0x41236c
add edi, edi
push edi
push ebx
call fcn.0041ad18
add esp, 8
mov ebx, eax
push dword [ebp + 8]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041da06
add esp, 0x10
test eax, eax
jne 0x412358
lea eax, [esi + 1]
push eax
push ebx
call fcn.0041ad18
mov ebx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov byte [ebx + esi], 0
pop edi
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4123b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
call fcn.0041dda9
push ebx
call fcn.0041e408
push 0
push 0
push ebx
mov esi, eax
call fcn.0041dda9
mov eax, 0x400
test esi, esi
cmovs esi, eax
lea edi, [esi + 1]
push edi
call fcn.0041720b
push dword [ebp + 8]
mov ebx, eax
push edi
push 1
push ebx
call fcn.0041da06
add esp, 0x30
mov dword [ebp - 4], eax
cmp eax, esi
jae 0x412410
lea ecx, [eax + 1]
push ecx
push ebx
call fcn.0041ad18
mov esi, dword [ebp - 4]
jmp 0x412470
jbe 0x412475
lea edi, [eax + eax]
mov esi, eax
push edi
push ebx
call fcn.0041ad18
push dword [ebp + 8]
mov ebx, eax
mov eax, esi
push eax
push 1
lea ecx, [eax + ebx]
push ecx
call fcn.0041da06
add esp, 0x18
test eax, eax
je 0x412466
add esi, eax
cmp esi, edi
jne 0x41244c
add edi, edi
push edi
push ebx
call fcn.0041ad18
add esp, 8
mov ebx, eax
push dword [ebp + 8]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + esi]
push 1
push eax
call fcn.0041da06
add esp, 0x10
test eax, eax
jne 0x412438
lea eax, [esi + 1]
push eax
push ebx
call fcn.0041ad18
mov ebx, eax
add esp, 8
xor eax, eax
mov byte [ebx + esi], 0
test esi, esi
je 0x41248b
nop
cmp byte [eax + ebx], 0
je 0x412494
inc eax
cmp eax, esi
jb 0x412480
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004171f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
call fcn.0041720b
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push 0x412bf0
push 0
push 0
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
push str.CreateThread_failure
setne cl
movzx ecx, cl
push ecx
push 0x335
push str.D:_acactuscactus_src_base_system.cpp
call fcn.00411220
add esp, 0x10
mov eax, esi
pop esi
pop ebp
ret

Function at 0x41481c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41485b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41485b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41485b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41485b
cmp dword [ecx + 0x74], 0xe
jbe 0x41485b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41e201
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00413bb0
mov eax, dword [0x459a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041d806
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41e243
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41e39f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00413c70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x461aa0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041ab50
mov ecx, dword [esi*4 + 0x461aa0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41e398
cmp eax, dword [ecx + edi + 0x24]
jne 0x41e398
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e398
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ab50
add esp, 0x14
test edx, edx
jl 0x41e398
jg 0x41e30e
test eax, eax
jb 0x41e398
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41e398
jl 0x41e328
cmp dword [ebp - 0x1008], eax
ja 0x41e398
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41e346
test ebx, ebx
je 0x41e37f
cmp ecx, edi
jae 0x41e37f
mov al, byte [ecx]
cmp al, 0xd
jne 0x41e360
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41e36c
cmp byte [ecx + 1], 0xa
jne 0x41e36c
inc ecx
jmp 0x41e36c
movzx eax, al
movsx eax, byte [eax + 0x459bd0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41e346
cmp edx, ebx
jne 0x41e346
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41e39d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413b9e
leave
ret
Function at 0x421b43
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 + 0x461aa0]
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 0x421b83
cmp byte [ebx], 0xa
jne 0x421b83
or byte [edi + eax + 0x28], 4
jmp 0x421b88
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 0x421c87
mov dl, byte [eax]
cmp dl, 0x1a
je 0x421c6a
inc eax
cmp dl, 0xd
je 0x421bb4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x421bda
cmp eax, ecx
jae 0x421be8
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 0x421b9c
jmp 0x421c87
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 0x421c65
cmp dword [ebp - 0x10], 0
je 0x421c65
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x461aa0]
test byte [eax + edi + 0x28], 0x48
je 0x421c3f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421c2a
mov byte [esi], dl
jmp 0x421c3b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x461aa0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421c87
cmp byte [ebp - 1], 0xa
jne 0x421c4e
cmp esi, ebx
jne 0x421c4e
mov byte [esi], 0xa
jmp 0x421c86
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ab6e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421c87
mov byte [esi], 0xd
jmp 0x421c86
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x461aa0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421c84
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421c87
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421c90
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 + 0x461aa0]
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 0x421cd6
cmp word [ebx], dx
jne 0x421cd6
or byte [eax + edi + 0x28], 4
jmp 0x421cdb
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 0x421e3e
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 0x421e1e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x421d1c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x421d52
cmp eax, edx
jae 0x421d60
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 0x421cf7
jmp 0x421e3e
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 0x421e19
cmp dword [ebp - 0x18], 0
je 0x421e19
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x461aa0]
test byte [eax + edi + 0x28], 0x48
je 0x421def
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 0x421db3
mov word [esi], cx
jmp 0x421dea
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x461aa0]
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 + 0x461aa0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x461aa0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x421e3e
pop eax
cmp word [ebp - 4], ax
jne 0x421dff
cmp esi, ebx
jne 0x421dff
mov word [esi], ax
jmp 0x421e3b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ab6e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x421e3e
push 0xd
pop eax
jmp 0x421dfa
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x461aa0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x421e38
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x421e3e
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 0x4251c0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452bb8
push 0x452bb0
push str.FlsAlloc
push 0x1f
call fcn.0042507f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4251f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4301f0]
call esi
jmp 0x4251fa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42523e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452bc8
push 0x452bc0
push str.FlsGetValue
push 0x21
call fcn.0042507f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x425275
push dword [ebp + 8]
mov ecx, esi
call dword [0x4301f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42527d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x452bd0
push 0x452bc8
push str.FlsSetValue
push 0x22
call fcn.0042507f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4252b7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4301f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x429428
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 0x4294c5
push ebx
push esi
call fcn.004293f1
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.00424de9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x429472
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4294c4
push edi
push eax
call fcn.00423689
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x429492
call fcn.0042364f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4294c3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00424de9
add esp, 0x20
test eax, eax
jne 0x4294b1
push edi
call fcn.0042364f
jmp 0x4294b9
push ebx
call fcn.0042364f
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 0x4294c8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4294d9
pop esi
ret
push ebx
push edi
push esi
call fcn.004293f1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00423689
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x429501
push ebx
push esi
push edi
call fcn.004150e0
add esp, 0xc
push 0
call fcn.0042364f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x429c5b
Capabilities:
Set environment variable

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

Function at 0x42ea10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42ea3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ea3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100010fa
Capabilities:
Terminate process

Disassembly:
jmp 0x10007dc0
mov eax, dword [0x100774f8]
test eax, eax
jne 0x10007dd1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x100774f8]
push str.DllRegisterServer
push eax
call fcn.100010aa
add esp, 8
call eax
xor eax, eax
ret
Function at 0x1001ba0b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10075960
cmp edx, dword [eax]
je 0x1001ba2d
add eax, 8
inc ecx
cmp eax, 0x100759f0
jl 0x1001ba1e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10075960]
jne 0x1001bb5b
mov eax, dword [0x10079580]
cmp eax, 1
je 0x1001bb35
test eax, eax
jne 0x1001ba5e
cmp dword [0x10079584], 1
je 0x1001bb35
cmp edx, 0xfc
je 0x1001bb5b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001ba95
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1001bc20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1001bd10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1001bad8
lea eax, [ebp - 0x1a4]
push eax
call fcn.1001bd10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10068cf4
push edi
call fcn.1001e9a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1001bc20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1001bc30
lea eax, [ebp - 0xa0]
push 0x10068cd4
push eax
call fcn.1001bc30
push dword [esi + 0x10075964]
lea eax, [ebp - 0xa0]
push eax
call fcn.1001bc30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10020ba1
add esp, 0x2c
pop edi
jmp 0x1001bb5b
lea eax, [ebp + 8]
lea esi, [esi + 0x10075964]
push 0
push eax
push dword [esi]
call fcn.1001bd10
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