joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d32e4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x50c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4d332f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d347f
test al, al
jne 0x4d3329
sub edx, 2
cmp edx, edi
jne 0x4d330f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d3351
lea eax, [edi + 2]
cmp edx, eax
je 0x4d3351
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d3230
add esp, 0x10
jmp 0x4d344b
push esi
lea ecx, [ebp - 0x255]
call fcn.004d347f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d3394
push dword [ebp - 0x25c]
jmp 0x4d3341
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4d33d1
cmp word [ebp - 0x226], 0
je 0x4d33f2
cmp word [ebp - 0x226], ax
jne 0x4d33d1
cmp word [ebp - 0x224], 0
je 0x4d33f2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d3230
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d343e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d33ab
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d3426
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d344b
push 0x4d3060
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004db270
add esp, 0x10
jmp 0x4d341b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8368
leave
ret

Function at 0x4d67c7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ce4ee
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d6836
cmp esi, dword [ebp - 4]
je 0x4d6831
cmp dword [ebp + 0xc], 0
je 0x4d6831
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d680e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d6319
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d6838
xor eax, eax
inc eax
jmp 0x4d6838
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4d689d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x50c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004ce4ee
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004ce4ee
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4d6914
cmp word [ecx], dx
je 0x4d6914
mov eax, dword [0x4faf94]
push edi
dec eax
push eax
push 0x4fae80
call fcn.004d683c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4d6987
cmp word [eax], dx
je 0x4d6987
mov eax, dword [edi]
test eax, eax
je 0x4d6938
cmp word [eax], dx
je 0x4d6938
lea eax, [ebp - 0x10]
push eax
call fcn.004d621f
jmp 0x4d6941
lea eax, [ebp - 0x10]
push eax
call fcn.004d62ba
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4d69b1
mov eax, dword [0x4fae7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4fab70
call fcn.004d683c
add esp, 0xc
test al, al
je 0x4d69b1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4d697c
cmp word [eax], di
je 0x4d697c
lea eax, [ebp - 0x10]
push eax
call fcn.004d621f
pop ecx
jmp 0x4d69b3
lea eax, [ebp - 0x10]
push eax
call fcn.004d62ba
jmp 0x4d6979
mov eax, dword [edi]
test eax, eax
je 0x4d699e
cmp word [eax], dx
je 0x4d699e
lea eax, [ebp - 0x10]
push eax
call fcn.004d61d4
pop ecx
jmp 0x4d69b1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4d6a7c
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004d66c1
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d6a7c
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4d6a7c
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4d6a7c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d6a09
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d034d
test ebx, ebx
je 0x4d6a77
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d034d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d6a7c
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d6a7c
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004c8f1c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4d6a7e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8368
leave
ret
Function at 0x4dc670
Capabilities:
Parse pe header

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

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 0x1000dc83
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1000dc92
pop dword [ebp - 0x30]
mov eax, 0x84618415
add eax, 0x8b9f587d
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3d6aa
push 0
mov eax, 0xc304aa1d
add eax, 0x4cfcd733
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x55b1
mov edx, eax
mov ebx, 0x11947883
add ebx, 0xfe6e3d7d
add ebx, dword [ebp - 0x30]
mov edi, 0xb2a70a2e
xor dword [ebp - 0x14], ecx
mov esi, dword [ebx]
mov dword [ebp - 0xc], 0xe671ecde
xor esi, edi
mov dword [ebp - 0xc], 0xc27d938a
mov dword [edx], esi
sub dword [ebp - 0xc], 0xe80527a2
add edx, 4
add ebx, 0xe5299063
sub ebx, 0xe529905f
loop 0x1000dce5
add eax, 0x35bbf079
add eax, 0xca45591e
xor ebx, ebx
add ebx, eax
add eax, 0x86248186
sub eax, 0x86248181
mov ecx, 0xc99cec1b
add ecx, 0x466313e5
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10c8b000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x10c8b00a
jmp 0x10c8d00f
jmp fcn.10a36058
Function at 0x402860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4028d8
xor eax, eax
push ebp
push 0x4028d1
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 0x402914
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 0x4028d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x4044a4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40465c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404505
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404678
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404572
xor eax, eax
push ebp
push 0x40456b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404554
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404698
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404572
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404653
cmp byte [ebp - 0xd], 0
jne 0x4045b4
cmp byte [ebp - 0x12], 0
je 0x404653
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4045cd
dec ebx
cmp byte [ebx], 0x2e
je 0x4045dc
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4045cc
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404653
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404609
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404653
cmp byte [ebp - 0xd], 0
je 0x404653
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404653
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407128
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407232
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40717b
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403408
jmp 0x407219
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.004070dc
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.004070fc
mov ebx, eax
test esi, esi
je 0x4071a3
dec esi
test esi, esi
jl 0x4071a3
cmp edi, ebx
jne 0x407182
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403448
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403694
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403490
cmp eax, 2
jl 0x407219
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x407219
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403490
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x407219
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403490
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407239
lea eax, [ebp - 0x110]
call fcn.00403324
ret

Function at 0x4072ac
Capabilities:
Get file attributes

Disassembly:
call fcn.00405a38
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x4072c0
dec eax
and al, 0x10
sete al
ret
Function at 0x408e84
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
call fcn.0040aa28
test eax, eax
je 0x408ea0
cmp dword [eax + 0x155], ebx
jne 0x408ea0
xor edx, edx
mov dword [eax + 0x155], edx
mov ecx, dword [ebx + 0x18]
jecxz 0x408ead
push 0
push ecx
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.00405c30
mov eax, ebx
call fcn.0040a5f4
xor ecx, ecx
cmp byte [ebx + 0x8a], cl
jne 0x40901b
xchg byte [ebx + 0xfb], cl
jecxz 0x408edc
mov eax, dword [ebx + 0xf6]
call fcn.00402618
inc byte [ebx + 0x8a]
mov eax, dword [ebx + 0x10a]
call fcn.00405c14
mov eax, dword [ebx + 0x112]
call fcn.00405c14
mov eax, dword [ebx + 0x40]
call fcn.00405c14
xor ecx, ecx
mov dword [ebx + 0x10a], ecx
mov dword [ebx + 0x112], ecx
mov dword [ebx + 0x40], ecx
xchg dword [ebx + 0x52b], ecx
jecxz 0x408f1f
xchg ecx, eax
call fcn.00402618
mov eax, dword [ebx + 0x52f]
call fcn.00405c14
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x408f9c
xor ecx, ecx
xchg dword [ebx + 0x93], ecx
jecxz 0x408f41
push ecx
call sub.user32.dll_DestroyAcceleratorTable
mov eax, dword [ebx + 0x8f]
call fcn.00405c14
mov eax, dword [ebx + 0x97]
test eax, eax
je 0x408f5d
call fcn.00405c14
jmp 0x408f4c
push dword [ebx + 0x18]
call sub.user32.dll_IsWindow
test eax, eax
je 0x408f97
push eax
push 1
push 0x80
push dword [ebx + 0x18]
call sub.user32.dll_SendMessageA
test eax, eax
je 0x408f89
cmp byte [ebx + 0x35], 0
jne 0x408f89
push eax
call sub.user32.dll_DestroyIcon
cmp byte [ebx + 0x48], 0
jne 0x408f97
push dword [ebx + 0x18]
call sub.user32.dll_DestroyWindow
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x36]
test eax, eax
je 0x408fa8
call fcn.00402618
mov eax, dword [ebx + 0x26d]
test eax, eax
je 0x408fb7
call fcn.00402618
mov ecx, dword [ebx + 0x49]
jecxz 0x408fd6
cmp dword [ecx + 0x155], ebx
jne 0x408fcc
xor eax, eax
mov dword [ecx + 0x155], eax
mov eax, dword [ecx + 0x60]
mov edx, ebx
call fcn.00405d80
mov ecx, dword [ebx + 0x79]
jecxz 0x408fe1
push ecx
call sub.gdi32.dll_DeleteObject
push ebx
push dword [ebx + 0x60]
push dword [ebx + 0x568]
push dword [ebx + 0x56c]
push dword [ebx + 0x2f5]
push dword [ebx + 0xcb]
mov bl, 5
pop eax
call fcn.00405c14
dec bl
jne 0x408fff
pop ebx
lea eax, [ebx + 0x4fb]
call fcn.00403324
xchg ebx, eax
call fcn.00405c20
pop ebx
ret
Function at 0x40a028
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x40a037
mov edx, dword [edx + 0x36]
jmp fcn.00403448
mov ecx, dword [edx + 0x18]
jecxz 0x40a02f
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.004037c0
pop edx
mov ecx, dword [ebx]
jecxz 0x40a05f
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40dd44
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x41f498], 0xff
je 0x40dd5a
mov al, byte [0x41f498]
jmp 0x40ddba
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40dd93
mov al, 3
mov edx, dword [esp + 4]
cmp edx, 6
jb 0x40dd7f
mov al, 6
jmp 0x40ddb5
cmp edx, 5
jb 0x40ddb5
cmp dword [esp + 8], 1
jb 0x40dd8f
mov al, 5
jmp 0x40ddb5
mov al, 4
jmp 0x40ddb5
cmp eax, 1
jne 0x40ddb3
mov al, 1
cmp dword [esp + 4], 4
ja 0x40ddaf
cmp dword [esp + 4], 4
jne 0x40ddb5
cmp dword [esp + 8], 0xa
jb 0x40ddb5
mov al, 2
jmp 0x40ddb5
xor eax, eax
mov byte [0x41f498], al
add esp, 0x94
ret

Function at 0x41384c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
test dl, dl
je 0x413861
push 0
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x49]
test eax, eax
je 0x413876
push 0
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_ShowWindow
mov dword [ebx + 8], 0x58
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 1
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x18], 0x401
mov eax, dword [ebx + 4]
call fcn.0040a324
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x6c]
call fcn.00403654
mov edx, eax
lea eax, [ebx + 0x20]
mov ecx, 0x3f
call fcn.00407048
lea eax, [ebx + 8]
push eax
push 0
call sub.shell32.dll_Shell_NotifyIconA
mov byte [ebx + 0x60], 1
pop ebx
ret

Function at 0x4138d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x60], 0
je 0x413917
lea eax, [ebx + 8]
push eax
push 2
call sub.shell32.dll_Shell_NotifyIconA
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x49]
test eax, eax
je 0x4138f9
push 1
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_ShowWindow
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_SetForegroundWindow
mov byte [ebx + 0x60], 0
pop ebx
ret
Function at 0x417268
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x417286
add esp, 0xfffffff0
call fcn.00402b78
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x417429
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.0040296c
mov ecx, edi
mov dl, 1
mov eax, dword [0x417068]
call fcn.0040ee3c
mov ebx, eax
mov dword [esi + 8], ebx
mov dword [ebx + 0x24], 0xd2
mov dword [ebx + 0x28], 0xf
mov dword [ebx + 0x2c], 5
mov dword [ebx + 0x30], 0xfa
mov byte [ebx + 0x34], 0
mov dword [ebx + 0x3c], 0xff0000
lea eax, [ebx + 0x44]
call fcn.00403324
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 8
mov eax, 0x417458
call fcn.0040e890
lea edx, [ebp - 0x14]
lea eax, [ebx + 0x48]
mov ecx, dword [0x40e0d0]
call fcn.00403b88
mov byte [ebx + 0x58], 0
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
xor eax, eax
mov dword [ebx + 0x5c], eax
lea eax, [ebx + 0xc4]
call fcn.00403324
mov byte [ebx + 0xd0], 0
mov dword [ebx + 0xd4], 1
mov byte [ebx + 0xc8], 1
mov byte [ebx + 0xc9], 2
mov dword [ebx + 0xcc], 3
mov byte [ebx + 0xd8], 0
mov byte [ebx + 0x60], 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov dl, 1
mov eax, dword [0x414410]
call fcn.00414488
mov ebx, eax
mov dword [esi + 4], ebx
mov eax, 0x417468
call fcn.0040e858
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403448
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004144e8
mov eax, 0x417468
call fcn.0040e858
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403448
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00414560
mov eax, 0x417468
call fcn.0040e858
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403448
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00414524
mov eax, 0x417468
call fcn.0040e858
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00403448
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00414564
mov word [ebx + 0x14], 0x12c
mov word [ebx + 0x16], 0xc8
mov eax, dword [esi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417430
lea eax, [ebp - 0x18]
call fcn.00403324
lea eax, [ebp - 0x14]
mov edx, dword [0x40e0d0]
call fcn.00403978
ret
Function at 0x41b130
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdd0
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, esi
call fcn.00403324
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x20
call fcn.00402790
call fcn.0040e818
mov dword [esp + 4], eax
lea eax, [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, edi
call fcn.00403654
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
test ebx, 0x1000
jle 0x41b195
push esp
push 0x12
call fcn.0040e818
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [esp]
mov dword [esp + 8], eax
jmp 0x41b1b2
test ebx, 0x2000
jle 0x41b1b2
push esp
push 4
call fcn.0040e818
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [esp]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov dword [esp], eax
cmp dword [esp], 0
je 0x41b20c
test ebx, 0x3000
jle 0x41b1df
mov eax, esi
lea edx, [esp + 0x24]
mov ecx, 0x105
call fcn.00403478
jmp 0x41b20c
lea eax, [esp + 0x129]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, esi
lea edx, [esp + 0x129]
mov ecx, 0x105
call fcn.00403478
mov eax, dword [esp]
call fcn.00405790
add esp, 0x230
pop edi
pop esi
pop ebx
ret
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 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 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046d1]
lea edx, [fcn.00401a14]
sub eax, edx
push eax
push fcn.00401a14
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132e
push edi
call fcn.00401894
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018e3
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, esi
mov ebx, edi
sar ebx, cl
sub esi, ebx
push esi
lea esi, [0x4060e4]
xor esi, edi
push esi
call fcn.00401a14
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019a4
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret