joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41abc0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x47c070]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0x10
xorps xmm0, xmm0
mov esi, edx
mov eax, 2
movaps xmmword [esp + 0x20], xmm0
push 0
mov dword [esp + 0x18], esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
push esi
push 2
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x41ad36
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x41ad36
cmp dword [esp + 0x14], 1
jne 0x41ac6b
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x41ad36
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41ad36
push eax
push dword [esp + 0x18]
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x41ad36
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x41ad36
cmp dword [esp + 0x14], 2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
jne 0x41ace9
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x41ad36
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x41ad36
mov eax, esi
jmp 0x41acf0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x41ad36
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [edi]
call esi
push 0
push 1
push dword [edi + 4]
call esi
cmp dword [esp + 0x14], 1
jne 0x41ad20
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
cmp ecx, 0xffffffff
je 0x41ad4a
push ecx
call eax
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [edi + 4]
cmp ecx, 0xffffffff
je 0x41ad55
push ecx
call eax
cmp esi, 0xffffffff
je 0x41ad61
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x41b9f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00439450
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x5c], 0
jne 0x41ba28
push 0x40
push 1
call fcn.00443614
add esp, 8
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], 0x41b300
mov esi, dword [edi + 0x5c]
xor ecx, ecx
mov eax, dword [esi + 8]
sub eax, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
cmp edx, 1
jne 0x41bac3
mov edx, dword [edi + 0x3c]
cmp edx, 0x1000
jae 0x41ba51
mov ecx, 0x1000
sub ecx, edx
test eax, eax
je 0x41ba5a
cmp ecx, eax
cmova ecx, eax
test ecx, ecx
je 0x41bb71
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jg 0x41bb2c
jl 0x41ba7c
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 8]
jae 0x41bb2c
push dword [esi]
lea eax, [ebp - 0x1008]
push ecx
push 1
push eax
call fcn.004480be
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x41bb2c
push ebx
lea edx, [ebp - 0x1008]
mov ecx, edi
call fcn.00418a10
add esp, 4
add dword [esi + 0x10], ebx
adc dword [esi + 0x14], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
cmp edx, 2
jne 0x41bb63
test eax, eax
jne 0x41bad4
xor ecx, ecx
jmp 0x41badc
mov ecx, dword [edi + 0x30]
cmp eax, ecx
cmovb ecx, eax
push dword [esi]
push ecx
push 1
push dword [edi + 0x2c]
call fcn.00447e01
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x41bb2c
mov eax, dword [edi + 0x30]
cmp ebx, eax
ja 0x41bb0f
mov ecx, dword [edi + 0x2c]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.00439500
add esp, 0xc
sub dword [edi + 0x30], ebx
add dword [esi + 0x10], ebx
adc dword [esi + 0x14], 0
test ebx, ebx
je 0x41bb2c
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jl 0x41bb71
jg 0x41bb2c
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 8]
jb 0x41bb71
cmp dword [esi + 0x18], 0
jne 0x41bb39
or dword [edi + 0x7c], 0x400
mov eax, dword [esi]
test eax, eax
je 0x41bb48
push eax
call fcn.00443f6b
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x20]
test edx, edx
je 0x41bb71
mov ecx, edi
call fcn.004197d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x420ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
lea eax, [ebp - 0x208]
push ebx
push 0x200
push 1
push eax
mov esi, ecx
call fcn.004480be
mov edi, eax
add esp, 0x10
test edi, edi
je 0x420b78
call fcn.00415c90
call fcn.0045f85f
test byte [esi + 0x7c], 2
lea ecx, [ebp - 0x208]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x78]
push edi
push ecx
mov dword [esi + 0x4c], edx
mov eax, dword [eax + 8]
push esi
je 0x420b31
mov eax, dword [eax + 0x28]
jmp 0x420b34
mov eax, dword [eax + 0x24]
call eax
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x420b5b
mov edx, dword [eax + 4]
test edx, edx
je 0x420b5b
push 4
lea eax, [ebp - 0x208]
mov ecx, esi
push edi
push eax
call fcn.00422200
add esp, 0xc
push ebx
push 0x200
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.004480be
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x420b07
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x421850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x47ebf0], 4
mov eax, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x28], eax
jl 0x4218cf
push 0x14
lea eax, [ebp - 0x1c]
push str.mongoose.c:9193
push eax
call fcn.004434f0
mov eax, dword [0x47ebf4]
add esp, 0xc
mov byte [ebp - 8], 0
test eax, eax
jne 0x4218a8
push 2
call fcn.0043db19
add esp, 4
mov dword [0x47ebf4], eax
lea ecx, [ebp - 0x1c]
push ecx
push str.__20s
push eax
call fcn.00415660
add esp, 0xc
push edi
push dword [ebp - 0x28]
push esi
push str._p__d__d
call fcn.004157b0
mov eax, dword [ebp - 0x28]
add esp, 0x10
lea ecx, [ebp - 0x24]
mov edx, eax
push ecx
push edi
mov ecx, esi
call fcn.00421690
add esp, 8
call fcn.00415c90
call fcn.0045f85f
test byte [esi + 0x7c], 2
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x78]
push edi
push ebx
mov dword [esi + 0x4c], edx
mov eax, dword [eax + 8]
push esi
je 0x421904
mov eax, dword [eax + 0x28]
jmp 0x421907
mov eax, dword [eax + 0x24]
call eax
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x421928
mov edx, dword [eax + 4]
test edx, edx
je 0x421928
push 4
push edi
push ebx
mov ecx, esi
call fcn.00422200
add esp, 0xc
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x421956
mov eax, dword [esi + 0x3c]
xor edx, edx
sub eax, edi
je 0x421956
mov ecx, dword [esi + 0x38]
mov eax, edx
and eax, 3
add ecx, edi
mov al, byte [ebp + eax - 0x20]
xor byte [ecx + edx], al
inc edx
mov eax, dword [esi + 0x3c]
mov edi, dword [ebp - 0x24]
sub eax, edi
cmp edx, eax
jb 0x421938
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x421970
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov edx, 2
push esi
mov esi, ecx
mov dword [ebp - 0x14], ebx
push edi
mov eax, dword [ebx + 0x1c]
lea ecx, [ebp - 0xc]
add eax, dword [ebx + 0x14]
add eax, dword [ebx + 0xc]
add eax, dword [ebx + 4]
push ecx
push eax
mov ecx, esi
call fcn.00421690
add esp, 8
xor edi, edi
nop dword [eax]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebx + edi*8 + 4]
mov eax, dword [eax + edi*8]
mov dword [ebp - 0x10], eax
call fcn.00415c90
call fcn.0045f85f
test byte [esi + 0x7c], 2
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x78]
push ebx
push dword [ebp - 0x10]
mov dword [esi + 0x4c], edx
mov eax, dword [eax + 8]
push esi
je 0x4219e3
mov eax, dword [eax + 0x28]
jmp 0x4219e6
mov eax, dword [eax + 0x24]
call eax
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x421a09
mov edx, dword [eax + 4]
test edx, edx
je 0x421a09
push 4
push ebx
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00422200
add esp, 0xc
mov ebx, dword [ebp - 0x14]
inc edi
cmp edi, 4
jl 0x4219b0
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x421a40
mov eax, dword [esi + 0x3c]
xor edx, edx
sub eax, edi
je 0x421a40
mov ecx, dword [esi + 0x38]
mov eax, edx
and eax, 3
add ecx, edi
mov al, byte [ebp + eax - 8]
xor byte [ecx + edx], al
inc edx
mov eax, dword [esi + 0x3c]
mov edi, dword [ebp - 0xc]
sub eax, edi
cmp edx, eax
jb 0x421a22
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret

Function at 0x421ae0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x64], eax
push edi
mov dword [ebp - 0x60], 0x67452301
sub ebx, esi
mov dword [ebp - 0x5c], 0xefcdab89
mov edi, 2
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
push dword [ebx + esi]
mov edx, dword [esi]
lea ecx, [ebp - 0x60]
call fcn.004179f0
add esp, 4
lea esi, [esi + 4]
sub edi, 1
jne 0x421b36
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00417aa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x422200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4a8
mov eax, dword [0x47c070]
xor eax, esp
mov dword [esp + 0x4a4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [edi + 0x14]
mov dword [esp + 0x10], ecx
lea eax, [eax + eax*4]
mov ecx, 0x474a44
mov dword [esp + 0x18], eax
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x422264
test dl, dl
je 0x422260
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x422264
add eax, 2
add ecx, 2
test dl, dl
jne 0x422244
xor eax, eax
jmp 0x422269
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422279
push 1
call fcn.0043db19
add esp, 4
jmp 0x4222f3
mov ecx, 0x474a48
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4222a0
test dl, dl
je 0x42229c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4222a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x422280
xor eax, eax
jmp 0x4222a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4222b5
push 2
call fcn.0043db19
add esp, 4
jmp 0x4222f3
push 0x1f4
lea edx, [esp + 0xc4]
mov ecx, esi
call fcn.00417b90
add esp, 4
lea edx, [esp + 0x34]
mov ecx, 0x474a4c
push 0xa
call fcn.00417b90
add esp, 4
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.00444510
add esp, 8
mov esi, eax
test esi, esi
je 0x422439
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push edx
mov eax, dword [ecx + 0x78]
push 0
push ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
call eax
add esp, 0xc
lea edx, [esp + 0x84]
lea ecx, [esp + 0x20]
push 3
push 0x3c
call fcn.00421f80
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x28]
xorps xmm0, xmm0
movaps xmmword [esp + 0x28], xmm0
push edx
mov eax, dword [ecx + 0x78]
push 4
push ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
call eax
add esp, 0x14
lea edx, [esp + 0x48]
lea ecx, [esp + 0x20]
push 7
push 0x3c
call fcn.00421f80
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp ecx, 3
jne 0x422379
mov eax, 0x474a50
jmp 0x4223a1
cmp ecx, 4
jne 0x422385
mov eax, 0x474a54
jmp 0x4223a1
cmp ecx, 1
jne 0x422391
mov eax, 0x474a58
jmp 0x4223a1
cmp ecx, 2
mov eax, 0x474a5c
mov edx, 0x474a60
cmovne eax, edx
push edi
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x90]
push eax
push ecx
call fcn.00415c90
call fcn.0045f841
push eax
push str._lu__p__s__s__s__d_n
push esi
call fcn.00415660
add esp, 0x20
test edi, edi
jle 0x422414
add edi, 0x14
lea eax, [edi + edi*4]
push eax
call fcn.0043da46
mov edi, eax
add esp, 4
test edi, edi
je 0x422414
mov edx, dword [ebp + 0xc]
push ecx
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push edi
call fcn.00422050
add esp, 0xc
push edi
push 0x471524
push esi
call fcn.00415660
add esp, 0xc
push edi
call fcn.0043d817
add esp, 4
push 0
call fcn.0043db19
add esp, 4
cmp esi, eax
je 0x422439
push 1
call fcn.0043db19
add esp, 4
cmp esi, eax
je 0x422439
push esi
call fcn.00443f6b
add esp, 4
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
xor ecx, esp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
Function at 0x422d90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x47c070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x518]
push esi
push edi
push eax
push 0x20019
push 0
push str.SYSTEMControlSet001ServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
je 0x422dfc
push eax
push str.SYSTEMControlSet001ServicesTcpipParametersInterfaces
push str.cannot_open_reg_key__S:__ld_n
push 2
call fcn.0043db19
add esp, 4
push eax
call fcn.00415660
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004381bc
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x520], 0xffffffff
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x510]
mov dword [ebp - 0x510], 0x400
push eax
lea eax, [ebp - 0x508]
mov dword [ebp - 0x50c], 0x100
push eax
push esi
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x422f5b
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [eax]
lea eax, [ebp - 0x51c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x508]
push eax
push dword [ebp - 0x518]
call ebx
test eax, eax
jne 0x422edc
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x514]
push eax
push 0
push str.NameServer
push dword [ebp - 0x51c]
call edi
test eax, eax
je 0x422ec1
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x514]
push eax
push 0
push str.DhcpNameServer
push dword [ebp - 0x51c]
call edi
test eax, eax
jne 0x422edc
lea eax, [ebp - 0x108]
push 0x2c
push eax
call fcn.0043a9fd
add esp, 8
cmp word [ebp - 0x108], 0
jne 0x422f1e
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x510]
mov dword [ebp - 0x510], 0x400
push eax
lea eax, [ebp - 0x508]
mov dword [ebp - 0x50c], 0x100
push eax
inc esi
push esi
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x422e50
jmp 0x422f5b
test eax, eax
je 0x422f27
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x108]
push eax
push str.udp:___S:53
push 0x100
push 0x47ec58
call fcn.004156e0
add esp, 0x10
mov dword [ebp - 0x520], 0
push dword [ebp - 0x51c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x518]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x520]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004381bc
mov esp, ebp
pop ebp
ret

Function at 0x456872
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004566f1

Function at 0x45974f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045940f
Function at 0x402110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042e7d9

Function at 0x402920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x402a2f
test eax, 0xffff0000
jne 0x402a2f
push ebx
push edi
movzx edi, ax
push edi
call fcn.0042fb98
mov ebx, eax
test ebx, ebx
je 0x402a2b
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x402a2b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402a2b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402a2a
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4029b9
cmp esi, ecx
jae 0x402a2a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4029a3
cmp esi, ecx
jae 0x402a2a
movzx eax, word [esi]
test ax, ax
je 0x402a2a
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x402a37
mov ebx, dword [ebp - 4]
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x402a02
push edi
mov ecx, ebx
call fcn.004033e0
mov edx, dword [ebx]
movzx eax, word [esi]
push 0
push 0
push edi
push edx
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x402a37
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
int3
Function at 0x404ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0042fb98
mov ebx, eax
test ebx, ebx
jne 0x404ef0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x404fd7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404fd7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404fd7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x404f58
cmp esi, ecx
jae 0x404fd7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x404f42
cmp esi, ecx
jae 0x404fd7
movzx eax, word [esi]
test ax, ax
je 0x404fd7
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x404fe2
mov ebx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x404fa1
push edi
mov ecx, ebx
call fcn.004033e0
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x404fe2
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004020e0
int3

Function at 0x406e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
test ebx, ebx
je 0x406e5f
test edx, edx
je 0x406e5f
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x406e5f
push esi
xor esi, esi
nop dword [eax]
mov cl, byte [esi + ebx]
mov eax, edx
sar eax, 8
xor al, cl
mov byte [esi + ebx], al
inc esi
movzx eax, cl
add eax, edx
imul edx, eax, 0xce6d
add edx, 0x58bf
cmp esi, edi
jb 0x406e30
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4086a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x669c7d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x71cf78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4086ff
lea eax, [ebp - 0x10]
push eax
push str.SoftwareMyRxjh
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
lea ecx, [eax - 0x10]
mov edi, dword [eax - 0xc]
jle 0x40871f
push dword [ecx + 4]
lea ecx, [ebp + 8]
call fcn.00402a60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
add dword [ecx + 0xc], 0xffffffff
mov esi, 0xffffffff
mov eax, dword [ecx + 0xc]
push edi
cmove eax, esi
mov dword [ecx + 0xc], eax
push dword [ebp + 8]
push 1
push 0
push str.Path
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x408762
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret