joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403df0
Capabilities:
Create thread
Query environment variable

Disassembly:
sub esp, 0x84
mov eax, dword [0x444440]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push edi
mov edi, dword [esp + 0x94]
call fcn.00403980
call fcn.00403900
mov eax, dword [sym.imp.python38.dll_Py_DebugFlag]
mov dword [0x445410], edi
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_InspectFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_InteractiveFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_OptimizeFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_DontWriteBytecodeFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_NoUserSiteDirectory]
mov dword [eax], 1
mov eax, dword [sym.imp.python38.dll_Py_IgnoreEnvironmentFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_VerboseFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_BytesWarningFlag]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_UTF8Mode]
mov dword [eax], 0
mov eax, dword [sym.imp.python38.dll_Py_FrozenFlag]
mov dword [eax], 1
mov eax, dword [sym.imp.python38.dll_Py_NoSiteFlag]
mov dword [eax], 1
push dword [edi]
call dword [sym.imp.python38.dll_Py_SetProgramName]
mov esi, dword [esp + 0x94]
push 1
push edi
push esi
mov dword [0x445414], esi
call fcn.00403a40
call fcn.00403670
mov eax, dword [sym.imp.python38.dll_Py_NoSiteFlag]
push 0
push edi
push esi
mov dword [eax], 1
call fcn.00403a40
push dword [0x445410]
push esi
call dword [sym.imp.python38.dll_PySys_SetArgv]
call fcn.00413e80
call fcn.00401000
call fcn.004018c0
call fcn.00414180
call fcn.00414520
call fcn.004145e0
call fcn.004145a0
call fcn.004147a0
call fcn.00414560
call fcn.004149d0
call fcn.00414a70
call fcn.00416490
call fcn.004196d0
call fcn.004196c0
call fcn.00403b20
call fcn.00416eb0
call fcn.00419970
mov ecx, dword [sym.imp.python38.dll_PyImport_FrozenModules]
mov eax, dword [0x445418]
mov dword [ecx], eax
call fcn.00401180
call dword [sym.imp.python38.dll__PyWarnings_Init]
call fcn.00419540
push dword [0x44541c]
push 0x431934
call fcn.00403cf0
push dword [0x445420]
push str.PYTHONHOME
call fcn.00403cf0
push 0x80
push 0
lea eax, [esp + 0x44]
push eax
call fcn.0041af30
add esp, 0x40
lea eax, [esp + 8]
push 0x80
push eax
push str.NUITKA_ONEFILE_PARENT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
pop edi
pop esi
cmp eax, 0x7d
ja 0x403fce
lea eax, [esp]
push eax
call fcn.0041dabe
add esp, 4
mov dword [0x445428], eax
push 0
push 0
push 0
push 0x4037f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.__main__
call fcn.00403650
push eax
call dword [sym.imp.python38.dll_PyDict_DelItemString]
push str.__main__
call fcn.004035b0
add esp, 0xc
call fcn.004035c0
push eax
call dword [sym.imp.python38.dll_Py_Exit]
int3
Function at 0x40ea30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x40ea3b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
movzx eax, byte [esi]
shl eax, 7
sub edx, 1
js 0x40ea63
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
imul eax, eax, 0xf4243
xor eax, ecx
sub edx, 1
jns 0x40ea50
xor eax, edx
mov ecx, 0xfffffffe
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
ret

Function at 0x415cd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
or eax, 0xffffffff
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x415d9f
movzx ecx, byte [ebx + esi]
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
inc esi
xor eax, ecx
cmp esi, edi
jb 0x415ce8
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x417e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp byte [0x445d3b], 0
push esi
push edi
jne 0x417ecc
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x44543c], eax
mov esi, dword [eax]
add eax, 4
mov dword [0x44543c], eax
mov ecx, dword [eax]
lea edi, [eax + 4]
push ecx
push edi
mov dword [0x44543c], edi
call fcn.00415cd0
add esp, 8
cmp eax, esi
jne 0x41802d
mov byte [0x445d3b], 1
jmp 0x417ed2
mov edi, dword [0x44543c]
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x431800
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417f00
test dl, dl
je 0x417efc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417f00
add eax, 2
add ecx, 2
test dl, dl
jne 0x417ee0
xor eax, eax
jmp 0x417f05
sbb eax, eax
or eax, 1
test eax, eax
je 0x417f83
cmp byte [0x445d3a], 1
je 0x417f83
mov esi, dword [sym.imp.python38.dll_PyDict_New]
call esi
mov dword [0x445d60], eax
call esi
mov dword [0x445d64], eax
call esi
mov dword [0x445d68], eax
call esi
mov dword [0x445d6c], eax
call esi
mov dword [0x445d70], eax
call esi
mov dword [0x445d74], eax
call esi
mov dword [0x445d78], eax
call esi
mov edi, dword [sym.imp.python38.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x445d7c], eax
nop dword [eax + eax]
push esi
call edi
mov dword [esi*4 + 0x4468f4], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x417f60
mov edi, dword [0x44543c]
mov byte [0x445d3a], 1
mov ecx, edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417fa7
test dl, dl
je 0x417fa3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417fa7
add eax, 2
add ecx, 2
test dl, dl
jne 0x417f87
xor edx, edx
jmp 0x417fac
sbb edx, edx
or edx, 1
mov ecx, edi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417fb1
sub ecx, esi
mov eax, dword [edi + ecx + 1]
lea esi, [edi + ecx]
add esi, 5
test edx, edx
je 0x418015
add esi, eax
mov ecx, ebx
mov eax, esi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x417ff0
test dl, dl
je 0x417fec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x417ff0
add ecx, 2
add eax, 2
test dl, dl
jne 0x417fd0
xor edx, edx
jmp 0x417ff5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418000
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x417fc8
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push dword [esp + 0x18]
call fcn.00414eb0
add esp, 0xc
pop ebx
pop edi
pop esi
ret
push str.Error__corrupted_constants_object
call fcn.0041e47b
add esp, 4
call fcn.0041de25
int3

Function at 0x41a525
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41a564
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a564
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a564
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41a564
cmp dword [ecx + 0x74], 0xe
jbe 0x41a564
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x427640
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x444440]
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 0x42768b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004277d9
test al, al
jne 0x427685
sub edx, 2
cmp edx, edi
jne 0x42766b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4276ad
lea eax, [edi + 2]
cmp edx, eax
je 0x4276ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042758c
add esp, 0x10
jmp 0x4277a5
push esi
lea ecx, [ebp - 0x255]
call fcn.004277d9
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4276ee
push dword [ebp - 0x25c]
jmp 0x42769d
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 0x42772b
cmp word [ebp - 0x226], 0
je 0x42774c
cmp word [ebp - 0x226], ax
jne 0x42772b
cmp word [ebp - 0x224], 0
je 0x42774c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042758c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x427798
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x427705
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x427780
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4277a5
push 0x4273bc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042deb0
add esp, 0x10
jmp 0x427775
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.00419be9
leave
ret

Function at 0x42821d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42822e
pop esi
ret
push ebx
push edi
push esi
call fcn.004281e6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00422c70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x428256
push ebx
push esi
push edi
call fcn.0041a9b0
add esp, 0xc
push 0
call fcn.004236a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x428625
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042826b
Function at 0x42af3a
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x42af54
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x42af6b
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x42afc3
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00428941
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x42afc3
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x42afc3
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x42afc3
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x42afbd
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x42afbf
xor bl, bl
mov al, bl
jmp 0x42afc5
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x42f860
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f88d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f88d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x404290
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1544
call fcn.0040ae30
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x450598]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45059c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00404280
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x4505a0]
mov edx, dword [0x4505a4]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea ecx, [ecx]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x457d1c]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40431c
mov dword [0x457d18], 0xedeb2e40
jmp 0x404337
cmp eax, 0x3eb
jne 0x404337
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4577a8], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x457d1c], 0x9e6
mov dword [0x457d14], 0xf4ea3dee
jne 0x404370
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x457d1c], 0x213
jne 0x40440b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x944]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1544]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea eax, [ebp - 0xd44]
push eax
push 0
push 0x403f68
push 0x403fb4
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x457d1c], 0xc
jne 0x40441f
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov ecx, ebx
shr ecx, 5
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
xor edx, eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x4042f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404470
Capabilities:
Clear file content
Connect pipe
Get thread local storage value
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.0040ae30
mov eax, dword [0x457d1c]
mov ecx, dword [0x4577ac]
shr eax, 3
test eax, eax
jbe 0x404576
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x457d1c], 0x959
jne 0x40455c
push 0
lea eax, [ebp - 0x808]
push eax
push 0
push 0x403fc0
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1008]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea edx, [ebp - 0x1808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 4]
push eax
call fcn.00404290
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x4044b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4077e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44f4f8]
jne 0x4077ea
repz ret
jmp fcn.0040ca1e

Function at 0x40c643
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409b16
and dword [ebp - 4], 0
cmp dword [0x455798], 0
mov ebx, eax
jne 0x40c6f4
push 0x401d44
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c7a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d38
push edi
call esi
test eax, eax
je 0x40c7a5
push eax
call fcn.00409aa4
mov dword [esp], 0x401d28
push edi
mov dword [0x455798], eax
call esi
push eax
call fcn.00409aa4
mov dword [esp], 0x401d14
push edi
mov dword [0x45579c], eax
call esi
push eax
call fcn.00409aa4
mov dword [esp], 0x401cf8
push edi
mov dword [0x4557a0], eax
call esi
push eax
call fcn.00409aa4
pop ecx
mov dword [0x4557a8], eax
test eax, eax
je 0x40c6f4
push 0x401ce0
push edi
call esi
push eax
call fcn.00409aa4
pop ecx
mov dword [0x4557a4], eax
mov eax, dword [0x4557a4]
cmp eax, ebx
je 0x40c74c
cmp dword [0x4557a8], ebx
je 0x40c74c
push eax
call fcn.00409b1f
push dword [0x4557a8]
mov esi, eax
call fcn.00409b1f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c74c
test edi, edi
je 0x40c74c
call esi
test eax, eax
je 0x40c743
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c743
test byte [ebp - 0xc], 1
jne 0x40c74c
or dword [ebp + 0x10], 0x200000
jmp 0x40c785
mov eax, dword [0x45579c]
cmp eax, ebx
je 0x40c785
push eax
call fcn.00409b1f
pop ecx
test eax, eax
je 0x40c785
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c785
mov eax, dword [0x4557a0]
cmp eax, ebx
je 0x40c785
push eax
call fcn.00409b1f
pop ecx
test eax, eax
je 0x40c785
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x455798]
call fcn.00409b1f
pop ecx
test eax, eax
je 0x40c7a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c7a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017a5
Capabilities:
Extract resource via kernel32 functions
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x4021bc
push 0x65
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401862
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401861
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401861
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0xf013f
push ebx
push 0x4021c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401861
push edi
push esi
push 3
push ebx
push str.wwwstager
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401861
call fcn.00401868
mov ebx, str.wwwsvc32
mov esi, eax
mov ecx, ebx
call fcn.00401674
mov edi, str.wwwsvc64
mov ecx, edi
call fcn.00401674
call fcn.0040112f
test eax, eax
push esi
cmove edi, ebx
push ecx
mov ecx, edi
call fcn.004011ad
pop ecx
pop ecx
test eax, eax
je 0x401861
mov ecx, edi
call fcn.0040151a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4028dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x43ac28
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40292a
push str.SHGetSpecialFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402914
push 1
push 0x2b
push edi
push ebx
call eax
mov ebx, eax
push 0x43ac58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x40299a
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
js 0x402972
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x208
push eax
push edi
push ebx
push ebx
push str.CommonFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jns 0x40299a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0xc
jne 0x40298d
push str.C:Program_FilesFichiers_communs
jmp 0x402992
push str.C:Program_FilesCommon_Files
push edi
call fcn.0041fae6
pop ecx
pop ecx
mov ecx, edi
call fcn.0040bd2b
push ecx
push str.PC_SOFT25.0Framework
mov edx, 0x104
mov ecx, edi
call fcn.0040e0aa
pop ecx
pop ecx
mov ecx, edi
call fcn.0040bd2b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4033aa
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4303ed
call fcn.00430290
sub esp, 0x214
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xc]
push eax
lea edi, [esi + 0x420]
push edi
call fcn.0041fae6
push str.WDUPDATE.NET
push edi
call fcn.0041fb08
add esp, 0x10
lea ebx, [esi + 0x834]
push edi
push 0
push str.RESEAU
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi + 0xc48], 0
mov dword [ebp - 0x14], eax
je 0x40342d
push eax
push edi
push ebx
lea eax, [ebp - 0x10]
push str.100___Lecture_de_la_cl
push eax
call fcn.00402a02
add esp, 0x14
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040ef32
push eax
mov ecx, esi
call fcn.004032cc
lea ecx, [ebp - 0x10]
call fcn.0040eea9
push edi
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0x43ace4
push str.PROTOCOLE
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x220]
push str.LOCAL
push eax
call fcn.0041fb97
pop ecx
pop ecx
test eax, eax
jne 0x40346a
and dword [esi + 0x11b0], eax
jmp 0x40348b
lea eax, [ebp - 0x220]
push str.HTTP
push eax
call fcn.0041fb97
pop ecx
pop ecx
test eax, eax
jne 0x403490
mov dword [esi + 0x11b0], 1
mov eax, dword [ebp - 0x14]
jmp 0x403492
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret