joyce8/EMBER2024-capa huggingface dataset:
Function at 0x516070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbf000]
push edi
jmp 0x51608a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x516091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x516080
mov eax, 1
add ebx, ebx
jne 0x5160a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5160b4
jne 0x5160d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5160d3
dec eax
add ebx, ebx
jne 0x5160c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x516098
add ebx, ebx
jne 0x5160cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x516125
xor ecx, ecx
sub eax, 3
jb 0x5160eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51615a
sar eax, 1
mov ebp, eax
jmp 0x5160f6
add ebx, ebx
jne 0x5160f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5160c4
inc ecx
add ebx, ebx
jne 0x516104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5160c4
add ebx, ebx
jne 0x516111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x516106
jne 0x516122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x516106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x516144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x516136
jmp 0x516086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x516144
add edi, ecx
jmp 0x516086
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x516162
cmp byte [edi], 0x11
jne 0x516162
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 0x516167
lea edi, [esi + 0x10f000]
mov eax, dword [edi]
or eax, eax
je 0x5161df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1537a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x153920]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x516194
mov ecx, edi
jns 0x5161c3
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 + 0x153924]
or eax, eax
je 0x5161d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5161b1
call dword [esi + 0x153934]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x516210
cmp al, 0xef
ja 0x516203
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5161e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5161f2
mov ebp, dword [esi + 0x153928]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x516244
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x405d12
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x405d21
pop dword [ebp - 0x48]
mov eax, 0x6582c779
sub eax, 0x65426a58
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xe7a720e1
sub dword [ebp - 0x58], 0x9954db96
mov dword [ebp - 0x54], 0x131baa5f
sub dword [ebp - 0x54], 0xe0e85e1a
mov dword [ebp - 0x50], 0xa3629141
add dword [ebp - 0x50], 0xa8e9b2ed
mov dword [ebp - 0x4c], 0xedb2b85f
add dword [ebp - 0x4c], 0x124d47a1
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x3bd24106
sub dword [ebp - 0x58], 0xc75fd7b0
mov dword [ebp - 0x54], 0x171a2b48
add dword [ebp - 0x54], 0x2a52362d
mov dword [ebp - 0x50], 0x5c501819
sub dword [ebp - 0x50], 0xf8e0abad
mov dword [ebp - 0x4c], 0x331985c8
add dword [ebp - 0x4c], 0xcce67a38
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xf496991c
add eax, 0xbad071c
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x41ddf
push 0
call eax
mov ecx, 0x120ac58a
sub ecx, 0x120a6ebd
xor edx, edx
add edx, eax
mov edi, 0x66849073
sub edi, 0x663f1673
add edi, dword [ebp - 0x48]
mov esi, 0xb9586ce
sub esi, 0xe093862e
add dword [ebp - 8], 0x4b55c161
mov ebx, dword [edi]
sub dword [ebp - 0x10], ebx
xor ebx, esi
mov dword [ebp - 0x34], 0x4039b6e0
mov dword [edx], ebx
mov dword [ebp - 0x44], 0x2b383eed
add edx, 4
add edi, 0x6dfc2bdb
add edi, 0x9203d429
loop 0x405e40
add eax, 0x11624940
sub eax, 0x1160fb39
xor ebx, ebx
add ebx, eax
add eax, 0xaa404764
sub eax, 0xaa40475f
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x402c0b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x42ac00
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x423e6c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.0040559b
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x409010], edi
jne 0x402c65
mov eax, 0x4090fc
jmp 0x402e3d
push esi
mov esi, 0x429c00
push esi
call fcn.004058c4
push esi
call fcn.004053fe
push eax
push 0x42b000
call fcn.004058c4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x41f020], eax
mov esi, eax
jle 0x402d80
mov ebx, 0x417020
mov eax, dword [0x423e74]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x402cb9
mov edi, eax
push edi
push ebx
call fcn.00403041
test eax, eax
je 0x402dea
cmp dword [0x423e74], 0
jne 0x402d4b
push 0x1c
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0040555c
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x402d59
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x402d59
cmp dword [ebp - 0x18], 0x74736e49
jne 0x402d59
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x402d59
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x402d59
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x40b010]
and eax, 2
or dword [0x423f00], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x423e74], ecx
jg 0x402de3
test byte [ebp + 8], 8
jne 0x402d3d
test byte [ebp + 8], 4
jne 0x402d7e
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x402d59
mov edi, esi
jmp 0x402d59
test byte [ebp + 8], 2
jne 0x402d59
push 0
call fcn.00402bb0
pop ecx
cmp esi, dword [0x41f020]
jge 0x402d6e
push edi
push ebx
push dword [ebp - 8]
call fcn.00405c4e
mov dword [ebp - 8], eax
add dword [0x40b010], edi
sub esi, edi
test esi, esi
jg 0x402c9e
xor ebx, ebx
push 1
call fcn.00402bb0
cmp dword [0x423e74], ebx
pop ecx
je 0x402de3
cmp dword [ebp - 4], ebx
je 0x402db7
push dword [0x40b010]
call fcn.00403073
lea eax, [ebp + 8]
push 4
push eax
call fcn.00403041
test eax, eax
je 0x402de3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x402de3
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x423e74]
add eax, 0x1c
push eax
call fcn.00403073
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402e44
cmp eax, dword [ebp - 0x14]
je 0x402df4
mov eax, 0x409030
jmp 0x402e3d
push 1
call fcn.00402bb0
pop ecx
jmp 0x402de3
test byte [ebp - 0x28], 1
mov dword [0x423e70], esi
mov eax, dword [esi]
mov dword [0x423e78], eax
je 0x402e0d
inc dword [0x423e7c]
push 8
lea eax, [esi + 0x44]
pop ecx
sub eax, 8
add dword [eax], esi
dec ecx
jne 0x402e13
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
add esi, 4
push 0x40
push esi
push 0x423e80
call fcn.0040555c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402250
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x42bc38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x4022b2
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004213e5
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4022e9
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004213e5
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
push 0x438210
lea ecx, [esp + 0x28]
call fcn.0041bb77
push 0x43820c
lea ecx, [esp + 0x28]
call fcn.0041bb77
mov ecx, dword [esp + 0x24]
push 0x438208
push ecx
call fcn.0040d141
add esp, 8
test eax, eax
jne 0x402345
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004213e5
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
push 0x5c
lea ecx, [esp + 0x28]
call fcn.0041b7bc
push 0x2f
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.0041b7bc
test esi, esi
jle 0x40236d
test eax, eax
jle 0x402369
cmp esi, eax
jl 0x402371
mov eax, esi
jmp 0x402371
test eax, eax
jle 0x4023d9
push ecx
inc eax
mov edx, esp
mov dword [esp + 0x14], esp
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.0041b744
mov ecx, ebx
call fcn.00402250
test eax, eax
je 0x4023b2
lea eax, [esp + 0x24]
push 0x43820c
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0042167a
mov eax, dword [eax]
push 0
push eax
call edi
mov esi, eax
lea ecx, [esp + 0xc]
jmp 0x4023fa
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004213e5
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
lea edx, [esp + 0x24]
push 0x43820c
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0042167a
mov eax, dword [eax]
push 0
push eax
call edi
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.004213e5
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004213e5
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 4
Function at 0x4134e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43bd90
cmp edx, dword [eax]
je 0x413502
add eax, 8
inc ecx
cmp eax, 0x43be20
jl 0x4134f3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43bd90]
jne 0x413630
mov eax, dword [0x43e6ac]
cmp eax, 1
je 0x41360a
test eax, eax
jne 0x413533
cmp dword [0x4393c4], 1
je 0x41360a
cmp edx, 0xfc
je 0x413630
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41356a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004137e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f160
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4135ad
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f160
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x430a80
push edi
call fcn.00410ea0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004137e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004137f0
lea eax, [ebp - 0xa0]
push 0x430a60
push eax
call fcn.004137f0
push dword [esi + 0x43bd94]
lea eax, [ebp - 0xa0]
push eax
call fcn.004137f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415df6
add esp, 0x2c
pop edi
jmp 0x413630
lea eax, [ebp + 8]
lea esi, [esi + 0x43bd94]
push 0
push eax
push dword [esi]
call fcn.0040f160
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41af20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040d330
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41afeb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41afeb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41af9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41afa9
or bh, 8
and edi, 0x8000000
je 0x41afc4
mov eax, dword [0x43fe5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41afeb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41b3eb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41b40f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41b42a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41f0b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41f0f7
call fcn.004285ee
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f0f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f0ee
xor eax, eax
jmp 0x41f0ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f105
pop edi
pop esi
pop ebx
ret 4

Function at 0x42024e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x420270
cmp dword [edi + 0x3c], 0
jne 0x420270
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004285ee
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0042029d
pop edi
pop esi
pop ebx
ret 8

Function at 0x42816c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42819a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4281b8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004280d2
jmp 0x4281b8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4281b8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004280d2
test edi, edi
mov eax, edi
jne 0x4281a2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42acb3
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x42acca
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x10002080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20006
push 0
mov esi, ecx
mov dword [ebp - 8], 0
push esi
push 0x80000001
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100020ea
lea eax, ds:[ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000210b
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002cc86
mov esp, ebp
pop ebp
ret

Function at 0x10002120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
movss dword [ebp - 0x11c], xmm2
push eax
push 0x20006
push 0
push 0x10068968
push 0x80000001
mov esi, edx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100021a8
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x10068968
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
nop
test eax, eax
jne 0x10002228
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1002e8c0
movss xmm0, dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
cvtps2pd xmm0, xmm0
add esp, 4
movsd qword [esp], xmm0
push 0x100523a8
push 0xffffffffffffffff
push 0x104
push eax
call fcn.100013e0
lea ecx, [ebp - 0x110]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100021f2
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push esi
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword ds:[ebp - 0x118]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002cc86
mov esp, ebp
pop ebp
ret

Function at 0x10002240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
push 0
push eax
call fcn.1002e8c0
add esp, 0xc
mov dword [ebp - 0x110], 1
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 2
push esi
push 0x10068968
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.1003adc2
mov ecx, dword [ebp - 4]
add esp, 4
fstp dword [edi]
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.1002cc86
mov esp, ebp
pop ebp
ret
Function at 0x10002dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push 0
push 0
call fcn.10001280
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.10035a33
mov ebx, eax
add esp, 0x1c
or eax, 0xffffffff
mov ecx, 2
test ebx, ebx
cmovs ebx, eax
add ebx, 2
mov eax, ebx
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.1002d1f6
add esp, 4
mov dword [esp + 0xc], eax
push esi
mov esi, eax
push 0
push esi
call fcn.1002e8c0
add esp, 0xc
lea eax, [ebp + 0x10]
mov edx, ebx
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.100012e0
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002e90
nop
test ebx, ebx
je 0x10002e89
cmp word [esi], 0
je 0x10002e78
push 0
push 0
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 2
sub ebx, 1
jne 0x10002e64
mov esi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002cc99
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret