joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bea8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bb49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.0045e910
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], 0x4accb0
call fcn.00479cf7
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.00479cf7
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.0045e530
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.0045e530
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.00479cf7
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.00479cf7
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.0045e530
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.0045e530
mov dword [edi], 0x4acca8
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.0045e910
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.0045e910
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.0045e910
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.0045e910
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.0045e910
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.0045c1d0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45c090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bc5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.0045eae0
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.0045eae0
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.0045eae0
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.0045eae0
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.0045eae0
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0x4accb8
call fcn.0045e730
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0x4accb8
call fcn.0045e730
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.00479d20
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.00479d20
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x4accb8
call fcn.0045e730
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x4accb8
call fcn.0045e730
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.00479d20
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.00479d20
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0045eae0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47d990
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47d9c8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047ba35
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047ba0d
jmp 0x47d9d4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47f07e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47f0c0
call fcn.00484dfc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47f0c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47f0b7
xor eax, eax
jmp 0x47f0c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047f0ce
pop edi
pop esi
pop ebx
ret 4

Function at 0x48532c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48535a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x485378
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00485292
jmp 0x485378
mov eax, dword [esi + 0x14]
test eax, eax
je 0x485378
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00485292
test edi, edi
mov eax, edi
jne 0x485362
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x351b228c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6e287f48
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4b03f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4b5494]
cmp dword [eax + 0x28], 0
jne 0x4b0408
xor eax, eax
jmp 0x4b0537
mov ecx, dword [0x4b5414]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x4b5408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x4b5404], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x4b5408]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x4b5404]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x4b548c]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x4b4604
push 0x4b4620
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x4b5400], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004b0330
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x4b03c0
mov edx, dword [0x4b5494]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4b540c], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4b0537
cmp dword [ebp - 0x38], 0x12
jne 0x4b052b
mov dword [0x4b541c], 0
call fcn.004b0540
xor eax, eax
jmp 0x4b0537
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4b04fc
mov esp, ebp
pop ebp
ret 4

Function at 0x4b1840
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4b220c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4b4118
sub eax, eax
test esi, esi
je 0x4b22e4
sub eax, 1
test ecx, ecx
je 0x4b22e2
test esi, 3
je 0x4b224a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4b222f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x4b22c9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4b2254
mov ecx, edx
test ecx, ecx
je 0x4b22e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4b22cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x4b22ec
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.004b236f
jae 0x4b22fa
xor ecx, ecx
call fcn.004b236f
jae 0x4b2329
xor eax, eax
call fcn.004b236f
jae 0x4b2339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.004b236f
adc al, al
jae 0x4b231b
jne 0x4b2365
stosb byte es:[edi], al
jmp 0x4b22fd
call fcn.004b237b
sub ecx, ebx
jne 0x4b2342
call fcn.004b2379
jmp 0x4b2361
lodsb al, byte [esi]
shr eax, 1
je 0x4b238b
adc ecx, ecx
jmp 0x4b235e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.004b2379
cmp eax, 0x7d00
jae 0x4b235e
cmp ah, 5
jae 0x4b235f
cmp eax, 0x7f
ja 0x4b2360
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4b22fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4b2c7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b5000]
jne 0x4b2c86
repz ret
jmp fcn.004b2f2d
Function at 0x8dcb3e
Capabilities:
Encode data using xor

Disassembly:
mov word [esp + 1], di
mov cx, word [esp]
mov dword [esp], edi
mov ch, byte [esp]
jmp 0x8dcb4e
push ecx
sets ch
mov ecx, 0xd230a456
lea ecx, [ebp + ebp]
pushfd
jmp 0x8dcb28
mov edi, dword [esp]
xchg ch, cl
lea edi, [eax + ecx]
mov cl, byte [esp]
call fcn.008dcbae
bound ebx, qword [ebp + 0x3befffec]
out dx, eax
jb 0x8dcbe6
push cs
sbb bh, ah
aad 0x92
pushal
invalid

Function at 0x8dcfba
Capabilities:
Check for trap flag exception

Disassembly:
lea edx, [eax + edx]
lea edx, [ebx*4]
mov dl, 0x34
pushal
mov dl, 0x44
jmp 0x8dcff6
bswap edi
lea edx, reloc.KERNEL32.dll_GetStartupInfoA
mov edi, dword [esp + 0xc]
jmp 0x8dcfa4
mov word [esp + 2], ax

Function at 0x8dd376
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
push dword [esp + 0xd]
push dword [esp + 0xe]
jmp 0x8dd3b4
xchg dword [esp + 0x1a], edx
mov byte [esp + 0x1c], bl
mov dword [esp + 5], eax
jmp 0x8dd399
mov ax, 0x3567
setnp ah
mov eax, 0x762bd9f7
bswap edx
mov dx, word [esp]
mov dword [esp], ebx
jmp 0x8dd3c6
mov dword [esp + 4], edx
mov dword [esp + 2], edx
bswap edx
xchg dh, dl
mov dh, byte [esp]
pushal
jmp 0x8dd381
lea eax, [ecx + esi]
xchg dx, ax
mov al, ah
mov bh, byte [esp]
rdtsc
rdtsc
jmp 0x8dd3db
xchg bh, bl
pop ebx
lea eax, [edx + esi]
mov eax, 0xed59fb5a
mov edx, dword [esp]
seto dh
jmp 0x8dd4b0
lea edx, [edi + ebp]
mov dh, dl
lea edx, [esi + ebp]
mov dx, bp
mov edx, dword [esp + 0x1e]
lea esp, [esp + 0x44]
jmp 0x8c26ff
mov dx, si
bswap edx
not ax
mov eax, dword [esp + 1]
mov dx, word [esp]
not dx
jmp 0x8dd478

Function at 0x9aedab
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.009adb43
mov dword [esp], ebp
pushal
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
lea esp, [esp + 0x18]
jmp 0x9aeddb
lea esp, [esp + 7]
lea esp, [esp + 1]
jmp 0x9aed84
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x9adb3e
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x9aedb5
Function at 0x42e790
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x42e7b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42e7b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42e7a8
mov eax, 1
add ebx, ebx
jne 0x42e7cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42e7c0
jne 0x42e7dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e7c0
xor ecx, ecx
sub eax, 3
jb 0x42e7f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42e862
mov ebp, eax
add ebx, ebx
jne 0x42e7fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42e808
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42e82c
inc ecx
add ebx, ebx
jne 0x42e818
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42e80d
jne 0x42e829
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42e80d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42e84c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42e83d
jmp 0x42e7ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42e84c
add edi, ecx
jmp 0x42e7ae
pop esi
mov edi, esi
mov ecx, 0x395
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42e86a
cmp byte [edi], 0xa
jne 0x42e86a
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 0x42e86f
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42e8e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x343d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34464]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42e89c
mov ecx, edi
jns 0x42e8cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x34468]
or eax, eax
je 0x42e8e1
mov dword [ebx], eax
add ebx, 4
jmp 0x42e8b9
call dword [esi + 0x3446c]
popal
jmp 0x409a35

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4153c0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41548b
jmp 0x41547f
cmp dword [esi + 0x10], 0x1000
jne 0x41546b
test byte [esi + 0x15], 1
jne 0x41546b
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x41541c
cmp ebp, 2
je 0x41541c
cmp ebp, 0x10
je 0x41541c
cmp ebp, 0x20
jne 0x415438
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x415438
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x415449
mov eax, dword [esi]
add eax, ebx
call fcn.004153b8
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x41543c
cmp byte [esp + 4], 0
je 0x41546b
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41548b
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4153f1
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ef4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ed4
xor eax, eax
push ebp
push 0x402ecd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402f10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ed4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40d00c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f034], 0
je 0x403655
cmp word [0x40f208], 0xd7b2
jne 0x40361d
cmp dword [0x40f210], 0
jbe 0x40361d
mov eax, 0x40f204
call dword [0x40f220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40367c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d018], 0
jne 0x403671
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x401af5
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [section..data]
jne 0x40103b
repz ret
jmp fcn.00401040
Function at 0x401901
Capabilities:
Parse pe header

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

Function at 0x407a96
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416608
push 0x416600
push str.FlsAlloc
push 0x1f
call fcn.00407955
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407aca
push dword [ebp + 8]
mov ecx, esi
call dword [0x41512c]
call esi
jmp 0x407ad0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407b14
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416618
push 0x416610
push str.FlsGetValue
push 0x21
call fcn.00407955
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407b4b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41512c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407b53
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416620
push 0x416618
push str.FlsSetValue
push 0x22
call fcn.00407955
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407b8d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41512c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b272
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 0x40b30f
push ebx
push esi
call fcn.0040b23b
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.0040b1cf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b2bc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b30e
push edi
push eax
call fcn.00408245
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b2dc
call fcn.004077e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b30d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b1cf
add esp, 0x20
test eax, eax
jne 0x40b2fb
push edi
call fcn.004077e8
jmp 0x40b303
push ebx
call fcn.004077e8
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 0x40fa25
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 + 0x41cfe8]
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 0x40fa65
cmp byte [ebx], 0xa
jne 0x40fa65
or byte [edi + eax + 0x28], 4
jmp 0x40fa6a
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 0x40fb69
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40fb4c
inc eax
cmp dl, 0xd
je 0x40fa96
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40fabc
cmp eax, ecx
jae 0x40faca
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 0x40fa7e
jmp 0x40fb69
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 0x40fb47
cmp dword [ebp - 0x10], 0
je 0x40fb47
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41cfe8]
test byte [eax + edi + 0x28], 0x48
je 0x40fb21
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40fb0c
mov byte [esi], dl
jmp 0x40fb1d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41cfe8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40fb69
cmp byte [ebp - 1], 0xa
jne 0x40fb30
cmp esi, ebx
jne 0x40fb30
mov byte [esi], 0xa
jmp 0x40fb68
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411477
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40fb69
mov byte [esi], 0xd
jmp 0x40fb68
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41cfe8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40fb66
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40fb69
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret