joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ac20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x47c
push ebx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x88]
mov dword [esp + 0x1c], 0
push eax
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
push str.C:Windows
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x420a74], eax
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [0x420a78], ecx
cmp dword [ecx], 0x4550
jne 0x41afd5
xor edx, edx
push ebp
mov dx, word [ecx + 0x14]
push esi
mov esi, edx
mov edx, dword [0x420a64]
mov edi, ecx
lea edx, [edx + edx*4]
add edi, esi
lea esi, [edi + edx*8 + 0x18]
mov edx, dword [0x420030]
mov edi, edx
inc edx
cmp edi, 1
mov dword [0x420a7c], esi
mov dword [0x420030], edx
jne 0x41ad9d
mov edx, 0x41ac00
sub edx, eax
mov dword [0x420a5c], edx
xor edx, edx
mov dx, word [ecx + 6]
mov dword [0x420a80], edx
mov edi, dword [ecx + 0x80]
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0x14], edi
mov edi, dword [ecx + 0xa0]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edi
xor edi, edi
test edx, edx
jmp 0x4251ed
jmp 0x5253e1
pop edi
xor eax, eax
pop ebx
add esp, 0x47c
ret

Function at 0x41b3d6
Capabilities:
Terminate process

Disassembly:
cmp dword [0x420bb0], 2
je 0x41b3e4
jmp fcn.00424941
push dword [esp + 4]
call fcn.0041c769
pop ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x41c769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x420190
cmp edx, dword [eax]
je 0x41c78b
add eax, 8
inc ecx
cmp eax, 0x420220
jl 0x41c77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x420190]
jne 0x41c8b9
mov eax, dword [0x420bb0]
cmp eax, 1
je 0x41c893
test eax, eax
jne 0x41c7bc
cmp dword [0x4200e4], 1
je 0x41c893
cmp edx, 0xfc
je 0x41c8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041d670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041d490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41c836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041d490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f45c
push edi
call fcn.0041df00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041d670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041d680
lea eax, [ebp - 0xa0]
push 0x41f43c
push eax
call fcn.0041d680
push dword [esi + 0x420194]
lea eax, [ebp - 0xa0]
push eax
jmp 0x425714
lea eax, [ebp + 8]
lea esi, [esi + 0x420194]
push 0
push eax
push dword [esi]
call fcn.0041d490
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 0x43b654
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
add esi, 1
and esi, esi
call fcn.0043b697
push 0x2500e3ac
mov esi, dword [esp]
add esp, 4
and esi, esi
xor dword [eax], edx
push 0xebfbbb8d
mov ebx, dword [esp]
add esp, 4
add eax, 1
sub ebx, esi
cmp eax, edi
jne fcn.0043b654
add ebx, esi
mov ebx, ebx
ret

Function at 0x532070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd4000]
push edi
jmp 0x53208a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x532091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x532080
mov eax, 1
add ebx, ebx
jne 0x5320a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5320b4
jne 0x5320d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320d3
dec eax
add ebx, ebx
jne 0x5320c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x532098
add ebx, ebx
jne 0x5320cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x532125
xor ecx, ecx
sub eax, 3
jb 0x5320eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53215a
sar eax, 1
mov ebp, eax
jmp 0x5320f6
add ebx, ebx
jne 0x5320f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320c4
inc ecx
add ebx, ebx
jne 0x532104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320c4
add ebx, ebx
jne 0x532111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x532106
jne 0x532122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x532106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x532144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x532136
jmp 0x532086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x532144
add edi, ecx
jmp 0x532086
pop esi
mov edi, esi
mov ecx, 0x45f6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x532162
cmp byte [edi], 0x22
jne 0x532162
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 0x532167
lea edi, [esi + 0x12f000]
mov eax, dword [edi]
or eax, eax
je 0x5321df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x136fc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1370e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x532194
mov ecx, edi
jns 0x5321c3
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 + 0x1370f0]
or eax, eax
je 0x5321d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5321b1
call dword [esi + 0x1370ec]
mov ebp, dword [esi + 0x1370f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x532213
sub esp, 0xffffff80
jmp 0x49add5
Function at 0x403020
Capabilities:
Get disk information

Disassembly:
sub esp, 0x830
mov eax, dword [esp + 0x834]
mov ecx, dword [eax]
push ebx
mov ebx, dword [0x50bf4c]
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [0x50bf48]
xor ebp, ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], 0x9e3779b9
call fcn.00402ff0
mov eax, dword [0x50bf50]
mov edx, dword [0x50bf54]
add dword [esp + 0x14], 0x23f
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov eax, dword [0x2bb8a1c]
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
cmp eax, 0xfa9
jne 0x4030b0
mov dword [0x2bb8a18], 0xedeb2e40
jmp 0x4030bd
cmp eax, 0x3eb
jne 0x4030bd
mov dword [0x2bb5924], ebp
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
mov dword [0x2bb8a14], 0xf4ea3dee
call fcn.00403000
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor dword [esp + 0x18], eax
cmp dword [0x2bb8a1c], 0x213
jne 0x40313c
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0x40]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
sub esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov eax, esi
mov dword [esp + 0x34], esi
call fcn.00402fe0
add dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov edx, esi
shr edx, 5
add edx, ebx
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
cmp dword [0x2bb8a1c], 0x121
jne 0x40319c
push ebp
push ebp
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x10], ecx
call fcn.00403010
mov eax, dword [esp + 0x38]
sub dword [esp + 0x14], eax
sub dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x28]
jne 0x403080
mov eax, dword [esp + 0x844]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x830
ret 4
Function at 0x40a4dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50bba0]
jne 0x40a4e7
repz ret
jmp fcn.0040d5a2

Function at 0x40c33e
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.004087a0
and dword [ebp - 4], 0
cmp dword [0x50dd38], 0
mov ebx, eax
jne 0x40c3ef
push 0x401ad8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c4a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401acc
push edi
call esi
test eax, eax
je 0x40c4a0
push eax
call fcn.0040872e
mov dword [esp], 0x401abc
push edi
mov dword [0x50dd38], eax
call esi
push eax
call fcn.0040872e
mov dword [esp], 0x401aa8
push edi
mov dword [0x50dd3c], eax
call esi
push eax
call fcn.0040872e
mov dword [esp], 0x401a8c
push edi
mov dword [0x50dd40], eax
call esi
push eax
call fcn.0040872e
pop ecx
mov dword [0x50dd48], eax
test eax, eax
je 0x40c3ef
push 0x401a74
push edi
call esi
push eax
call fcn.0040872e
pop ecx
mov dword [0x50dd44], eax
mov eax, dword [0x50dd44]
cmp eax, ebx
je 0x40c447
cmp dword [0x50dd48], ebx
je 0x40c447
push eax
call fcn.004087a9
push dword [0x50dd48]
mov esi, eax
call fcn.004087a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c447
test edi, edi
je 0x40c447
call esi
test eax, eax
je 0x40c43e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c43e
test byte [ebp - 0xc], 1
jne 0x40c447
or dword [ebp + 0x10], 0x200000
jmp 0x40c480
mov eax, dword [0x50dd3c]
cmp eax, ebx
je 0x40c480
push eax
call fcn.004087a9
pop ecx
test eax, eax
je 0x40c480
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c480
mov eax, dword [0x50dd40]
cmp eax, ebx
je 0x40c480
push eax
call fcn.004087a9
pop ecx
test eax, eax
je 0x40c480
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50dd38]
call fcn.004087a9
pop ecx
test eax, eax
je 0x40c4a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c4a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6f7c6b79
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x6f7c6bbb
jmp 0x6f7c6bec
jmp 0x6f7c6c1d
jmp 0x6f7c6c4e
jmp 0x6f7c6c7f
jmp 0x6f7c6cb0
jmp 0x6f7c6ce1
jmp 0x6f7c6d12
jmp 0x6f7c6d43
jmp 0x6f7c6d74
jmp 0x6f7c6da5
jmp 0x6f7c6dd6
jmp 0x6f7c6e07
jmp 0x6f7c6e38
jmp 0x6f7c6e69
jmp 0x6f7c6e9a
jmp 0x6f7c6ecb
jmp 0x6f7c6efc
jmp 0x6f7c6f2d
jmp 0x6f7c6f5e
jmp 0x6f7c6f8f
jmp 0x6f7c6fc0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x6f7c6ff7
jmp 0x6f7c7028
jmp 0x6f7c7059
jmp 0x6f7c708a
jmp 0x6f7c70bb
jmp 0x6f7c70ec
jmp 0x6f7c711d
jmp 0x6f7c714e
jmp 0x6f7c717f
jmp 0x6f7c71b0
jmp 0x6f7c71e1
jmp 0x6f7c7212
jmp 0x6f7c7243
jmp 0x6f7c7274
jmp 0x6f7c72a5
jmp 0x6f7c72d6
jmp 0x6f7c7307
jmp 0x6f7c7338
jmp 0x6f7c7369
jmp 0x6f7c739a
jmp 0x6f7c73cb
jmp 0x6f7c73fc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x20], eax
jmp 0x6f7c7447
jmp 0x6f7c7478
jmp 0x6f7c74a9
jmp 0x6f7c74da
jmp 0x6f7c750b
jmp 0x6f7c753c
jmp 0x6f7c756d
jmp 0x6f7c759e
jmp 0x6f7c75cf
jmp 0x6f7c7600
jmp 0x6f7c7631
jmp 0x6f7c7662
jmp 0x6f7c7693
jmp 0x6f7c76c4
jmp 0x6f7c76f5
jmp 0x6f7c7726
jmp 0x6f7c7757
jmp 0x6f7c7788
jmp 0x6f7c77b9
jmp 0x6f7c77ea
jmp 0x6f7c781b
jmp 0x6f7c784c
mov eax, dword [ebp - 0x20]
add eax, 0x78
mov dword [ebp - 0x24], eax
jmp 0x6f7c7886
jmp 0x6f7c78b7
jmp 0x6f7c78e8
jmp 0x6f7c7919
jmp 0x6f7c794a
jmp 0x6f7c797b
jmp 0x6f7c79ac
jmp 0x6f7c79dd
jmp 0x6f7c7a0e
jmp 0x6f7c7a3f
jmp 0x6f7c7a70
jmp 0x6f7c7aa1
jmp 0x6f7c7ad2
jmp 0x6f7c7b03
jmp 0x6f7c7b34
jmp 0x6f7c7b65
jmp 0x6f7c7b96
jmp 0x6f7c7bc7
jmp 0x6f7c7bf8
jmp 0x6f7c7c29
jmp 0x6f7c7c5a
jmp 0x6f7c7c8b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x28], eax
jmp 0x6f7c7cd5
jmp 0x6f7c7d06
jmp 0x6f7c7d37
jmp 0x6f7c7d68
jmp 0x6f7c7d99
jmp 0x6f7c7dca
jmp 0x6f7c7dfb
jmp 0x6f7c7e2c
jmp 0x6f7c7e5d
jmp 0x6f7c7e8e
jmp 0x6f7c7ebf
jmp 0x6f7c7ef0
jmp 0x6f7c7f21
jmp 0x6f7c7f52
jmp 0x6f7c7f83
jmp 0x6f7c7fb4
jmp 0x6f7c7fe5
jmp 0x6f7c8016
jmp 0x6f7c8047
jmp 0x6f7c8078
jmp 0x6f7c80a9
jmp 0x6f7c80da
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x2c], eax
jmp 0x6f7c8125
jmp 0x6f7c8156
jmp 0x6f7c8187
jmp 0x6f7c81b8
jmp 0x6f7c81e9
jmp 0x6f7c821a
jmp 0x6f7c824b
jmp 0x6f7c827c
jmp 0x6f7c82ad
jmp 0x6f7c82de
jmp 0x6f7c830f
jmp 0x6f7c8340
jmp 0x6f7c8371
jmp 0x6f7c83a2
jmp 0x6f7c83d3
jmp 0x6f7c8404
jmp 0x6f7c8435
jmp 0x6f7c8466
jmp 0x6f7c8497
Function at 0x4010fe
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40800c]
mov dword [eax], 1
jmp fcn.0040110e
Function at 0x40365e
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x164
mov eax, 0xffffffc0
mov edx, dword [ecx + eax + 0x5e]
bswap edx
mov dword [esp + eax + 0x64], edx
add eax, 4
jne 0x40366d
mov eax, 0xffffff00
mov edx, dword [esp + eax + 0x144]
xor edx, dword [esp + eax + 0x158]
xor edx, dword [esp + eax + 0x12c]
xor edx, dword [esp + eax + 0x124]
rol edx, 1
mov dword [esp + eax + 0x164], edx
add eax, 4
jne 0x403681
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov ebp, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x10]
mov ecx, 0xffffffb0
mov dword [esp + 0x1c], eax
mov dword [esp], eax
mov dword [esp + 0x18], edx
mov dword [esp + 4], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
mov eax, esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov esi, ebx
mov edx, ebp
rol ebx, 5
mov edi, dword [esp + 4]
add ebx, dword [esp]
xor ebp, edi
and ebp, eax
xor ebp, edi
mov eax, dword [esp + ecx + 0x74]
mov dword [esp], eax
add ebp, ebx
mov eax, dword [esp]
lea ebx, [eax + ebp + 0x5a827999]
mov ebp, dword [esp + 8]
rol ebp, 0x1e
add ecx, 4
mov dword [esp], edi
mov dword [esp + 4], edx
mov eax, esi
jne 0x4036df
mov dword [esp], 0xffffffb0
mov dword [esp + 8], ebx
mov ecx, ebp
mov dword [esp + 4], edx
mov eax, ebx
rol eax, 5
mov ebx, ebp
xor ebx, esi
xor ebx, edx
add ebx, eax
mov edx, dword [esp]
mov eax, dword [esp + edx + 0xc4]
add ebx, edi
lea ebx, [eax + ebx + 0x6ed9eba1]
mov ebp, esi
rol ebp, 0x1e
add edx, 4
mov dword [esp], edx
mov edi, dword [esp + 4]
mov edx, ecx
mov esi, dword [esp + 8]
jne 0x403726
mov eax, esi
mov dword [esp], 0xffffffb0
mov edx, dword [esp + 4]
mov dword [esp + 4], ebx
mov esi, ebp
mov edi, ecx
mov ecx, ebx
rol ecx, 5
add ecx, edx
mov edx, edi
or edx, ebp
mov ebp, eax
and edx, eax
mov ebx, edi
and ebx, esi
or ebx, edx
mov eax, dword [esp]
mov edx, dword [esp + eax + 0x114]
add ebx, ecx
lea ebx, [edx + ebx - 0x70e44324]
rol ebp, 0x1e
add eax, 4
mov dword [esp], eax
mov edx, edi
mov ecx, esi
mov eax, dword [esp + 4]
jne 0x403774
mov ecx, 0xffffffb0
mov eax, dword [esp + 4]
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov edx, esi
mov esi, ebx
rol esi, 5
mov ebx, ebp
xor ebx, eax
xor ebx, edx
add ebx, esi
mov esi, dword [esp + ecx + 0x164]
add ebx, edi
lea ebx, [esi + ebx - 0x359d3e2a]
mov ebp, eax
rol ebp, 0x1e
add ecx, 4
mov dword [esp + 8], edx
mov edi, edx
mov edx, dword [esp + 4]
mov esi, edx
mov eax, dword [esp]
jne 0x4037c0
add ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [esp]
add ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
add ebp, dword [esp + 0x14]
mov dword [eax + 8], ebp
add edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 8]
add ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x1c], 0
add esp, 0x164
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40383d
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push edi
push esi
sub esp, 0x14
mov esi, ecx
xor edi, edi
inc edi
mov dword [esp], edi
mov word [esp + 4], 2
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 8], eax
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
push 0
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
test eax, eax
je 0x4038b6
mov esi, eax
mov eax, esp
push 4
push eax
push 0xffffff7f
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x4038b6
lea eax, [esp + 4]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x4038b6
push 3
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x4038c6
push str.SOCK_CHECK_ERR
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
add esp, 4
xor esi, esi
dec esi
mov eax, esi
add esp, 0x14
pop esi
pop edi
ret
Function at 0x40262a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 2
push 0xffffffffffffffff
push 0xffffff1c
push dword [ebp + 8]
call fcn.004053e4
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call fcn.004053e4
add esp, 0x10
pop ebp
ret

Function at 0x402b55
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
lea eax, [ebp - 4]
push eax
push esi
call fcn.004047d7
pop ecx
add eax, eax
push eax
push esi
push dword [0x410dd8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402b89
xor eax, eax
jmp 0x402bb7
push dword [ebp + 0xc]
push dword [0x410dd0]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
je 0x402b85
push 0
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push dword [0x410dd0]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403d09
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, si
shr esi, 0x10
mov dword [ebp + 8], eax
xor eax, eax
mov bx, word [ebp + 8]
push edi
mov dword [ebp - 4], esi
mov di, si
mov dword [ebp - 8], 0x40
sub eax, 0x61c88647
movzx edx, ax
mov dword [ebp - 0xc], eax
mov ax, di
shr ax, 5
lea ecx, [edx + esi]
shl esi, 4
xor cx, ax
xor cx, si
add bx, cx
mov word [ebp + 8], bx
mov ax, bx
mov ecx, dword [ebp + 8]
add edx, ecx
shr ax, 5
xor dx, ax
shl ecx, 4
xor dx, cx
add di, dx
sub dword [ebp - 8], 1
mov word [ebp - 4], di
je 0x403d80
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
jmp 0x403d31
mov al, byte [ebp + 8]
pop edi
pop esi
and al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404118
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x40412e
imul eax, eax, 0x21
inc edx
movzx ecx, cl
add eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x404125
pop ebp
ret

Function at 0x404136
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, 0x1505
jmp 0x40414e
imul eax, eax, 0x21
lea edx, [edx + 2]
movzx ecx, cx
add eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x404143
pop ebp
ret

Function at 0x40573c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov eax, esi
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x40574a
mov ecx, esi
mov dword [ebp - 4], esi
mov eax, ecx
mov bl, byte [ecx + edi]
xor edx, edx
movzx ecx, bl
div dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
movzx eax, byte [edx + eax]
add eax, esi
add ecx, eax
movzx esi, cl
mov ecx, dword [ebp - 4]
mov al, byte [esi + edi]
mov byte [ecx + edi], al
inc ecx
mov byte [esi + edi], bl
mov dword [ebp - 4], ecx
cmp ecx, 0x100
jb 0x40575a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405794
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov eax, esi
test edi, edi
je 0x405800
push ebx
mov ebx, dword [ebp + 0x14]
sub dword [ebp + 0xc], ebx
mov edx, dword [ebp + 8]
inc eax
movzx ecx, al
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov ebx, dword [ebp + 0x10]
mov cl, byte [ecx + eax]
movzx eax, cl
add eax, esi
movzx esi, al
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
mov byte [ebx + edx], al
mov eax, edx
mov edx, ebx
mov ebx, dword [ebp + 0x14]
mov byte [esi + eax], cl
movzx eax, byte [edx + eax]
mov edx, dword [ebp + 0xc]
movzx ecx, cl
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp + 8]
mov al, byte [eax + ecx]
xor al, byte [edx + ebx]
mov byte [ebx], al
inc ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], ebx
sub edi, 1
jne 0x4057ab
pop ebx
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
not ecx
test edx, edx
je 0x4058d1
push esi
mov esi, dword [ebp + 0xc]
push edi
movzx eax, byte [esi]
dec edx
push 8
xor ecx, eax
inc esi
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
not eax
inc eax
and eax, 0xedb88320
xor ecx, eax
sub edi, 1
jne 0x4058b5
test edx, edx
jne 0x4058ab
pop edi
pop esi
not ecx
mov eax, ecx
pop ebp
ret

Function at 0x405a28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405a4a
push edi
mov edi, dword [ebp + 0xc]
mov edx, eax
sub edi, eax
mov cl, byte [edi + edx]
xor byte [edx], cl
inc edx
sub esi, 1
jne 0x405a3e
pop edi
pop esi
pop ebp
ret