joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb68
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ec3d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40ec58
push ebx
push 0x40ec68
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040513c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ebe8
mov al, 0x6a
call fcn.0040e788
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb3c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ebf1
call fcn.0040eb3c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec44
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40ed58
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 0x40ee23
jmp 0x40ee17
cmp dword [esi + 0x10], 0x1000
jne 0x40ee03
test byte [esi + 0x15], 1
jne 0x40ee03
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40edb4
cmp ebp, 2
je 0x40edb4
cmp ebp, 0x10
je 0x40edb4
cmp ebp, 0x20
jne 0x40edd0
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 0x40edd0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40ede1
mov eax, dword [esi]
add eax, ebx
call fcn.0040ed50
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40edd4
cmp byte [esp + 4], 0
je 0x40ee03
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 0x40ee23
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40ed89
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b636
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
mov edx, 0xf0c6f39
sub edx, ecx
sub edx, 1
call fcn.0043b68a
dec edx
sub esp, 4
mov dword [esp], 0x82355a80
mov edx, dword [esp]
add esp, 4
xor dword [esi], eax
sub ecx, 0x738808a6
add ecx, 0xfcff3bdf
inc esi
push edx
mov edx, dword [esp]
add esp, 4
mov edx, edx
sub edx, edx
cmp esi, ebx
jne fcn.0043b636
or edx, ecx
add edx, ecx
mov ecx, edx
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401010
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push esi
mov dword [0x441e4c], ecx
call fcn.004111c0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.00401a90
mov eax, dword [esp + 0x10]
mov ecx, dword [0x441d64]
add esp, 8
xor esi, esi
dec eax
mov dword [0x42daf4], ecx
mov dword [esp + 8], eax
js 0x401116
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
add eax, 4
push ecx
mov dword [esp + 0x10], eax
call fcn.00401190
push 0x43e398
or esi, eax
call fcn.0041aed1
push 0x43e3b8
call fcn.0041aed1
mov eax, dword [0x441de4]
mov edx, dword [0x441de0]
add esp, 0xc
or edx, eax
mov eax, dword [0x441dd8]
je 0x4010de
test al, al
jns 0x4010de
test eax, 0xb020
jne 0x4010de
or eax, 0x20
mov dword [0x441dd8], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 4]
push ecx
call fcn.00401190
mov ecx, dword [0x441dd8]
and ecx, 0xffffffdf
push 0x43e398
or esi, eax
mov dword [0x441dd8], ecx
call fcn.0041aed1
push 0x43e3b8
call fcn.0041aed1
mov eax, dword [0x441dd8]
add esp, 0xc
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40110a
test al, 2
je 0x4010ee
test al, 0x10
je 0x40110a
push str._n__________n
call fcn.0041ae59
push 0x43e398
call fcn.0041aed1
mov eax, dword [0x441dd8]
add esp, 8
dec dword [esp + 8]
jns 0x401051
jmp 0x40111b
mov eax, dword [0x441dd8]
cmp dword [0x441df4], 1
jbe 0x40115a
test al, 2
je 0x40112c
test al, 0x10
je 0x401139
push str._n__________n
call fcn.0041ae59
add esp, 4
mov edx, dword [0x441e18]
mov eax, dword [0x441e14]
mov ecx, dword [0x441df4]
push edx
push eax
push ecx
push str._nTotal_of_all__d_ISAM_files:_nData_records:__8lu___Deleted_blocks:__8lu_n
call fcn.0041ae18
add esp, 0x10
mov edx, dword [0x441d60]
push edx
call fcn.00411940
mov eax, dword [0x441dd8]
and eax, 0x10
or eax, 8
shr eax, 3
push eax
call fcn.004112d0
add esp, 8
push esi
call fcn.0041ad25
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4111c0
Capabilities:
Initialize winsock library

Disassembly:
mov al, byte [0x441e3d]
test al, al
jne 0x41125d
mov byte [0x441e3d], 1
call fcn.004136a0
mov eax, dword [0x441e48]
test eax, eax
jne 0x411258
call fcn.00411370
push str.HOME
call fcn.0041bee5
add esp, 4
test eax, eax
mov dword [0x441e48], eax
je 0x411210
push eax
push 0x442050
call fcn.00416b70
add esp, 8
mov dword [0x441e48], eax
push str.UMASK
call fcn.0041bee5
add esp, 4
test eax, eax
je 0x411234
push eax
call fcn.00411260
add esp, 4
or eax, 0x180
mov dword [0x42dfd8], eax
push str.UMASK_DIR
call fcn.0041bee5
add esp, 4
test eax, eax
je 0x411258
push eax
call fcn.00411260
add esp, 4
or eax, 0x1c0
mov dword [0x42dfdc], eax
jmp 0x411480
ret
sub esp, 0x190
call fcn.004114e0
test al, al
je 0x4114cf
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4114ab
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x4114bd
cmp word [esp], 2
je 0x4114c8
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4114cf
mov byte [0x441e3c], 1
xor al, al
add esp, 0x190
ret

Function at 0x411370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x441e1c
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.0041bf83
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411471
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x411464
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.00411350
lea eax, [esp + 0x520]
push eax
call fcn.0042446a
lea ecx, [esp + 0x524]
push ecx
call fcn.00426d9a
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov eax, esi
push ecx
push eax
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x4113f0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret
Function at 0x411e70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
push edi
push esi
call fcn.004172e0
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
setne cl
push str._nDefault_options_are_read_from_the_following_files_in_the_given_order:
mov edi, ecx
call fcn.0041ae59
push esi
call fcn.00416f30
add esp, 0xc
test eax, eax
je 0x411eba
push 0x43e398
push esi
call fcn.0041b54f
add esp, 8
jmp 0x411fa6
push 0x200
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test edi, edi
mov eax, 0x441e1c
jne 0x411ed8
mov eax, str..ini
push ebp
push eax
push esi
lea eax, [esp + 0x14]
push eax
push str._s_s_s
call fcn.0041ae18
mov eax, dword [0x42dcb4]
add esp, 0x10
test eax, eax
mov ebp, 0x42dcb4
je 0x411f98
mov ecx, dword [0x441e40]
mov eax, dword [ebp]
cmp byte [eax], 0
je 0x411f15
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x411f1f
test ecx, ecx
je 0x411f8a
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00417d66
lea eax, [esp + 0x14]
add esp, 8
push eax
call fcn.00416fb0
mov al, byte [esp + 0x10]
add esp, 4
cmp al, 0x7e
jne 0x411f52
or ecx, 0xffffffff
lea edi, [esp + 0xc]
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x42de18]
mov word [edi - 1], cx
push 0
push 0x42df80
push str..cnf
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00417bfe
add esp, 4
push eax
call fcn.004181b0
lea eax, [esp + 0x20]
push 0x43e398
push eax
call fcn.0041b54f
mov ecx, dword [0x441e40]
add esp, 0x1c
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x411f05
push 0x441e1c
call fcn.0041ae59
add esp, 4
pop ebp
push 0x43e398
push str.The_following_groups_are_read:
call fcn.0041b54f
mov esi, dword [esp + 0x218]
mov eax, dword [esi]
add esp, 8
test eax, eax
je 0x411feb
push 0x43e398
push 0x20
call fcn.0041b76c
mov ecx, dword [esi]
push 0x43e398
push ecx
call fcn.0041b54f
mov eax, dword [esi + 4]
add esi, 4
add esp, 0x10
test eax, eax
jne 0x411fc5
push str._nThe_following_options_may_be_given_as_the_first_argument:_n__print_defaults_tPrint_the_program_argument_list_and_exit_n__no_defaults_t_tDont_read_default_options_from_any_options_file_n__defaults_file_tOnly_read_default_options_from_the_given_file__n__defaults_extra_file_Read_this_file_after_the_global_files_are_read
call fcn.0041ae59
add esp, 4
pop edi
pop esi
add esp, 0x200
ret
Function at 0x4136a0
Capabilities:
Terminate process

Disassembly:
push 0
call fcn.004176c0
add esp, 4
test eax, eax
je 0x4136cf
call fcn.0041b75a
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x43e3b8
call fcn.0041b197
add esp, 0xc
push 1
call fcn.0041ad25
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x44ae60
call esi
push 0x44ae00
call esi
push 0x44ae80
call esi
push 0x44ae20
call esi
push 0x44adc0
call esi
push 0x44ade0
call esi
push 0x44ada0
call esi
push 0x44ad80
call esi
push 0x44ae40
call esi
call fcn.004176b0
pop esi
jmp 0x413730
push esi
push 0x44ae20
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44a910]
mov ecx, dword fs:[0x2c]
mov esi, dword [ecx + eax*4]
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x413784
mov eax, dword [0x44a714]
inc eax
lea edx, [esi + 0x10]
push edx
mov dword [0x44a714], eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 8]
push 0
push eax
call fcn.004176d0
add esp, 8
push 0x44ae20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret

Function at 0x414c10
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shl eax, 5
lea ebp, [eax + 0x442268]
jmp 0x414c30
mov edi, dword [esp + 0x14]
lea esp, [esp]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
push edi
or esi, 0xffffffff
call fcn.0041c7a4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x414c73
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.004232bf
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x414c73
xor edi, edi
jmp 0x414c78
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
mov ebx, dword [esp + 0x28]
je 0x414d19
call fcn.0041b75a
mov edi, eax
call fcn.004137d0
test esi, esi
mov ecx, dword [edi]
mov dword [eax], ecx
jne 0x414cad
call fcn.0041b75a
cmp dword [eax], 4
je 0x414c25
test bl, 0x1a
je 0x414d07
cmp esi, 0xffffffff
jne 0x414ce0
call fcn.004137d0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.00417680
add esp, 4
push eax
push 0x24
push 2
call fcn.00416c60
add esp, 0x10
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
ret
test bl, 6
je 0x414d07
call fcn.004137d0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00417680
add esp, 4
push eax
push 0x24
push 9
call fcn.00416c60
add esp, 0x10
cmp esi, 0xffffffff
je 0x414d11
test bl, 6
je 0x414d19
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
and bl, 6
neg bl
pop edi
sbb ebx, ebx
not ebx
and ebx, esi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x415020
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x41502f
mov edi, 1
push edi
call fcn.0041c8ad
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x415083
push esi
call fcn.0041b75a
mov esi, eax
call fcn.004137d0
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x415066
mov edx, dword [fcn.00416be0]
mov dword [fcn.00416be0], edx
test al, 0x18
je 0x415077
push edi
push 0x24
push 5
call fcn.00416c60
add esp, 0xc
test esi, esi
pop esi
je 0x41509e
push 1
call fcn.0041ad25
test byte [esp + 0x10], 0x20
je 0x41509e
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x415780
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esp, [esp]
call fcn.0041b75a
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004232bf
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x41584a
call fcn.0041b75a
cmp dword [eax], 0
je 0x4157c7
call fcn.0041b75a
mov ebp, dword [eax]
jmp 0x4157ca
or ebp, 0xffffffff
call fcn.004137d0
test esi, esi
mov dword [eax], ebp
jne 0x4157df
call fcn.0041b75a
cmp dword [eax], 4
je 0x415790
mov al, byte [esp + 0x20]
test al, 0x1a
je 0x415837
cmp esi, 0xffffffff
jne 0x415811
call fcn.004137d0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00417680
add esp, 4
push eax
push 0x24
push 2
call fcn.00416c60
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test al, 6
je 0x415837
call fcn.004137d0
mov edx, dword [eax]
push edx
push ebx
call fcn.00417680
add esp, 4
push eax
push 0x24
push 9
call fcn.00416c60
mov al, byte [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x415840
test al, 6
je 0x415854
pop edi
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
ret
mov al, byte [esp + 0x20]
test al, 6
je 0x415854
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x417e70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x58]
test ebx, ebx
push edi
jge 0x417ec1
cmp ebx, 0xffffffdc
jl 0x417f8b
cmp ebx, 0xfffffffe
jg 0x417f8b
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov edi, dword [esp + 0x50]
jg 0x417eb9
jl 0x417ea1
test edi, edi
jae 0x417eb9
mov edx, dword [esp + 0x58]
inc edx
mov byte [edx - 1], 0x2d
neg edi
adc ecx, 0
neg ecx
mov dword [esp + 0x58], edx
neg ebx
jmp 0x417edf
mov edx, dword [esp + 0x58]
neg ebx
jmp 0x417edf
cmp ebx, 0x24
jg 0x417f8b
cmp ebx, 2
jl 0x417f8b
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov eax, edi
or eax, ecx
jne 0x417ef4
mov byte [edx], 0x30
inc edx
pop edi
mov byte [edx], 0
mov eax, edx
pop ebx
add esp, 0x44
ret
test ecx, ecx
push esi
lea esi, [esp + 0x4c]
mov byte [esp + 0x4c], 0
ja 0x417f0a
cmp edi, 0x7fffffff
jbe 0x417f3f
push ebp
xor ebp, ebp
lea ecx, [ecx]
push ebp
push ebx
push ecx
push edi
call fcn.0041b800
mov ecx, eax
imul ecx, ebx
sub edi, ecx
mov cl, byte [edi + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
dec esi
test edx, edx
mov byte [esi], cl
mov edi, eax
mov ecx, edx
ja 0x417f10
jb 0x417f3a
cmp eax, 0x7fffffff
ja 0x417f10
mov edx, dword [esp + 0x60]
pop ebp
test edi, edi
mov dword [esp + 0x60], edi
je 0x417f77
mov eax, dword [esp + 0x60]
cdq
idiv ebx
xor edx, edx
mov dl, byte [esp + 0x60]
dec esi
mov ecx, eax
mov al, bl
imul cl
sub dl, al
mov dword [esp + 0x60], ecx
and edx, 0xff
test ecx, ecx
mov al, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esi], al
jne 0x417f47
mov edx, dword [esp + 0x5c]
mov al, byte [esi]
mov byte [edx], al
inc edx
inc esi
test al, al
jne 0x417f77
pop esi
pop edi
lea eax, [edx - 1]
pop ebx
add esp, 0x44
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x44
ret

Function at 0x426ff2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42701d
test byte [esp + 8], 0x80
je 0x42700c
and al, 0xfe
jmp 0x42700e
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42702e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b6e7
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x427b1d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x427b3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b6e7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x427b60
test byte [esp + 8], 2
je 0x427b60
call fcn.0041b75a
mov dword [eax], 0xd
call fcn.0041b763
mov dword [eax], 5
jmp 0x427b39
xor eax, eax
ret
Function at 0x10001050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x100010c8
sub eax, 1
je 0x1000107c
sub eax, 5
jne 0x10001073
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10001073
mov eax, dword [0x1001428c]
mov dword [ecx], eax
mov eax, 1
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
push 0
push str.Dll_Injection_example
push str.DLL_PROCESS_ATTACH_
push 0
mov dword [0x1001428c], eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x100142a4
push 0
push 0
push section..text
push 0
push 0
mov dword [0x100142a0], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x100142a8], eax
mov eax, 1
pop ebp
ret 0xc
mov eax, dword [0x100142a8]
mov dword [0x100142a0], 1
test eax, eax
je 0x10001073
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop ebp
ret 0xc
Function at 0x402fb0
Capabilities:
Query or enumerate registry value

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

Function at 0x403d0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x468048], 0
je 0x403d6d
cmp word [0x46821c], 0xd7b2
jne 0x403d35
cmp dword [0x468224], 0
jbe 0x403d35
mov eax, 0x468218
call dword [0x468234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46606c
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 0x403d94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x466030], 0
jne 0x403d89
push 0
push 0x466064
push 0x46606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4050e8
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 0xf0019
push 0
push 0x405318
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40516b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405318
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40516b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405334
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4051f4
xor eax, eax
push ebp
push 0x4051ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404f30
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 0x4051d2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405354
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051d2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4051f4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x40530e
cmp byte [ebp - 0xd], 0
jne 0x40523b
cmp byte [ebp - 0x12], 0
je 0x40530e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405254
dec ebx
cmp byte [ebx], 0x2e
je 0x405263
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405253
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40530e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4052a0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40530e
cmp byte [ebp - 0xd], 0
je 0x40530e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40530e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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