joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422290
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
mov eax, 0x10
mov ebx, 0x400
push 1
mov word [esp + 0x10], ax
mov word [esp + 0x24], bx
call fcn.0040dc9c
push eax
push 0xe
push 1
push str.Error_reading
call fcn.0040df31
mov edi, dword [esp + 0x43c]
add esp, 0x14
movzx ecx, word [edi + 2]
mov eax, ecx
cmp cx, 0x20
jle 0x4222f6
movsx eax, cx
push 0x43617a
sub eax, 0x20
push eax
push 0x433de8
call fcn.00401b30
movzx eax, word [edi + 2]
add esp, 0xc
test ax, ax
jle 0x42230d
cmp ax, 0x20
jge 0x422306
movsx esi, ax
jmp 0x42230f
mov esi, 0x20
jmp 0x42230f
xor esi, esi
push 1
call fcn.0040dc9c
push eax
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.0040df31
push 1
call fcn.0040dc9c
push eax
push 0x22
push 1
push str..lan_language_descriptor_file_set.
call fcn.0040df31
push 0x433e10
call fcn.00401b30
add esp, 0x2c
xor eax, eax
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push str.Error_on_line
push eax
call sym.get_newer.exe__string_appends_8
push 0x20
lea eax, [esp + 0x24]
push eax
call sym.get_newer.exe__string_append1_8
mov edi, dword [esp + 0x42c]
lea eax, [esp + 0xc]
push dword [edi + 0x914]
push eax
call sym.get_newer.exe__string_f_int_8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
call sym.get_newer.exe__string_append_8
push str._of_file
lea eax, [esp + 0x24]
push eax
call sym.get_newer.exe__string_appends_8
mov ax, word [esp + 0x22]
cmp ax, bx
jle 0x4223c5
cwde
push 0x43617b
sub eax, 0x400
push eax
push 0x433e14
call fcn.00401b30
mov ax, word [esp + 0x2e]
add esp, 0xc
test ax, ax
jle 0x4223d8
cmp ax, bx
jge 0x4223d4
movsx esi, ax
jmp 0x4223da
mov esi, ebx
jmp 0x4223da
xor esi, esi
push 1
call fcn.0040dc9c
push eax
push esi
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0040df31
push 0x433e18
call fcn.00401b30
movzx ecx, word [edi + 0x50e]
add esp, 0x18
mov eax, ecx
cmp cx, bx
jle 0x42242c
movsx eax, cx
push 0x43617c
sub eax, 0x400
push eax
push 0x433e1c
call fcn.00401b30
movzx eax, word [edi + 0x50e]
add esp, 0xc
test ax, ax
jle 0x42243f
cmp ax, bx
jge 0x42243b
movsx esi, ax
jmp 0x422441
mov esi, ebx
jmp 0x422441
xor esi, esi
push 1
call fcn.0040dc9c
push eax
push esi
lea eax, [edi + 0x510]
push 1
push eax
call fcn.0040df31
push 0x433e20
call fcn.00401b30
add esp, 0x18
call sym.get_newer.exe__sys_bomb_0
pop edi
pop esi
pop ebx
add esp, 0x418
ret 8
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x46e008], 0x8088405
inc edx
mov dword [ebx + 0x46e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x45258e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452595
ret
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4538f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x47054c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x47054c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x46f378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4538fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x44896b
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 0x448999
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4489b7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004488d5
jmp 0x4489b7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4489b7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004488d5
test edi, edi
mov eax, edi
jne 0x4489a1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5736ec]
test ecx, ecx
je 0x448a6a
jmp 0x44896a
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x409d60
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebx
sub esp, 0x48
mov dword [esp + 0x2c], str.apic
call fcn.00449a30
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.00449d50
sub esp, 8
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
shl dword [esp + 0x54], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea ebx, [esp + 0x30]
mov dword [esp], ebx
call sub.ADVAPI32.dll_CryptAcquireContextW
sub esp, 0x14
test eax, eax
je 0x409e03
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x409e30
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00449d20
sub esp, 4
mov eax, ebx
add esp, 0x48
pop ebx
ret 0xc
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.ADVAPI32.dll_CryptAcquireContextW
sub esp, 0x14
jmp 0x409ddf
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8003
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptCreateHash
sub esp, 0x14
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x409e83
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptReleaseContext
sub esp, 8
jmp 0x409de7
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00447880
sub esp, 4
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.ADVAPI32.dll_CryptHashData
sub esp, 0x10
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x6801
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptDeriveKey
sub esp, 0x14
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x409f00
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptDestroyHash
sub esp, 4
jmp 0x409e67
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptEncrypt
sub esp, 0x1c
test eax, eax
je 0x409f4b
mov dword [esp + 0x38], 1
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.ADVAPI32.dll_CryptDestroyKey
sub esp, 4
jmp 0x409eec
Function at 0x422cd7
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x422d6f
push edi
push 0x5556ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x553ce0]
test edi, edi
je 0x422d43
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x422d3c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x553ce0
call fcn.0044995e
pop ecx
pop ecx
jmp 0x422d3e
mov edi, dword [edi]
test edi, edi
jne 0x422d13
pop ebx
mov eax, dword [0x550724]
mov esi, eax
inc eax
push 0x10
push 0x553ce0
mov dword [0x550724], eax
call fcn.0044999e
pop ecx
pop ecx
push 0x5556ac
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x4240dc
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x424131
push dword [esp + 0x10]
push 0x42405b
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x553fe8]
test esi, esi
je 0x42418a
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x424129
cmp byte [esi + 0x10], 0
je 0x424129
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x424105
jmp 0x42418a
mov esi, dword [0x553fe8]
test esi, esi
je 0x42418a
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x424183
cmp byte [esi + 0x11], 0
je 0x42415f
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x424176
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x553fe8
call fcn.0044995e
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x42413e
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x424849
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x42489d
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42488b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x424897
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x42485c
jmp 0x42489b
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc

Function at 0x424904
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x5556f8]
call fcn.004490be
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x424a04
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x42495a
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x424952
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x42499a
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4249dc
push 0x22
pop edx
cmp cx, dx
je 0x42498c
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42497c
xor ecx, ecx
cmp word [eax], cx
je 0x4249dc
mov ecx, eax
add eax, 2
jmp 0x4249de
test dx, dx
je 0x4249e4
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x42498c
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4249d2
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4249dc
cmp cx, dx
je 0x4249cf
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4249bf
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4249a4
jmp 0x42498c
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4249e6
xor edx, edx
cmp dword [ebp], ebx
jne 0x4249ef
test edi, edi
jne 0x424a0c
test edx, edx
je 0x4249f4
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x424948
test edi, edi
jne 0x424a1d
mov eax, ebx
jmp 0x424a21
test esi, esi
je 0x424a1d
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x424a21
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4287e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x42888e
cmp dword [ebp + 0xc], edi
je 0x42888e
push esi
push 0x60
push 8
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x40], eax
add esp, 0xc
mov eax, dword [0x550728]
mov dword [esi + 0x28], eax
mov eax, dword [0x554284]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x42887d
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x428a10
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x428875
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x42888d
push esi
call fcn.00428d60
jmp 0x42888c
push esi
call fcn.004288a7
push esi
mov edi, eax
call fcn.00428d60
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10

Function at 0x4288a7
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x18], ebp
call fcn.004f3530
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call fcn.004f3530
mov dword [esp + 0x10], eax
call fcn.004bde80
mov esi, eax
test esi, esi
je 0x4289e6
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4289d1
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x428919
push 1
push 0x34
push esi
call fcn.004c0dd0
add esp, 0xc
mov eax, dword [0x554278]
test eax, eax
je 0x428931
push eax
push 0x2714
push esi
call fcn.004c0dd0
add esp, 0xc
mov eax, dword [0x55427c]
test eax, eax
je 0x428962
cmp dword [0x554280], ebx
je 0x428962
push eax
push 0x27bf
push esi
call fcn.004c0dd0
push dword [0x554280]
push 0x27c0
push esi
call fcn.004c0dd0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push esi
call fcn.004c0dd0
push dword [esp + 0x1c]
push 0x2722
push esi
call fcn.004c0dd0
push 0x428a1f
push 0x4e2b
push esi
call fcn.004c0dd0
push edi
push 0x2711
push esi
call fcn.004c0dd0
push 1
push 0x63
push esi
call fcn.004c0dd0
push esi
call fcn.004bdf20
add esp, 0x40
test eax, eax
jne 0x4289bc
cmp dword [edi + 4], 0xfffffffb
je 0x4289bc
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4289d1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.004bde40
pop ecx
cmp ebx, 1
jne 0x4289e6
mov dword [edi + 4], 0xfffffffe
jmp 0x4289f5
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push dword [esp + 0x1c]
call fcn.004f3520
push dword [esp + 0x10]
call fcn.004f3520
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret
Function at 0x428a61
Capabilities:
Reference http user-agent string

Disassembly:
push str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.00428a76
ret 8

Function at 0x428a76
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x428b20
push ebx
push esi
push 0x60
push 8
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
xor ebx, ebx
inc ebx
or dword [esi + 4], 0xffffffff
mov dword [esi], ebx
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x10]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [0x550728]
mov dword [esi + 0x28], eax
mov eax, dword [0x554284]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x58], ebx
test bl, cl
je 0x428b0e
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x428c97
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x428afb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x428afe
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x428b06
mov edi, esi
jmp 0x428b1e
push esi
call fcn.00428d60
jmp 0x428b1d
push esi
call fcn.00428b35
push esi
mov edi, eax
call fcn.00428d60
pop ecx
pop ecx
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x429220
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x42930d
push ebx
push ebp
push esi
push 0x60
push 8
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [esp + 0x18]
mov esi, eax
xor ebp, ebp
inc ebp
or dword [esi + 4], 0xffffffff
mov dword [esi], ebp
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 8], eax
mov dword [esp], str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
call sub.MSVCRT.dll__wcsdup
mov ebx, dword [esp + 0x24]
pop ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x40], eax
mov dword [esi + 0x24], ecx
mov eax, dword [0x550728]
mov dword [esi + 0x28], eax
mov eax, dword [0x554284]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], eax
test cl, 1
je 0x4292fa
test ebx, ebx
je 0x4292c4
push ebx
push edi
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x48], eax
test eax, eax
je 0x4292bf
push ebx
push dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [esi + 0x48], edi
je 0x4292f1
lea eax, [esp + 0x18]
push eax
push edi
push esi
push 0x429313
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4292e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4292ed
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x429308
push esi
call fcn.00428d60
pop ecx
jmp 0x42930a
mov eax, dword [esp + 0x1c]
push esi
mov dword [esi + 0x48], eax
call fcn.00428e17
pop ecx
mov edi, esi
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 0x18