joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420dda
Capabilities:
Parse pe header

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

Function at 0x428ec3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420550
mov eax, dword [0x470e48]
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.0043252d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x428f05
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x429061
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420130
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 + 0x519f78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00435225
mov ecx, dword [esi*4 + 0x519f78]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42905a
cmp eax, dword [edi + ecx + 0x24]
jne 0x42905a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42905a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435225
add esp, 0x14
test edx, edx
jl 0x42905a
jg 0x428fd0
test eax, eax
jb 0x42905a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x42905a
jl 0x428fea
cmp dword [ebp - 0x1008], eax
ja 0x42905a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x429008
test ebx, ebx
je 0x429041
cmp ecx, edi
jae 0x429041
mov al, byte [ecx]
cmp al, 0xd
jne 0x429022
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42902e
cmp byte [ecx + 1], 0xa
jne 0x42902e
inc ecx
jmp 0x42902e
movzx eax, al
movsx eax, byte [eax + 0x471048]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x429008
cmp edx, ebx
jne 0x429008
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42905f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00420a21
leave
ret

Function at 0x431f8e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444e04
push 0x444dfc
push str.FlsAlloc
push 0x1e
call fcn.00431e6c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x431fc2
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f2a8]
call esi
jmp 0x431fc8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x43200c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x444e14
push 0x444e0c
push str.FlsGetValue
push 0x20
call fcn.00431e6c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x432043
push dword [ebp + 8]
mov ecx, esi
call dword [0x43f2a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x434529
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x519f78]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x434569
cmp byte [ebx], 0xa
jne 0x434569
or byte [eax + edi + 0x28], 4
jmp 0x43456e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x43466c
mov al, byte [edx]
cmp al, 0x1a
je 0x43464e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x43459d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4345c2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4345cc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x43457f
jmp 0x43466c
push 0
lea eax, [ebp - 0xc]
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 0x434649
cmp dword [ebp - 0xc], 0
je 0x434649
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x519f78]
test byte [eax + edi + 0x28], 0x48
je 0x434623
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43460e
mov byte [esi], dl
jmp 0x43461f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x519f78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43466c
cmp byte [ebp - 1], 0xa
jne 0x434632
cmp esi, ebx
jne 0x434632
mov byte [esi], 0xa
jmp 0x43466b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00435243
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43466c
mov byte [esi], 0xd
jmp 0x43466b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x519f78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x434668
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43466c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434675
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x519f78]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4346b8
cmp word [esi], dx
jne 0x4346b8
or byte [edi + eax + 0x28], 4
jmp 0x4346bd
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x434810
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4347f0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4346ff
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x434735
cmp eax, edx
jae 0x434741
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4346d7
jmp 0x434810
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4347ec
cmp dword [ebp - 0x14], 0
je 0x4347ec
mov eax, dword [ebx*4 + 0x519f78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4347c4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x43478d
mov word [esi], cx
jmp 0x4347c0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x519f78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x519f78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x519f78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x434810
pop ebx
cmp word [ebp - 4], bx
jne 0x4347d5
cmp esi, dword [ebp + 0xc]
jne 0x4347d5
mov word [esi], bx
jmp 0x43480d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00435243
add esp, 0x10
cmp word [ebp - 4], bx
je 0x434810
push 0xd
jmp 0x434809
mov ecx, dword [ebx*4 + 0x519f78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x434807
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x434810
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x435031
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00434ea2
Function at 0x437e69
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 0x437f06
push ebx
push esi
call fcn.00437e32
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.00437d7b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x437eb3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437f05
push edi
push eax
call fcn.00431abf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x437ed3
call fcn.00431a85
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x437f04
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00437d7b
add esp, 0x20
test eax, eax
jne 0x437ef2
push edi
call fcn.00431a85
jmp 0x437efa
push ebx
call fcn.00431a85
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 0x43ce15
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043cd91
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43cf8d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43cf8d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43cf3c
jg 0x43ce6e
test eax, eax
je 0x43cf32
push 1
push 0x1000
call fcn.00431c26
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43ce94
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x43cf29
push 0x8000
push ebx
call fcn.004315fe
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43cec0
jg 0x43cebb
cmp ecx, 0x1000
jb 0x43cec0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00435b8e
add esp, 0x10
cmp eax, 0xffffffff
je 0x43cf05
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43cebb
jl 0x43ceec
test ecx, ecx
jne 0x43cead
push dword [ebp - 0xc]
push ebx
call fcn.004315fe
push esi
call fcn.00431a85
add esp, 0xc
xor edi, edi
jmp 0x43cf9e
cmp byte [edi + 0x24], 0
je 0x43cf1c
cmp dword [edi + 0x20], 5
jne 0x43cf1c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43cf27
mov edi, dword [edi + 0x18]
jmp 0x43cf29
xor edi, edi
push esi
call fcn.00431a85
pop ecx
jmp 0x43cf9e
test ecx, ecx
jg 0x43cefe
jl 0x43cf3c
test eax, eax
jae 0x43cefe
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00435243
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43cf5f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43cefe
jmp 0x43cf96
push ebx
call fcn.0042f058
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43cefe
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43cf9e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43cf9b
mov edi, dword [edi + 0x18]
jmp 0x43cf9e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00435243
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43d960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43d98d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43d98d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x101113f0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101115d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbf000]
push edi
or ebp, 0xffffffff
jmp 0x1011141a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10111421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10111410
mov eax, 1
add ebx, ebx
jne 0x10111433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10111444
jne 0x10111463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10111463
dec eax
add ebx, ebx
jne 0x10111450
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10111428
add ebx, ebx
jne 0x1011145f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101114b5
xor ecx, ecx
sub eax, 3
jb 0x1011147b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101114ea
sar eax, 1
mov ebp, eax
jmp 0x10111486
add ebx, ebx
jne 0x10111486
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10111454
inc ecx
add ebx, ebx
jne 0x10111494
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10111454
add ebx, ebx
jne 0x101114a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10111496
jne 0x101114b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10111496
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101114d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101114c6
jmp 0x10111416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101114d4
add edi, ecx
jmp 0x10111416
pop esi
mov edi, esi
mov ecx, 0xc0c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101114f2
cmp byte [edi], 5
jne 0x101114f2
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 al, bl
loop 0x101114f7
lea edi, [esi + 0x10d000]
mov eax, dword [edi]
or eax, eax
je 0x10111566
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x111000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11112c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10111524
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x111130]
or eax, eax
je 0x10111560
mov dword [ebx], eax
add ebx, 4
jmp 0x10111541
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10111597
cmp al, 0xef
ja 0x1011158a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1011156c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10111579
mov ebp, dword [esi + 0x111134]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101115cb
sub esp, 0xffffff80
jmp 0x10046cb6
Function at 0x401434
Capabilities:
Copy file
Create directory
Create process on windows
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x423f88]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x2c]
mov dword [ebp - 8], eax
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, eax
mov edi, edx
shl esi, 0xa
mov ecx, section..ndata
mov dword [ebp - 4], ebx
shl edi, 0xa
add esi, ecx
add edi, ecx
lea ecx, [ebp - 0x28]
mov dword [0x409c48], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffffe
cmp ecx, 0x41
ja case.0x401489.65
jmp dword [ecx*4 + 0x4028b3]
push ebx
push eax
call fcn.00404fe7
jmp 0x402224
inc dword [0x42374c]
cmp dword [ebp - 8], ebx
je 0x402224
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x402224
push eax
call fcn.0040136d
dec eax
push ebx
push eax
call fcn.00401389
jmp case.0x401489.2
push ebx
push eax
call fcn.00404fe7
jmp case.0x401489.65
push ebx
call fcn.004029ef
cmp eax, 1
jg 0x4014e4
xor eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp case.0x401489.65
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x401489.65
shl eax, 2
cmp dword [ebp - 0x20], ebx
jne 0x401528
mov ecx, dword [eax + 0x424000]
push 1
mov dword [eax + 0x424040], ecx
call fcn.004029ef
mov ecx, dword [ebp - 0x28]
mov dword [ecx*4 + 0x424000], eax
jmp case.0x401489.65
mov ecx, dword [eax + 0x424040]
mov dword [eax + 0x424000], ecx
jmp case.0x401489.65
mov eax, dword [ebp - 0x20]
lea esi, [eax*4 + 0x424000]
xor eax, eax
mov ecx, dword [esi]
cmp ecx, ebx
sete al
and ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x28]
mov dword [esi], ecx
jmp case.0x401489.2
push dword [edx*4 + 0x424000]
push esi
jmp 0x402849
mov ecx, dword [0x423750]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
cmp ecx, ebx
je 0x40157e
push edx
push ecx
call esi
mov eax, dword [ebp - 0x28]
mov ecx, dword [0x423764]
cmp ecx, ebx
je case.0x401489.65
push eax
push ecx
call esi
jmp case.0x401489.65
push 0xfffffffffffffff0
call fcn.00402a0c
push dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne case.0x401489.65
jmp 0x402672
push 0xfffffffffffffff0
call fcn.00402a0c
mov edi, eax
push edi
call fcn.00405882
mov esi, eax
cmp esi, ebx
je 0x40160a
push 0x5c
push esi
call fcn.00405819
mov esi, eax
push ebx
push edi
mov al, byte [esi]
mov byte [esi], bl
mov byte [ebp + 0xb], al
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401600
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4015fd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x401600
inc dword [ebp - 4]
mov al, byte [ebp + 0xb]
mov byte [esi], al
inc esi
invalid
Function at 0x402a4c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x424030]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
invalid

Function at 0x402f2e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f5b
mov ecx, dword [0x423fd8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x417124], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403059
cmp eax, edi
jl 0x403052
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
invalid
invalid

Function at 0x403059
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417124]
sub esi, dword [0x40b090]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423f8c], eax
jle 0x4031c3
push dword [0x41f134]
call fcn.00403207
push ebx
push ebx
push dword [0x40b090]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f130], esi
mov dword [0x417120], ebx
mov ebp, 0x40b120
mov eax, dword [0x417128]
mov edi, 0x4000
sub eax, dword [0x41f134]
cmp eax, edi
jg 0x4030ce
mov edi, eax
mov esi, 0x413120
push edi
push esi
call fcn.004031d5
test eax, eax
je 0x4031b5
add dword [0x41f134], edi
mov dword [0x40b0b0], esi
mov dword [0x40b0b4], edi
cmp dword [0x423f90], ebx
je 0x403125
cmp dword [0x424020], ebx
jne 0x403125
mov eax, dword [0x41f130]
push ebx
sub eax, dword [0x417124]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b090]
mov dword [0x417120], eax
call fcn.00402be9
pop ecx
mov ecx, 0x40b098
mov dword [0x40b0b8], ebp
mov dword [0x40b0bc], 0x8000
call fcn.00406184
test eax, eax
jl 0x4031be
mov esi, dword [0x40b0b8]
sub esi, ebp
je 0x40317f
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031ba
cmp esi, dword [esp + 0x10]
jne 0x4031ba
add dword [0x40b090], esi
cmp dword [0x40b0b4], ebx
jne 0x4030f4
jmp 0x40318b
cmp dword [0x40b0b4], ebx
jne 0x4031be
cmp edi, ebx
je 0x4031be
mov eax, dword [0x417124]
mov ecx, eax
sub ecx, dword [0x40b090]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030b8
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031c3
or eax, 0xffffffff
jmp 0x4031cd
push 0xfffffffffffffffe
jmp 0x4031c0
push 0xfffffffffffffffd
pop eax
jmp 0x4031cd
push 1
call fcn.00402be9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4