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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88c
lea ecx, [esp + 4]
push ebx
push esi
push edi
call fcn.00403625
lea ecx, [esp + 0x680]
call fcn.00403625
push 0x208
xor ebx, ebx
lea eax, [esp + 0x22c]
push ebx
push eax
call fcn.0041c9b0
add esp, 0xc
lea eax, [esp + 0x228]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x45daf9
cmp word [esi], bx
je 0x45daf9
push esi
lea eax, [esp + 0x684]
push 0x47809c
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [esp + 0x430]
push eax
push dword [esp + 0x688]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45daf9
test byte [esp + 0x430], 0x10
jne 0x45dadb
lea eax, [esp + 0x45c]
push eax
push esi
lea eax, [esp + 0x18]
push 0x470f90
push eax
call fcn.004011fb
mov ecx, dword [esp + 0x24]
add esp, 0x10
test ecx, ecx
je 0x45dab6
mov eax, dword [esp + 0x18]
inc eax
push eax
push ecx
call fcn.0042aa53
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45dab6
lea edx, [esp + 0x228]
mov eax, ecx
mov bx, word [eax]
cmp bx, word [edx]
jne 0x45daaf
test bx, bx
je 0x45daab
mov bx, word [eax + 2]
cmp bx, word [edx + 2]
jne 0x45daaf
add eax, 4
add edx, 4
test bx, bx
jne 0x45da89
xor eax, eax
jmp 0x45dabe
sbb eax, eax
or eax, 1
jmp 0x45dabe
cmp dword [esp + 0x18], 1
sbb eax, eax
inc eax
test eax, eax
je 0x45dadb
push 0x46cfbc
push ecx
call fcn.0041bcae
pop ecx
pop ecx
push eax
call fcn.0045d863
push esi
call fcn.0045d70d
lea eax, [esp + 0x430]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45da39
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401fd3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a694], 0
push esi
jne 0x40200a
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 0x401fe4
mov dword [ecx*4 + 0x40a690], eax
inc ecx
cmp ecx, 0x100
jl 0x401fdf
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40203b
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 + 0x40a690]
xor eax, esi
inc ecx
dec edx
jne 0x40201d
pop edi
not eax
pop esi
ret 0xc
Function at 0x403924
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403996
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x40396f
cmp dword [ebp + 0x10], ebx
jne 0x40399d
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00403924
test eax, eax
jne 0x403981
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403956
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x403996
Function at 0x404575
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x435000], 0
push ebx
push ebp
push esi
push edi
mov edi, pe_overlay
mov ebx, 0x435000
je 0x404594
push ebx
call fcn.00406852
jmp 0x40459a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x42ed44]
test esi, esi
je 0x4045ed
mov ecx, dword [0x42ed08]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x42ed40]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x4045d2
test esi, esi
jne 0x4045bc
jmp 0x4045ed
mov edx, dword [ecx + 2]
mov dword [0x42e4d4], edx
mov edx, dword [ecx + 6]
mov dword [0x42ed84], edx
lea edx, [ecx + 0xa]
mov dword [0x42e4d0], edx
cmp dword [0x42e4d0], 0
jne 0x404608
cmp di, 0xffff
jne 0x404604
mov edi, 0x3ff
jmp 0x40459c
xor edi, edi
jmp 0x40459c
movzx eax, word [ecx]
push eax
push ebx
call fcn.00406839
push 0xfffffffffffffffe
push 0x42e500
call fcn.004068e7
push eax
push dword [0x42b708]
call fcn.0040631a
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4062b6
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x10
pop ecx
xor eax, eax
push dword [ebp + 0xc]
lea edi, [ebp - 0x40]
mov dword [ebp - 0x44], 0x44
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
je 0x4062e3
test al, 0x10
jne 0x4062e6
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x44]
push 0x42d898
push eax
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406316
push dword [0x42d89c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x42d898]
leave
ret 8

Function at 0x406386
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004064bb
test eax, eax
je 0x4063e6
test byte [ebp + 0xc], 1
push esi
je 0x4063cf
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x4063e6
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4063e6
test byte [ebp + 0xc], 2
je 0x4063e6
push eax
push esi
call fcn.00406618
pop esi
leave
ret 8
Function at 0x4064bb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42cb58
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00406469
test eax, eax
jne 0x4064da
xor eax, eax
jmp 0x406523
test byte [0x42ed10], 0x80
je 0x4064ee
mov cl, byte [eax]
test cl, cl
je 0x4064d6
cmp cl, 0x5c
je 0x4064d6
mov edi, eax
sub edi, esi
jmp 0x406508
call fcn.00406ba7
test eax, eax
je 0x406502
test byte [eax], 0x10
je 0x4064d6
push esi
call fcn.00406417
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4064f4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4065a0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4065cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409314]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406614
test edi, edi
jne 0x4065da
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40660e
Function at 0x406618
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406650
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406650
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406795
mov eax, dword [0x409340]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov dword [0x42d8a8], eax
mov edi, 0x400
mov ebp, 0x42d8a8
je 0x406694
push 1
push 0
push esi
call fcn.004065a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40679b
cmp eax, edi
jg 0x40679b
mov esi, 0x42d498
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40679b
cmp eax, edi
jg 0x40679b
push esi
push ebp
push str._s_s_r_n
push 0x42d098
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406795
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x40677d
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x406771
push str._Rename__r_n
push edi
call fcn.00406528
test eax, eax
jne 0x4067a2
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x42d098
push eax
call fcn.0040657c
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ed70]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409318
push eax
call fcn.00406528
test eax, eax
je 0x406758
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x4067cb
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x4067be
sub eax, edi
jmp 0x40675a
Function at 0x4067cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406833
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406822
cmp dword [ebp + 0x14], 1
je 0x406824
cmp dword [ebp + 0x14], 2
je 0x406824
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4068e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jge 0x406908
mov ecx, dword [0x42e4d0]
lea eax, [edi*4 + 4]
sub ecx, eax
mov edi, dword [ecx]
mov eax, dword [0x42ed38]
mov ebx, 0x42dcc0
add edi, eax
mov eax, dword [ebp + 8]
sub eax, ebx
mov esi, ebx
cmp eax, 0x800
jae 0x406ad2
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x406ad2
mov ecx, esi
sub ecx, ebx
cmp ecx, 0x400
jge 0x406adc
movzx eax, al
inc edi
cmp eax, 0xff
jne 0x406958
mov al, byte [edi]
mov byte [esi], al
inc esi
inc edi
jmp 0x406ad2
cmp eax, 0xfd
jne 0x406a71
movsx eax, byte [edi]
mov ecx, 0x8000
mov dword [ebp - 0x14], eax
or eax, ecx
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp + 0xc], ebx
movsx eax, byte [edi + 1]
and byte [esi], bl
mov dword [ebp - 0xc], eax
or eax, ecx
inc edi
inc edi
cmp dword [ebp - 0xc], 4
mov dword [ebp - 8], eax
jne 0x406998
push 2
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
pop ebx
cmp dword [ebp - 0x14], 0x2b
jne 0x4069b3
push esi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004067cf
cmp dword [ebp - 0x14], 0x26
jne 0x4069de
push esi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004067cf
cmp byte [esi], 0
jne 0x406a43
push str.C:Program_Files
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp dword [ebp - 0x14], 0x25
jne 0x4069f0
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp - 0x14], 0x24
jne 0x406a02
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [esi], 0
jne 0x406a43
cmp dword [0x42ed64], 0
push 4
pop ebx
jne 0x406a18
push 2
pop ebx
jmp 0x406a43
lea eax, [ebp - 4]
dec ebx
push eax
push dword [ebp + ebx*4 - 0x14]
push dword [0x42ed04]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406a40
push dword [ebp - 4]
push esi
call fcn.00406279
test eax, eax
jne 0x406a47
jmp 0x406a43
and byte [esi], 0
test ebx, ebx
jne 0x406a18
cmp byte [esi], 0
je 0x406a5c
cmp dword [ebp + 0xc], 0
je 0x406a5c
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00406aff
push esi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
mov ebx, 0x42dcc0
jmp 0x406ad2
cmp eax, 0xfc
jne 0x406ab2
mov bx, word [edi]
dec ebx
and ebx, 0x7fff
inc edi
inc edi
cmp ebx, 0x1b
jne 0x406a97
push dword [0x42ed04]
push esi
call fcn.00406839
jmp 0x406aa8
mov eax, ebx
shl eax, 0xa
add eax, section..ndata
push eax
push esi
call sub.KERNEL32.dll_lstrcpyA
add ebx, 0xffffffeb
cmp ebx, 6
jae 0x406a62
jmp 0x406a5c
cmp eax, 0xfe
jne 0x406acf
movsx eax, word [edi]
inc edi
push eax
push esi
inc edi
call fcn.004068e7
push esi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jmp 0x406ad2
mov byte [esi], al
inc esi
mov al, byte [edi]
test al, al
jne 0x406932
and byte [esi], 0
cmp dword [ebp + 8], 0
je 0x406af6
push 0x400
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x406af8
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5f8920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a4000]
push edi
jmp 0x5f893a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5f8941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f8930
mov eax, 1
add ebx, ebx
jne 0x5f8953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5f8964
jne 0x5f8983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f8983
dec eax
add ebx, ebx
jne 0x5f8970
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5f8948
add ebx, ebx
jne 0x5f897f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5f89d5
xor ecx, ecx
sub eax, 3
jb 0x5f899b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5f8a0a
sar eax, 1
mov ebp, eax
jmp 0x5f89a6
add ebx, ebx
jne 0x5f89a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f8974
inc ecx
add ebx, ebx
jne 0x5f89b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5f8974
add ebx, ebx
jne 0x5f89c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5f89b6
jne 0x5f89d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5f89b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5f89f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5f89e6
jmp 0x5f8936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5f89f4
add edi, ecx
jmp 0x5f8936
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5f8a12
cmp byte [edi], 0x11
jne 0x5f8a12
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 0x5f8a17
lea edi, [esi + 0x1f1000]
mov eax, dword [edi]
or eax, eax
je 0x5f8a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31ac64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31ade0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5f8a44
mov ecx, edi
jns 0x5f8a73
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 + 0x31ade4]
or eax, eax
je 0x5f8a89
mov dword [ebx], eax
add ebx, 4
jmp 0x5f8a61
call dword [esi + 0x31adf4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5f8ac0
cmp al, 0xef
ja 0x5f8ab3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5f8a95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5f8aa2
mov ebp, dword [esi + 0x31ade8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x5f8af4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x402a44
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403ff8
test esi, esi
jne 0x402a7a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040e8
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x468020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403198
xor eax, eax
push ebp
push 0x403191
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 0x4031d4
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 0x403198
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x468020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x468020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a048], 0
je 0x403edd
cmp word [0x46a21c], 0xd7b2
jne 0x403ea5
cmp dword [0x46a224], 0
jbe 0x403ea5
mov eax, 0x46a218
call dword [0x46a234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46806c
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 0x403f04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468030], 0
jne 0x403ef9
push 0
push 0x468064
push 0x46806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405be6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404268
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ce4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bed
lea eax, [ebp - 0x10]
call fcn.00403ff8
ret

Function at 0x40ad38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ad71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040e8
jmp 0x40ad7a
mov eax, ebx
mov edx, esi
call fcn.0040404c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ad84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ada5
mov al, byte [esp]
jmp 0x40ada7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b42c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b2a4
mov eax, dword [0x469978]
cmp byte [eax], 0
je 0x40b4a8
mov eax, dword [0x469788]
call fcn.00402b50
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004085ac
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b4f0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b4de
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x469738]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a664]
call fcn.00405094
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret